index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  1. <template>
  2. <view v-if="!isFirstload" class="container" :style="appThemeStyle">
  3. <!-- 页面头部 -->
  4. <view class="main-header" :style="{ height: platform == 'H5' ? '260rpx' : '320rpx', paddingTop: platform == 'H5' ? '0' : '80rpx' }">
  5. <image class="bg-image" src="/static/background/user-header2.png" mode="scaleToFill"></image>
  6. <!-- 用户信息 -->
  7. <view v-if="isLogin" class="user-info">
  8. <view class="user-avatar" @click="handlePersonal()">
  9. <avatar-image :url="userInfo.avatar_url" :width="100" />
  10. </view>
  11. <view class="user-content">
  12. <!-- 会员昵称 -->
  13. <view class="nick-name oneline-hide" @click="handlePersonal()">{{ userInfo.nick_name }}</view>
  14. <!-- 会员等级 -->
  15. <view v-if="$checkModule('user-grade') && userInfo.grade_id > 0 && userInfo.grade" class="user-grade">
  16. <view class="user-grade_icon">
  17. <image class="image"
  18. src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAA0lBMVEUAAAD/tjL/tzH/uDP/uC7/tjH/tzH/tzL/tTH+tTL+tjP/tDD/tTD+tzD/tjL/szD/uDH/tjL/tjL+tjD/tjT/szb/tzL/tTL+uTH+tjL/tjL/tjL/tTT/tjL/tjL+tjH/uTL/vDD/tjL/tjH/tzL9uS//tTL/nBr/sS7/tjH/ujL/szD/uTv+rzf/tzL+tzH+vDP+uzL+tjP+ry7+tDL9ki/7szf/sEX/tTL/tjL+tjL/tTH/tTT/tzH/tzL/tjP/sTX/uTP/wzX+rTn/vDX9vC8m8ckhAAAAOXRSTlMAlnAMB/vjxKWGMh0S6drMiVxPRkEY9PLy0ru0sKagmo5+dGtgVCMgBP716eXWyMGxqJGRe2o5KSmFNjaYAAABP0lEQVQ4y8XS13KDMBAF0AWDDe4t7r3ETu9lVxJgJ/n/X8rKAzHG5TE+Twz3zki7I/g/KXdghIbGJewrU4yzn08Ebgl6TuZzzuOC6W5es3HX6qsSz3NFShRU0MpucytDmOSpu3yULx3CA9RD1HjVedc0jSjqm6ZzhUjDsFDQhSp/OKj5GQvg0+ZCOixsbtDLAeTTOm/yGi8GyIphIVsgH737FEDV44LJa88IRKK/SetrwT9G/GUIr6vXjoy4GXn7+RboVXnghuSjaoGecwQxL2su3CwAKlO+QFoqxI4FMctHQhQd2OhxTu184jWUlI+rMTBTn1/IQcJHQ6GQdZ7pWiDaNdhTt330efISeiqYwQEzQpTlsURJLhzkEmpCPsERfeIUVyXr6MNuIyp5uziW6xURtt7hhGwzmMNJExfO4Bd9X0ZPqAxdNwAAAABJRU5ErkJggg==">
  19. </image>
  20. </view>
  21. <view class="user-grade_name">
  22. <text>{{ userInfo.grade.name }}</text>
  23. </view>
  24. </view>
  25. <!-- 会员无等级时显示手机号 -->
  26. <view v-else class="mobile">{{ userInfo.mobile }}</view>
  27. </view>
  28. </view>
  29. <!-- 未登录 -->
  30. <view v-else class="user-info" @click="handleLogin">
  31. <view class="user-avatar">
  32. <avatar-image :width="100" />
  33. </view>
  34. <view class="user-content">
  35. <view class="nick-name">未登录</view>
  36. <view class="login-tips">点击登录账号</view>
  37. </view>
  38. </view>
  39. </view>
  40. <!-- 绑定手机号 -->
  41. <view v-if="isLogin && !userInfo.mobile && setting[SettingKeyEnum.REGISTER.value].isManualBind" class="my-mobile"
  42. @click="handleBindMobile()">
  43. <view class="info">点击绑定手机号,确保账户安全</view>
  44. <view class="btn-bind">去绑定</view>
  45. </view>
  46. <!-- 我的钱包 -->
  47. <view v-if="$checkModules(['market-recharge', 'market-points', 'market-coupon'])" class="my-asset">
  48. <view class="asset-left flex-box dis-flex flex-x-around">
  49. <view v-if="$checkModule('market-recharge')" class="asset-left-item" style="max-width: 200rpx;" @click="onTargetWallet">
  50. <view class="item-value dis-flex flex-x-center">
  51. <text class="oneline-hide">{{ isLogin ? assets.balance : '--' }}</text>
  52. </view>
  53. <view class="item-name dis-flex flex-x-center">
  54. <text>账户余额</text>
  55. </view>
  56. </view>
  57. <view v-if="$checkModule('market-points')" class="asset-left-item" @click="onTargetPoints">
  58. <view class="item-value dis-flex flex-x-center">
  59. <text class="oneline-hide">{{ isLogin ? assets.points : '--' }}</text>
  60. </view>
  61. <view class="item-name dis-flex flex-x-center">
  62. <text>{{ setting[SettingKeyEnum.POINTS.value].points_name }}</text>
  63. </view>
  64. </view>
  65. <view v-if="$checkModule('market-coupon')" class="asset-left-item" @click="onTargetMyCoupon">
  66. <view class="item-value dis-flex flex-x-center">
  67. <text class="oneline-hide">{{ isLogin ? assets.coupon : '--' }}</text>
  68. </view>
  69. <view class="item-name dis-flex flex-x-center">
  70. <text>优惠券</text>
  71. </view>
  72. </view>
  73. </view>
  74. <view v-if="$checkModule('market-recharge')" class="asset-right">
  75. <view class="asset-right-item" @click="onTargetWallet">
  76. <view class="item-icon dis-flex flex-x-center">
  77. <text class="iconfont icon-qianbao"></text>
  78. </view>
  79. <view class="item-name dis-flex flex-x-center">
  80. <text>我的钱包</text>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. <!-- 绑定手机号 (第2种样式) -->
  86. <!-- <view class="my-mobile2" @click="handleBindMobile()">
  87. <view class="info">点击绑定手机号,确保账户安全</view>
  88. <view class="btn-bind">去绑定</view>
  89. </view> -->
  90. <!-- 订单操作 -->
  91. <view class="order-navbar">
  92. <view class="order-navbar-item" v-for="(item, index) in orderNavbar" :key="index" @click="onTargetOrder(item)">
  93. <view class="item-icon">
  94. <text class="iconfont" :class="[`icon-${item.icon}`]"></text>
  95. </view>
  96. <view class="item-name">{{ item.name }}</view>
  97. <view class="item-badge" v-if="item.count && item.count > 0">
  98. <text v-if="item.count <= 99" class="text">{{ item.count }}</text>
  99. <text v-else class="text">99+</text>
  100. </view>
  101. </view>
  102. </view>
  103. <!-- 我的服务 -->
  104. <view class="my-service">
  105. <view class="service-title">我的服务</view>
  106. <view class="service-content clearfix">
  107. <block v-for="(item, index) in service" :key="index">
  108. <view v-if="item.type == 'link' && item.enabled" class="service-item" @click="handleService(item)">
  109. <view class="item-icon">
  110. <text class="iconfont" :class="[`icon-${item.icon}`]"></text>
  111. </view>
  112. <view class="item-name">{{ item.name }}</view>
  113. <view class="item-badge" v-if="item.count && item.count > 0">
  114. <text v-if="item.count <= 99" class="text">{{ item.count }}</text>
  115. <text v-else class="text">99+</text>
  116. </view>
  117. </view>
  118. <!-- 在线客服 -->
  119. <view v-if="item.type == 'contact' && item.enabled" class="service-item">
  120. <customer-btn>
  121. <view class="item-icon">
  122. <text class="iconfont" :class="[`icon-${item.icon}`]"></text>
  123. </view>
  124. <view class="item-name">{{ item.name }}</view>
  125. </customer-btn>
  126. </view>
  127. </block>
  128. </view>
  129. </view>
  130. <!-- 退出登录 -->
  131. <view v-if="isLogin" class="my-logout">
  132. <view class="logout-btn" @click="handleLogout()">
  133. <text>退出登录</text>
  134. </view>
  135. </view>
  136. </view>
  137. </template>
  138. <script>
  139. import store from '@/store'
  140. import { inArray } from '@/utils/util'
  141. import AvatarImage from '@/components/avatar-image'
  142. import CustomerBtn from '@/components/customer-btn'
  143. import { setCartTabBadge } from '@/core/app'
  144. import SettingKeyEnum from '@/common/enum/setting/Key'
  145. import StoreModel from '@/common/model/Store'
  146. import SettingModel from '@/common/model/Setting'
  147. import * as UserApi from '@/api/user'
  148. import * as OrderApi from '@/api/order'
  149. import { checkLogin, filterModules } from '@/core/app'
  150. // 订单操作
  151. const orderNavbar = [
  152. { id: 'all', name: '全部订单', icon: 'qpdingdan' },
  153. { id: 'payment', name: '待支付', icon: 'daifukuan', count: 0 },
  154. { id: 'delivery', name: '待发货', icon: 'daifahuo', count: 0 },
  155. { id: 'received', name: '待收货', icon: 'daishouhuo', count: 0 },
  156. ]
  157. /**
  158. * 我的服务
  159. * id: 标识; name: 标题名称; icon: 图标; type 类型(link和button); url: 跳转的链接
  160. */
  161. const service = [
  162. { id: 'address', name: '收货地址', icon: 'shouhuodizhi', type: 'link', url: 'pages/address/index' },
  163. { id: 'coupon', name: '领券中心', icon: 'lingquan', type: 'link', url: 'pages/coupon/index', moduleKey: 'market-coupon' },
  164. { id: 'myCoupon', name: '优惠券', icon: 'youhuiquan', type: 'link', url: 'pages/my-coupon/index', moduleKey: 'market-coupon' },
  165. { id: 'refund', name: '退换/售后', icon: 'shouhou', type: 'link', url: 'pages/refund/index', count: 0 },
  166. { id: 'contact', name: '在线客服', icon: 'kefu', type: 'contact' },
  167. { id: 'points', name: '我的积分', icon: 'jifen', type: 'link', url: 'pages/points/log', moduleKey: 'market-points' },
  168. { id: 'orderCenter', name: '订单中心', icon: 'order-c', type: 'link', url: 'pages/order/center' },
  169. { id: 'help', name: '我的帮助', icon: 'bangzhu', type: 'link', url: 'pages/help/index', moduleKey: 'content-help' },
  170. ]
  171. export default {
  172. components: {
  173. AvatarImage,
  174. CustomerBtn
  175. },
  176. data() {
  177. return {
  178. inArray,
  179. // 枚举类
  180. SettingKeyEnum,
  181. // 正在加载
  182. isLoading: true,
  183. // 首次加载
  184. isFirstload: true,
  185. // 是否已登录
  186. isLogin: false,
  187. // 系统设置
  188. setting: {},
  189. // 当前用户信息
  190. userInfo: {},
  191. // 账户资产
  192. assets: { balance: '--', points: '--', coupon: '--' },
  193. // 我的服务
  194. service,
  195. // 订单操作
  196. orderNavbar,
  197. // 当前用户待处理的订单数量
  198. todoCounts: { payment: 0, deliver: 0, received: 0 }
  199. }
  200. },
  201. /**
  202. * 生命周期函数--监听页面显示
  203. */
  204. onLoad(options) {},
  205. /**
  206. * 生命周期函数--监听页面显示
  207. */
  208. onShow() {
  209. this.onRefreshPage()
  210. },
  211. methods: {
  212. // 刷新页面
  213. onRefreshPage() {
  214. // 更新购物车角标
  215. setCartTabBadge()
  216. // 判断是否已登录
  217. this.isLogin = checkLogin()
  218. // 获取页面数据
  219. this.getPageData()
  220. },
  221. // 获取页面数据
  222. getPageData(callback) {
  223. const app = this
  224. app.isLoading = true
  225. Promise.all([app.getSetting(), app.getUserInfo(), app.getUserAssets(), app.getTodoCounts()])
  226. .then(result => {
  227. app.isFirstload = false
  228. // 初始化我的服务数据
  229. app.initService()
  230. // 初始化订单操作数据
  231. app.initOrderTabbar()
  232. // 执行回调函数
  233. callback && callback()
  234. })
  235. .catch(err => console.log('catch', err))
  236. .finally(() => app.isLoading = false)
  237. },
  238. // 初始化我的服务数据
  239. async initService() {
  240. const app = this
  241. const isShowCustomerBtn = await SettingModel.isShowCustomerBtn()
  242. const newService = []
  243. service.forEach(item => {
  244. // 默认开启
  245. item.enabled = true
  246. // 我的积分
  247. if (item.id === 'points') {
  248. item.name = '我的' + app.setting[SettingKeyEnum.POINTS.value].points_name
  249. }
  250. // 企业微信客服
  251. if (item.id === 'contact' && !isShowCustomerBtn) {
  252. item.enabled = false
  253. }
  254. // 数据角标
  255. if (item.count != undefined) {
  256. item.count = app.todoCounts[item.id]
  257. }
  258. newService.push(item)
  259. })
  260. app.service = filterModules(newService)
  261. },
  262. // 初始化订单操作数据
  263. initOrderTabbar() {
  264. const app = this
  265. const newOrderNavbar = []
  266. orderNavbar.forEach(item => {
  267. if (item.count != undefined) {
  268. item.count = app.todoCounts[item.id]
  269. }
  270. newOrderNavbar.push(item)
  271. })
  272. app.orderNavbar = newOrderNavbar
  273. },
  274. // 获取商城设置
  275. getSetting() {
  276. const app = this
  277. return new Promise((resolve, reject) => {
  278. SettingModel.data()
  279. .then(setting => {
  280. app.setting = setting
  281. resolve(setting)
  282. })
  283. .catch(reject)
  284. })
  285. },
  286. // 获取当前用户信息
  287. getUserInfo() {
  288. const app = this
  289. return new Promise((resolve, reject) => {
  290. !app.isLogin ? resolve(null) : UserApi.info({}, { load: app.isFirstload })
  291. .then(result => {
  292. app.userInfo = result.data.userInfo
  293. resolve(app.userInfo)
  294. })
  295. .catch(err => {
  296. if (err.result && err.result.status == 401) {
  297. app.isLogin = false
  298. resolve(null)
  299. } else {
  300. reject(err)
  301. }
  302. })
  303. })
  304. },
  305. // 获取账户资产
  306. getUserAssets() {
  307. const app = this
  308. return new Promise((resolve, reject) => {
  309. !app.isLogin ? resolve(null) : UserApi.assets({}, { load: app.isFirstload })
  310. .then(result => {
  311. app.assets = result.data.assets
  312. resolve(app.assets)
  313. })
  314. .catch(err => {
  315. if (err.result && err.result.status == 401) {
  316. app.isLogin = false
  317. resolve(null)
  318. } else {
  319. reject(err)
  320. }
  321. })
  322. })
  323. },
  324. // 获取当前用户待处理的订单数量
  325. getTodoCounts() {
  326. const app = this
  327. return new Promise((resolve, reject) => {
  328. !app.isLogin ? resolve(null) : OrderApi.todoCounts({}, { load: app.isFirstload })
  329. .then(result => {
  330. app.todoCounts = result.data.counts
  331. resolve(app.todoCounts)
  332. })
  333. .catch(err => {
  334. if (err.result && err.result.status == 401) {
  335. app.isLogin = false
  336. resolve(null)
  337. } else {
  338. reject(err)
  339. }
  340. })
  341. })
  342. },
  343. // 跳转到登录页
  344. handleLogin() {
  345. !this.isLogin && this.$navTo('pages/login/index')
  346. },
  347. // 跳转到绑定手机号页面
  348. handleBindMobile() {
  349. this.$navTo('pages/user/bind/index')
  350. },
  351. // 跳转到修改个人信息页
  352. handlePersonal() {
  353. this.$navTo('pages/user/personal/index')
  354. },
  355. // 退出登录
  356. handleLogout() {
  357. const app = this
  358. uni.showModal({
  359. title: '友情提示',
  360. content: '您确定要退出登录吗?',
  361. success(res) {
  362. if (res.confirm) {
  363. store.dispatch('Logout', {})
  364. .then(result => app.onRefreshPage())
  365. }
  366. }
  367. })
  368. },
  369. // 跳转到钱包页面
  370. onTargetWallet() {
  371. this.$navTo('pages/wallet/index')
  372. },
  373. // 跳转到订单页
  374. onTargetOrder(item) {
  375. this.$navTo('pages/order/index', { dataType: item.id })
  376. },
  377. // 跳转到我的积分页面
  378. onTargetPoints() {
  379. this.$navTo('pages/points/log')
  380. },
  381. // 跳转到我的优惠券页
  382. onTargetMyCoupon() {
  383. this.$navTo('pages/my-coupon/index')
  384. },
  385. // 跳转到服务页面
  386. handleService({ url }) {
  387. this.$navTo(url)
  388. }
  389. },
  390. /**
  391. * 下拉刷新
  392. */
  393. onPullDownRefresh() {
  394. // 获取首页数据
  395. this.getPageData(() => {
  396. uni.stopPullDownRefresh()
  397. })
  398. },
  399. }
  400. </script>
  401. <style lang="scss" scoped>
  402. .container {
  403. padding-bottom: 60rpx;
  404. }
  405. // 页面头部
  406. .main-header {
  407. // background-color: #FBF7EF;
  408. position: relative;
  409. width: 100%;
  410. height: 280rpx;
  411. background-size: 100% 100%;
  412. overflow: hidden;
  413. display: flex;
  414. align-items: center;
  415. padding-left: 30rpx;
  416. .bg-image {
  417. position: absolute;
  418. top: 0;
  419. left: 0;
  420. width: 100%;
  421. height: 100%;
  422. z-index: 0;
  423. }
  424. .user-info {
  425. display: flex;
  426. height: 100rpx;
  427. z-index: 1;
  428. .user-content {
  429. display: flex;
  430. flex-direction: column;
  431. justify-content: center;
  432. margin-left: 30rpx;
  433. color: #c59a46;
  434. .nick-name {
  435. font-size: 34rpx;
  436. font-weight: bold;
  437. max-width: 300rpx;
  438. }
  439. .mobile {
  440. margin-top: 15rpx;
  441. font-size: 28rpx;
  442. }
  443. .user-grade {
  444. align-self: baseline;
  445. display: flex;
  446. align-items: center;
  447. background: #3c3c3c;
  448. margin-top: 12rpx;
  449. border-radius: 10rpx;
  450. padding: 4rpx 12rpx;
  451. .user-grade_icon .image {
  452. display: block;
  453. width: 32rpx;
  454. height: 32rpx;
  455. }
  456. .user-grade_name {
  457. margin-left: 5rpx;
  458. font-size: 26rpx;
  459. color: #EEE0C3;
  460. }
  461. }
  462. .login-tips {
  463. margin-top: 12rpx;
  464. font-size: 30rpx;
  465. }
  466. }
  467. }
  468. }
  469. // 角标组件
  470. .item-badge {
  471. position: absolute;
  472. top: 0;
  473. right: 55rpx;
  474. // background: $main-bg;
  475. background: #fa2209;
  476. color: #fff;
  477. border-radius: 100%;
  478. min-width: 38rpx;
  479. height: 38rpx;
  480. display: flex;
  481. justify-content: center;
  482. align-items: center;
  483. padding: 1rpx;
  484. font-size: 24rpx;
  485. }
  486. // 我的钱包
  487. .my-asset {
  488. display: flex;
  489. background: #fff;
  490. padding: 40rpx 0;
  491. .asset-right {
  492. width: 200rpx;
  493. border-left: 1rpx solid #eee;
  494. }
  495. .asset-right-item {
  496. text-align: center;
  497. color: #545454;
  498. .item-icon {
  499. font-size: 44rpx;
  500. }
  501. .item-name {
  502. margin-top: 14rpx;
  503. font-size: 28rpx;
  504. }
  505. }
  506. .asset-left-item {
  507. max-width: 183rpx;
  508. text-align: center;
  509. color: #666;
  510. padding: 0 16rpx;
  511. .item-value {
  512. font-size: 34rpx;
  513. color: $main-bg;
  514. }
  515. .item-name {
  516. margin-top: 14rpx;
  517. font-size: 28rpx;
  518. }
  519. }
  520. }
  521. // 订单操作
  522. .order-navbar {
  523. display: flex;
  524. margin: 20rpx auto 20rpx auto;
  525. padding: 20rpx 0 26rpx 0;
  526. width: 94%;
  527. box-shadow: 0 1rpx 5rpx 0px rgba(0, 0, 0, 0.05);
  528. font-size: 30rpx;
  529. border-radius: 5rpx;
  530. background: #fff;
  531. &-item {
  532. position: relative;
  533. width: 25%;
  534. .item-icon {
  535. text-align: center;
  536. margin: 0 auto;
  537. padding: 10rpx 0;
  538. color: #545454;
  539. font-size: 44rpx;
  540. }
  541. .item-name {
  542. font-size: 28rpx;
  543. color: #545454;
  544. text-align: center;
  545. margin-right: 10rpx;
  546. }
  547. }
  548. }
  549. // 我的服务
  550. .my-service {
  551. margin: 22rpx auto 22rpx auto;
  552. padding: 22rpx 0;
  553. width: 94%;
  554. box-shadow: 0 1rpx 5rpx 0px rgba(0, 0, 0, 0.05);
  555. border-radius: 5rpx;
  556. background: #fff;
  557. .service-title {
  558. padding-left: 24rpx;
  559. margin-bottom: 20rpx;
  560. font-size: 30rpx;
  561. }
  562. .service-content {
  563. margin-bottom: -20rpx;
  564. .service-item {
  565. position: relative;
  566. width: 25%;
  567. float: left;
  568. margin-bottom: 30rpx;
  569. .item-icon {
  570. text-align: center;
  571. margin: 0 auto;
  572. padding: 14rpx 0;
  573. color: $main-bg;
  574. font-size: 44rpx;
  575. }
  576. .item-name {
  577. font-size: 28rpx;
  578. color: #545454;
  579. text-align: center;
  580. }
  581. }
  582. }
  583. }
  584. // 退出登录
  585. .my-logout {
  586. display: flex;
  587. justify-content: center;
  588. margin-top: 50rpx;
  589. .logout-btn {
  590. width: 60%;
  591. margin: 0 auto;
  592. font-size: 28rpx;
  593. color: #616161;
  594. border-radius: 20rpx;
  595. border: 1px solid #dcdcdc;
  596. padding: 16rpx 0;
  597. text-align: center;
  598. }
  599. }
  600. // 绑定手机号 样式1
  601. .my-mobile {
  602. display: flex;
  603. justify-content: space-between;
  604. align-items: center;
  605. padding: 16rpx 40rpx;
  606. background: #FCEBD1;
  607. .info {
  608. color: #cd8c0c;
  609. font-size: 28rpx;
  610. }
  611. .btn-bind {
  612. padding: 8rpx 24rpx;
  613. background-color: #EAB766;
  614. color: #fff;
  615. border-radius: 30rpx;
  616. font-size: 26rpx;
  617. text-align: center;
  618. }
  619. }
  620. // 绑定手机号 样式2
  621. .my-mobile2 {
  622. display: flex;
  623. justify-content: space-between;
  624. align-items: center;
  625. margin: 20rpx auto 20rpx auto;
  626. padding: 12rpx 40rpx;
  627. width: 94%;
  628. box-shadow: 0 1rpx 5rpx 0px rgba(0, 0, 0, 0.05);
  629. font-size: 30rpx;
  630. border-radius: 5rpx;
  631. background: #fff;
  632. .info {
  633. // color: #cd8c0c;
  634. font-size: 26rpx;
  635. }
  636. .btn-bind {
  637. padding: 8rpx 24rpx;
  638. background-color: #EAB766;
  639. color: #fff;
  640. border-radius: 30rpx;
  641. font-size: 26rpx;
  642. text-align: center;
  643. }
  644. }
  645. </style>