user.vue 18 KB

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