index.vue 36 KB

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