morePage.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  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. if(this.userInfo.sysUserFlag == '0'){
  388. uni.navigateTo({
  389. url: '/pages/storeManage/storeAuth'
  390. })
  391. return true
  392. }
  393. uni.navigateTo({
  394. url:'/pagesB/cart/index',
  395. target: 'page'
  396. })
  397. }
  398. if(row.text == '扫描VIN'){
  399. this.openCamera()
  400. }else{
  401. return true
  402. }
  403. },
  404. // 网格打开页面
  405. openPage(e,child){
  406. const item = child[e.detail.index]
  407. this.toPage(item.path,item.isShelf)
  408. },
  409. // 获取价格配置
  410. getPriceCofig(){
  411. queryQplsConfig({shelfSn: this.shelfSn}).then(res => {
  412. this.$store.state.vuex_configPrice = res.data || null
  413. const ret = [false,false]
  414. ret[0]= res.data.shelf_cost_show == '1' || res.data.non_shelf_cost_show == '1'
  415. ret[1]= res.data.shelf_price_show == '1' || res.data.non_shelf_price_show == '1'
  416. this.showPriceSet = ret.filter(item => !!item).length > 0
  417. })
  418. },
  419. // 去扫描
  420. openCamera(){
  421. if(this.hasLogin){
  422. if(this.userInfo.sysUserFlag == '0'){
  423. if(this.vuex_vinScanNums < this.vuex_scanMaxNums){
  424. uni.navigateTo({
  425. url: "/pages/scan-frame/scan-frame"
  426. })
  427. }else{
  428. uni.showModal({
  429. title: '提示',
  430. content: '个人用户扫描VIN仅限10次,您的次数已用完!',
  431. confirmText: '好的',
  432. showCancel: false,
  433. success(res) {}
  434. })
  435. }
  436. }else{
  437. uni.navigateTo({
  438. url: "/pages/scan-frame/scan-frame"
  439. })
  440. }
  441. }else{
  442. uni.navigateTo({
  443. url: '/pages/login/login'
  444. })
  445. }
  446. },
  447. // 取货
  448. openTakeGood(index){
  449. // 已有数字货架
  450. if(this.hasShelf){
  451. this.clickAction(index)
  452. }else{
  453. uni.showToast({
  454. icon:'none',
  455. title: '门店没有关联数字货架,无法使用此功能!'
  456. })
  457. }
  458. },
  459. // 选择取货方式
  460. clickAction(index){
  461. const shelfSn = this.hasShelf.shelfSn
  462. const _this = this
  463. // 扫描
  464. if(index == 0){
  465. uni.scanCode({
  466. success: function (ret) {
  467. console.log(ret);
  468. const params = {
  469. codeType: ret.scanType == 'QR_CODE' ? 0 : 1
  470. }
  471. // 二维码
  472. if(ret.scanType == 'QR_CODE'){
  473. const result = ret.result.split("&")
  474. params.productSn = result[2] // 产品编码sn
  475. }else{
  476. params.qrCode = ret.result
  477. }
  478. uni.showLoading({
  479. title: "正在查询产品..."
  480. })
  481. // 确认取货
  482. getProductfindByScanCode(params).then(res => {
  483. if(res.status == 200 && res.data){
  484. if(res.data.currentInven){
  485. const billSource = ret.scanType == 'QR_CODE' ? 'qr_code': 'bar_code'
  486. const retData = Object.assign({shelfSn: shelfSn, billSource: billSource},res.data)
  487. _this.$store.state.vuex_tempData = retData
  488. uni.navigateTo({
  489. url: '/pagesA/queryByCode/confirmQh'
  490. })
  491. }else{
  492. uni.showModal({
  493. title: '提示',
  494. content: '产品库存为0,无法取货!',
  495. confirmText: '好的',
  496. showCancel: false
  497. })
  498. }
  499. }else{
  500. uni.showModal({
  501. title: '提示',
  502. content: '产品不属于此货架,请重新扫描!',
  503. confirmText: '好的',
  504. showCancel: false
  505. })
  506. }
  507. uni.hideLoading()
  508. })
  509. }
  510. });
  511. }else{
  512. // 按编码搜索
  513. uni.navigateTo({
  514. url: '/pagesA/queryByCode/queryByCode'
  515. })
  516. }
  517. },
  518. // 跳转打开页面
  519. toPage(path,isShelf){
  520. const _this = this
  521. if(this.hasLogin){
  522. // 游客未认证
  523. if(this.userInfo.sysUserFlag == '0'){
  524. if(this.storeApply&&this.storeApply.auditStatus=='WAIT'){
  525. uni.showModal({
  526. title: '提示',
  527. content: '门店认证资料审核中,请耐心等待!',
  528. confirmText: '知道了',
  529. showCancel: false
  530. })
  531. }
  532. // 如果审核已通过
  533. else if(this.storeApply&&this.storeApply.auditStatus=='PASS'){
  534. uni.showModal({
  535. title: '提示',
  536. content: '门店认证审核已通过,请重新登录!',
  537. confirmText: '去登录',
  538. showCancel: false,
  539. success() {
  540. _this.$store.dispatch('userLogout');
  541. uni.redirectTo({
  542. url: '/pages/login/login'
  543. });
  544. }
  545. })
  546. }else{
  547. this.showPopup = true
  548. }
  549. }else{
  550. // 已有数字货架
  551. if(this.hasShelf || !isShelf){
  552. if(path.indexOf("/pages")>=0){
  553. uni.navigateTo({
  554. url: path
  555. })
  556. }else{
  557. if(path == '#quhuo1'){
  558. this.openTakeGood(1)
  559. }
  560. if(path == '#quhuo0'){
  561. this.openTakeGood(0)
  562. }
  563. if(path == '#call'){
  564. this.call()
  565. }
  566. }
  567. }else{
  568. uni.showToast({
  569. icon:'none',
  570. title: '门店没有关联数字货架,无法使用此功能!'
  571. })
  572. }
  573. }
  574. }else{
  575. uni.navigateTo({
  576. url: '/pages/login/login'
  577. })
  578. }
  579. },
  580. // 去认证
  581. toAuthStore(){
  582. this.showPopup = false
  583. uni.navigateTo({
  584. url: '/pages/storeManage/storeAuth'
  585. })
  586. },
  587. // 打电话
  588. call(){
  589. this.callPhone(this.dealerPhone)
  590. },
  591. // 退出登录
  592. quitOut(){
  593. let _this = this
  594. uni.showModal({
  595. title: '提示',
  596. content: '确定退出登录吗?',
  597. success: (ret) => {
  598. if(ret.confirm){
  599. _this.$store.dispatch('userLogout');
  600. uni.navigateTo({
  601. url: '/pages/login/login'
  602. });
  603. }
  604. }
  605. })
  606. }
  607. }
  608. }
  609. </script>
  610. <style lang="less">
  611. .morePages{
  612. width: 100%;
  613. background-image: linear-gradient(#86defa 0%,#cdeff9 20%,#f8f8f8 30%);
  614. .header-box{
  615. z-index: 5;
  616. padding: 0em 1em;
  617. background: #03A9F4;
  618. .title{
  619. padding: 0;
  620. }
  621. .version{
  622. color: #FFEB3B;
  623. font-size: 0.8em;
  624. margin-left: 1em;
  625. }
  626. }
  627. .morePages-body{
  628. padding: 0 30rpx;
  629. overflow: hidden;
  630. .body-box{
  631. margin-bottom: 10px;
  632. z-index: 4;
  633. }
  634. .bg-blue{
  635. position: relative;
  636. > view{
  637. z-index: 100;
  638. position: relative;
  639. }
  640. &::after{
  641. /* 这个伪类的作用就是一个圆弧的背景色 */
  642. width: 130%;
  643. height: 100%;
  644. position: absolute;
  645. /*设置水平居中*/
  646. left: -15%;
  647. /* 之所以left:20%,是因为width:140%,若width:160%,那么left:30%才能水平居中 */
  648. top: -25%;
  649. /*层叠顺序,最底层显示*/
  650. content: '';
  651. border-radius: 0 0 50% 50%;
  652. /*分别对应 左上 右上 右下 左下 可以修改成其它颜色*/
  653. background: linear-gradient(to bottom, #03A9F4, #02a6ec);
  654. }
  655. .userCard{
  656. position:relative;
  657. left:0;
  658. bottom:0;
  659. padding: 0.5rem;
  660. background: #fff;
  661. border-radius: 25rpx;
  662. box-shadow: 2rpx 2rpx 5rpx #bcdede;
  663. .userCard-info{
  664. flex-grow:1;
  665. > view{
  666. &:last-child{
  667. margin-left: 0.5em;
  668. line-height: 1.5em;
  669. .user-name{
  670. font-size: 1rem;
  671. }
  672. >view{
  673. padding: 0.2em;
  674. }
  675. }
  676. }
  677. .user-info{
  678. flex-grow:1;
  679. }
  680. }
  681. .user-rz{
  682. font-size: 0.8rem;
  683. color:#58aff5;
  684. }
  685. }
  686. }
  687. .list-box{
  688. background: #ffffff;
  689. margin-bottom: 20rpx;
  690. border-radius: 25rpx;
  691. overflow: hidden;
  692. box-shadow: 2rpx 2rpx 5rpx #eee;
  693. .list-title{
  694. padding: 25rpx 20rpx;
  695. color: #666;
  696. > text{
  697. font-size: 28rpx;
  698. }
  699. }
  700. &:first-child{
  701. box-shadow: 2rpx 2rpx 5rpx #cdeff9;
  702. }
  703. .list-body{
  704. padding: 0 20rpx;
  705. }
  706. .grid-item-box{
  707. display: flex;
  708. flex-direction: column;
  709. align-items:center;
  710. justify-content: center;
  711. margin-bottom: 15px;
  712. .text{
  713. text-align:center;
  714. color: #666;
  715. margin-top: 3px;
  716. font-size: 12px;
  717. }
  718. .icons{
  719. text-align:center;
  720. display: flex;
  721. align-items: center;
  722. flex-direction: column;
  723. justify-content: center;
  724. }
  725. }
  726. }
  727. .phone{
  728. color: #00aaff;
  729. &:active{
  730. opacity: 0.8;
  731. transform:scale(0.9);
  732. }
  733. }
  734. }
  735. }
  736. </style>