index.vue 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240
  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. // 页面卸载
  348. onUnload() {
  349. uni.$off('refashHome')
  350. uni.$off('refashProm')
  351. uni.$off('refashCart')
  352. },
  353. onHide() {
  354. // 用户头像
  355. this.avatarUrl = uni.getStorageSync('userPhoto');
  356. // 重新刷新
  357. if(!this.isCheckLogin){
  358. this.pageInit(1)
  359. }
  360. },
  361. // 下拉刷新
  362. onPullDownRefresh(){
  363. this.pageInit(2)
  364. setTimeout(function () {
  365. uni.stopPullDownRefresh();
  366. }, 1000);
  367. },
  368. onShareAppMessage() {},
  369. // 页面滚动
  370. onPageScroll(e) {
  371. this.showFixed = e.scrollTop > 120
  372. },
  373. // 滚动到底部,加载热门产品
  374. onReachBottom() {
  375. if(this.hasShopiing && this.hotProductPageNo < this.totalhotPage){
  376. this.hotProductPageNo++
  377. this.getProductList()
  378. }
  379. },
  380. watch:{
  381. hasShopiing(a,b){
  382. if(a!=b&&a){
  383. // 获取抵扣支付权限
  384. this.getPayBalanceAuth()
  385. // 抵扣余额,充值余额
  386. this.getStoreAccount()
  387. }
  388. }
  389. },
  390. methods: {
  391. // 去认证
  392. authStore(){
  393. uni.navigateTo({
  394. url: '/pages/storeManage/storeAuth'
  395. })
  396. },
  397. // 抵扣余额
  398. getStoreAccount(){
  399. const data = this.$store.state.vuex_storeShelf
  400. storeAccount({storeSn:data.storeSn}).then(res => {
  401. this.$store.state.vuex_storeAccount = res.data
  402. })
  403. },
  404. // 初始化页面
  405. pageInit(flag){
  406. // 已登录
  407. if(this.hasLogin){
  408. // 已认证用户
  409. if(this.userInfo.sysUserFlag == '1'){
  410. // 查询是否有数字货架
  411. this.getStoreShelf(flag)
  412. // 如果已开通商城
  413. if(this.hasShopiing){
  414. // 获取抵扣支付权限
  415. this.getPayBalanceAuth()
  416. // 抵扣余额,充值余额
  417. this.getStoreAccount()
  418. }
  419. }else{// 游客
  420. this.getHasShopping()
  421. // 获取扫描次数
  422. this.$store.dispatch("getScanNums")
  423. // 获取最大扫描次数
  424. this.getMaxQty()
  425. // 查询门店认证信息
  426. this.findLastApply()
  427. // 获取扫描记录
  428. this.getVinLog()
  429. }
  430. }else{
  431. // 未登录
  432. this.getHasShopping()
  433. // 隐藏促销模块
  434. this.hidePromoTab()
  435. }
  436. },
  437. // 查询是否支持数字货架, flag: true 再次刷新,false 首次加载,只加载一次
  438. getStoreShelf(flag){
  439. findStoreShelf().then(res => {
  440. this.$store.state.vuex_storeShelf = res.data;
  441. // 有数字货架
  442. if(res.data){
  443. // 只需加载一次
  444. if(flag==0){
  445. // 更新用户信息
  446. this.getCurrUserInfo()
  447. // 保证金查询
  448. this.getShelfBWPayRecord()
  449. // 获取订单信息
  450. this.shelfGetTotalWaitQty()
  451. // 获取价格权限配置
  452. this.getPriceCofig()
  453. }
  454. }else{
  455. // 没有数字货架,隐藏促销模块
  456. this.hidePromoTab()
  457. }
  458. this.getHasShopping()
  459. })
  460. },
  461. // 最新用户信息
  462. getCurrUserInfo(){
  463. getCurrUserInfo().then(res => {
  464. if(res.data){
  465. this.$store.state.vuex_userInfo.userNameCN = res.data.name;
  466. this.$store.state.vuex_userInfo.mobile = res.data.mobile;
  467. this.$store.state.vuex_userInfo.adminId = res.data.id;
  468. this.$store.state.vuex_userPhoto = res.data.photo;
  469. uni.setStorageSync('userPhoto', res.data.photo);
  470. }
  471. })
  472. },
  473. // 获取价格配置
  474. getPriceCofig(){
  475. const data = this.$store.state.vuex_storeShelf
  476. queryQplsConfig({shelfSn: data.shelfSn}).then(res => {
  477. this.$store.state.vuex_configPrice = res.data || null
  478. })
  479. },
  480. // 商城信息, flag: true 再次刷新,false 只加载一次
  481. getHasShopping(flag){
  482. getShopStatus().then(res => {
  483. const hasShopiing = res.data && res.data.paramValue == 1
  484. this.$store.state.vuex_showShopAuth = hasShopiing
  485. // 经销商开启商城
  486. if(hasShopiing){
  487. // 判断员工是否开启商城
  488. this.getShopUserStatus(flag)
  489. }else{
  490. this.hasShopiing = false
  491. this.$store.state.vuex_hasShopiing = this.hasShopiing
  492. // 没有商城
  493. this.showNoShopPage(flag)
  494. // 查询红包活动
  495. this.getRedPacketRule()
  496. }
  497. })
  498. },
  499. // 员工用户是否开启商城
  500. getShopUserStatus(flag){
  501. const data = this.$store.state.vuex_storeShelf
  502. if(data){
  503. getShopUserParam({shelfSn: data.shelfSn}).then(res=>{
  504. const item = res.data
  505. this.hasShopiing = item && item.paramMap && item.paramMap.mall_flag && item.paramMap.mall_flag.paramValue == 1
  506. this.$store.state.vuex_hasShopiing = this.hasShopiing
  507. if(this.hasShopiing){
  508. // 判断员工是否开启商城
  509. this.showShopPage(flag)
  510. }else{
  511. this.showNoShopPage(flag)
  512. }
  513. // 查询红包活动
  514. this.getRedPacketRule()
  515. })
  516. }else{
  517. this.showNoShopPage(flag)
  518. // 查询红包活动
  519. this.getRedPacketRule()
  520. }
  521. },
  522. // 抵扣支付权限
  523. getPayBalanceAuth(){
  524. queryBalancePaymentParam({userId:this.userInfo&&this.userInfo.userid}).then(res => {
  525. const data = res.data[0]
  526. this.$store.state.vuex_showBalanceAuth = data && data.storeParamList&&data.storeParamList[0]&&data.storeParamList[0].paramValue == 1
  527. })
  528. },
  529. // 显示开通商城的页面
  530. showShopPage(flag){
  531. // 隐藏tab 视频,显示tab购物车
  532. if(this.hasLogin && this.userInfo && this.userInfo.sysUserFlag == '1'){
  533. // 显示促销模块
  534. this.showPromoTab()
  535. this.cartCount()
  536. }else{
  537. this.$store.state.vuex_cartTotal = 0
  538. this.showCatTab()
  539. }
  540. // 获取轮播数据,包括促销活动
  541. this.getCarousel(1)
  542. // 商品分类
  543. this.getGoodType(flag)
  544. // 获取推荐产品
  545. this.getHotProductList(flag)
  546. },
  547. // 显示未没有开通商城的界面
  548. showNoShopPage(flag){
  549. this.productTypeList = []
  550. this.productList = []
  551. // 获取轮播数据,包括促销活动
  552. this.getCarousel(0)
  553. // 隐藏促销模块
  554. this.hidePromoTab()
  555. // 隐藏tab 购物车,显示tab视频
  556. this.showVideoTab()
  557. // 滚动扫描记录
  558. this.getScrollLog()
  559. // 获取扫描记录
  560. if(this.hasLogin){
  561. this.getVinLog()
  562. }
  563. },
  564. // 购物车数量
  565. cartCount(){
  566. getCartCount({}).then(res => {
  567. if(res.status == 200){
  568. this.$store.state.vuex_cartTotal = res.data?res.data.qty:0
  569. this.showCatTab()
  570. }
  571. })
  572. },
  573. // 商品一级分类
  574. getGoodType(flag){
  575. this.productTypeList = []
  576. getShopCategory({categoryLevel: 1}).then(res => {
  577. const list = res.data || []
  578. const ret = []
  579. list.forEach(item => {
  580. ret.push({
  581. id: item.id,
  582. categorySn: item.categorySn,
  583. auth: true,
  584. ignoreAuth: false,
  585. name: item.categoryName,
  586. icon: item.iconUrl,
  587. url: '/pagesB/shopiing/shopProduct?clzId='+item.categorySn+'&clzName='+item.categoryName+"&shopCategoryCount="+item.shopCategoryCount+'&shopProductCount='+item.shopProductCount,
  588. target: 'page'
  589. })
  590. })
  591. // 转成二维数组
  592. for(let i=0;i<ret.length;i=i+8){
  593. this.productTypeList.push({
  594. id: 'swiper-item-'+i,
  595. list: ret.slice(i,(i+8)>ret.length?ret.length:(i+8))
  596. })
  597. }
  598. })
  599. },
  600. // 商品列表查询
  601. getHotProductList(flag){
  602. console.log(flag)
  603. this.hotProductPageNo = 1
  604. // 不是show 刷新列表
  605. if(flag!=1){
  606. this.productList = []
  607. this.hotProductpageSize = 10
  608. }else{
  609. // 刷新列表
  610. let count = 0
  611. this.productList.forEach(item => {
  612. count += item.length
  613. })
  614. this.hotProductpageSize = count||10
  615. }
  616. this.getProductList(flag)
  617. },
  618. getProductList(flag){
  619. this.status = "loading"
  620. const dealerSn = this.hasLogin && this.userInfo && this.userInfo.sysUserFlag == '1' ? this.$store.state.vuex_storeShelf.dealerSn : ''
  621. // 获取推荐产品
  622. getShopProductList({pageNo:this.hotProductPageNo,pageSize:this.hotProductpageSize,hotFlag:1, status: 1, dealerSn: dealerSn}).then(res => {
  623. if(res.status == 200){
  624. const list = res.data ? res.data.list : []
  625. list.map(item=>{
  626. const a = item.shopPromoProduct
  627. if(a){
  628. item.promoType = a.promoType
  629. item.resultValue = a.resultValue
  630. item.conditionValue = a.conditionValue
  631. item.discountType = a.discountType
  632. item.promoProductSn = a.promoProductSn
  633. item.promoSn = a.promoSn
  634. item.orginPrice = item.price
  635. // 特价
  636. if(item.promoType=='PROMO_PROD'){
  637. item.price = item.conditionValue
  638. }
  639. }
  640. item.priceStr = Number(item.price).toFixed(2).toString().split('.')
  641. })
  642. if(flag!=1){
  643. this.productList.push(list)
  644. }else{
  645. // 刷新
  646. this.productList = [list]
  647. }
  648. this.status = res.data.count>=this.list.length ? "nomore" : 'loadmore'
  649. // 判断是否最后一页
  650. const maxPages = Math.ceil(res.data.count / 10)
  651. this.totalhotPage = maxPages
  652. this.status = this.hotProductPageNo >= maxPages ? "nomore" : 'loadmore'
  653. this.noDataText = this.status == 'nomore' ? '没有更多了' : '更多商品'
  654. }else{
  655. this.status = "nomore"
  656. this.noDataText = res.message || '没有更多了'
  657. }
  658. })
  659. },
  660. // 获取上方滚动扫描记录
  661. getScrollLog(){
  662. scanVinLogQueryRoll({pageNo:1,pageSize:50}).then(res => {
  663. this.list = res.data.list || []
  664. this.list.map(item => {
  665. item.placeText = item.userName + '刚刚扫描了一个VIN'
  666. })
  667. })
  668. },
  669. // 获取当前门店扫描记录
  670. getVinLog(){
  671. this.vinList = []
  672. this.status = "loading"
  673. // VISITOR:游客,EMPLOYEE:雇员
  674. getScanVinLogList({ pageNo:1, pageSize:5, identifyType: this.userInfo.identifyType }).then(res => {
  675. this.vinList = res.data&&res.data.list || []
  676. this.vinList = this.vinList.filter(item => item.vinCode)
  677. this.status = 'nomore'
  678. })
  679. },
  680. // tab单击
  681. beforeSwitch(index){
  682. const row = this.$store.state.vuex_tabBarList[index] // 当前tab
  683. const isNoAuth = this.userInfo ? this.userInfo.sysUserFlag == '0' : false // 是否认证门店
  684. return clickTab(row,this.hasLogin,isNoAuth,this.vuex_vinScanNums < this.vuex_scanMaxNums)
  685. },
  686. // 去搜索产品
  687. toSearch(event){
  688. if(this.hasLogin){
  689. // 游客去认证
  690. if(this.userInfo.sysUserFlag == '0'){
  691. toAuthStore()
  692. }else{
  693. uni.navigateTo({
  694. url:'/pagesB/shopiing/searchProduct?queryWord='+event.value+'&clzId='
  695. })
  696. }
  697. }else{
  698. toLogin()
  699. }
  700. },
  701. // 轮播图片
  702. getCarousel(flag){
  703. this.carouselList = []
  704. // 获取所有促销活动数据
  705. shopBannerList({promoFlag:flag}).then(res => {
  706. if(res.status == 200){
  707. res.data&&res.data.map(item => {
  708. item.image = item.imageUrl
  709. })
  710. this.carouselList = res.data
  711. }
  712. })
  713. },
  714. // 快速导航单击
  715. onNavFun(item){
  716. if(item.auth){
  717. // 非游客
  718. if(this.userInfo.sysUserFlag == '1'){
  719. // 编码取货
  720. if(item.url=='openTakeGood1'){
  721. this.openTakeGood(1)
  722. }
  723. // 扫码取货
  724. if(item.url=='openTakeGood0'){
  725. this.openTakeGood(0)
  726. }
  727. }else{
  728. // 去认证
  729. toAuthStore()
  730. }
  731. }else{
  732. toLogin()
  733. }
  734. },
  735. // 获取数据字典
  736. getListLookUp() {
  737. const _this = this;
  738. listLookUp({ pageNo: 1, pageSize: 1000 }).then(res => {
  739. if (res.status == 200) {
  740. _this.$store.state.vuex_allLookUp = res.data;
  741. }
  742. });
  743. },
  744. // 或某一项字典列表,参数code
  745. getLookUpList(code, vuexKey) {
  746. getLookUpDatas({ type: code }).then(res => {
  747. if (res.status == 200) {
  748. this.$store.state[vuexKey] = res.data || [];
  749. }
  750. });
  751. },
  752. // 获取最大扫描数
  753. getMaxQty(){
  754. getScanGetMaxQty().then(res => {
  755. this.scanMaxNums = res.data || 10
  756. this.$store.state.vuex_scanMaxNums = this.scanMaxNums
  757. })
  758. },
  759. // 获取最新申请门店
  760. findLastApply(){
  761. const mobile = this.userInfo.mobile
  762. this.$store.dispatch('getSotreAuth',mobile)
  763. },
  764. // 知道审核不通过
  765. toKnow(){
  766. uni.showLoading({
  767. title: "正在提交"
  768. })
  769. xprhStoreApplyRead({sn:this.storeApply.applySn}).then(res => {
  770. if(res.status == 200){
  771. this.findLastApply()
  772. }
  773. uni.hideLoading()
  774. })
  775. },
  776. // 待取货数量合计
  777. shelfGetTotalWaitQty(){
  778. shelfGetTotalWaitQty({billState:'WAIT'}).then(res => {
  779. if(res.status == 200){
  780. this.orderTodo = res.data;
  781. }
  782. })
  783. },
  784. // 货架订单列表
  785. toOrder(){
  786. if(this.hasShelf){
  787. uni.navigateTo({
  788. url: "/pagesA/digitalShelf/orderList"
  789. })
  790. }else{
  791. uni.showToast({
  792. icon:'none',
  793. title: '门店没有关联数字货架,无法使用此功能!'
  794. })
  795. }
  796. },
  797. // 显示购物车tab
  798. showCatTab(){
  799. const videoIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '我的')
  800. const catIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '购物车')
  801. if(catIndex<0 && videoIndex >= 0){
  802. // 替换视频为购物车
  803. this.$store.state.vuex_tabBarList.splice(videoIndex,0,{
  804. "pagePath": "/pages/cart/index",
  805. "iconPath": "/static/tab/tab_cart_normal.png",
  806. "selectedIconPath": "/static/tab/tab_cart_pressed.png",
  807. "text": "购物车",
  808. 'customIcon': false,
  809. 'count': this.$store.state.vuex_cartTotal,
  810. 'isDot': false
  811. })
  812. }
  813. // 购物车已存在
  814. if(catIndex>=0){
  815. this.$store.state.vuex_tabBarList[catIndex].count = this.$store.state.vuex_cartTotal
  816. }
  817. },
  818. // 显示视频tab,隐藏购物车
  819. showVideoTab(){
  820. const videoIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '视频')
  821. const catIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '购物车')
  822. if(videoIndex<0 && catIndex >= 0){
  823. // 替换购物车为视频
  824. // this.$store.state.vuex_tabBarList.splice(catIndex,1,{
  825. // "pagePath": "/pages/videos/index",
  826. // "iconPath": "/static/tab/tab_video_normal.png",
  827. // "selectedIconPath": "/static/tab/tab_video_pressed.png",
  828. // "text": "视频",
  829. // 'customIcon': false,
  830. // })
  831. this.$store.state.vuex_tabBarList.splice(catIndex,1)
  832. }
  833. },
  834. // 显示促销模块
  835. showPromoTab(){
  836. // 添加促销模块
  837. const promoIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '促销')
  838. if(promoIndex<0){
  839. this.$store.state.vuex_tabBarList.splice(1,0,{
  840. "pagePath": "/pages/promo/index",
  841. "iconPath": "/static/tab/tab_promo_normal.png",
  842. "selectedIconPath": "/static/tab/tab_promo_pressed.png",
  843. "text": "促销",
  844. 'customIcon': false,
  845. })
  846. }
  847. // 居中透出显示扫描按钮
  848. const scanTab = this.$store.state.vuex_tabBarList.find(item => item.text == '扫描VIN')
  849. if(scanTab){
  850. scanTab.iconPath = "/static/tab/tab_scan_mid.png"
  851. scanTab.midButton = true
  852. }
  853. },
  854. // 隐藏促销模块
  855. hidePromoTab(){
  856. // 删除促销模块
  857. const promoIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '促销')
  858. if(promoIndex > -1){
  859. this.$store.state.vuex_tabBarList.splice(promoIndex,1)
  860. }
  861. // 扫描按钮不局中
  862. const scanTab = this.$store.state.vuex_tabBarList.find(item => item.text == '扫描VIN')
  863. if(scanTab){
  864. scanTab.iconPath = "/static/tab/tab_scan_normal.png"
  865. scanTab.midButton = false
  866. }
  867. },
  868. // 查询是有红包活动
  869. getRedPacketRule(){
  870. findCurrentRewardRule().then(res => {
  871. this.$store.state.vuex_rewardRule = res.data;
  872. // 商城未开通时调用
  873. if(res.data && !this.hasShopiing){
  874. this.getRedScroll()
  875. }
  876. })
  877. },
  878. // 红包奖励信息
  879. getRedScroll(){
  880. getRewardRollList({pageNo:1,pageSize:50}).then(res => {
  881. this.slist = res.data || []
  882. this.slist.map(item => {
  883. item.placeText = item.userName + '刚刚得到了'+item.totalRewardAmount+'元 红包奖励'
  884. })
  885. })
  886. },
  887. // 获取保证金金额
  888. getShelfBWPayRecord(){
  889. const data = this.$store.state.vuex_storeShelf
  890. shelfBondRecordWaitPayRecord({shelfSn: data.shelfSn, storeSn: data.storeSn}).then(res => {
  891. console.log(res,'获取保证金金额')
  892. this.bondRecord = res.data
  893. })
  894. },
  895. // 保证金支付
  896. toPayBondAmount(){},
  897. openTakeGood(index){
  898. // 已有数字货架
  899. if(this.hasShelf){
  900. this.clickAction(index)
  901. }else{
  902. uni.showToast({
  903. icon:'none',
  904. title: '门店没有关联数字货架,无法使用此功能!'
  905. })
  906. }
  907. },
  908. // 选择取货方式
  909. clickAction(index){
  910. const shelfSn = this.hasShelf.shelfSn
  911. const _this = this
  912. // 扫描
  913. if(index == 0){
  914. uni.scanCode({
  915. success: function (ret) {
  916. const params = {
  917. codeType: ret.scanType == 'QR_CODE' ? 0 : 1
  918. }
  919. // 二维码
  920. if(ret.scanType == 'QR_CODE'){
  921. const result = ret.result.split("&")
  922. params.productSn = result[2] // 产品编码sn
  923. }else{
  924. params.qrCode = ret.result
  925. }
  926. uni.showLoading({
  927. title: "正在查询产品..."
  928. })
  929. // 确认取货
  930. getProductfindByScanCode(params).then(res => {
  931. if(res.status == 200 && res.data){
  932. if(res.data.currentInven){
  933. const billSource = ret.scanType == 'QR_CODE' ? 'qr_code': 'bar_code'
  934. const retData = Object.assign({shelfSn: shelfSn, billSource: billSource},res.data)
  935. _this.$store.state.vuex_tempData = retData
  936. uni.navigateTo({
  937. url: '/pagesA/queryByCode/confirmQh'
  938. })
  939. }else{
  940. uni.showModal({
  941. title: '提示',
  942. content: '产品库存为0,无法取货!',
  943. confirmText: '好的',
  944. showCancel: false
  945. })
  946. }
  947. }else{
  948. uni.showModal({
  949. title: '提示',
  950. content: '产品不属于此货架,请重新扫描!',
  951. confirmText: '好的',
  952. showCancel: false
  953. })
  954. }
  955. uni.hideLoading()
  956. })
  957. }
  958. });
  959. }else{
  960. // 按编码搜索
  961. uni.navigateTo({
  962. url: '/pagesA/queryByCode/queryByCode'
  963. })
  964. }
  965. },
  966. // 单击banner
  967. clickBanner(index){
  968. clickBannerList(this.imgList[index],this.hasLogin,this.userInfo&&this.userInfo.sysUserFlag == '1')
  969. },
  970. // 查看扫描VIN记录
  971. toAllRecord(){
  972. if(this.hasLogin){
  973. uni.navigateTo({
  974. url: "/pagesA/vinRecord/vinRecord"
  975. })
  976. }else{
  977. toLogin()
  978. }
  979. },
  980. // 查看用户信息
  981. toUser(){
  982. if(this.hasLogin){
  983. if(this.userInfo.sysUserFlag == '1'){
  984. // 用户详细信息
  985. uni.navigateTo({
  986. url: '/pages/personData/personData'
  987. })
  988. }else{
  989. // 或 门店认证
  990. this.authStore()
  991. }
  992. }else{
  993. toLogin()
  994. }
  995. },
  996. // 选择配件
  997. toChoosePart(item){
  998. item.text = item.modelInfo
  999. uni.navigateTo({
  1000. url: "/pagesA/digitalShelf/choosePart?vinNumber="+item.vinCode+"&carList="+encodeURIComponent(JSON.stringify(item))+'&type=log'
  1001. })
  1002. },
  1003. }
  1004. }
  1005. </script>
  1006. <style lang="less">
  1007. page{
  1008. background-color: #ffffff;
  1009. }
  1010. .bg-0{
  1011. position: relative;
  1012. > view{
  1013. z-index:1;
  1014. position: relative;
  1015. }
  1016. &::after{
  1017. /* 这个伪类的作用就是一个圆弧的背景色 */
  1018. width: 130%;
  1019. height: 30vh;
  1020. position: absolute;
  1021. /*设置水平居中*/
  1022. left: -15%;
  1023. /* 之所以left:20%,是因为width:140%,若width:160%,那么left:30%才能水平居中 */
  1024. top: 0;
  1025. /*层叠顺序,最底层显示*/
  1026. content: '';
  1027. /*分别对应 左上 右上 右下 左下 可以修改成其它颜色*/
  1028. background: linear-gradient(to bottom, #86defa, #ffffff);
  1029. }
  1030. }
  1031. .bg-1{
  1032. background-image: linear-gradient(#86defa 0%,#cdeff9 20%,#ffffff 30%);
  1033. }
  1034. .content {
  1035. margin: 0;
  1036. padding: 0;
  1037. display: flex;
  1038. flex-direction: column;
  1039. .content-body{
  1040. flex-grow: 1;
  1041. }
  1042. .header-box{
  1043. z-index: 5;
  1044. padding: 0em 1em;
  1045. background: #066cff;
  1046. .title{
  1047. padding: 0;
  1048. }
  1049. .version{
  1050. color: #FFEB3B;
  1051. font-size: 0.8em;
  1052. margin-left: 1em;
  1053. }
  1054. }
  1055. .headerFixed{
  1056. padding: 0 0.5rem;
  1057. width: 100%;
  1058. z-index: 10;
  1059. left: 0;
  1060. top:0;
  1061. position: fixed;
  1062. background: #066cff;
  1063. ::v-deep .uni-searchbar{
  1064. padding: 0;
  1065. .uni-searchbar__box{
  1066. height: 30px;
  1067. }
  1068. }
  1069. }
  1070. .cbody{
  1071. flex-grow: 1;
  1072. overflow-y: auto;
  1073. overflow-x: hidden;
  1074. .notices{
  1075. padding: 0.5em 0 0;
  1076. font-size: 0.9em;
  1077. margin-top: 0.5rem;
  1078. view{
  1079. color: #ffaf46;
  1080. flex-grow: 1;
  1081. }
  1082. .text{
  1083. color: #ffffff;
  1084. margin-left: 1em;
  1085. }
  1086. }
  1087. .pa-box{
  1088. background: #fff;
  1089. border-radius: 6px;
  1090. margin: 10px 0;
  1091. padding: 10px 0;
  1092. border: 1px solid #eee;
  1093. }
  1094. .product-box{
  1095. margin: 10px 0;
  1096. }
  1097. .ptype-nav{
  1098. position: relative;
  1099. .indicator-dots{
  1100. width: 100%;
  1101. height: 3px;
  1102. display: flex;
  1103. align-items: center;
  1104. justify-content: center;
  1105. position: absolute;
  1106. left: 0;
  1107. bottom:5px;
  1108. }
  1109. .indicator-dots > view{
  1110. width: 10px;
  1111. height: 3px;
  1112. background: #e7e7e7;
  1113. display: inline-block;
  1114. }
  1115. .indicator-dots >.indicator-dots-active{
  1116. background: #00aaff;
  1117. }
  1118. }
  1119. }
  1120. .body-box{
  1121. padding: 0em 1em 0.8em;
  1122. z-index: 4;
  1123. .banner{
  1124. margin-top: 20rpx;
  1125. }
  1126. .action-button{
  1127. padding:40upx 0 0 0;
  1128. justify-content: space-between;
  1129. > view{
  1130. display: flex;
  1131. align-items: center;
  1132. color: #fff;
  1133. border-radius: 10rpx;
  1134. width: 49%;
  1135. padding: 6rpx 0;
  1136. box-shadow: 0rem 0.3rem 0.5rem #d9dada;
  1137. }
  1138. .f1{
  1139. background: #2196f3;
  1140. }
  1141. .f2{
  1142. background: #FF9800;
  1143. }
  1144. .icons{
  1145. font-size: 50rpx;
  1146. color: #fff;
  1147. width: 80rpx;
  1148. height: 80rpx;
  1149. text-align:center;
  1150. display: flex;
  1151. align-items: center;
  1152. flex-direction: column;
  1153. justify-content: center;
  1154. }
  1155. .tits{
  1156. font-size:28rpx;
  1157. }
  1158. }
  1159. }
  1160. .body-box1{
  1161. padding: 0em 10px 0.8em;
  1162. }
  1163. .bg-blue{
  1164. position: relative;
  1165. z-index: 1;
  1166. > view{
  1167. z-index: 100;
  1168. position: relative;
  1169. }
  1170. &::after{
  1171. /* 这个伪类的作用就是一个圆弧的背景色 */
  1172. width: 130%;
  1173. height: 100%;
  1174. position: absolute;
  1175. /*设置水平居中*/
  1176. left: -15%;
  1177. /* 之所以left:20%,是因为width:140%,若width:160%,那么left:30%才能水平居中 */
  1178. top: -10%;
  1179. /*层叠顺序,最底层显示*/
  1180. content: '';
  1181. border-radius: 0 0 50% 50%;
  1182. /*分别对应 左上 右上 右下 左下 可以修改成其它颜色*/
  1183. background: linear-gradient(to bottom, #066cff, #056bf9);
  1184. }
  1185. .userCard{
  1186. position:relative;
  1187. left:0;
  1188. bottom:-0.8rem;
  1189. padding: 0.5rem;
  1190. background: #fff;
  1191. border-radius: 0.8rem;
  1192. box-shadow: 0rem 0.3rem 0.5rem #bcdede;
  1193. .userCard-info{
  1194. flex-grow:1;
  1195. > view{
  1196. &:last-child{
  1197. margin-left: 0.5em;
  1198. line-height: 1.5em;
  1199. .user-name{
  1200. font-size: 1rem;
  1201. }
  1202. >view{
  1203. padding: 0.2em;
  1204. }
  1205. }
  1206. }
  1207. .user-info{
  1208. flex-grow:1;
  1209. }
  1210. }
  1211. .user-rz{
  1212. font-size: 0.8rem;
  1213. color:#58aff5;
  1214. }
  1215. }
  1216. }
  1217. .shopping{
  1218. padding: 0;
  1219. .notices{
  1220. padding: 0.5em 10px 0;
  1221. margin-top: 0.2rem;
  1222. .text{
  1223. color: #066cff;
  1224. }
  1225. }
  1226. }
  1227. .list-box{
  1228. padding: 0 1em;
  1229. overflow: auto;
  1230. .des{
  1231. text-align: center;
  1232. padding: 1em 0;
  1233. color: #999;
  1234. font-size: 0.8em;
  1235. }
  1236. }
  1237. }
  1238. </style>