index.vue 21 KB

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