index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684
  1. <template>
  2. <view>
  3. <view class="content">
  4. <view class="header-box">
  5. <UniStatusBar></UniStatusBar>
  6. <view class="title flex align_center" :style="{height:(navHeight+'px')}">
  7. <u-image src="/static/logo-h.png" width="349" height='40'></u-image>
  8. </view>
  9. </view>
  10. <view class="cbody">
  11. <view class="body-box bg-blue">
  12. <!-- 滚动区域 -->
  13. <view class="scroll-list">
  14. <scrollBox v-if="list.length" :list="list"></scrollBox>
  15. </view>
  16. <!-- 保证金 -->
  17. <view class="notices flex align_center" v-if="bondRecord" @click="toPayBondAmount">
  18. <view><u-icon name="volume" color="#f2a557" :size="28" :margin-right='15'></u-icon> 您有一笔保证金待支付 ¥{{bondRecord.bondAmount}}</view>
  19. <!-- <text class="text">立即支付>></text> -->
  20. </view>
  21. <!-- 待取货提醒 -->
  22. <view class="notices flex align_center" v-if="!bondRecord&&orderTodo" @click="toOrder">
  23. <view><u-icon name="volume" color="#f2a557" :size="28" :margin-right='15'></u-icon> 您有待取货的货架订单哦!</view> <text class="text">立即处理>></text>
  24. </view>
  25. <!-- 门店审核不通过 -->
  26. <view class="notices flex justify_between" v-if="storeApply&&storeApply.auditStatus=='REFUSE'&&storeApply.readFlag=='0'">
  27. <view><u-icon name="volume" color="#f2a557" :size="28" :margin-right='15'></u-icon> 门店认证资料审核不通过,请重新提交审核!</view> <text class="text" @click="toKnow">知道了</text>
  28. </view>
  29. <!-- 名片 -->
  30. <view class="userCard flex align_center justify_between">
  31. <view class="userCard-info flex align_center">
  32. <view>
  33. <u-image shape='circle' v-if="!hasLogin" src="/static/def_personal_avatar.png" width="90" height="90"></u-image>
  34. <u-image shape='circle' v-else :src="avatarUrl||'/static/def_personal_avatar.png'" width="90" height="90"></u-image>
  35. </view>
  36. <view class="user-info" @click="toUser">
  37. <view v-if="!hasLogin" style="font-size: 40rpx;">
  38. 请点击登录
  39. </view>
  40. <view v-else>
  41. <view class="user-name">{{userInfo.userNameCN || userInfo.mobile}}</view>
  42. <view v-if="hasLogin&&userInfo&&userInfo.sysUserFlag == '0'">
  43. <u-tag text="个人用户" mode="dark" type="warning" shape="circle" size="mini" />
  44. </view>
  45. <view v-else>{{userInfo.orgName}}</view>
  46. </view>
  47. </view>
  48. </view>
  49. <view @click="toUser">
  50. <text v-if="hasLogin&&userInfo&&userInfo.sysUserFlag == '0'" class="user-rz">
  51. {{storeApply&&storeApply.auditStatus=='WAIT'?'认证门店审核中':'认证成为门店'}}
  52. </text>
  53. <u-icon name="arrow-right"></u-icon>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="body-box">
  58. <!-- 扫描按钮 -->
  59. <!-- <view class="scanButton flex align_center" @click="openCamera">
  60. <u-icon name="scan" size="60"></u-icon><text class="ml10">扫描VIN</text>
  61. </view> -->
  62. <!-- 直接取货 -->
  63. <!-- <view class="scanButton flex align_center" v-if="userInfo.sysUserFlag == '1'" @click="openTakeGood">
  64. <text>没有VIN,直接取货</text>
  65. </view> -->
  66. <view class="action-button flex" v-if="userInfo.sysUserFlag == '1'">
  67. <view></view>
  68. <view class="f1" @click="openTakeGood(1)">
  69. <view class="icons"><u-icon name="shujuchaxun" custom-prefix="custom-icon"></u-icon></view>
  70. <view class="tits">产品编码取货</view>
  71. </view>
  72. <view class="f2" @click="openTakeGood(0)">
  73. <view class="icons"><u-icon name="saomasoudan" custom-prefix="custom-icon"></u-icon></view>
  74. <view class="tits">二维码/条形码取货</view>
  75. </view>
  76. <view></view>
  77. </view>
  78. <view style="margin-top: 20upx;">
  79. <u-swiper mode="dot" bg-color="" img-mode="widthFix" @click="clickBanner" :interval="3000" :height="374" :list="imgList"></u-swiper>
  80. </view>
  81. <u-action-sheet :list="actionList" @click="clickAction" v-model="showAction"></u-action-sheet>
  82. </view>
  83. <!-- 扫描记录 -->
  84. <view class="list-box">
  85. <!-- 扫描记录 -->
  86. <u-cell-group :border="false">
  87. <u-cell-item title="VIN查询历史" @click="toAllRecord" :title-style="{fontSize:'1em'}" value="全部">
  88. <u-icon slot="icon" size="38" color="#066cff" style="margin-right: 0.3em;" name="order"></u-icon>
  89. </u-cell-item>
  90. </u-cell-group>
  91. <u-cell-group :border="false" v-if="hasLogin">
  92. <u-cell-item v-for="item in vinList"
  93. @click="toChoosePart(item)"
  94. :key="item.id"
  95. :title="item.vinCode"
  96. :title-style="{fontSize:'1em'}"
  97. :label="userInfo&&userInfo.sysUserFlag == '0' ? item.createDate : (item.brandName +' '+item.modelName)">
  98. <text slot="icon"></text>
  99. </u-cell-item>
  100. <view style="padding: 20upx;">
  101. <u-empty :src="`/static/nodata.png`" icon-size="180" :text="noDataText" img-width="120" v-if="vinList.length==0 && status!='loading'" mode="list"></u-empty>
  102. <u-loadmore v-if="status=='loading'" :status="status" />
  103. </view>
  104. </u-cell-group>
  105. <view class="des" v-if="vinList.length&&hasLogin">仅展示最近5条记录,点击“全部”查看更多</view>
  106. <view class="des" v-if="!hasLogin">请登录后查看历史记录</view>
  107. </view>
  108. </view>
  109. </view>
  110. <u-tabbar :list="vuex_tabBarList" :before-switch="beforeSwitch" :mid-button="true"></u-tabbar>
  111. </view>
  112. </template>
  113. <script>
  114. import {
  115. mapState,
  116. mapMutations,
  117. } from 'vuex'
  118. import scrollBox from '@/components/scrollBox.vue'
  119. import UniStatusBar from '@/components/uni-status-bar/uni-status-bar.vue'
  120. import { shelfBondRecordWaitPayRecord, findStoreShelf, shelfGetTotalWaitQty, getProductfindByScanCode, findPriceShow,findPriceShowType,findPriceShowEmployee } from '@/api/shelf.js'
  121. import { xprhStoreApplyRead } from '@/api/xprh.js'
  122. import { listLookUp, getLookUpDatas } from '@/api/data.js';
  123. import { scanVinLogQueryRoll, getScanVinLogList, getScanGetMaxQty }from '@/api/car.js'
  124. export default {
  125. components: {
  126. scrollBox,
  127. UniStatusBar
  128. },
  129. data() {
  130. return {
  131. status: 'loading',
  132. noDataText: '暂无数据',
  133. bondRecord: null, // 保证金
  134. list:[],
  135. vinList: [],
  136. orderTodo: null,
  137. avatarUrl:'',
  138. navHeight: '44',
  139. scanMaxNums: 10,
  140. showAction: false,
  141. actionList: [
  142. {
  143. text: '扫描条形码/二维码',
  144. fontSize: 32
  145. },
  146. {
  147. text: '按产品编码查询',
  148. fontSize: 32
  149. }
  150. ],
  151. imgList:[{
  152. image: '/static/banner1.png'
  153. },{
  154. image: '/static/banner2.jpg'
  155. }]
  156. }
  157. },
  158. computed: {
  159. ...mapState(['hasLogin','vuex_vinScanNums','vuex_tabBarList']),
  160. hasShelf(){
  161. return this.$store.state.vuex_storeShelf
  162. },
  163. userInfo(){
  164. return this.$store.state.vuex_userInfo
  165. },
  166. storeApply(){
  167. return this.$store.state.vuex_storeAuthInfo || null
  168. }
  169. },
  170. onReady() {
  171. this.getScrollLog()
  172. // 获取导航栏高度
  173. const res = uni.getSystemInfoSync()
  174. const system = res.platform
  175. if (system === 'android') {
  176. this.navHeight = 48
  177. } else if (system === 'ios') {
  178. this.navHeight = 44
  179. }
  180. },
  181. onLoad() {
  182. this.orderTodo = null
  183. this.bondRecord = null
  184. this.vinList = []
  185. // 检测是否登录
  186. this.$store.dispatch('checkLogin',()=>{
  187. // 获取数据字典
  188. this.getListLookUp();
  189. // 获取支付,收款方式
  190. this.getLookUpList('PAY_PROCUCT_TYPE', 'vuex_paymentTypeList');
  191. // 价格类型
  192. this.getLookUpList('PRICE_SHOW_TYPE', 'vuex_priceTypeList');
  193. // 初始化页面
  194. this.pageInit()
  195. })
  196. // 刷新首页数据
  197. uni.$on("refashHome",()=>{
  198. this.pageInit()
  199. })
  200. },
  201. onUnload() {
  202. uni.$off('refashHome')
  203. },
  204. // 下拉刷新
  205. onPullDownRefresh(){
  206. this.pageInit()
  207. setTimeout(function () {
  208. uni.stopPullDownRefresh();
  209. }, 1000);
  210. },
  211. onShareAppMessage() {},
  212. onShow() {
  213. // 用户头像
  214. this.avatarUrl = uni.getStorageSync('userPhoto');
  215. if(this.hasLogin){
  216. // 查询门店认证信息
  217. if(this.userInfo.sysUserFlag == '0'){
  218. this.findLastApply()
  219. }
  220. }
  221. },
  222. methods: {
  223. // 扫描vin
  224. beforeSwitch(index){
  225. if(index==1){
  226. this.openCamera()
  227. }else{
  228. return true
  229. }
  230. },
  231. // 价格显示
  232. async getPriceShow(){
  233. await findPriceShow().then(res => {
  234. this.showPrice = res.data ? res.data.paramValue=='1' : false
  235. this.$store.state.vuex_showPrice[0] = this.showPrice
  236. })
  237. await findPriceShowType().then(res => {
  238. if(res.data&&res.data.paramValue){
  239. this.priceType = res.data.paramValue
  240. this.priceTypeName = this.$store.state.vuex_priceTypeList.find(item => item.code == res.data.paramValue).dispName
  241. this.$store.state.vuex_showPrice[1] = this.priceType
  242. }
  243. })
  244. await findPriceShowEmployee().then(res => {
  245. this.showJhPrice = res.data ? res.data.paramValue=='1' : false
  246. this.$store.state.vuex_showPrice[2] = this.showJhPrice
  247. })
  248. },
  249. pageInit(){
  250. if(this.hasLogin){
  251. // 获取扫描记录
  252. this.getVinLog()
  253. // 非游客
  254. if(this.userInfo.sysUserFlag == '1'){
  255. // 查询是否有数字货架
  256. this.getStoreShelf()
  257. }else{
  258. // 获取扫描次数
  259. this.$store.dispatch("getScanNums")
  260. // 获取最大扫描次数
  261. this.getMaxQty()
  262. // 查询门店认证信息
  263. this.findLastApply()
  264. }
  265. }else{
  266. uni.removeStorageSync('token')
  267. }
  268. },
  269. // 获取数据字典
  270. getListLookUp() {
  271. const _this = this;
  272. listLookUp({ pageNo: 1, pageSize: 1000 }).then(res => {
  273. if (res.status == 200) {
  274. _this.$store.state.vuex_allLookUp = res.data;
  275. }
  276. });
  277. },
  278. // 或某一项字典列表,参数code
  279. getLookUpList(code, vuexKey) {
  280. getLookUpDatas({ type: code }).then(res => {
  281. if (res.status == 200) {
  282. this.$store.state[vuexKey] = res.data || [];
  283. if(code=='PRICE_SHOW_TYPE'){
  284. // 获取显示价格类型
  285. this.getPriceShow()
  286. }
  287. }
  288. });
  289. },
  290. // 获取最大扫描数
  291. getMaxQty(){
  292. getScanGetMaxQty().then(res => {
  293. this.scanMaxNums = res.data || 10
  294. this.$store.state.vuex_scanMaxNums = this.scanMaxNums
  295. })
  296. },
  297. // 获取最新申请门店
  298. findLastApply(){
  299. const mobile = this.userInfo.mobile
  300. this.$store.dispatch('getSotreAuth',mobile)
  301. },
  302. // 知道审核不通过
  303. toKnow(){
  304. uni.showLoading({
  305. title: "正在提交"
  306. })
  307. xprhStoreApplyRead({sn:this.storeApply.applySn}).then(res => {
  308. if(res.status == 200){
  309. this.findLastApply()
  310. }
  311. uni.hideLoading()
  312. })
  313. },
  314. // 待取货数量合计
  315. shelfGetTotalWaitQty(){
  316. shelfGetTotalWaitQty({billState:'WAIT'}).then(res => {
  317. if(res.status == 200){
  318. this.orderTodo = res.data;
  319. }
  320. })
  321. },
  322. // 货架订单列表
  323. toOrder(){
  324. if(this.hasShelf){
  325. uni.navigateTo({
  326. url: "/pages/digitalShelf/orderList"
  327. })
  328. }else{
  329. uni.showToast({
  330. icon:'none',
  331. title: '门店没有关联数字货架,无法使用此功能!'
  332. })
  333. }
  334. },
  335. // 获取上方滚动扫描记录
  336. getScrollLog(){
  337. scanVinLogQueryRoll({pageNo:1,pageSize:1000}).then(res => {
  338. console.log(res)
  339. this.list = res.data.list || []
  340. this.list.map(item => {
  341. item.placeText = item.userName + '刚刚扫描了一个VIN'
  342. })
  343. })
  344. },
  345. // 获取当前门店扫描记录
  346. getVinLog(){
  347. this.vinList = []
  348. this.status = "loading"
  349. // VISITOR:游客,EMPLOYEE:雇员
  350. getScanVinLogList({ pageNo:1, pageSize:5, identifyType: this.userInfo.identifyType }).then(res => {
  351. this.vinList = res.data&&res.data.list || []
  352. this.vinList = this.vinList.filter(item => item.vinCode)
  353. this.status = 'nomore'
  354. })
  355. },
  356. // 查询是否支持数字货架
  357. getStoreShelf(){
  358. findStoreShelf().then(res => {
  359. console.log(res)
  360. this.$store.state.vuex_storeShelf = res.data;
  361. if(res.data){
  362. // 保证金查询
  363. this.getShelfBWPayRecord()
  364. // 获取订单信息
  365. this.shelfGetTotalWaitQty()
  366. }
  367. })
  368. },
  369. // 获取保证金金额
  370. getShelfBWPayRecord(){
  371. const data = this.$store.state.vuex_storeShelf
  372. shelfBondRecordWaitPayRecord({shelfSn: data.shelfSn, storeSn: data.storeSn}).then(res => {
  373. console.log(res,'获取保证金金额')
  374. this.bondRecord = res.data
  375. })
  376. },
  377. // 保证金支付
  378. toPayBondAmount(){},
  379. openTakeGood(index){
  380. // 已有数字货架
  381. if(this.hasShelf){
  382. // this.showAction = true
  383. this.clickAction(index)
  384. }else{
  385. uni.showToast({
  386. icon:'none',
  387. title: '门店没有关联数字货架,无法使用此功能!'
  388. })
  389. }
  390. },
  391. // 单击banner
  392. clickBanner(index){
  393. if(index == 1){
  394. uni.navigateTo({url:"/pages/morePage/redPacket"})
  395. }
  396. },
  397. // 选择取货方式
  398. clickAction(index){
  399. const shelfSn = this.hasShelf.shelfSn
  400. const _this = this
  401. // 扫描
  402. if(index == 0){
  403. uni.scanCode({
  404. success: function (ret) {
  405. console.log(ret);
  406. const params = {
  407. codeType: ret.scanType == 'QR_CODE' ? 0 : 1
  408. }
  409. // 二维码
  410. if(ret.scanType == 'QR_CODE'){
  411. const result = ret.result.split("&")
  412. params.productSn = result[2] // 产品编码sn
  413. }else{
  414. params.qrCode = ret.result
  415. }
  416. uni.showLoading({
  417. title: "正在查询产品..."
  418. })
  419. // 确认取货
  420. getProductfindByScanCode(params).then(res => {
  421. if(res.status == 200 && res.data){
  422. if(res.data.currentInven){
  423. const billSource = ret.scanType == 'QR_CODE' ? 'qr_code': 'bar_code'
  424. const params = Object.assign({shelfSn: shelfSn, billSource: billSource},res.data)
  425. _this.$store.state.vuex_tempData = params
  426. uni.navigateTo({
  427. url: '/pages/queryByCode/confirmQh'
  428. })
  429. }else{
  430. uni.showModal({
  431. title: '提示',
  432. content: '产品库存为0,无法取货!',
  433. confirmText: '好的',
  434. showCancel: false
  435. })
  436. }
  437. }else{
  438. uni.showModal({
  439. title: '提示',
  440. content: '产品不属于此货架,请重新扫描!',
  441. confirmText: '好的',
  442. showCancel: false
  443. })
  444. }
  445. uni.hideLoading()
  446. })
  447. }
  448. });
  449. }else{
  450. // 按编码搜索
  451. uni.navigateTo({
  452. url: '/pages/queryByCode/queryByCode'
  453. })
  454. }
  455. },
  456. // 去扫描
  457. openCamera(){
  458. if(this.hasLogin){
  459. if(this.userInfo.sysUserFlag == '0'){
  460. if(this.vuex_vinScanNums < this.scanMaxNums){
  461. uni.navigateTo({
  462. url: "/pages/scan-frame/scan-frame"
  463. })
  464. }else{
  465. uni.showModal({
  466. title: '提示',
  467. content: '个人用户扫描VIN仅限10次,您的次数已用完!',
  468. confirmText: '好的',
  469. showCancel: false,
  470. success(res) {}
  471. })
  472. }
  473. }else{
  474. uni.navigateTo({
  475. url: "/pages/scan-frame/scan-frame"
  476. })
  477. }
  478. }else{
  479. uni.navigateTo({
  480. url: '/pages/login/login'
  481. })
  482. }
  483. },
  484. // 查看扫描记录
  485. toAllRecord(){
  486. uni.navigateTo({
  487. url: this.hasLogin ? "/pages/vinRecord/vinRecord" : '/pages/login/login'
  488. })
  489. },
  490. toUser(){
  491. if(this.hasLogin){
  492. // 用户详细信息 或 门店认证
  493. uni.navigateTo({
  494. url: this.userInfo.sysUserFlag == '1' ? '/pages/personData/personData' : '/pages/storeManage/storeAuth'
  495. })
  496. }else{
  497. uni.navigateTo({
  498. url: '/pages/login/login'
  499. })
  500. }
  501. },
  502. toChoosePart(item){
  503. item.text = item.modelInfo
  504. uni.navigateTo({
  505. url: "/pages/digitalShelf/choosePart?vinNumber="+item.vinCode+"&carList="+encodeURIComponent(JSON.stringify(item))
  506. })
  507. }
  508. }
  509. }
  510. </script>
  511. <style lang="less">
  512. page{
  513. background-color: #ffffff;
  514. }
  515. .content {
  516. margin: 0;
  517. padding: 0;
  518. height: 100vh;
  519. display: flex;
  520. flex-direction: column;
  521. background-image: linear-gradient(#86defa 0%,#cdeff9 25%,#ffffff 40%);
  522. .header-box{
  523. z-index: 5;
  524. padding: 0em 1em;
  525. background: #066cff;
  526. .title{
  527. padding: 0;
  528. }
  529. }
  530. .cbody{
  531. flex-grow: 1;
  532. overflow-y: auto;
  533. overflow-x: hidden;
  534. }
  535. .body-box{
  536. padding: 0em 1em 0.8em;
  537. z-index: 4;
  538. .notices{
  539. padding: 0.5em 0 0;
  540. font-size: 0.9em;
  541. margin-top: 0.5rem;
  542. view{
  543. color: #ffaf46;
  544. max-width: 80%;
  545. }
  546. .text{
  547. color: #ffffff;
  548. margin-left: 1em;
  549. }
  550. }
  551. .action-button{
  552. padding:40upx 0 0 0;
  553. justify-content: space-between;
  554. > view{
  555. text-align: center;
  556. display: flex;
  557. align-items: center;
  558. flex-direction: column;
  559. }
  560. .f1{
  561. width: 140rpx;
  562. }
  563. .f2{
  564. width: 150rpx;
  565. }
  566. .icons{
  567. font-size: 60rpx;
  568. background: #066cff;
  569. color: #fff;
  570. border-radius: 30rpx;
  571. width: 110rpx;
  572. height: 110rpx;
  573. text-align:center;
  574. display: flex;
  575. align-items: center;
  576. flex-direction: column;
  577. justify-content: center;
  578. }
  579. .tits{
  580. font-size:30rpx;
  581. font-weight: bold;
  582. padding: 10upx 0;
  583. }
  584. }
  585. .scanButton{
  586. margin: 0.8em 0 0.5em;
  587. padding: 0.5em;
  588. background: #066cff;
  589. color: #fff;
  590. font-size: 1.5em;
  591. border-radius: 5em;
  592. justify-content: center;
  593. &:active{
  594. opacity: 0.8;
  595. }
  596. }
  597. .quickButton{
  598. margin: 0.8em 0 0.5em;
  599. padding: 0.5em;
  600. background: #fff;
  601. color: #333;
  602. font-size: 1.5em;
  603. border-radius: 5em;
  604. justify-content: center;
  605. border:0.1rpx solid #eee;
  606. box-shadow: 1rpx 2rpx 5rpx #f8f8f8;
  607. &:active{
  608. opacity: 0.8;
  609. }
  610. }
  611. .ml10{
  612. margin-left: 0.4em;
  613. }
  614. }
  615. .bg-blue{
  616. position: relative;
  617. > view{
  618. z-index: 100;
  619. position: relative;
  620. }
  621. &::after{
  622. /* 这个伪类的作用就是一个圆弧的背景色 */
  623. width: 130%;
  624. height: 100%;
  625. position: absolute;
  626. /*设置水平居中*/
  627. left: -15%;
  628. /* 之所以left:20%,是因为width:140%,若width:160%,那么left:30%才能水平居中 */
  629. top: -20%;
  630. /*层叠顺序,最底层显示*/
  631. content: '';
  632. border-radius: 0 0 50% 50%;
  633. /*分别对应 左上 右上 右下 左下 可以修改成其它颜色*/
  634. background: linear-gradient(to bottom, #066cff, #1d77ff);
  635. }
  636. .userCard{
  637. position:relative;
  638. left:0;
  639. bottom:-1rem;
  640. padding:0.8em;
  641. background: #fff;
  642. border-radius: 0.5em;
  643. box-shadow: 0.3em 0.3em 1em #c4e5ee;
  644. .userCard-info{
  645. flex-grow:1;
  646. > view{
  647. &:last-child{
  648. margin-left: 0.5em;
  649. line-height: 1.5em;
  650. .user-name{
  651. font-size: 1rem;
  652. }
  653. >view{
  654. padding: 0.2em;
  655. }
  656. }
  657. }
  658. .user-info{
  659. flex-grow:1;
  660. }
  661. }
  662. .user-rz{
  663. font-size: 0.8rem;
  664. color:#58aff5;
  665. }
  666. }
  667. }
  668. .list-box{
  669. padding: 0 1em;
  670. overflow: auto;
  671. .des{
  672. text-align: center;
  673. padding: 1em 0;
  674. color: #999;
  675. font-size: 0.8em;
  676. }
  677. }
  678. }
  679. </style>