index.vue 21 KB

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