index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  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 } 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. })
  279. })
  280. })
  281. }
  282. })
  283. },
  284. pageInit(){
  285. if(this.hasLogin){
  286. // 获取扫描记录
  287. this.getVinLog()
  288. // 非游客
  289. if(this.userInfo.sysUserFlag == '1'){
  290. // 查询是否有数字货架
  291. this.getStoreShelf()
  292. }else{
  293. // 获取扫描次数
  294. this.$store.dispatch("getScanNums")
  295. // 获取最大扫描次数
  296. this.getMaxQty()
  297. // 查询门店认证信息
  298. this.findLastApply()
  299. }
  300. }else{
  301. uni.removeStorageSync('token')
  302. }
  303. },
  304. // 获取数据字典
  305. getListLookUp() {
  306. const _this = this;
  307. listLookUp({ pageNo: 1, pageSize: 1000 }).then(res => {
  308. if (res.status == 200) {
  309. _this.$store.state.vuex_allLookUp = res.data;
  310. }
  311. });
  312. },
  313. // 或某一项字典列表,参数code
  314. getLookUpList(code, vuexKey) {
  315. getLookUpDatas({ type: code }).then(res => {
  316. if (res.status == 200) {
  317. this.$store.state[vuexKey] = res.data || [];
  318. }
  319. });
  320. },
  321. // 最新用户信息
  322. getCurrUserInfo(){
  323. getCurrUserInfo().then(res => {
  324. if(res.data){
  325. this.$store.state.vuex_userInfo.userNameCN = res.data.name;
  326. this.$store.state.vuex_userInfo.mobile = res.data.mobile;
  327. this.$store.state.vuex_userInfo.adminId = res.data.id;
  328. this.$store.state.vuex_userPhoto = res.data.photo;
  329. uni.setStorageSync('userPhoto', res.data.photo);
  330. }
  331. })
  332. },
  333. // 获取最大扫描数
  334. getMaxQty(){
  335. getScanGetMaxQty().then(res => {
  336. this.scanMaxNums = res.data || 10
  337. this.$store.state.vuex_scanMaxNums = this.scanMaxNums
  338. })
  339. },
  340. // 获取最新申请门店
  341. findLastApply(){
  342. const mobile = this.userInfo.mobile
  343. this.$store.dispatch('getSotreAuth',mobile)
  344. },
  345. // 知道审核不通过
  346. toKnow(){
  347. uni.showLoading({
  348. title: "正在提交"
  349. })
  350. xprhStoreApplyRead({sn:this.storeApply.applySn}).then(res => {
  351. if(res.status == 200){
  352. this.findLastApply()
  353. }
  354. uni.hideLoading()
  355. })
  356. },
  357. // 待取货数量合计
  358. shelfGetTotalWaitQty(){
  359. shelfGetTotalWaitQty({billState:'WAIT'}).then(res => {
  360. if(res.status == 200){
  361. this.orderTodo = res.data;
  362. }
  363. })
  364. },
  365. // 货架订单列表
  366. toOrder(){
  367. if(this.hasShelf){
  368. uni.navigateTo({
  369. url: "/pagesA/digitalShelf/orderList"
  370. })
  371. }else{
  372. uni.showToast({
  373. icon:'none',
  374. title: '门店没有关联数字货架,无法使用此功能!'
  375. })
  376. }
  377. },
  378. // 获取上方滚动扫描记录
  379. getScrollLog(){
  380. scanVinLogQueryRoll({pageNo:1,pageSize:50}).then(res => {
  381. console.log(res)
  382. this.list = res.data.list || []
  383. this.list.map(item => {
  384. item.placeText = item.userName + '刚刚扫描了一个VIN'
  385. })
  386. })
  387. },
  388. // 获取当前门店扫描记录
  389. getVinLog(){
  390. this.vinList = []
  391. this.status = "loading"
  392. // VISITOR:游客,EMPLOYEE:雇员
  393. getScanVinLogList({ pageNo:1, pageSize:5, identifyType: this.userInfo.identifyType }).then(res => {
  394. this.vinList = res.data&&res.data.list || []
  395. this.vinList = this.vinList.filter(item => item.vinCode)
  396. this.status = 'nomore'
  397. })
  398. },
  399. // 查询是否支持数字货架
  400. getStoreShelf(){
  401. findStoreShelf().then(res => {
  402. console.log(res)
  403. this.$store.state.vuex_storeShelf = res.data;
  404. if(res.data){
  405. // 保证金查询
  406. this.getShelfBWPayRecord()
  407. // 获取订单信息
  408. this.shelfGetTotalWaitQty()
  409. // 获取轮播数据
  410. this.getCarousel()
  411. }
  412. })
  413. },
  414. // 查询是有红包活动
  415. getRedPacketRule(){
  416. findCurrentRewardRule().then(res => {
  417. this.$store.state.vuex_rewardRule = res.data;
  418. this.getRedScroll()
  419. })
  420. },
  421. getRedScroll(){
  422. getRewardRollList({pageNo:1,pageSize:50}).then(res => {
  423. this.slist = res.data || []
  424. this.slist.map(item => {
  425. item.placeText = item.userName + '刚刚得到了'+item.totalRewardAmount+'元 红包奖励'
  426. })
  427. })
  428. },
  429. // 获取保证金金额
  430. getShelfBWPayRecord(){
  431. const data = this.$store.state.vuex_storeShelf
  432. shelfBondRecordWaitPayRecord({shelfSn: data.shelfSn, storeSn: data.storeSn}).then(res => {
  433. console.log(res,'获取保证金金额')
  434. this.bondRecord = res.data
  435. })
  436. },
  437. // 保证金支付
  438. toPayBondAmount(){},
  439. openTakeGood(index){
  440. // 已有数字货架
  441. if(this.hasShelf){
  442. // this.showAction = true
  443. this.clickAction(index)
  444. }else{
  445. uni.showToast({
  446. icon:'none',
  447. title: '门店没有关联数字货架,无法使用此功能!'
  448. })
  449. }
  450. },
  451. // 单击banner
  452. clickBanner(index){
  453. const row = this.imgList[index]
  454. if(row.activeType == 'redPacket'){
  455. uni.navigateTo({url:"/pages/morePage/redPacket"})
  456. }
  457. // 图文
  458. if(row.contentType == 'IMAGE_CONTENT'){
  459. uni.navigateTo({url:"/pagesA/activeDetail/index?sn="+row.promoActiveSn})
  460. }
  461. // 视频
  462. if(row.activeType == 'VIDEO'){
  463. uni.navigateTo({url:"/pages/videos/detail?sn="+row.promoActiveSn})
  464. }
  465. // 链接
  466. if(row.activeType == 'LINK'){
  467. openWebView({url:item.content})
  468. }
  469. },
  470. // 选择取货方式
  471. clickAction(index){
  472. const shelfSn = this.hasShelf.shelfSn
  473. const _this = this
  474. // 扫描
  475. if(index == 0){
  476. uni.scanCode({
  477. success: function (ret) {
  478. console.log(ret);
  479. const params = {
  480. codeType: ret.scanType == 'QR_CODE' ? 0 : 1
  481. }
  482. // 二维码
  483. if(ret.scanType == 'QR_CODE'){
  484. const result = ret.result.split("&")
  485. params.productSn = result[2] // 产品编码sn
  486. }else{
  487. params.qrCode = ret.result
  488. }
  489. uni.showLoading({
  490. title: "正在查询产品..."
  491. })
  492. // 确认取货
  493. getProductfindByScanCode(params).then(res => {
  494. if(res.status == 200 && res.data){
  495. if(res.data.currentInven){
  496. const billSource = ret.scanType == 'QR_CODE' ? 'qr_code': 'bar_code'
  497. const params = Object.assign({shelfSn: shelfSn, billSource: billSource},res.data)
  498. _this.$store.state.vuex_tempData = params
  499. uni.navigateTo({
  500. url: '/pagesA/queryByCode/confirmQh'
  501. })
  502. }else{
  503. uni.showModal({
  504. title: '提示',
  505. content: '产品库存为0,无法取货!',
  506. confirmText: '好的',
  507. showCancel: false
  508. })
  509. }
  510. }else{
  511. uni.showModal({
  512. title: '提示',
  513. content: '产品不属于此货架,请重新扫描!',
  514. confirmText: '好的',
  515. showCancel: false
  516. })
  517. }
  518. uni.hideLoading()
  519. })
  520. }
  521. });
  522. }else{
  523. // 按编码搜索
  524. uni.navigateTo({
  525. url: '/pagesA/queryByCode/queryByCode'
  526. })
  527. }
  528. },
  529. // 去扫描
  530. openCamera(){
  531. if(this.hasLogin){
  532. if(this.userInfo.sysUserFlag == '0'){
  533. if(this.vuex_vinScanNums < this.scanMaxNums){
  534. uni.navigateTo({
  535. url: "/pages/scan-frame/scan-frame"
  536. })
  537. }else{
  538. uni.showModal({
  539. title: '提示',
  540. content: '个人用户扫描VIN仅限10次,您的次数已用完!',
  541. confirmText: '好的',
  542. showCancel: false,
  543. success(res) {}
  544. })
  545. }
  546. }else{
  547. uni.navigateTo({
  548. url: "/pages/scan-frame/scan-frame"
  549. })
  550. }
  551. }else{
  552. uni.navigateTo({
  553. url: '/pages/login/login'
  554. })
  555. }
  556. },
  557. // 查看扫描记录
  558. toAllRecord(){
  559. uni.navigateTo({
  560. url: this.hasLogin ? "/pages/vinRecord/vinRecord" : '/pages/login/login'
  561. })
  562. },
  563. toUser(){
  564. if(this.hasLogin){
  565. // 用户详细信息 或 门店认证
  566. uni.navigateTo({
  567. url: this.userInfo.sysUserFlag == '1' ? '/pages/personData/personData' : '/pages/storeManage/storeAuth'
  568. })
  569. }else{
  570. uni.navigateTo({
  571. url: '/pages/login/login'
  572. })
  573. }
  574. },
  575. toChoosePart(item){
  576. item.text = item.modelInfo
  577. uni.navigateTo({
  578. url: "/pagesA/digitalShelf/choosePart?vinNumber="+item.vinCode+"&carList="+encodeURIComponent(JSON.stringify(item))+'&type=log'
  579. })
  580. }
  581. }
  582. }
  583. </script>
  584. <style lang="less">
  585. page{
  586. background-color: #ffffff;
  587. }
  588. .content {
  589. margin: 0;
  590. padding: 0;
  591. height: 100vh;
  592. display: flex;
  593. flex-direction: column;
  594. background-image: linear-gradient(#86defa 0%,#cdeff9 25%,#ffffff 40%);
  595. .header-box{
  596. z-index: 5;
  597. padding: 0em 1em;
  598. background: #066cff;
  599. .title{
  600. padding: 0;
  601. }
  602. }
  603. .cbody{
  604. flex-grow: 1;
  605. overflow-y: auto;
  606. overflow-x: hidden;
  607. }
  608. .body-box{
  609. padding: 0em 1em 0.8em;
  610. z-index: 4;
  611. .notices{
  612. padding: 0.5em 0 0;
  613. font-size: 0.9em;
  614. margin-top: 0.5rem;
  615. view{
  616. color: #ffaf46;
  617. max-width: 80%;
  618. }
  619. .text{
  620. color: #ffffff;
  621. margin-left: 1em;
  622. }
  623. }
  624. .action-button{
  625. padding:40upx 0 0 0;
  626. justify-content: space-between;
  627. > view{
  628. display: flex;
  629. align-items: center;
  630. color: #fff;
  631. border-radius: 10rpx;
  632. width: 49%;
  633. }
  634. .f1{
  635. background: #ff9800;
  636. }
  637. .f2{
  638. background: #2196f3;
  639. }
  640. .icons{
  641. font-size: 50rpx;
  642. color: #fff;
  643. width: 80rpx;
  644. height: 80rpx;
  645. text-align:center;
  646. display: flex;
  647. align-items: center;
  648. flex-direction: column;
  649. justify-content: center;
  650. }
  651. .tits{
  652. font-size:28rpx;
  653. }
  654. }
  655. .scanButton{
  656. margin: 0.8em 0 0.5em;
  657. padding: 0.5em;
  658. background: #066cff;
  659. color: #fff;
  660. font-size: 1.5em;
  661. border-radius: 5em;
  662. justify-content: center;
  663. &:active{
  664. opacity: 0.8;
  665. }
  666. }
  667. .quickButton{
  668. margin: 0.8em 0 0.5em;
  669. padding: 0.5em;
  670. background: #fff;
  671. color: #333;
  672. font-size: 1.5em;
  673. border-radius: 5em;
  674. justify-content: center;
  675. border:0.1rpx solid #eee;
  676. box-shadow: 1rpx 2rpx 5rpx #f8f8f8;
  677. &:active{
  678. opacity: 0.8;
  679. }
  680. }
  681. .ml10{
  682. margin-left: 0.4em;
  683. }
  684. }
  685. .bg-blue{
  686. position: relative;
  687. > view{
  688. z-index: 100;
  689. position: relative;
  690. }
  691. &::after{
  692. /* 这个伪类的作用就是一个圆弧的背景色 */
  693. width: 130%;
  694. height: 100%;
  695. position: absolute;
  696. /*设置水平居中*/
  697. left: -15%;
  698. /* 之所以left:20%,是因为width:140%,若width:160%,那么left:30%才能水平居中 */
  699. top: -20%;
  700. /*层叠顺序,最底层显示*/
  701. content: '';
  702. border-radius: 0 0 50% 50%;
  703. /*分别对应 左上 右上 右下 左下 可以修改成其它颜色*/
  704. background: linear-gradient(to bottom, #066cff, #1d77ff);
  705. }
  706. .userCard{
  707. position:relative;
  708. left:0;
  709. bottom:-1rem;
  710. padding:0.8em;
  711. background: #fff;
  712. border-radius: 0.5em;
  713. box-shadow: 0.3em 0.3em 1em #c4e5ee;
  714. .userCard-info{
  715. flex-grow:1;
  716. > view{
  717. &:last-child{
  718. margin-left: 0.5em;
  719. line-height: 1.5em;
  720. .user-name{
  721. font-size: 1rem;
  722. }
  723. >view{
  724. padding: 0.2em;
  725. }
  726. }
  727. }
  728. .user-info{
  729. flex-grow:1;
  730. }
  731. }
  732. .user-rz{
  733. font-size: 0.8rem;
  734. color:#58aff5;
  735. }
  736. }
  737. }
  738. .list-box{
  739. padding: 0 1em;
  740. overflow: auto;
  741. .des{
  742. text-align: center;
  743. padding: 1em 0;
  744. color: #999;
  745. font-size: 0.8em;
  746. }
  747. }
  748. }
  749. </style>