user.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754
  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. staticUrl:this.global.staticUrl,
  204. CustomBar: this.CustomBar, // 顶部导航栏高度
  205. StatusBar: this.StatusBar,
  206. userId: 0,
  207. isModify: false,
  208. isCmcustom: false,
  209. name: '',
  210. userType: '',
  211. headpic: '',
  212. userVip: {}, // 超级会员信息
  213. userBeans: 0,
  214. userMoney: '0.00',
  215. couponNum: 0,
  216. bankNum: 0,
  217. contactNumber: '',
  218. openid: '',
  219. aboutHtml: '',
  220. telPhone: '',
  221. bindMobile: '',
  222. isSvip: false,
  223. isSvipType: 2,
  224. clubStatus: '', // 机构升级资质机构审核状态1:待审核 91:审核失败
  225. userIdentity: '', // 机构等级
  226. confirmedCount: 0, // 待确认
  227. paymentCount: 0, // 待付款角标
  228. waitShipmentsCount: 0, // 待收货角标
  229. shipmentsCount: 0, // 已发货角标
  230. salesReturnCount: '', // 退货/款角标
  231. firstList: [
  232. {
  233. name: '收藏商品',
  234. path: '/pages/user/collection/collection',
  235. icon: 'icon_club_1@2x.png'
  236. },
  237. {
  238. name: '收货地址管理',
  239. path: '/pages/user/address/address',
  240. icon: 'icon_club_2@2x.png'
  241. },
  242. {
  243. name: '机构资料',
  244. path: '/pages/login/information',
  245. icon: 'icon_club_3@2x.png'
  246. },
  247. {
  248. name: '账户设置',
  249. path: '/pages/user/setting/setting',
  250. icon: 'icon_club_4@2x.png'
  251. }
  252. ]
  253. }
  254. },
  255. onLoad(option) {},
  256. computed: {
  257. ...mapState(['hasLogin', 'userInfo', 'isWxAuthorize'])
  258. },
  259. methods: {
  260. ...mapMutations(['updateNoticeNum']),
  261. getClubObtainCenter() {
  262. // 获取个人中心数据
  263. this.UserService.GetClubObtainCenter({ userId: this.userId })
  264. .then(response => {
  265. let data = response.data
  266. this.userIdentity = data.user.userIdentity //机构等级
  267. if (this.userIdentity == 2) {
  268. this.name = data.club.name //资质机构名称
  269. this.userType = '资质机构'
  270. } else {
  271. this.name = data.user.userName //个人机构名称
  272. this.userType = '个人机构'
  273. }
  274. this.userBeans = data.user.userBeans // 采美豆数量
  275. this.headpic = data.user.image // 会所头像
  276. this.bindMobile = data.user.bindMobile // 登录手机号
  277. this.clubStatus = data.user.clubStatus // 机构审核状态
  278. this.couponNum = data.couponNum // 优惠券数量
  279. this.bankNum = data.bankNum // 银行卡数量
  280. this.isModify = data.isModify // 是否显示采美豆
  281. this.contactNumber = data.contactNumber // 联系电话
  282. let clubInfo = { name: this.name, image: this.headpic, userId: data.user.userId }
  283. uni.setStorage({ key: 'clubInfo', data: clubInfo })
  284. })
  285. .catch(error => {
  286. this.$util.msg(error.msg, 2000)
  287. })
  288. },
  289. UserClubOrderCount() {
  290. //获取订单状态数量
  291. this.OrderService.UserClubOrderCount({ userId: this.userId })
  292. .then(response => {
  293. let data = response.data
  294. this.confirmedCount = this.showBadge(data.confirmedCount) //待确认
  295. this.paymentCount = this.showBadge(data.paymentCount) //待付款
  296. this.waitShipmentsCount = this.showBadge(data.waitShipmentsCount) //待收货
  297. this.shipmentsCount = this.showBadge(data.shipmentsCount) //已发货
  298. this.salesReturnCount = this.showBadge(data.salesReturnCount) //退货/款
  299. })
  300. .catch(error => {
  301. console.log('获取订单状态数量异常~')
  302. })
  303. },
  304. getPhone() {
  305. // 获取联系我们电话
  306. this.CommonService.QueryAfterSale()
  307. .then(response => {
  308. this.contactNumber = response.data.contactNumber
  309. })
  310. .catch(error => {
  311. this.$util.msg(error.msg, 2000)
  312. })
  313. },
  314. toPhone() {
  315. // 拨号
  316. uni.makePhoneCall({
  317. phoneNumber: this.contactNumber //仅为示例
  318. })
  319. },
  320. navigator(url) {
  321. if (this.hasLogin) {
  322. this.$api.navigateTo(url)
  323. } else {
  324. this.$api.navigateTo('/pages/login/login?type=0')
  325. }
  326. },
  327. showBadge(n) {
  328. let num = ''
  329. if (n > 100) {
  330. num = 99
  331. } else {
  332. num = n
  333. }
  334. return num
  335. },
  336. clubStatusText(state) {
  337. let stateText
  338. switch (state) {
  339. case 90:
  340. stateText = ''
  341. break
  342. case 1:
  343. stateText = '正在审核中'
  344. break
  345. case 92:
  346. stateText = '审核不通过'
  347. break
  348. }
  349. return stateText
  350. },
  351. async initUserData() {
  352. const userInfo = await this.$api.getComStorage('userInfo')
  353. this.userId = userInfo.userId ? userInfo.userId : 0
  354. this.getClubObtainCenter()
  355. this.UserClubOrderCount()
  356. }
  357. },
  358. onPageScroll(e) {
  359. //实时获取到滚动的值
  360. if (e.scrollTop > 20) {
  361. this.isCmcustom = true
  362. this.nvabarData.bgColor = '#FFFFFF'
  363. this.nvabarData.textColor = '#333333'
  364. } else {
  365. this.isCmcustom = false
  366. this.nvabarData.bgColor = ''
  367. this.nvabarData.textColor = '#FFFFFF'
  368. }
  369. },
  370. onPullDownRefresh() {
  371. //下拉刷新
  372. if (this.hasLogin) {
  373. this.getClubObtainCenter()
  374. this.UserClubOrderCount()
  375. uni.stopPullDownRefresh()
  376. } else {
  377. uni.stopPullDownRefresh()
  378. }
  379. },
  380. onShow() {
  381. if (this.hasLogin) {
  382. this.initUserData()
  383. } else {
  384. this.getPhone()
  385. this.$store.commit('updateAllNum', 0)
  386. }
  387. }
  388. }
  389. </script>
  390. <style lang="scss">
  391. @import '@/uni.scss';
  392. page {
  393. background-color: #f7f7f7;
  394. }
  395. .user {
  396. width: 100%;
  397. height: 100%;
  398. position: relative;
  399. background: rgba(247, 247, 247, 1);
  400. }
  401. .header {
  402. width: 100%;
  403. position: relative;
  404. background-size: cover;
  405. }
  406. .header-main {
  407. width: 702rpx;
  408. height: 130rpx;
  409. padding: 12rpx 24rpx;
  410. display: flex;
  411. .header-text {
  412. flex: 8;
  413. display: flex;
  414. flex-direction: column;
  415. box-sizing: border-box;
  416. padding: 10rpx 0 0 20rpx;
  417. .user-item {
  418. flex: 1;
  419. height: 64rpx;
  420. line-height: 64rpx;
  421. .user-item-tips {
  422. display: inline-block;
  423. float: left;
  424. height: 40rpx;
  425. background: #FCC120;
  426. border-radius: 20rpx;
  427. line-height: 40rpx;
  428. font-size: $font-size-22;
  429. text-align: center;
  430. color: #FFFFFF;
  431. box-sizing: border-box;
  432. padding: 0 20rpx;
  433. position: relative;
  434. &.none {
  435. background: #F85050;
  436. }
  437. }
  438. .u-none {
  439. font-size: $font-size-32;
  440. line-height: 120rpx;
  441. color: #ffffff;
  442. text-align: left;
  443. }
  444. .u-h1 {
  445. width: 400rpx;
  446. float: left;
  447. font-size: $font-size-30;
  448. color: #ffffff;
  449. text-align: left;
  450. -o-text-overflow: ellipsis;
  451. text-overflow: ellipsis;
  452. display: -webkit-box;
  453. word-break: break-all;
  454. -webkit-box-orient: vertical;
  455. -webkit-line-clamp: 1;
  456. overflow: hidden;
  457. }
  458. .u-p {
  459. font-size: $font-size-24;
  460. line-height: 30rpx;
  461. color: #ffffff;
  462. text-align: left;
  463. }
  464. }
  465. }
  466. .header-icon {
  467. flex: 2;
  468. display: flex;
  469. margin-right: 20rpx;
  470. align-items: center;
  471. justify-content: center;
  472. .header-logo {
  473. width: 120rpx;
  474. height: 120rpx;
  475. box-sizing: border-box;
  476. padding: 21rpx;
  477. background-color: #fff;
  478. border-radius: 100%;
  479. image {
  480. width: 78rpx;
  481. height: 78rpx;
  482. display: block;
  483. }
  484. }
  485. }
  486. }
  487. .header-main-none {
  488. width: 702rpx;
  489. height: 152rpx;
  490. padding: 0 24rpx;
  491. display: flex;
  492. .header-text {
  493. flex: 8;
  494. display: flex;
  495. flex-direction: column;
  496. position: relative;
  497. box-sizing: border-box;
  498. padding: 20rpx 0;
  499. .user-item {
  500. flex: 1;
  501. height: 120rpx;
  502. line-height: 120rpx;
  503. font-size: $font-size-32;
  504. color: #ffffff;
  505. text-align: left;
  506. }
  507. }
  508. .header-icon {
  509. flex: 2;
  510. display: flex;
  511. margin-right: 20rpx;
  512. align-items: center;
  513. justify-content: center;
  514. .header-logo {
  515. width: 120rpx;
  516. height: 120rpx;
  517. box-sizing: border-box;
  518. padding: 21rpx;
  519. background-color: #fff;
  520. border-radius: 100%;
  521. image {
  522. width: 78rpx;
  523. height: 78rpx;
  524. display: block;
  525. }
  526. }
  527. }
  528. }
  529. .header-main-order {
  530. width: 100%;
  531. height: auto;
  532. box-sizing: border-box;
  533. padding: 0 24rpx;
  534. margin-top: 26rpx;
  535. .user-order {
  536. width: 100%;
  537. height: auto;
  538. background-color: $bg-color;
  539. margin-bottom: 24rpx;
  540. border-radius: 20rpx;
  541. box-sizing: border-box;
  542. padding: 0 24rpx;
  543. }
  544. }
  545. .tab-title {
  546. font-size: $font-size-28;
  547. line-height: 80rpx;
  548. color: #333333;
  549. text-align: left;
  550. border-bottom: 1px solid #f8f8f8;
  551. position: relative;
  552. .cell-tit {
  553. font-size: $font-size-28;
  554. color: $text-color;
  555. }
  556. .cell-more {
  557. float: right;
  558. line-height: 80rpx;
  559. font-size: $font-size-24;
  560. color: $text-color;
  561. padding-right: 30rpx;
  562. }
  563. .iconfont {
  564. width: 30rpx;
  565. height: 80rpx;
  566. line-height: 80rpx;
  567. text-align: center;
  568. position: absolute;
  569. right: 0;
  570. top: 0;
  571. display: block;
  572. font-size: $font-size-28;
  573. color: #b2b2b2;
  574. }
  575. }
  576. .order-section {
  577. display: flex;
  578. justify-content: space-around;
  579. align-items: center;
  580. flex-wrap: wrap;
  581. height: 99rpx;
  582. padding: 24rpx 0;
  583. }
  584. .order-item {
  585. flex: 1;
  586. display: flex;
  587. flex-direction: column;
  588. align-items: center;
  589. position: relative;
  590. &:last-child {
  591. margin-right: 0;
  592. }
  593. .order-icon {
  594. width: 52rpx;
  595. height: 52rpx;
  596. position: relative;
  597. image {
  598. width: 52rpx;
  599. height: 52rpx;
  600. }
  601. .icon-num {
  602. position: absolute;
  603. right: -24rpx;
  604. top: -9rpx;
  605. }
  606. .icon-num.goleft {
  607. right: -12rpx;
  608. }
  609. }
  610. .order-t {
  611. line-height: 50rpx;
  612. font-size: $font-size-24;
  613. color: $text-color;
  614. }
  615. }
  616. .header-main-last {
  617. width: 100%;
  618. height: 20rpx;
  619. float: left;
  620. box-sizing: border-box;
  621. }
  622. .header-main-listcell {
  623. width: 100%;
  624. height: auto;
  625. box-sizing: border-box;
  626. padding: 0 24rpx;
  627. margin-bottom: 60rpx;
  628. }
  629. .list-cell-item {
  630. width: 654rpx;
  631. height: auto;
  632. margin-bottom: 24rpx;
  633. padding: 0 24rpx;
  634. background: $bg-color;
  635. border-radius: 20rpx;
  636. }
  637. .list-cell {
  638. width: 100%;
  639. line-height: 100rpx;
  640. position: relative;
  641. background: $bg-color;
  642. border-bottom: 1px solid #ebebeb;
  643. height: 100rpx;
  644. &:last-child {
  645. border-bottom: none;
  646. }
  647. &.cell-hover {
  648. background: #fafafa;
  649. }
  650. .cell-icon {
  651. width: 60rpx;
  652. height: 100rpx;
  653. text-align: center;
  654. box-sizing: border-box;
  655. padding: 32rpx 12rpx;
  656. float: left;
  657. .cell-icon-image {
  658. width: 36rpx;
  659. height: 36rpx;
  660. display: block;
  661. }
  662. }
  663. .cell-more {
  664. height: 100rpx;
  665. line-height: 100rpx;
  666. text-align: right;
  667. position: absolute;
  668. right: 0;
  669. top: 0;
  670. font-size: $font-size-28;
  671. color: #b2b2b2;
  672. &.cont {
  673. width: 250rpx;
  674. }
  675. .txt {
  676. color: #fb4343;
  677. padding-right: 10rpx;
  678. }
  679. }
  680. .cell-tit {
  681. width: 465rpx;
  682. display: block;
  683. float: left;
  684. font-size: $font-size-28;
  685. color: #666666;
  686. margin-right: 10rpx;
  687. text-align: left;
  688. &.cont {
  689. width: 300rpx;
  690. }
  691. .cell-tips {
  692. width: 74rpx;
  693. height: 32rpx;
  694. line-height: 32rpx;
  695. padding: 0 7rpx;
  696. border-radius: 16rpx;
  697. background-color: #ffe6dc;
  698. color: $color-system;
  699. text-align: center;
  700. font-size: $font-size-20;
  701. margin-left: 8rpx;
  702. }
  703. }
  704. .cell-tip {
  705. font-size: $font-size-28;
  706. color: $text-color;
  707. }
  708. }
  709. .list-cell.last {
  710. border-bottom: none;
  711. }
  712. .uni-badge--small {
  713. -webkit-transform: scale(0.8);
  714. -ms-transform: scale(0.8);
  715. transform: scale(0.8);
  716. -webkit-transform-origin: center center;
  717. -ms-transform-origin: center center;
  718. transform-origin: center center;
  719. }
  720. .uni-badge {
  721. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  722. -webkit-box-sizing: border-box;
  723. box-sizing: border-box;
  724. font-size: 12px;
  725. line-height: 1;
  726. display: inline-block;
  727. padding: 3px 6px;
  728. color: #333;
  729. border-radius: 100px;
  730. background-color: #f1f1f1;
  731. }
  732. .uni-badge-error {
  733. color: #fff;
  734. background-color: #dd524d;
  735. }
  736. .copyright {
  737. width: 100%;
  738. position: absolute;
  739. bottom: 40rpx;
  740. display: flex;
  741. flex-direction: column;
  742. align-items: center;
  743. image{
  744. width: 180rpx;
  745. height: 60rpx;
  746. }
  747. .text {
  748. font-size: 20rpx;
  749. color: #cccccc;
  750. }
  751. }
  752. </style>