user.vue 18 KB

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