morePage.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732
  1. <template>
  2. <view>
  3. <view class="morePages">
  4. <!-- 头部栏 -->
  5. <view class="header-box">
  6. <UniStatusBar></UniStatusBar>
  7. <view class="title flex align_center" :style="{height:(navHeight+'px')}">
  8. <u-image src="/static/logo-h.png" width="349" height='40'></u-image>
  9. </view>
  10. </view>
  11. <!-- body -->
  12. <view class="morePages-body">
  13. <view class="body-box bg-blue">
  14. <!-- 名片 -->
  15. <view class="userCard flex align_center justify_between">
  16. <view class="userCard-info flex align_center">
  17. <view>
  18. <u-image shape='circle' v-if="!hasLogin" src="/static/def_personal_avatar.png" width="90" height="90"></u-image>
  19. <u-image shape='circle' v-else :src="avatarUrl||'/static/def_personal_avatar.png'" width="90" height="90"></u-image>
  20. </view>
  21. <view class="user-info" @click="toUser">
  22. <view v-if="!hasLogin" style="font-size: 40rpx;">
  23. 请点击登录
  24. </view>
  25. <view v-else>
  26. <view class="user-name">{{userInfo.userNameCN || userInfo.mobile}}</view>
  27. <view v-if="hasLogin&&userInfo&&userInfo.sysUserFlag == '0'">
  28. <u-tag text="个人用户" mode="dark" type="warning" shape="circle" size="mini" />
  29. </view>
  30. <view v-else>{{userInfo.orgName}}</view>
  31. </view>
  32. </view>
  33. </view>
  34. <view @click="toUser">
  35. <text v-if="hasLogin&&userInfo&&userInfo.sysUserFlag == '0'" class="user-rz">
  36. {{storeApply&&storeApply.auditStatus=='WAIT'?'认证门店审核中':'认证成为门店'}}
  37. </text>
  38. <uni-icons type="arrowright" size="20" color="#999"></uni-icons>
  39. </view>
  40. </view>
  41. </view>
  42. <!-- 余额数据 -->
  43. <view class="list-box">
  44. <view class="list-body" :style="{paddingTop:item.text?0:'10px'}">
  45. <uni-grid :column="4" :highlight="true" :show-border="false" :square="false" @change="e=>openDataList(e)">
  46. <uni-grid-item>
  47. <view class="grid-item-box" :index="0">
  48. <text class="value">15000</text>
  49. <text class="text">充值余额</text>
  50. </view>
  51. </uni-grid-item>
  52. <uni-grid-item>
  53. <view class="grid-item-box" :index="1">
  54. <text class="value">1000</text>
  55. <text class="text">抵扣余额</text>
  56. </view>
  57. </uni-grid-item>
  58. <uni-grid-item>
  59. <view class="grid-item-box" :index="2" v-if="$hasPermissions('M_couponList_mini')">
  60. <text class="value">{{hasShelf?couponCount:0}}</text>
  61. <text class="text">优惠券</text>
  62. </view>
  63. </uni-grid-item>
  64. <uni-grid-item>
  65. <view class="grid-item-box" :index="3" v-if="hasLogin&&hasRedPacket&&hasShelf">
  66. <text class="value">{{redPackCount}}</text>
  67. <text class="text">红包</text>
  68. </view>
  69. </uni-grid-item>
  70. </uni-grid>
  71. </view>
  72. </view>
  73. <!-- 网格图标 -->
  74. <view class="list-box" v-for="item in itemList" :key="item.id">
  75. <view class="list-title" v-if="item.text">
  76. <text>{{item.text}}</text>
  77. </view>
  78. <view class="list-body" :style="{paddingTop:item.text?0:'10px'}">
  79. <uni-grid :column="item.column" :highlight="true" :show-border="false" :square="false" @change="e=>openPage(e,item.child)">
  80. <uni-grid-item v-for="(sub, idx) in item.child" :index="idx" :key="idx">
  81. <view class="grid-item-box">
  82. <u-icon class="icons" :color="sub.color" :size="item.size" :name="sub.icon" custom-prefix="custom-icon"></u-icon>
  83. <text class="text">{{sub.text}}</text>
  84. </view>
  85. </uni-grid-item>
  86. </uni-grid>
  87. </view>
  88. </view>
  89. <view class="list-box" v-if="hasLogin">
  90. <view class="list-title flex justify_center phone" @click="quitOut">
  91. <text>退出登录</text>
  92. </view>
  93. </view>
  94. </view>
  95. <!-- 去认证弹框 -->
  96. <u-popup v-model="showPopup" mode="center" :border-radius="20" closeable>
  97. <view style="background-color: #fff;padding: 1rem;">
  98. <u-image width="533" height="415" src="/static/authimg.jpg"></u-image>
  99. <view style="padding-top:1rem;" class="flex justify_center">
  100. <u-button @click="toAuthStore()" shape="circle" :custom-style="{background:'#066cff',color:'#fff',width:'350rpx'}">开始认证</u-button>
  101. </view>
  102. </view>
  103. </u-popup>
  104. </view>
  105. <!-- tab -->
  106. <u-tabbar :list="vuex_tabBarList" :mid-button-size="80" :before-switch="beforeSwitch" :midButton="vuex_tabBarList.length==5"></u-tabbar>
  107. </view>
  108. </template>
  109. <script>
  110. import {
  111. mapState,
  112. mapMutations
  113. } from 'vuex'
  114. import UniStatusBar from '@/components/uni-status-bar/uni-status-bar.vue'
  115. import { queryQplsConfig,getProductfindByScanCode } from '@/api/shelf.js'
  116. import { findUserReward } from '@/api/rewardRule.js'
  117. import { ticketQueryCount } from '@/api/user.js'
  118. import { clickTab, toLogin } from "@/utils/index.js"
  119. export default {
  120. components: {
  121. UniStatusBar // 状态栏组件
  122. },
  123. data() {
  124. return {
  125. dealerPhone: null, // 经销商电话
  126. showPopup: false,
  127. showPriceSet: false,
  128. shelfSn: null,
  129. avatarUrl:'', // 用户图像
  130. navHeight: 44,
  131. couponCount: 0,
  132. redPackCount: 0,
  133. dataList:[]
  134. }
  135. },
  136. computed: {
  137. ...mapState(['hasLogin','vuex_vinScanNums','vuex_scanMaxNums','vuex_tabBarList']),
  138. hasShelf(){
  139. return !!this.$store.state.vuex_storeShelf
  140. },
  141. userInfo(){
  142. return this.$store.state.vuex_userInfo
  143. },
  144. storeApply(){
  145. return this.$store.state.vuex_storeAuthInfo
  146. },
  147. hasRedPacket(){
  148. const rule = this.$store.state.vuex_rewardRule
  149. return rule&&rule.ruleStatus == 'release'
  150. },
  151. hasShopSeting(){
  152. return this.$store.state.vuex_hasShopiing
  153. },
  154. itemList(){
  155. const list = [
  156. {
  157. text: '订单管理',
  158. icon: 'order',
  159. auth: true,
  160. column: 4,
  161. size: 60,
  162. child:[
  163. {
  164. text: '货架订单',
  165. icon: 'huojiaguanli',
  166. auth: this.$hasPermissions('M_shelfOrder_mini'),
  167. path: '/pagesA/digitalShelf/orderList',
  168. color: '#056cd9',
  169. isShelf: true
  170. },
  171. {
  172. text: '急送订单',
  173. icon: 'yijianshansong',
  174. auth: this.$hasPermissions('M_tempShelfOrder_mini'),
  175. path: '/pagesA/digitalShelf/tempOrderList/tempOrderList',
  176. color: '#dd6859',
  177. isShelf: true
  178. },
  179. {
  180. text: '采购订单',
  181. icon: 'purchaseorder',
  182. auth: this.$hasPermissions('M_procureOrder_mini'),
  183. path: '/pagesB/procureOrder/orderList',
  184. color: '#ffaa00'
  185. }
  186. ],
  187. },
  188. {
  189. text: '货架管理',
  190. icon: 'list-dot',
  191. auth: true,
  192. column: 4,
  193. size: 60,
  194. child:[
  195. {
  196. text: '库存查询',
  197. icon: 'stockquery',
  198. auth: this.$hasPermissions('M_stockQueryList_mini'),
  199. path: '/pagesB/stockQuery/stockQuery',
  200. color: '#ff87a3',
  201. isShelf: true
  202. },
  203. {
  204. text: '补货记录',
  205. icon: 'replenishment',
  206. auth: this.$hasPermissions('M_stockPut_mini'),
  207. path: '/pagesA/digitalShelf/stockPut',
  208. color: '#55aaff',
  209. isShelf: true
  210. },
  211. {
  212. text: '结算记录',
  213. icon: 'settlement',
  214. auth: this.$hasPermissions('M_settlementRecord_mini'),
  215. path: '/pagesA/digitalShelf/settlementRecord/settlementRecord',
  216. color: '#55aa7f',
  217. isShelf: true
  218. },
  219. {
  220. text: '付款结算',
  221. icon: 'payrecord',
  222. auth: this.$hasPermissions('M_settlementManage_mini'),
  223. path: '/pagesA/digitalShelf/settlementManage/settlementManage',
  224. color: '#ff9777',
  225. isShelf: true
  226. },
  227. {
  228. text: '编码取货',
  229. icon: 'ziyuanxhdpi',
  230. auth: this.userInfo && this.userInfo.sysUserFlag == '1',
  231. path: '#quhuo1',
  232. color: '#2196f3',
  233. isShelf: true
  234. },
  235. {
  236. text: '扫码取货',
  237. icon: 'saoma1',
  238. auth: this.userInfo && this.userInfo.sysUserFlag == '1',
  239. path: '#quhuo0',
  240. color: '#ffaa00',
  241. isShelf: true
  242. },
  243. {
  244. text: 'VIN查询历史',
  245. icon: 'lishijilu',
  246. auth: this.hasLogin,
  247. path: '/pagesA/vinRecord/vinRecord',
  248. color: '#799ff9',
  249. isShelf: true
  250. },
  251. {
  252. text: '联系汽配商',
  253. icon: 'lianxidianhua',
  254. auth: this.hasLogin&&this.dealerPhone,
  255. path: '#call',
  256. color: '#00aaff',
  257. isShelf: true
  258. },
  259. ],
  260. },
  261. {
  262. text: '轮胎质保单',
  263. icon: 'file-text',
  264. auth: true,
  265. column: 4,
  266. size: 60,
  267. child:[
  268. {
  269. text: '创建质保单',
  270. icon: 'zhibaodan',
  271. auth: this.$hasPermissions('M_creatWarranty_mini'),
  272. path: '/pagesA/qualityPolicy/creatOrder',
  273. color: '#056cd9'
  274. },
  275. {
  276. text: '质保单查询',
  277. icon: 'ordersearch',
  278. auth: this.$hasPermissions('M_searchWarranty_mini'),
  279. path: '/pagesA/qualityPolicy/searchOrder',
  280. color: '#ffaa7f'
  281. },
  282. ],
  283. },
  284. {
  285. text: '基础设置',
  286. icon: 'setting',
  287. auth: true,
  288. column: 4,
  289. size: 60,
  290. child:[
  291. {
  292. text: '员工管理',
  293. icon: 'employee',
  294. auth: this.$hasPermissions('M_employee_mini'),
  295. path: '/pages/storeManage/personnel',
  296. color: '#ff9d7c'
  297. },
  298. {
  299. text: '岗位权限',
  300. icon: 'job',
  301. auth: this.$hasPermissions('M_roleSetting_mini'),
  302. path: '/pages/storeManage/roleSetting/roleSetting',
  303. color: '#aaaaff'
  304. },
  305. {
  306. text: '价格显示授权',
  307. icon: 'permission',
  308. auth: this.$hasPermissions('M_priceShow_mini')&&this.showPriceSet,
  309. path: '/pages/storeManage/priceSetting/priceSetting',
  310. color: '#55aaff',
  311. isShelf: true
  312. },
  313. {
  314. text: '商城显示授权',
  315. icon: 'shangcheng',
  316. auth: this.$store.state.vuex_showShopAuth&&this.userInfo&&this.userInfo.superAdmin == 1,
  317. path: '/pagesB/shopShow/shopShow',
  318. color: '#4caf50',
  319. isShelf: true
  320. },
  321. {
  322. text: '余额支付授权',
  323. icon: 'payrecord',
  324. auth: this.$store.state.vuex_showShopAuth&&this.userInfo&&this.userInfo.superAdmin == 1,
  325. path: '/pagesB/balPaySetting/balPaySetting',
  326. color: '#009688',
  327. isShelf: true
  328. },
  329. ],
  330. }
  331. ]
  332. // 计算父节点,权限
  333. list.forEach(item => {
  334. item.id = this.$u.guid()
  335. item.child = item.child.filter(c => c.auth)
  336. item.auth = item.child.length > 0
  337. })
  338. return list.filter(item => item.auth)
  339. }
  340. },
  341. onShow() {
  342. // 用户头像
  343. this.avatarUrl = uni.getStorageSync('userPhoto');
  344. // 获取货架信息
  345. const shelfInfo = this.$store.state.vuex_storeShelf
  346. this.shelfSn = shelfInfo ? shelfInfo.shelfSn : ''
  347. this.dealerPhone = shelfInfo&&shelfInfo.contactMobile ? shelfInfo.contactMobile : ''
  348. if(this.shelfSn){
  349. this.getPriceCofig()
  350. }
  351. // 获取优惠券总数
  352. if(this.hasLogin&&this.$hasPermissions('M_couponList_mini')){
  353. this.getCouponCount()
  354. }
  355. // 红包总金额
  356. if(this.hasRedPacket&&this.hasShelf){
  357. this.getUserReward()
  358. }
  359. // 隐藏促销模块
  360. if(!this.hasLogin){
  361. this.hidePromoTab()
  362. }
  363. },
  364. // 页面卸载
  365. onUnload() {
  366. uni.$off('refashProm')
  367. },
  368. methods: {
  369. // 获取优惠券数量
  370. getCouponCount(){
  371. if(this.userInfo.sysUserFlag == '1'){
  372. ticketQueryCount().then(res => {
  373. this.couponCount = res.data ? res.data.ticketValue : 0
  374. })
  375. }
  376. },
  377. // 红包总金额
  378. getUserReward(){
  379. findUserReward().then(res => {
  380. this.redPackCount = res.data ? res.data.rewardAmount : 0
  381. })
  382. },
  383. // 查看用户信息
  384. toUser(){
  385. if(this.hasLogin){
  386. // 用户详细信息 或 门店认证
  387. uni.navigateTo({
  388. url: this.userInfo.sysUserFlag == '1' ? '/pages/personData/personData' : '/pages/storeManage/storeAuth'
  389. })
  390. }else{
  391. toLogin()
  392. }
  393. },
  394. // 隐藏促销模块
  395. hidePromoTab(){
  396. // 删除促销模块
  397. const promoIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '促销')
  398. if(promoIndex > -1){
  399. this.$store.state.vuex_tabBarList.splice(promoIndex,1)
  400. }
  401. // 扫描按钮不局中
  402. const scanTab = this.$store.state.vuex_tabBarList.find(item => item.text == '扫描VIN')
  403. if(scanTab){
  404. scanTab.iconPath = "/static/tab/tab_scan_normal.png"
  405. scanTab.midButton = false
  406. }
  407. },
  408. // tab单击
  409. beforeSwitch(index){
  410. const row = this.$store.state.vuex_tabBarList[index] // 当前tab
  411. const isNoAuth = this.userInfo ? this.userInfo.sysUserFlag == '0' : false // 是否认证门店
  412. return clickTab(row,this.hasLogin,isNoAuth,this.vuex_vinScanNums < this.vuex_scanMaxNums)
  413. },
  414. // 网格打开页面
  415. openPage(e,child){
  416. const item = child[e.detail.index]
  417. this.toPage(item.path,item.isShelf)
  418. },
  419. // 点击统计数据
  420. openDataList(e){
  421. const path = [
  422. '/pagesB/accountBalance/accountBalance',
  423. '/pagesB/accountBalance/accountBalance',
  424. '/pagesB/coupon',
  425. '/pagesB/redPacket'
  426. ]
  427. this.toPage(path[e.detail.index],true)
  428. },
  429. // 获取价格配置
  430. getPriceCofig(){
  431. queryQplsConfig({shelfSn: this.shelfSn}).then(res => {
  432. this.$store.state.vuex_configPrice = res.data || null
  433. const ret = [false,false]
  434. ret[0]= res.data.shelf_cost_show == '1' || res.data.non_shelf_cost_show == '1'
  435. ret[1]= res.data.shelf_price_show == '1' || res.data.non_shelf_price_show == '1'
  436. this.showPriceSet = ret.filter(item => !!item).length > 0
  437. })
  438. },
  439. // 取货
  440. openTakeGood(index){
  441. // 已有数字货架
  442. if(this.hasShelf){
  443. this.clickAction(index)
  444. }else{
  445. uni.showToast({
  446. icon:'none',
  447. title: '门店没有关联数字货架,无法使用此功能!'
  448. })
  449. }
  450. },
  451. // 选择取货方式
  452. clickAction(index){
  453. const shelfSn = this.hasShelf.shelfSn
  454. const _this = this
  455. // 扫描
  456. if(index == 0){
  457. uni.scanCode({
  458. success: function (ret) {
  459. console.log(ret);
  460. const params = {
  461. codeType: ret.scanType == 'QR_CODE' ? 0 : 1
  462. }
  463. // 二维码
  464. if(ret.scanType == 'QR_CODE'){
  465. const result = ret.result.split("&")
  466. params.productSn = result[2] // 产品编码sn
  467. }else{
  468. params.qrCode = ret.result
  469. }
  470. uni.showLoading({
  471. title: "正在查询产品..."
  472. })
  473. // 确认取货
  474. getProductfindByScanCode(params).then(res => {
  475. if(res.status == 200 && res.data){
  476. if(res.data.currentInven){
  477. const billSource = ret.scanType == 'QR_CODE' ? 'qr_code': 'bar_code'
  478. const retData = Object.assign({shelfSn: shelfSn, billSource: billSource},res.data)
  479. _this.$store.state.vuex_tempData = retData
  480. uni.navigateTo({
  481. url: '/pagesA/queryByCode/confirmQh'
  482. })
  483. }else{
  484. uni.showModal({
  485. title: '提示',
  486. content: '产品库存为0,无法取货!',
  487. confirmText: '好的',
  488. showCancel: false
  489. })
  490. }
  491. }else{
  492. uni.showModal({
  493. title: '提示',
  494. content: '产品不属于此货架,请重新扫描!',
  495. confirmText: '好的',
  496. showCancel: false
  497. })
  498. }
  499. uni.hideLoading()
  500. })
  501. }
  502. });
  503. }else{
  504. // 按编码搜索
  505. uni.navigateTo({
  506. url: '/pagesA/queryByCode/queryByCode'
  507. })
  508. }
  509. },
  510. // 跳转打开页面
  511. toPage(path,isShelf){
  512. const _this = this
  513. if(this.hasLogin){
  514. // 游客未认证
  515. if(this.userInfo.sysUserFlag == '0'){
  516. if(this.storeApply&&this.storeApply.auditStatus=='WAIT'){
  517. uni.showModal({
  518. title: '提示',
  519. content: '门店认证资料审核中,请耐心等待!',
  520. confirmText: '知道了',
  521. showCancel: false
  522. })
  523. }
  524. // 如果审核已通过
  525. else if(this.storeApply&&this.storeApply.auditStatus=='PASS'){
  526. uni.showModal({
  527. title: '提示',
  528. content: '门店认证审核已通过,请重新登录!',
  529. confirmText: '去登录',
  530. showCancel: false,
  531. success() {
  532. _this.$store.dispatch('userLogout');
  533. toLogin()
  534. }
  535. })
  536. }else{
  537. this.showPopup = true
  538. }
  539. }else{
  540. // 已有数字货架
  541. if(this.hasShelf || !isShelf){
  542. if(path.indexOf("/pages")>=0){
  543. uni.navigateTo({
  544. url: path
  545. })
  546. }else{
  547. if(path == '#quhuo1'){
  548. this.openTakeGood(1)
  549. }
  550. if(path == '#quhuo0'){
  551. this.openTakeGood(0)
  552. }
  553. if(path == '#call'){
  554. this.call()
  555. }
  556. }
  557. }else{
  558. uni.showToast({
  559. icon:'none',
  560. title: '门店没有关联数字货架,无法使用此功能!'
  561. })
  562. }
  563. }
  564. }else{
  565. toLogin()
  566. }
  567. },
  568. // 去认证
  569. toAuthStore(){
  570. this.showPopup = false
  571. uni.navigateTo({
  572. url: '/pages/storeManage/storeAuth'
  573. })
  574. },
  575. // 打电话
  576. call(){
  577. this.callPhone(this.dealerPhone)
  578. },
  579. // 退出登录
  580. quitOut(){
  581. let _this = this
  582. uni.showModal({
  583. title: '提示',
  584. content: '确定退出登录吗?',
  585. success: (ret) => {
  586. if(ret.confirm){
  587. _this.$store.dispatch('userLogout');
  588. toLogin()
  589. }
  590. }
  591. })
  592. }
  593. }
  594. }
  595. </script>
  596. <style lang="less">
  597. .morePages{
  598. width: 100%;
  599. background-image: linear-gradient(#86defa 0%,#cdeff9 20%,#f8f8f8 30%);
  600. .header-box{
  601. z-index: 5;
  602. padding: 0em 1em;
  603. background: #03A9F4;
  604. .title{
  605. padding: 0;
  606. }
  607. .version{
  608. color: #FFEB3B;
  609. font-size: 0.8em;
  610. margin-left: 1em;
  611. }
  612. }
  613. .morePages-body{
  614. padding: 0 30rpx;
  615. overflow: hidden;
  616. .body-box{
  617. margin-bottom: 10px;
  618. z-index: 4;
  619. }
  620. .bg-blue{
  621. position: relative;
  622. > view{
  623. z-index: 100;
  624. position: relative;
  625. }
  626. &::after{
  627. /* 这个伪类的作用就是一个圆弧的背景色 */
  628. width: 130%;
  629. height: 100%;
  630. position: absolute;
  631. /*设置水平居中*/
  632. left: -15%;
  633. /* 之所以left:20%,是因为width:140%,若width:160%,那么left:30%才能水平居中 */
  634. top: -25%;
  635. /*层叠顺序,最底层显示*/
  636. content: '';
  637. border-radius: 0 0 50% 50%;
  638. /*分别对应 左上 右上 右下 左下 可以修改成其它颜色*/
  639. background: linear-gradient(to bottom, #03A9F4, #02a6ec);
  640. }
  641. .userCard{
  642. position:relative;
  643. left:0;
  644. bottom:0;
  645. padding: 0.5rem;
  646. background: #fff;
  647. border-radius: 25rpx;
  648. box-shadow: 2rpx 2rpx 5rpx #bcdede;
  649. .userCard-info{
  650. flex-grow:1;
  651. > view{
  652. &:last-child{
  653. margin-left: 0.5em;
  654. line-height: 1.5em;
  655. .user-name{
  656. font-size: 1rem;
  657. }
  658. >view{
  659. padding: 0.2em;
  660. }
  661. }
  662. }
  663. .user-info{
  664. flex-grow:1;
  665. }
  666. }
  667. .user-rz{
  668. font-size: 0.8rem;
  669. color:#58aff5;
  670. }
  671. }
  672. }
  673. .list-box{
  674. background: #ffffff;
  675. margin-bottom: 20rpx;
  676. border-radius: 25rpx;
  677. overflow: hidden;
  678. box-shadow: 2rpx 2rpx 5rpx #eee;
  679. .list-title{
  680. padding: 25rpx 20rpx;
  681. color: #666;
  682. > text{
  683. font-size: 28rpx;
  684. }
  685. }
  686. &:first-child{
  687. box-shadow: 2rpx 2rpx 5rpx #cdeff9;
  688. }
  689. .list-body{
  690. padding: 0 20rpx;
  691. }
  692. .grid-item-box{
  693. display: flex;
  694. flex-direction: column;
  695. align-items:center;
  696. justify-content: center;
  697. margin-bottom: 15px;
  698. .value{
  699. text-align:center;
  700. color: #666;
  701. margin-top: 15px;
  702. font-size: 16px;
  703. }
  704. .text{
  705. text-align:center;
  706. color: #666;
  707. margin-top: 5px;
  708. font-size: 12px;
  709. }
  710. .icons{
  711. text-align:center;
  712. display: flex;
  713. align-items: center;
  714. flex-direction: column;
  715. justify-content: center;
  716. }
  717. }
  718. }
  719. .phone{
  720. color: #00aaff;
  721. &:active{
  722. opacity: 0.8;
  723. transform:scale(0.9);
  724. }
  725. }
  726. }
  727. }
  728. </style>