user.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745
  1. <template>
  2. <view class="container user clearfix">
  3. <cm-custom :navbar-data="nvabarData" v-if="isCmcustom"></cm-custom>
  4. <view class="user-section">
  5. <view
  6. class="header"
  7. :style="{
  8. height: CustomBar + 120 - StatusBar + 'px',
  9. paddingTop: CustomBar + 'px',
  10. background: 'url(https://static.caimei365.com/app/mini-mcare/icon/icon_header@2x.png)',
  11. backgroundSize: 'cover'
  12. }"
  13. >
  14. <view class="header-main" v-if="hasLogin">
  15. <view class="header-icon">
  16. <view class="header-logo">
  17. <image :src="headpic ? headpic : `${staticUrl}icon_default@3x.png`" mode=""></image>
  18. </view>
  19. </view>
  20. <view class="header-text">
  21. <view class="user-item"
  22. ><text class="u-h1">{{ name }}</text></view
  23. >
  24. </view>
  25. </view>
  26. <view class="header-main" v-else-if="isUnderLogin">
  27. <view class="header-icon">
  28. <view class="header-logo">
  29. <image :src="underInfo.shopPhoto ? underInfo.shopPhoto : `${staticUrl}icon_default@3x.png`" mode=""></image>
  30. </view>
  31. </view>
  32. <view class="header-text">
  33. <view class="user-item"
  34. ><text class="u-h1">{{ underInfo.name }}</text></view
  35. >
  36. <view class="user-item">
  37. <view class="user-item-tips none">
  38. <text v-if="underInfo.clubStatus === 1">待审核</text>
  39. <text v-if="underInfo.clubStatus === 92" @click="underNavigator">审核未通过,请重新提交 ></text>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="header-main-none" v-else>
  45. <view class="header-icon" @click="navigator('/pages/login/login')">
  46. <view class="header-logo">
  47. <image :src="staticUrl + 'icon_default@2x.png'" mode=""></image>
  48. </view>
  49. </view>
  50. <view class="header-text">
  51. <view class="user-item" @click="navigator('/pages/login/login')"> 登录 / 注册 </view>
  52. </view>
  53. </view>
  54. <!-- 订单 -->
  55. <view class="header-main-order">
  56. <view class="user-order">
  57. <view class="tab-title" @click="navigator('/pages/user/order/order-list?state=0')">
  58. <text class="cell-tit">我的订单</text> <text class="cell-more">全部订单</text>
  59. <text class="iconfont icon-xiangyou"></text>
  60. </view>
  61. <view class="order-section">
  62. <view
  63. class="order-item"
  64. @click="navigator('/pages/user/order/order-list?state=2')"
  65. hover-class="common-hover"
  66. :hover-stay-time="50"
  67. >
  68. <view class="order-icon">
  69. <image :src="staticUrl + 'icon_order_2@2x.png'" mode=""></image>
  70. <text
  71. v-if="paymentCount > 0 && hasLogin"
  72. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num "
  73. :class="[paymentCount < 10 ? 'goleft' : '']"
  74. >
  75. {{ paymentCount >= 99 ? '99+' : paymentCount }}
  76. </text>
  77. </view>
  78. <text class="order-t">待付款</text>
  79. </view>
  80. <view
  81. class="order-item"
  82. @click="navigator('/pages/user/order/order-list?state=3')"
  83. hover-class="common-hover"
  84. :hover-stay-time="50"
  85. >
  86. <view class="order-icon">
  87. <image :src="staticUrl + 'icon_order_3@2x.png'" mode=""></image>
  88. <text
  89. v-if="waitShipmentsCount > 0 && hasLogin"
  90. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  91. :class="[waitShipmentsCount < 10 ? 'goleft' : '']"
  92. >
  93. {{ waitShipmentsCount >= 99 ? '99+' : waitShipmentsCount }}
  94. </text>
  95. </view>
  96. <text class="order-t">待发货</text>
  97. </view>
  98. <view
  99. class="order-item"
  100. @click="navigator('/pages/user/order/order-list?state=4')"
  101. hover-class="common-hover"
  102. :hover-stay-time="50"
  103. >
  104. <view class="order-icon">
  105. <image :src="staticUrl + 'icon_order_4@2x.png'" mode=""></image>
  106. <text
  107. v-if="shipmentsCount > 0 && hasLogin"
  108. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  109. :class="[shipmentsCount < 10 ? 'goleft' : '']"
  110. >
  111. {{ shipmentsCount >= 99 ? '99+' : shipmentsCount }}
  112. </text>
  113. </view>
  114. <text class="order-t">已发货</text>
  115. </view>
  116. <view
  117. class="order-item"
  118. @click="navigator('/pages/user/order/order-list?state=5')"
  119. hover-class="common-hover"
  120. :hover-stay-time="50"
  121. >
  122. <view class="order-icon">
  123. <image :src="staticUrl + 'icon_order_5@2x.png'" mode=""></image>
  124. <text
  125. v-if="salesReturnCount > 0 && hasLogin"
  126. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  127. :class="[salesReturnCount < 10 ? 'goleft' : '']"
  128. >
  129. {{ salesReturnCount >= 99 ? '99+' : salesReturnCount }}
  130. </text>
  131. </view>
  132. <text class="order-t">退货/款</text>
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. <!-- 底部跳转 -->
  138. <view class="header-main-listcell">
  139. <view class="list-cell-item">
  140. <view
  141. class="list-cell"
  142. v-for="(item, index) in firstList"
  143. :key="index"
  144. @click="navigator(item.path)"
  145. hover-class="cell-hover"
  146. :hover-stay-time="50"
  147. >
  148. <view class="cell-icon">
  149. <image class="cell-icon-image" :src="staticUrl + item.icon" mode=""></image>
  150. </view>
  151. <text class="cell-tit"> {{ item.name }} </text>
  152. <text class="cell-more iconfont icon-xiangyou"></text>
  153. </view>
  154. <!-- #ifdef MP-WEIXIN -->
  155. <button class="list-cell" open-type="contact" @bindcontact="handleContact">
  156. <view class="cell-icon">
  157. <image class="cell-icon-image" :src="staticUrl + 'icon_club_5@2x.png'" mode=""></image>
  158. </view>
  159. <text class="cell-tit"> 官方客服 </text>
  160. <text class="cell-more iconfont icon-xiangyou"></text>
  161. </button>
  162. <!-- #endif -->
  163. </view>
  164. </view>
  165. </view>
  166. </view>
  167. <!-- 技术支持 -->
  168. <view class="copyright">
  169. <image class="image" :src="staticUrl + 'icon_caimei@2x.png'"></image>
  170. <view class="text">由采美365网提供技术服务</view>
  171. </view>
  172. </view>
  173. </template>
  174. <script>
  175. import authorize from '@/common/config/authorize.js'
  176. import { mapState, mapMutations } from 'vuex'
  177. export default {
  178. data() {
  179. return {
  180. nvabarData: {
  181. // 顶部自定义导航
  182. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  183. showSearch: 0,
  184. title: '个人中心', // 导航栏中间的标题
  185. haveBack: false,
  186. textLeft: this.$store.state.isIphone,
  187. textColor: '#333333',
  188. bgColor: ''
  189. },
  190. staticUrl:this.global.staticUrl,
  191. CustomBar: this.CustomBar, // 顶部导航栏高度
  192. StatusBar: this.StatusBar,
  193. userId: 0,
  194. isModify: false,
  195. isCmcustom: false,
  196. name: '',
  197. userType: '',
  198. headpic: '',
  199. userVip: {}, // 超级会员信息
  200. userBeans: 0,
  201. userMoney: '0.00',
  202. couponNum: 0,
  203. bankNum: 0,
  204. contactNumber: '',
  205. openid: '',
  206. aboutHtml: '',
  207. telPhone: '',
  208. bindMobile: '',
  209. isSvip: false,
  210. isSvipType: 2,
  211. clubStatus: '', // 机构升级资质机构审核状态1:待审核 91:审核失败
  212. userIdentity: '', // 机构等级
  213. confirmedCount: 0, // 待确认
  214. paymentCount: 0, // 待付款角标
  215. waitShipmentsCount: 0, // 待收货角标
  216. shipmentsCount: 0, // 已发货角标
  217. salesReturnCount: '', // 退货/款角标
  218. firstList: [
  219. {
  220. name: '收藏商品',
  221. path: '/pages/user/collection/collection',
  222. icon: 'icon_club_1@2x.png'
  223. },
  224. {
  225. name: '收货地址管理',
  226. path: '/pages/user/address/address',
  227. icon: 'icon_club_2@2x.png'
  228. },
  229. {
  230. name: '机构资料',
  231. path: '/pages/login/information',
  232. icon: 'icon_club_3@2x.png'
  233. },
  234. {
  235. name: '账户设置',
  236. path: '/pages/user/setting/setting',
  237. icon: 'icon_club_4@2x.png'
  238. }
  239. ],
  240. underInfo:{},
  241. isUnderLogin:false
  242. }
  243. },
  244. onLoad(option) {},
  245. computed: {
  246. ...mapState(['hasLogin', 'userInfo', 'isWxAuthorize'])
  247. },
  248. methods: {
  249. ...mapMutations(['updateNoticeNum']),
  250. async infoClucbUser(){
  251. const user = await this.$api.getStorage()
  252. console.log(user)
  253. this.underInfo = user
  254. if(this.underInfo.clubStatus === 1 || this.underInfo.clubStatus === 92){
  255. this.isUnderLogin = true
  256. }
  257. },
  258. getClubObtainCenter() {
  259. // 获取个人中心数据
  260. this.UserService.GetClubObtainCenter({ userId: this.userId })
  261. .then(response => {
  262. let data = response.data
  263. this.userIdentity = data.user.userIdentity //机构等级
  264. if (this.userIdentity == 2) {
  265. this.name = data.club.name //资质机构名称
  266. this.userType = '资质机构'
  267. } else {
  268. this.name = data.user.userName //个人机构名称
  269. this.userType = '个人机构'
  270. }
  271. this.userBeans = data.user.userBeans // 采美豆数量
  272. this.headpic = data.user.image // 会所头像
  273. this.bindMobile = data.user.bindMobile // 登录手机号
  274. this.clubStatus = data.user.clubStatus // 机构审核状态
  275. this.couponNum = data.couponNum // 优惠券数量
  276. this.bankNum = data.bankNum // 银行卡数量
  277. this.isModify = data.isModify // 是否显示采美豆
  278. this.contactNumber = data.contactNumber // 联系电话
  279. let clubInfo = { name: this.name, image: this.headpic, userId: data.user.userId }
  280. uni.setStorage({ key: 'clubInfo', data: clubInfo })
  281. })
  282. .catch(error => {
  283. this.$util.msg(error.msg, 2000)
  284. })
  285. },
  286. UserClubOrderCount() {
  287. //获取订单状态数量
  288. this.OrderService.UserClubOrderCount({ userId: this.userId })
  289. .then(response => {
  290. let data = response.data
  291. this.confirmedCount = this.showBadge(data.confirmedCount) //待确认
  292. this.paymentCount = this.showBadge(data.paymentCount) //待付款
  293. this.waitShipmentsCount = this.showBadge(data.waitShipmentsCount) //待收货
  294. this.shipmentsCount = this.showBadge(data.shipmentsCount) //已发货
  295. this.salesReturnCount = this.showBadge(data.salesReturnCount) //退货/款
  296. })
  297. .catch(error => {
  298. console.log('获取订单状态数量异常~')
  299. })
  300. },
  301. toPhone() {
  302. // 拨号
  303. uni.makePhoneCall({
  304. phoneNumber: this.contactNumber //仅为示例
  305. })
  306. },
  307. navigator(url) {
  308. if (this.hasLogin) {
  309. this.$api.navigateTo(url)
  310. } else {
  311. this.$api.navigateTo('/pages/login/login?type=0')
  312. }
  313. },
  314. underNavigator(){
  315. // 审核未通过修改资料
  316. this.$api.navigateTo('/pages/login/register-unid')
  317. },
  318. showBadge(n) {
  319. let num = ''
  320. if (n > 100) {
  321. num = 99
  322. } else {
  323. num = n
  324. }
  325. return num
  326. },
  327. clubStatusText(state) {
  328. let stateText
  329. switch (state) {
  330. case 90:
  331. stateText = ''
  332. break
  333. case 1:
  334. stateText = '正在审核中'
  335. break
  336. case 92:
  337. stateText = '审核不通过'
  338. break
  339. }
  340. return stateText
  341. },
  342. async initUserData() {
  343. const userInfo = await this.$api.getComStorage('userInfo')
  344. this.userId = userInfo.userId ? userInfo.userId : 0
  345. this.getClubObtainCenter()
  346. this.UserClubOrderCount()
  347. }
  348. },
  349. onPageScroll(e) {
  350. //实时获取到滚动的值
  351. if (e.scrollTop > 20) {
  352. this.isCmcustom = true
  353. this.nvabarData.bgColor = '#FFFFFF'
  354. this.nvabarData.textColor = '#333333'
  355. } else {
  356. this.isCmcustom = false
  357. this.nvabarData.bgColor = ''
  358. this.nvabarData.textColor = '#FFFFFF'
  359. }
  360. },
  361. onPullDownRefresh() {
  362. //下拉刷新
  363. if (this.hasLogin) {
  364. this.getClubObtainCenter()
  365. this.UserClubOrderCount()
  366. uni.stopPullDownRefresh()
  367. } else {
  368. uni.stopPullDownRefresh()
  369. }
  370. },
  371. onShow() {
  372. if (this.hasLogin) {
  373. this.initUserData()
  374. } else {
  375. this.infoClucbUser()
  376. this.$store.commit('updateAllNum', 0)
  377. }
  378. }
  379. }
  380. </script>
  381. <style lang="scss">
  382. @import '@/uni.scss';
  383. page {
  384. background-color: #f7f7f7;
  385. }
  386. .user {
  387. width: 100%;
  388. height: 100%;
  389. position: relative;
  390. background: rgba(247, 247, 247, 1);
  391. }
  392. .header {
  393. width: 100%;
  394. position: relative;
  395. background-size: cover;
  396. }
  397. .header-main {
  398. width: 702rpx;
  399. height: 130rpx;
  400. padding: 12rpx 24rpx;
  401. display: flex;
  402. .header-text {
  403. flex: 8;
  404. display: flex;
  405. flex-direction: column;
  406. box-sizing: border-box;
  407. padding: 10rpx 0 0 20rpx;
  408. .user-item {
  409. flex: 1;
  410. height: 64rpx;
  411. line-height: 64rpx;
  412. .user-item-tips {
  413. display: inline-block;
  414. float: left;
  415. height: 40rpx;
  416. background: #FCC120;
  417. border-radius: 20rpx;
  418. line-height: 40rpx;
  419. font-size: $font-size-22;
  420. text-align: center;
  421. color: #FFFFFF;
  422. box-sizing: border-box;
  423. padding: 0 20rpx;
  424. position: relative;
  425. &.none {
  426. background: #F85050;
  427. }
  428. }
  429. .u-none {
  430. font-size: $font-size-32;
  431. line-height: 120rpx;
  432. color: #ffffff;
  433. text-align: left;
  434. }
  435. .u-h1 {
  436. width: 400rpx;
  437. float: left;
  438. font-size: $font-size-30;
  439. color: #ffffff;
  440. text-align: left;
  441. -o-text-overflow: ellipsis;
  442. text-overflow: ellipsis;
  443. display: -webkit-box;
  444. word-break: break-all;
  445. -webkit-box-orient: vertical;
  446. -webkit-line-clamp: 1;
  447. overflow: hidden;
  448. }
  449. .u-p {
  450. font-size: $font-size-24;
  451. line-height: 30rpx;
  452. color: #ffffff;
  453. text-align: left;
  454. }
  455. }
  456. }
  457. .header-icon {
  458. flex: 2;
  459. display: flex;
  460. margin-right: 20rpx;
  461. align-items: center;
  462. justify-content: center;
  463. .header-logo {
  464. width: 120rpx;
  465. height: 120rpx;
  466. box-sizing: border-box;
  467. background-color: #fff;
  468. border-radius: 100%;
  469. image {
  470. width: 120rpx;
  471. height: 120rpx;
  472. display: block;
  473. border-radius: 100%;
  474. }
  475. }
  476. }
  477. }
  478. .header-main-none {
  479. width: 702rpx;
  480. height: 152rpx;
  481. padding: 0 24rpx;
  482. display: flex;
  483. .header-text {
  484. flex: 8;
  485. display: flex;
  486. flex-direction: column;
  487. position: relative;
  488. box-sizing: border-box;
  489. padding: 20rpx 0;
  490. .user-item {
  491. flex: 1;
  492. height: 120rpx;
  493. line-height: 120rpx;
  494. font-size: $font-size-32;
  495. color: #ffffff;
  496. text-align: left;
  497. }
  498. }
  499. .header-icon {
  500. flex: 2;
  501. display: flex;
  502. margin-right: 20rpx;
  503. align-items: center;
  504. justify-content: center;
  505. .header-logo {
  506. width: 120rpx;
  507. height: 120rpx;
  508. box-sizing: border-box;
  509. padding: 21rpx;
  510. background-color: #fff;
  511. border-radius: 100%;
  512. image {
  513. width: 78rpx;
  514. height: 78rpx;
  515. display: block;
  516. }
  517. }
  518. }
  519. }
  520. .header-main-order {
  521. width: 100%;
  522. height: auto;
  523. box-sizing: border-box;
  524. padding: 0 24rpx;
  525. margin-top: 26rpx;
  526. .user-order {
  527. width: 100%;
  528. height: auto;
  529. background-color: $bg-color;
  530. margin-bottom: 24rpx;
  531. border-radius: 20rpx;
  532. box-sizing: border-box;
  533. padding: 0 24rpx;
  534. }
  535. }
  536. .tab-title {
  537. font-size: $font-size-28;
  538. line-height: 80rpx;
  539. color: #333333;
  540. text-align: left;
  541. border-bottom: 1px solid #f8f8f8;
  542. position: relative;
  543. .cell-tit {
  544. font-size: $font-size-28;
  545. color: $text-color;
  546. }
  547. .cell-more {
  548. float: right;
  549. line-height: 80rpx;
  550. font-size: $font-size-24;
  551. color: $text-color;
  552. padding-right: 30rpx;
  553. }
  554. .iconfont {
  555. width: 30rpx;
  556. height: 80rpx;
  557. line-height: 80rpx;
  558. text-align: center;
  559. position: absolute;
  560. right: 0;
  561. top: 0;
  562. display: block;
  563. font-size: $font-size-28;
  564. color: #b2b2b2;
  565. }
  566. }
  567. .order-section {
  568. display: flex;
  569. justify-content: space-around;
  570. align-items: center;
  571. flex-wrap: wrap;
  572. height: 99rpx;
  573. padding: 24rpx 0;
  574. }
  575. .order-item {
  576. flex: 1;
  577. display: flex;
  578. flex-direction: column;
  579. align-items: center;
  580. position: relative;
  581. &:last-child {
  582. margin-right: 0;
  583. }
  584. .order-icon {
  585. width: 52rpx;
  586. height: 52rpx;
  587. position: relative;
  588. image {
  589. width: 52rpx;
  590. height: 52rpx;
  591. }
  592. .icon-num {
  593. position: absolute;
  594. right: -24rpx;
  595. top: -9rpx;
  596. }
  597. .icon-num.goleft {
  598. right: -12rpx;
  599. }
  600. }
  601. .order-t {
  602. line-height: 50rpx;
  603. font-size: $font-size-24;
  604. color: $text-color;
  605. }
  606. }
  607. .header-main-last {
  608. width: 100%;
  609. height: 20rpx;
  610. float: left;
  611. box-sizing: border-box;
  612. }
  613. .header-main-listcell {
  614. width: 100%;
  615. height: auto;
  616. box-sizing: border-box;
  617. padding: 0 24rpx;
  618. margin-bottom: 60rpx;
  619. }
  620. .list-cell-item {
  621. width: 654rpx;
  622. height: auto;
  623. margin-bottom: 24rpx;
  624. padding: 0 24rpx;
  625. background: $bg-color;
  626. border-radius: 20rpx;
  627. }
  628. .list-cell {
  629. width: 100%;
  630. line-height: 100rpx;
  631. position: relative;
  632. background: $bg-color;
  633. border-bottom: 1px solid #ebebeb;
  634. height: 100rpx;
  635. &:last-child {
  636. border-bottom: none;
  637. }
  638. &.cell-hover {
  639. background: #fafafa;
  640. }
  641. .cell-icon {
  642. width: 60rpx;
  643. height: 100rpx;
  644. text-align: center;
  645. box-sizing: border-box;
  646. padding: 32rpx 12rpx;
  647. float: left;
  648. .cell-icon-image {
  649. width: 36rpx;
  650. height: 36rpx;
  651. display: block;
  652. }
  653. }
  654. .cell-more {
  655. height: 100rpx;
  656. line-height: 100rpx;
  657. text-align: right;
  658. position: absolute;
  659. right: 0;
  660. top: 0;
  661. font-size: $font-size-28;
  662. color: #b2b2b2;
  663. &.cont {
  664. width: 250rpx;
  665. }
  666. .txt {
  667. color: #fb4343;
  668. padding-right: 10rpx;
  669. }
  670. }
  671. .cell-tit {
  672. width: 465rpx;
  673. display: block;
  674. float: left;
  675. font-size: $font-size-28;
  676. color: #666666;
  677. margin-right: 10rpx;
  678. text-align: left;
  679. &.cont {
  680. width: 300rpx;
  681. }
  682. .cell-tips {
  683. width: 74rpx;
  684. height: 32rpx;
  685. line-height: 32rpx;
  686. padding: 0 7rpx;
  687. border-radius: 16rpx;
  688. background-color: #ffe6dc;
  689. color: $color-system;
  690. text-align: center;
  691. font-size: $font-size-20;
  692. margin-left: 8rpx;
  693. }
  694. }
  695. .cell-tip {
  696. font-size: $font-size-28;
  697. color: $text-color;
  698. }
  699. }
  700. .list-cell.last {
  701. border-bottom: none;
  702. }
  703. .uni-badge--small {
  704. -webkit-transform: scale(0.8);
  705. -ms-transform: scale(0.8);
  706. transform: scale(0.8);
  707. -webkit-transform-origin: center center;
  708. -ms-transform-origin: center center;
  709. transform-origin: center center;
  710. }
  711. .uni-badge {
  712. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  713. -webkit-box-sizing: border-box;
  714. box-sizing: border-box;
  715. font-size: 12px;
  716. line-height: 1;
  717. display: inline-block;
  718. padding: 3px 6px;
  719. color: #333;
  720. border-radius: 100px;
  721. background-color: #f1f1f1;
  722. }
  723. .uni-badge-error {
  724. color: #fff;
  725. background-color: #dd524d;
  726. }
  727. .copyright {
  728. width: 100%;
  729. position: absolute;
  730. bottom: 40rpx;
  731. display: flex;
  732. flex-direction: column;
  733. align-items: center;
  734. image{
  735. width: 180rpx;
  736. height: 60rpx;
  737. }
  738. .text {
  739. font-size: 20rpx;
  740. color: #cccccc;
  741. }
  742. }
  743. </style>