index.vue 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246
  1. <template>
  2. <view class="content" :class="hasShopiing?'':'bg-1'">
  3. <view class="content-body">
  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. <!-- 版本提示 -->
  10. <text class="version" v-if="showVersion">体验版</text>
  11. </view>
  12. </view>
  13. <!-- 浮动头部 -->
  14. <view class="header-box headerFixed" v-if="hasShopiing&&showFixed">
  15. <UniStatusBar></UniStatusBar>
  16. <view class="title flex align_center" :style="{height:(navHeight+'px')}">
  17. <view class="search-head" @click="toSearch">
  18. <uni-search-bar readonly radius="100" bg-color="#fff" placeholder="请输入商品名称/产品编码/原厂编码" clearButton="auto" cancelButton="none"/>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="cbody" :class="hasShopiing?'bg-0':''">
  23. <view :class="hasShopiing?'shopping':'body-box bg-blue'">
  24. <!-- 滚动区域 -->
  25. <view class="scroll-list" v-if="!hasShopiing">
  26. <scrollBox v-if="list.length&&!hasRedPacket" :list="list"></scrollBox>
  27. <scrollBox v-if="slist.length&&hasRedPacket" :list="slist"></scrollBox>
  28. </view>
  29. <!-- 保证金 -->
  30. <view class="notices flex align_center" v-if="bondRecord" @click="toPayBondAmount">
  31. <view><u-icon name="volume" color="#f2a557" :size="28" :margin-right='15'></u-icon> 您有一笔保证金待支付 ¥{{bondRecord.bondAmount}}</view>
  32. <!-- <text class="text">立即支付>></text> -->
  33. </view>
  34. <!-- 待取货提醒 -->
  35. <view class="notices flex align_center" v-if="!bondRecord&&orderTodo" @click="toOrder">
  36. <view><u-icon name="volume" color="#f2a557" :size="28" :margin-right='15'></u-icon> 您有待取货的货架订单哦!</view> <text class="text">立即处理>></text>
  37. </view>
  38. <!-- 门店审核不通过 -->
  39. <view class="notices flex" v-if="storeApply&&storeApply.auditStatus=='REFUSE'&&storeApply.readFlag=='0'">
  40. <view class="flex justify_between align_center">
  41. <view><u-icon name="volume" color="#f2a557" :size="28" :margin-right='15'></u-icon> 门店认证资料审核不通过,请重新提交审核!</view> <text class="text" @click="toKnow">知道了</text>
  42. </view>
  43. </view>
  44. <!-- 名片 -->
  45. <view class="userCard flex align_center justify_between" v-if="!hasShopiing">
  46. <view class="userCard-info flex align_center">
  47. <view>
  48. <u-image shape='circle' v-if="!hasLogin" src="/static/def_personal_avatar.png" width="90" height="90"></u-image>
  49. <u-image shape='circle' v-else :src="avatarUrl||'/static/def_personal_avatar.png'" width="90" height="90"></u-image>
  50. </view>
  51. <view class="user-info" @click="toUser">
  52. <view v-if="!hasLogin" style="font-size: 40rpx;">
  53. 请点击登录
  54. </view>
  55. <view v-else>
  56. <view class="user-name">{{userInfo.userNameCN || userInfo.mobile}}</view>
  57. <view v-if="hasLogin&&userInfo&&userInfo.sysUserFlag == '0'">
  58. <u-tag text="个人用户" mode="dark" type="warning" shape="circle" size="mini" />
  59. </view>
  60. <view v-else>{{userInfo.orgName}}</view>
  61. </view>
  62. </view>
  63. </view>
  64. <view @click="toUser">
  65. <text v-if="hasLogin&&userInfo&&userInfo.sysUserFlag == '0'" class="user-rz">
  66. {{storeApply&&storeApply.auditStatus=='WAIT'?'认证门店审核中':'认证成为门店'}}
  67. </text>
  68. <uni-icons type="arrowright" size="20" color="#999"></uni-icons>
  69. </view>
  70. </view>
  71. <!-- 搜索 -->
  72. <view class="search-head" v-if="hasShopiing" @click="toSearch">
  73. <uni-search-bar readonly radius="100" bg-color="#fff" placeholder="请输入商品名称/产品编码/原厂编码" clearButton="auto" cancelButton="none"/>
  74. </view>
  75. </view>
  76. <view :class="hasShopiing?'body-box1':'body-box'">
  77. <!-- 扫描按钮 -->
  78. <view class="action-button flex" v-if="userInfo.sysUserFlag == '1'&&!hasShopiing">
  79. <view class="f1" @click="openTakeGood(1)">
  80. <view class="icons"><u-icon name="bianmachaxun" custom-prefix="custom-icon"></u-icon></view>
  81. <view class="tits">产品编码取货</view>
  82. </view>
  83. <view class="f2" @click="openTakeGood(0)">
  84. <view class="icons"><u-icon name="saoma" custom-prefix="custom-icon"></u-icon></view>
  85. <view class="tits">二维码/条形码取货</view>
  86. </view>
  87. </view>
  88. <!-- banner -->
  89. <view class="banner">
  90. <u-swiper mode="dot" bg-color="" img-mode="widthFix" @click="clickBanner" :interval="3000" :height="hasShopiing?280:350" :list="imgList"></u-swiper>
  91. </view>
  92. <!-- 快捷导航 -->
  93. <view class="quick-nav pa-box" v-if="hasShopiing&&navList.length">
  94. <iconItemsList :list="navList" type="img" :isLogin="true" :sysUserFlag="userInfo.sysUserFlag" :iconSize="45" @callback="onNavFun"></iconItemsList>
  95. </view>
  96. <!-- 产品分类 -->
  97. <view class="ptype-nav pa-box" v-if="hasShopiing&&productTypeList.length">
  98. <swiper class="swiper" :style="{height:navHeight==44?'160px':'160px'}" @change="e=>{currentPtypeDot=e.detail.current}">
  99. <swiper-item v-for="(item, idx) in productTypeList" :index="idx" :key="item.id">
  100. <iconItemsList :isLogin="hasLogin" circle :sysUserFlag="userInfo.sysUserFlag" :list="item.list" type="img"></iconItemsList>
  101. </swiper-item>
  102. </swiper>
  103. <view class="indicator-dots" v-if="productTypeList.length>1">
  104. <view v-for="(item,idx) in productTypeList" :key="idx" :class="currentPtypeDot==idx?'indicator-dots-active':''" ></view>
  105. </view>
  106. </view>
  107. <!-- 产品列表 -->
  108. <view class="product-box" v-if="hasShopiing && totalhotPage>0">
  109. <u-divider bg-color="" half-width="0" color="#666" use-slot :fontSize="28">
  110. <image style="width: 16px;height:16px;" src="../../static/hot.png"></image>
  111. <text style="margin: 0 5px;font-weight: bold;">热门推荐</text>
  112. <image style="width: 16px;height:16px;" src="../../static/hot.png"></image>
  113. </u-divider>
  114. <view class="product-list">
  115. <!-- 产品列表 -->
  116. <productItem
  117. v-for="(item,index) in productList"
  118. :key="index"
  119. :list="item"
  120. :index="index"
  121. :itemWidth="(screenWidth-25)*0.5"
  122. :gap="5"
  123. :isLogin="hasLogin"
  124. :sysUserFlag="userInfo.sysUserFlag"
  125. ></productItem>
  126. <view style="padding: 50upx 0;">
  127. <u-empty :src="`/static/nodata.png`" icon-size="180" :text="noDataText" img-width="120" v-if="totalhotPage==0 && status!='loading'" mode="list"></u-empty>
  128. <u-loadmore v-else color="#999" :fontSize="24" :status="status" />
  129. </view>
  130. </view>
  131. </view>
  132. </view>
  133. <!-- 扫描记录 -->
  134. <view class="list-box" v-if="!hasShopiing">
  135. <!-- 扫描记录 -->
  136. <u-cell-group :border="false">
  137. <u-cell-item title="VIN查询历史" @click="toAllRecord" :title-style="{fontSize:'1em'}" value="全部">
  138. <u-icon slot="icon" size="32" color="#066cff" style="margin-right: 0.3em;" name="order"></u-icon>
  139. </u-cell-item>
  140. </u-cell-group>
  141. <u-cell-group :border="false" v-if="hasLogin">
  142. <u-cell-item v-for="item in vinList"
  143. @click="toChoosePart(item)"
  144. :key="item.id"
  145. :title="item.vinCode"
  146. :title-style="{fontSize:'1em'}"
  147. :label="userInfo&&userInfo.sysUserFlag == '0' ? item.createDate : (item.brandName +' '+item.modelName)">
  148. <text slot="icon"></text>
  149. </u-cell-item>
  150. <view style="padding: 20upx;">
  151. <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>
  152. <u-loadmore v-if="status=='loading'" :status="status" />
  153. </view>
  154. </u-cell-group>
  155. <view class="des" v-if="vinList.length&&hasLogin">仅展示最近5条记录,点击“全部”查看更多</view>
  156. <view class="des" v-if="!hasLogin">请登录后查看历史记录</view>
  157. </view>
  158. </view>
  159. </view>
  160. <!-- tab栏 -->
  161. <u-tabbar :list="vuex_tabBarList" :mid-button-size="80" :before-switch="beforeSwitch" :midButton="vuex_tabBarList.length==5"></u-tabbar>
  162. </view>
  163. </template>
  164. <script>
  165. import {
  166. mapState,
  167. mapMutations,
  168. } from 'vuex'
  169. import scrollBox from '@/components/scrollBox.vue'
  170. import UniStatusBar from '@/components/uni-status-bar/uni-status-bar.vue'
  171. import iconItemsList from '@/components/icon-items-list/icon-items-list.vue'
  172. import productItem from './productItem.vue'
  173. import { shelfBondRecordWaitPayRecord, findStoreShelf, shelfGetTotalWaitQty, getProductfindByScanCode, queryQplsConfig, queryBalancePaymentParam } from '@/api/shelf.js'
  174. import { xprhStoreApplyRead } from '@/api/xprh.js'
  175. import { findCurrentRewardRule } from '@/api/rewardRule.js'
  176. import { listLookUp, getLookUpDatas, getCurrUserInfo } from '@/api/data.js';
  177. import { scanVinLogQueryRoll, getScanVinLogList, getScanGetMaxQty }from '@/api/car.js'
  178. import { shopBannerList } from '@/api/video.js'
  179. import { getRewardRollList } from '@/api/rewardRule.js'
  180. import { getCartCount } from '@/api/cart.js'
  181. import { getShopStatus, getShopUserParam } from '@/api/bizParam.js'
  182. import { getShopCategory, getShopProductList } from '@/api/shop.js'
  183. import { ticketQueryCount, storeAccount } from '@/api/user.js'
  184. import { openWebView, clickTab, toAuthStore, clickBannerList, toLogin } from "@/utils/index.js"
  185. export default {
  186. components: {
  187. iconItemsList, // 图标网格
  188. scrollBox, // 无缝滚动组件
  189. UniStatusBar, // 状态栏组件
  190. productItem // 产品列表
  191. },
  192. data() {
  193. const _this = this
  194. return {
  195. status: 'loading',
  196. noDataText: '暂无数据',
  197. hasShopiing: false, // 是否开通商城
  198. bondRecord: null, // 保证金
  199. list:[], // 扫描记录滚动
  200. slist:[], // 红包滚动
  201. vinList: [], // 扫描记录
  202. orderTodo: null, // 待取货的货架订单信息
  203. avatarUrl:'', // 用户图像
  204. navHeight: '44', // 头部高度
  205. scanMaxNums: 10, // 扫描VIN仅限10次
  206. carouselList: [] ,// 修理厂促销活动列表
  207. productTypeList: [], // 产品分类
  208. currentPtypeDot: 0, // 当前产品分类页
  209. screenWidth: 325, // 屏幕宽度
  210. productList:[], // 热门产品
  211. hotProductPageNo: 1 ,// 热门产品页码
  212. hotProductpageSize:10, // 热门产品每页数量
  213. totalhotPage: 0, // 热门产品总页数
  214. showFixed: false, // 是否显示浮动头部
  215. isCheckLogin:false, // 是否正在检查登录
  216. }
  217. },
  218. computed: {
  219. ...mapState(['hasLogin','vuex_vinScanNums','vuex_tabBarList']),
  220. // 显示开发版本信息
  221. showVersion () {
  222. const baseUrl = getApp().globalData.baseUrl
  223. return baseUrl.indexOf(".test.") >= 0 || baseUrl.indexOf('192.168') >=0
  224. },
  225. // 是否有数字货架
  226. hasShelf(){
  227. return this.$store.state.vuex_storeShelf
  228. },
  229. // 登录用户信息
  230. userInfo(){
  231. return this.$store.state.vuex_userInfo
  232. },
  233. // 是否有门店申请信息
  234. storeApply(){
  235. return this.$store.state.vuex_storeAuthInfo || null
  236. },
  237. // 是否有红包
  238. hasRedPacket(){
  239. const rule = this.$store.state.vuex_rewardRule
  240. return rule&&rule.ruleStatus == 'release'
  241. },
  242. // banner 图片列表
  243. imgList(){
  244. let list = [
  245. {
  246. image: '/static/banner1.jpg',
  247. activeType: ''
  248. }
  249. ]
  250. const newList = []
  251. // 红包
  252. if(this.hasRedPacket&&this.hasShelf){
  253. newList.push(
  254. {
  255. image: '/static/banner2.jpg',
  256. activeType: 'redPacket'
  257. })
  258. }
  259. return this.carouselList.length>0 ? newList.concat(this.carouselList) : list.concat(newList)
  260. },
  261. // 快捷导航
  262. navList(){
  263. const list = [
  264. {
  265. id:'n0',
  266. auth: this.hasLogin,
  267. ignoreAuth: false,
  268. icon:'/static/nav_icon1.jpg',
  269. name: '产品编码取货',
  270. color:'#056cd9',
  271. url: 'openTakeGood1',
  272. target: 'fun'
  273. },
  274. {
  275. id:'n1',
  276. auth: this.hasLogin,
  277. ignoreAuth: false,
  278. icon:'/static/nav_icon2.jpg',
  279. name: '二维/条码取货',
  280. color:'#f44336',
  281. url:'openTakeGood0',
  282. target: 'fun'
  283. },
  284. {
  285. id:'n3',
  286. auth: true,
  287. ignoreAuth: true,
  288. icon:'/static/nav_icon3.jpg',
  289. name: '视频讲解',
  290. color:'#03a9f4',
  291. url:'/pagesB/videos/index',
  292. target: 'page'
  293. },
  294. {
  295. id:'n2',
  296. auth: this.hasLogin,
  297. ignoreAuth: true,
  298. icon:'/static/nav_icon4.jpg',
  299. name: 'VIN查询历史',
  300. color:'#ff9800',
  301. url:'/pagesA/vinRecord/vinRecord',
  302. target: this.hasLogin ? 'page' : 'fun'
  303. }
  304. ]
  305. return list
  306. }
  307. },
  308. onReady() {
  309. // 获取导航栏高度
  310. const res = uni.getSystemInfoSync()
  311. this.screenWidth = res.windowWidth
  312. const system = res.platform
  313. if (system === 'android') {
  314. this.navHeight = 48
  315. } else if (system === 'ios') {
  316. this.navHeight = 44
  317. }
  318. },
  319. onLoad() {
  320. this.orderTodo = null
  321. this.bondRecord = null
  322. this.vinList = []
  323. // 视频类型
  324. this.getLookUpList('CONTENT_CATEGORY', 'vuex_videoTypeList');
  325. // 检测是否登录
  326. this.isCheckLogin = true
  327. this.$store.dispatch('checkLogin',(isLogin)=>{
  328. this.isCheckLogin = false
  329. // 获取数据字典
  330. this.getListLookUp();
  331. // 获取支付,收款方式
  332. this.getLookUpList('PAY_PROCUCT_TYPE', 'vuex_paymentTypeList');
  333. // 价格类型
  334. this.getLookUpList('PRICE_SHOW_TYPE', 'vuex_priceTypeList');
  335. // 查询是否有商城
  336. this.pageInit(0)
  337. })
  338. // 刷新首页数据
  339. uni.$on("refashHome",()=>{
  340. this.pageInit(2)
  341. })
  342. // 刷新购物车
  343. uni.$on("refashCart",()=>{
  344. this.cartCount()
  345. })
  346. // 刷新抵扣和充值余额
  347. uni.$on("refashPayBalance",()=>{
  348. this.getPayBalanceAcount()
  349. })
  350. },
  351. // 页面卸载
  352. onUnload() {
  353. uni.$off('refashHome')
  354. uni.$off('refashProm')
  355. uni.$off('refashCart')
  356. uni.$off('refashPayBalance')
  357. },
  358. onHide() {
  359. // 用户头像
  360. this.avatarUrl = uni.getStorageSync('userPhoto');
  361. // 重新刷新
  362. if(!this.isCheckLogin){
  363. this.pageInit(1)
  364. }
  365. },
  366. // 下拉刷新
  367. onPullDownRefresh(){
  368. this.pageInit(2)
  369. setTimeout(function () {
  370. uni.stopPullDownRefresh();
  371. }, 1000);
  372. },
  373. onShareAppMessage() {},
  374. // 页面滚动
  375. onPageScroll(e) {
  376. this.showFixed = e.scrollTop > 120
  377. },
  378. // 滚动到底部,加载热门产品
  379. onReachBottom() {
  380. if(this.hasShopiing && this.hotProductPageNo < this.totalhotPage){
  381. this.hotProductPageNo++
  382. this.getProductList()
  383. }
  384. },
  385. watch:{
  386. hasShopiing(a,b){
  387. if(a!=b&&a){
  388. this.getPayBalanceAcount()
  389. }
  390. }
  391. },
  392. methods: {
  393. // 获取抵扣和充值余额
  394. getPayBalanceAcount(){
  395. // 获取抵扣支付权限
  396. this.getPayBalanceAuth()
  397. // 抵扣余额,充值余额
  398. this.getStoreAccount()
  399. },
  400. // 抵扣余额
  401. getStoreAccount(){
  402. const data = this.$store.state.vuex_storeShelf
  403. storeAccount({storeSn:data.storeSn}).then(res => {
  404. this.$store.state.vuex_storeAccount = res.data
  405. })
  406. },
  407. // 抵扣支付权限
  408. getPayBalanceAuth(){
  409. queryBalancePaymentParam({userId:this.userInfo&&this.userInfo.userid}).then(res => {
  410. const data = res.data[0]
  411. this.$store.state.vuex_showBalanceAuth = data && data.storeParamList&&data.storeParamList[0]&&data.storeParamList[0].paramValue == 1
  412. })
  413. },
  414. // 去认证
  415. authStore(){
  416. uni.navigateTo({
  417. url: '/pages/storeManage/storeAuth'
  418. })
  419. },
  420. // 初始化页面
  421. pageInit(flag){
  422. // 已登录
  423. if(this.hasLogin){
  424. // 已认证用户
  425. if(this.userInfo.sysUserFlag == '1'){
  426. // 查询是否有数字货架
  427. this.getStoreShelf(flag)
  428. // 如果已开通商城
  429. if(this.hasShopiing){
  430. this.getPayBalanceAcount()
  431. }
  432. }else{// 游客
  433. this.getHasShopping()
  434. // 获取扫描次数
  435. this.$store.dispatch("getScanNums")
  436. // 获取最大扫描次数
  437. this.getMaxQty()
  438. // 查询门店认证信息
  439. this.findLastApply()
  440. // 获取扫描记录
  441. this.getVinLog()
  442. }
  443. }else{
  444. // 未登录
  445. this.getHasShopping()
  446. // 隐藏促销模块
  447. this.hidePromoTab()
  448. }
  449. },
  450. // 查询是否支持数字货架, flag: true 再次刷新,false 首次加载,只加载一次
  451. getStoreShelf(flag){
  452. findStoreShelf().then(res => {
  453. this.$store.state.vuex_storeShelf = res.data;
  454. // 有数字货架
  455. if(res.data){
  456. // 只需加载一次
  457. if(flag==0){
  458. // 更新用户信息
  459. this.getCurrUserInfo()
  460. // 保证金查询
  461. this.getShelfBWPayRecord()
  462. // 获取订单信息
  463. this.shelfGetTotalWaitQty()
  464. // 获取价格权限配置
  465. this.getPriceCofig()
  466. }
  467. }else{
  468. // 没有数字货架,隐藏促销模块
  469. this.hidePromoTab()
  470. }
  471. this.getHasShopping()
  472. })
  473. },
  474. // 最新用户信息
  475. getCurrUserInfo(){
  476. getCurrUserInfo().then(res => {
  477. if(res.data){
  478. this.$store.state.vuex_userInfo.userNameCN = res.data.name;
  479. this.$store.state.vuex_userInfo.mobile = res.data.mobile;
  480. this.$store.state.vuex_userInfo.adminId = res.data.id;
  481. this.$store.state.vuex_userPhoto = res.data.photo;
  482. uni.setStorageSync('userPhoto', res.data.photo);
  483. }
  484. })
  485. },
  486. // 获取价格配置
  487. getPriceCofig(){
  488. const data = this.$store.state.vuex_storeShelf
  489. queryQplsConfig({shelfSn: data.shelfSn}).then(res => {
  490. this.$store.state.vuex_configPrice = res.data || null
  491. })
  492. },
  493. // 商城信息, flag: true 再次刷新,false 只加载一次
  494. getHasShopping(flag){
  495. getShopStatus().then(res => {
  496. const hasShopiing = res.data && res.data.paramValue == 1
  497. this.$store.state.vuex_showShopAuth = hasShopiing
  498. // 经销商开启商城
  499. if(hasShopiing){
  500. // 判断员工是否开启商城
  501. this.getShopUserStatus(flag)
  502. }else{
  503. this.hasShopiing = false
  504. this.$store.state.vuex_hasShopiing = this.hasShopiing
  505. // 没有商城
  506. this.showNoShopPage(flag)
  507. // 查询红包活动
  508. this.getRedPacketRule()
  509. }
  510. })
  511. },
  512. // 员工用户是否开启商城
  513. getShopUserStatus(flag){
  514. const data = this.$store.state.vuex_storeShelf
  515. if(data){
  516. getShopUserParam({shelfSn: data.shelfSn}).then(res=>{
  517. const item = res.data
  518. this.hasShopiing = item && item.paramMap && item.paramMap.mall_flag && item.paramMap.mall_flag.paramValue == 1
  519. this.$store.state.vuex_hasShopiing = this.hasShopiing
  520. if(this.hasShopiing){
  521. // 判断员工是否开启商城
  522. this.showShopPage(flag)
  523. }else{
  524. this.showNoShopPage(flag)
  525. }
  526. // 查询红包活动
  527. this.getRedPacketRule()
  528. })
  529. }else{
  530. this.showNoShopPage(flag)
  531. // 查询红包活动
  532. this.getRedPacketRule()
  533. }
  534. },
  535. // 显示开通商城的页面
  536. showShopPage(flag){
  537. // 隐藏tab 视频,显示tab购物车
  538. if(this.hasLogin && this.userInfo && this.userInfo.sysUserFlag == '1'){
  539. // 显示促销模块
  540. this.showPromoTab()
  541. this.cartCount()
  542. }else{
  543. this.$store.state.vuex_cartTotal = 0
  544. this.showCatTab()
  545. }
  546. // 获取轮播数据,包括促销活动
  547. this.getCarousel(1)
  548. // 商品分类
  549. this.getGoodType(flag)
  550. // 获取推荐产品
  551. this.getHotProductList(flag)
  552. },
  553. // 显示未没有开通商城的界面
  554. showNoShopPage(flag){
  555. this.productTypeList = []
  556. this.productList = []
  557. // 获取轮播数据,包括促销活动
  558. this.getCarousel(0)
  559. // 隐藏促销模块
  560. this.hidePromoTab()
  561. // 隐藏tab 购物车,显示tab视频
  562. this.showVideoTab()
  563. // 滚动扫描记录
  564. this.getScrollLog()
  565. // 获取扫描记录
  566. if(this.hasLogin){
  567. this.getVinLog()
  568. }
  569. },
  570. // 购物车数量
  571. cartCount(){
  572. getCartCount({}).then(res => {
  573. if(res.status == 200){
  574. this.$store.state.vuex_cartTotal = res.data?res.data.qty:0
  575. this.showCatTab()
  576. }
  577. })
  578. },
  579. // 商品一级分类
  580. getGoodType(flag){
  581. this.productTypeList = []
  582. getShopCategory({categoryLevel: 1}).then(res => {
  583. const list = res.data || []
  584. const ret = []
  585. list.forEach(item => {
  586. ret.push({
  587. id: item.id,
  588. categorySn: item.categorySn,
  589. auth: true,
  590. ignoreAuth: false,
  591. name: item.categoryName,
  592. icon: item.iconUrl,
  593. url: '/pagesB/shopiing/shopProduct?clzId='+item.categorySn+'&clzName='+item.categoryName+"&shopCategoryCount="+item.shopCategoryCount+'&shopProductCount='+item.shopProductCount,
  594. target: 'page'
  595. })
  596. })
  597. // 转成二维数组
  598. for(let i=0;i<ret.length;i=i+8){
  599. this.productTypeList.push({
  600. id: 'swiper-item-'+i,
  601. list: ret.slice(i,(i+8)>ret.length?ret.length:(i+8))
  602. })
  603. }
  604. })
  605. },
  606. // 商品列表查询
  607. getHotProductList(flag){
  608. console.log(flag)
  609. this.hotProductPageNo = 1
  610. // 不是show 刷新列表
  611. if(flag!=1){
  612. this.productList = []
  613. this.hotProductpageSize = 10
  614. }else{
  615. // 刷新列表
  616. let count = 0
  617. this.productList.forEach(item => {
  618. count += item.length
  619. })
  620. this.hotProductpageSize = count||10
  621. }
  622. this.getProductList(flag)
  623. },
  624. getProductList(flag){
  625. this.status = "loading"
  626. const dealerSn = this.hasLogin && this.userInfo && this.userInfo.sysUserFlag == '1' ? this.$store.state.vuex_storeShelf.dealerSn : ''
  627. // 获取推荐产品
  628. getShopProductList({pageNo:this.hotProductPageNo,pageSize:this.hotProductpageSize,hotFlag:1, status: 1, dealerSn: dealerSn}).then(res => {
  629. if(res.status == 200){
  630. const list = res.data ? res.data.list : []
  631. list.map(item=>{
  632. const a = item.shopPromoProduct
  633. if(a){
  634. item.promoType = a.promoType
  635. item.resultValue = a.resultValue
  636. item.conditionValue = a.conditionValue
  637. item.discountType = a.discountType
  638. item.promoProductSn = a.promoProductSn
  639. item.promoSn = a.promoSn
  640. item.orginPrice = item.price
  641. // 特价
  642. if(item.promoType=='PROMO_PROD'){
  643. item.price = item.conditionValue
  644. }
  645. }
  646. item.priceStr = Number(item.price).toFixed(2).toString().split('.')
  647. })
  648. if(flag!=1){
  649. this.productList.push(list)
  650. }else{
  651. // 刷新
  652. this.productList = [list]
  653. }
  654. this.status = res.data.count>=this.list.length ? "nomore" : 'loadmore'
  655. // 判断是否最后一页
  656. const maxPages = Math.ceil(res.data.count / 10)
  657. this.totalhotPage = maxPages
  658. this.status = this.hotProductPageNo >= maxPages ? "nomore" : 'loadmore'
  659. this.noDataText = this.status == 'nomore' ? '没有更多了' : '更多商品'
  660. }else{
  661. this.status = "nomore"
  662. this.noDataText = res.message || '没有更多了'
  663. }
  664. })
  665. },
  666. // 获取上方滚动扫描记录
  667. getScrollLog(){
  668. scanVinLogQueryRoll({pageNo:1,pageSize:50}).then(res => {
  669. this.list = res.data.list || []
  670. this.list.map(item => {
  671. item.placeText = item.userName + '刚刚扫描了一个VIN'
  672. })
  673. })
  674. },
  675. // 获取当前门店扫描记录
  676. getVinLog(){
  677. this.vinList = []
  678. this.status = "loading"
  679. // VISITOR:游客,EMPLOYEE:雇员
  680. getScanVinLogList({ pageNo:1, pageSize:5, identifyType: this.userInfo.identifyType }).then(res => {
  681. this.vinList = res.data&&res.data.list || []
  682. this.vinList = this.vinList.filter(item => item.vinCode)
  683. this.status = 'nomore'
  684. })
  685. },
  686. // tab单击
  687. beforeSwitch(index){
  688. const row = this.$store.state.vuex_tabBarList[index] // 当前tab
  689. const isNoAuth = this.userInfo ? this.userInfo.sysUserFlag == '0' : false // 是否认证门店
  690. return clickTab(row,this.hasLogin,isNoAuth,this.vuex_vinScanNums < this.vuex_scanMaxNums)
  691. },
  692. // 去搜索产品
  693. toSearch(event){
  694. if(this.hasLogin){
  695. // 游客去认证
  696. if(this.userInfo.sysUserFlag == '0'){
  697. toAuthStore()
  698. }else{
  699. uni.navigateTo({
  700. url:'/pagesB/shopiing/searchProduct?queryWord='+event.value+'&clzId='
  701. })
  702. }
  703. }else{
  704. toLogin()
  705. }
  706. },
  707. // 轮播图片
  708. getCarousel(flag){
  709. this.carouselList = []
  710. // 获取所有促销活动数据
  711. shopBannerList({promoFlag:flag}).then(res => {
  712. if(res.status == 200){
  713. res.data&&res.data.map(item => {
  714. item.image = item.imageUrl
  715. })
  716. this.carouselList = res.data
  717. }
  718. })
  719. },
  720. // 快速导航单击
  721. onNavFun(item){
  722. if(item.auth){
  723. // 非游客
  724. if(this.userInfo.sysUserFlag == '1'){
  725. // 编码取货
  726. if(item.url=='openTakeGood1'){
  727. this.openTakeGood(1)
  728. }
  729. // 扫码取货
  730. if(item.url=='openTakeGood0'){
  731. this.openTakeGood(0)
  732. }
  733. }else{
  734. // 去认证
  735. toAuthStore()
  736. }
  737. }else{
  738. toLogin()
  739. }
  740. },
  741. // 获取数据字典
  742. getListLookUp() {
  743. const _this = this;
  744. listLookUp({ pageNo: 1, pageSize: 1000 }).then(res => {
  745. if (res.status == 200) {
  746. _this.$store.state.vuex_allLookUp = res.data;
  747. }
  748. });
  749. },
  750. // 或某一项字典列表,参数code
  751. getLookUpList(code, vuexKey) {
  752. getLookUpDatas({ type: code }).then(res => {
  753. if (res.status == 200) {
  754. this.$store.state[vuexKey] = res.data || [];
  755. }
  756. });
  757. },
  758. // 获取最大扫描数
  759. getMaxQty(){
  760. getScanGetMaxQty().then(res => {
  761. this.scanMaxNums = res.data || 10
  762. this.$store.state.vuex_scanMaxNums = this.scanMaxNums
  763. })
  764. },
  765. // 获取最新申请门店
  766. findLastApply(){
  767. const mobile = this.userInfo.mobile
  768. this.$store.dispatch('getSotreAuth',mobile)
  769. },
  770. // 知道审核不通过
  771. toKnow(){
  772. uni.showLoading({
  773. title: "正在提交"
  774. })
  775. xprhStoreApplyRead({sn:this.storeApply.applySn}).then(res => {
  776. if(res.status == 200){
  777. this.findLastApply()
  778. }
  779. uni.hideLoading()
  780. })
  781. },
  782. // 待取货数量合计
  783. shelfGetTotalWaitQty(){
  784. shelfGetTotalWaitQty({billState:'WAIT'}).then(res => {
  785. if(res.status == 200){
  786. this.orderTodo = res.data;
  787. }
  788. })
  789. },
  790. // 货架订单列表
  791. toOrder(){
  792. if(this.hasShelf){
  793. uni.navigateTo({
  794. url: "/pagesA/digitalShelf/orderList"
  795. })
  796. }else{
  797. uni.showToast({
  798. icon:'none',
  799. title: '门店没有关联数字货架,无法使用此功能!'
  800. })
  801. }
  802. },
  803. // 显示购物车tab
  804. showCatTab(){
  805. const videoIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '我的')
  806. const catIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '购物车')
  807. if(catIndex<0 && videoIndex >= 0){
  808. // 替换视频为购物车
  809. this.$store.state.vuex_tabBarList.splice(videoIndex,0,{
  810. "pagePath": "/pages/cart/index",
  811. "iconPath": "/static/tab/tab_cart_normal.png",
  812. "selectedIconPath": "/static/tab/tab_cart_pressed.png",
  813. "text": "购物车",
  814. 'customIcon': false,
  815. 'count': this.$store.state.vuex_cartTotal,
  816. 'isDot': false
  817. })
  818. }
  819. // 购物车已存在
  820. if(catIndex>=0){
  821. this.$store.state.vuex_tabBarList[catIndex].count = this.$store.state.vuex_cartTotal
  822. }
  823. },
  824. // 显示视频tab,隐藏购物车
  825. showVideoTab(){
  826. const videoIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '视频')
  827. const catIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '购物车')
  828. if(videoIndex<0 && catIndex >= 0){
  829. // 替换购物车为视频
  830. // this.$store.state.vuex_tabBarList.splice(catIndex,1,{
  831. // "pagePath": "/pages/videos/index",
  832. // "iconPath": "/static/tab/tab_video_normal.png",
  833. // "selectedIconPath": "/static/tab/tab_video_pressed.png",
  834. // "text": "视频",
  835. // 'customIcon': false,
  836. // })
  837. this.$store.state.vuex_tabBarList.splice(catIndex,1)
  838. }
  839. },
  840. // 显示促销模块
  841. showPromoTab(){
  842. // 添加促销模块
  843. const promoIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '促销')
  844. if(promoIndex<0){
  845. this.$store.state.vuex_tabBarList.splice(1,0,{
  846. "pagePath": "/pages/promo/index",
  847. "iconPath": "/static/tab/tab_promo_normal.png",
  848. "selectedIconPath": "/static/tab/tab_promo_pressed.png",
  849. "text": "促销",
  850. 'customIcon': false,
  851. })
  852. }
  853. // 居中透出显示扫描按钮
  854. const scanTab = this.$store.state.vuex_tabBarList.find(item => item.text == '扫描VIN')
  855. if(scanTab){
  856. scanTab.iconPath = "/static/tab/tab_scan_mid.png"
  857. scanTab.midButton = true
  858. }
  859. },
  860. // 隐藏促销模块
  861. hidePromoTab(){
  862. // 删除促销模块
  863. const promoIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '促销')
  864. if(promoIndex > -1){
  865. this.$store.state.vuex_tabBarList.splice(promoIndex,1)
  866. }
  867. // 扫描按钮不局中
  868. const scanTab = this.$store.state.vuex_tabBarList.find(item => item.text == '扫描VIN')
  869. if(scanTab){
  870. scanTab.iconPath = "/static/tab/tab_scan_normal.png"
  871. scanTab.midButton = false
  872. }
  873. },
  874. // 查询是有红包活动
  875. getRedPacketRule(){
  876. findCurrentRewardRule().then(res => {
  877. this.$store.state.vuex_rewardRule = res.data;
  878. // 商城未开通时调用
  879. if(res.data && !this.hasShopiing){
  880. this.getRedScroll()
  881. }
  882. })
  883. },
  884. // 红包奖励信息
  885. getRedScroll(){
  886. getRewardRollList({pageNo:1,pageSize:50}).then(res => {
  887. this.slist = res.data || []
  888. this.slist.map(item => {
  889. item.placeText = item.userName + '刚刚得到了'+item.totalRewardAmount+'元 红包奖励'
  890. })
  891. })
  892. },
  893. // 获取保证金金额
  894. getShelfBWPayRecord(){
  895. const data = this.$store.state.vuex_storeShelf
  896. shelfBondRecordWaitPayRecord({shelfSn: data.shelfSn, storeSn: data.storeSn}).then(res => {
  897. console.log(res,'获取保证金金额')
  898. this.bondRecord = res.data
  899. })
  900. },
  901. // 保证金支付
  902. toPayBondAmount(){},
  903. openTakeGood(index){
  904. // 已有数字货架
  905. if(this.hasShelf){
  906. this.clickAction(index)
  907. }else{
  908. uni.showToast({
  909. icon:'none',
  910. title: '门店没有关联数字货架,无法使用此功能!'
  911. })
  912. }
  913. },
  914. // 选择取货方式
  915. clickAction(index){
  916. const shelfSn = this.hasShelf.shelfSn
  917. const _this = this
  918. // 扫描
  919. if(index == 0){
  920. uni.scanCode({
  921. success: function (ret) {
  922. const params = {
  923. codeType: ret.scanType == 'QR_CODE' ? 0 : 1
  924. }
  925. // 二维码
  926. if(ret.scanType == 'QR_CODE'){
  927. const result = ret.result.split("&")
  928. params.productSn = result[2] // 产品编码sn
  929. }else{
  930. params.qrCode = ret.result
  931. }
  932. uni.showLoading({
  933. title: "正在查询产品..."
  934. })
  935. // 确认取货
  936. getProductfindByScanCode(params).then(res => {
  937. if(res.status == 200 && res.data){
  938. if(res.data.currentInven){
  939. const billSource = ret.scanType == 'QR_CODE' ? 'qr_code': 'bar_code'
  940. const retData = Object.assign({shelfSn: shelfSn, billSource: billSource},res.data)
  941. _this.$store.state.vuex_tempData = retData
  942. uni.navigateTo({
  943. url: '/pagesA/queryByCode/confirmQh'
  944. })
  945. }else{
  946. uni.showModal({
  947. title: '提示',
  948. content: '产品库存为0,无法取货!',
  949. confirmText: '好的',
  950. showCancel: false
  951. })
  952. }
  953. }else{
  954. uni.showModal({
  955. title: '提示',
  956. content: '产品不属于此货架,请重新扫描!',
  957. confirmText: '好的',
  958. showCancel: false
  959. })
  960. }
  961. uni.hideLoading()
  962. })
  963. }
  964. });
  965. }else{
  966. // 按编码搜索
  967. uni.navigateTo({
  968. url: '/pagesA/queryByCode/queryByCode'
  969. })
  970. }
  971. },
  972. // 单击banner
  973. clickBanner(index){
  974. clickBannerList(this.imgList[index],this.hasLogin,this.userInfo&&this.userInfo.sysUserFlag == '1')
  975. },
  976. // 查看扫描VIN记录
  977. toAllRecord(){
  978. if(this.hasLogin){
  979. uni.navigateTo({
  980. url: "/pagesA/vinRecord/vinRecord"
  981. })
  982. }else{
  983. toLogin()
  984. }
  985. },
  986. // 查看用户信息
  987. toUser(){
  988. if(this.hasLogin){
  989. if(this.userInfo.sysUserFlag == '1'){
  990. // 用户详细信息
  991. uni.navigateTo({
  992. url: '/pages/personData/personData'
  993. })
  994. }else{
  995. // 或 门店认证
  996. this.authStore()
  997. }
  998. }else{
  999. toLogin()
  1000. }
  1001. },
  1002. // 选择配件
  1003. toChoosePart(item){
  1004. item.text = item.modelInfo
  1005. uni.navigateTo({
  1006. url: "/pagesA/digitalShelf/choosePart?vinNumber="+item.vinCode+"&carList="+encodeURIComponent(JSON.stringify(item))+'&type=log'
  1007. })
  1008. },
  1009. }
  1010. }
  1011. </script>
  1012. <style lang="less">
  1013. page{
  1014. background-color: #ffffff;
  1015. }
  1016. .bg-0{
  1017. position: relative;
  1018. > view{
  1019. z-index:1;
  1020. position: relative;
  1021. }
  1022. &::after{
  1023. /* 这个伪类的作用就是一个圆弧的背景色 */
  1024. width: 130%;
  1025. height: 30vh;
  1026. position: absolute;
  1027. /*设置水平居中*/
  1028. left: -15%;
  1029. /* 之所以left:20%,是因为width:140%,若width:160%,那么left:30%才能水平居中 */
  1030. top: 0;
  1031. /*层叠顺序,最底层显示*/
  1032. content: '';
  1033. /*分别对应 左上 右上 右下 左下 可以修改成其它颜色*/
  1034. background: linear-gradient(to bottom, #86defa, #ffffff);
  1035. }
  1036. }
  1037. .bg-1{
  1038. background-image: linear-gradient(#86defa 0%,#cdeff9 20%,#ffffff 30%);
  1039. }
  1040. .content {
  1041. margin: 0;
  1042. padding: 0;
  1043. display: flex;
  1044. flex-direction: column;
  1045. .content-body{
  1046. flex-grow: 1;
  1047. }
  1048. .header-box{
  1049. z-index: 5;
  1050. padding: 0em 1em;
  1051. background: #066cff;
  1052. .title{
  1053. padding: 0;
  1054. }
  1055. .version{
  1056. color: #FFEB3B;
  1057. font-size: 0.8em;
  1058. margin-left: 1em;
  1059. }
  1060. }
  1061. .headerFixed{
  1062. padding: 0 0.5rem;
  1063. width: 100%;
  1064. z-index: 10;
  1065. left: 0;
  1066. top:0;
  1067. position: fixed;
  1068. background: #066cff;
  1069. ::v-deep .uni-searchbar{
  1070. padding: 0;
  1071. .uni-searchbar__box{
  1072. height: 30px;
  1073. }
  1074. }
  1075. }
  1076. .cbody{
  1077. flex-grow: 1;
  1078. overflow-y: auto;
  1079. overflow-x: hidden;
  1080. .notices{
  1081. padding: 0.5em 0 0;
  1082. font-size: 0.9em;
  1083. margin-top: 0.5rem;
  1084. view{
  1085. color: #ffaf46;
  1086. flex-grow: 1;
  1087. }
  1088. .text{
  1089. color: #ffffff;
  1090. margin-left: 1em;
  1091. }
  1092. }
  1093. .pa-box{
  1094. background: #fff;
  1095. border-radius: 6px;
  1096. margin: 10px 0;
  1097. padding: 10px 0;
  1098. border: 1px solid #eee;
  1099. }
  1100. .product-box{
  1101. margin: 10px 0;
  1102. }
  1103. .ptype-nav{
  1104. position: relative;
  1105. .indicator-dots{
  1106. width: 100%;
  1107. height: 3px;
  1108. display: flex;
  1109. align-items: center;
  1110. justify-content: center;
  1111. position: absolute;
  1112. left: 0;
  1113. bottom:5px;
  1114. }
  1115. .indicator-dots > view{
  1116. width: 10px;
  1117. height: 3px;
  1118. background: #e7e7e7;
  1119. display: inline-block;
  1120. }
  1121. .indicator-dots >.indicator-dots-active{
  1122. background: #00aaff;
  1123. }
  1124. }
  1125. }
  1126. .body-box{
  1127. padding: 0em 1em 0.8em;
  1128. z-index: 4;
  1129. .banner{
  1130. margin-top: 20rpx;
  1131. }
  1132. .action-button{
  1133. padding:40upx 0 0 0;
  1134. justify-content: space-between;
  1135. > view{
  1136. display: flex;
  1137. align-items: center;
  1138. color: #fff;
  1139. border-radius: 10rpx;
  1140. width: 49%;
  1141. padding: 6rpx 0;
  1142. box-shadow: 0rem 0.3rem 0.5rem #d9dada;
  1143. }
  1144. .f1{
  1145. background: #2196f3;
  1146. }
  1147. .f2{
  1148. background: #FF9800;
  1149. }
  1150. .icons{
  1151. font-size: 50rpx;
  1152. color: #fff;
  1153. width: 80rpx;
  1154. height: 80rpx;
  1155. text-align:center;
  1156. display: flex;
  1157. align-items: center;
  1158. flex-direction: column;
  1159. justify-content: center;
  1160. }
  1161. .tits{
  1162. font-size:28rpx;
  1163. }
  1164. }
  1165. }
  1166. .body-box1{
  1167. padding: 0em 10px 0.8em;
  1168. }
  1169. .bg-blue{
  1170. position: relative;
  1171. z-index: 1;
  1172. > view{
  1173. z-index: 100;
  1174. position: relative;
  1175. }
  1176. &::after{
  1177. /* 这个伪类的作用就是一个圆弧的背景色 */
  1178. width: 130%;
  1179. height: 100%;
  1180. position: absolute;
  1181. /*设置水平居中*/
  1182. left: -15%;
  1183. /* 之所以left:20%,是因为width:140%,若width:160%,那么left:30%才能水平居中 */
  1184. top: -10%;
  1185. /*层叠顺序,最底层显示*/
  1186. content: '';
  1187. border-radius: 0 0 50% 50%;
  1188. /*分别对应 左上 右上 右下 左下 可以修改成其它颜色*/
  1189. background: linear-gradient(to bottom, #066cff, #056bf9);
  1190. }
  1191. .userCard{
  1192. position:relative;
  1193. left:0;
  1194. bottom:-0.8rem;
  1195. padding: 0.5rem;
  1196. background: #fff;
  1197. border-radius: 0.8rem;
  1198. box-shadow: 0rem 0.3rem 0.5rem #bcdede;
  1199. .userCard-info{
  1200. flex-grow:1;
  1201. > view{
  1202. &:last-child{
  1203. margin-left: 0.5em;
  1204. line-height: 1.5em;
  1205. .user-name{
  1206. font-size: 1rem;
  1207. }
  1208. >view{
  1209. padding: 0.2em;
  1210. }
  1211. }
  1212. }
  1213. .user-info{
  1214. flex-grow:1;
  1215. }
  1216. }
  1217. .user-rz{
  1218. font-size: 0.8rem;
  1219. color:#58aff5;
  1220. }
  1221. }
  1222. }
  1223. .shopping{
  1224. padding: 0;
  1225. .notices{
  1226. padding: 0.5em 10px 0;
  1227. margin-top: 0.2rem;
  1228. .text{
  1229. color: #066cff;
  1230. }
  1231. }
  1232. }
  1233. .list-box{
  1234. padding: 0 1em;
  1235. overflow: auto;
  1236. .des{
  1237. text-align: center;
  1238. padding: 1em 0;
  1239. color: #999;
  1240. font-size: 0.8em;
  1241. }
  1242. }
  1243. }
  1244. </style>