morePage.vue 19 KB

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