order.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
  1. <template>
  2. <view class="index-home flex-common-css">
  3. <!-- 1 -->
  4. <view class="box-1 align-items-start">
  5. <image src="@/static/img/jiankong.png" mode=""></image>
  6. <view class="fs-32 fc-3 fw-b">你已进入监控区域</view>
  7. <view class="box-1-time">
  8. <Countdown ref="countdown"></Countdown>
  9. </view>
  10. </view>
  11. <!-- 2 -->
  12. <view v-if="goodsList.length == 0" class="scroll-view-css">
  13. <image class="no-img" src="@/static/img/no-goods.png" mode="scaleToFill"></image>
  14. <view class="fs-30 fc-6 text-align-center">请扫码添加商品</view>
  15. </view>
  16. <scroll-view v-else scroll-y="true" class="scroll-view-css list-box">
  17. <view class="goods-box flex-justify-space" v-for="(item,i) in goodsList" :key="i">
  18. <image :src="item.cover_img" mode="scaleToFill"></image>
  19. <view class="flex-1">
  20. <view class="flex-justify-space">
  21. <view class="text-1 text-overflow-ellipsis-one">{{item.goods_name}}</view>
  22. <uni-icons @click="delGoods(i)" type="trash" size="20"></uni-icons>
  23. </view>
  24. <view class="flex-justify-space">
  25. <view class="fs-24 fc-ED301D">¥{{item.price}}</view>
  26. <view class="align-items-center">
  27. <view class="num-buttom" v-if="item.num > 1" @click="reduce(i)">-</view>
  28. <view class="num-box">{{item.num}}</view>
  29. <view class="num-buttom" @click="add(i)">+</view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </scroll-view>
  35. <view class="box-2-b align-items-center">
  36. <view class="box-2-shou flex-justify-center align-items-center" @click="headInput()">
  37. <image src="@/static/img/txm.png" mode=""></image>
  38. <view class="fs-30 fc-3 fw-400">手输条码</view>
  39. </view>
  40. <view v-if="shop_id == 299" class="box-2-shou flex-justify-center align-items-center" @click="openMenber()">
  41. <image src="@/static/img/huiyuan.png" mode=""></image>
  42. <view v-if="!member_id" class="fs-30 fc-3 fw-400">会员登录</view>
  43. <view v-else class="fs-30 fc-3 fw-400">更换会员</view>
  44. </view>
  45. <view v-if="member_id" class="flex-justify-center align-items-center">
  46. <view class="fs-24 fc-074B86 fw-400">会员ID {{member_id}}</view>
  47. </view>
  48. </view>
  49. <!-- 3 -->
  50. <view class="box-2">
  51. <view class="flex-justify-space">
  52. <view class="">
  53. <view class="fs-30 fc-3">
  54. 共{{totalNum}}件
  55. <span v-if="discount&&discount>0">,已优惠</span>
  56. <span class="fs-30 fc-ED301D fw-600 mr-10"
  57. v-if="discount&&discount>0">¥{{(totalPrice - (totalPrice*discount)).toFixed(2)}}</span>
  58. <span class="fs-30 fc-ED301D fw-600" v-if="discount&&discount>0">{{discount*10||'0'}}折</span>
  59. </view>
  60. <view class="">
  61. <span class="fs-30 fc-3">合计</span>
  62. <span class="fs-30 fc-ED301D">¥</span>
  63. <span class="fs-40 fc-ED301D fw-600"
  64. v-if="discount&&discount>0">{{(totalPrice*discount).toFixed(2)}}</span>
  65. <span class="fs-40 fc-ED301D fw-600" v-else>{{totalPrice}}</span>
  66. </view>
  67. </view>
  68. <view class="to-save text-align-center fs-32 fc-f" @click="save()">去结算</view>
  69. </view>
  70. </view>
  71. <keyboard-listener v-if="outscan" @keyup="monitorKeyboard"></keyboard-listener>
  72. <!-- 支付类型 -->
  73. <uni-popup ref="popup" :mask-click="false">
  74. <view class="">
  75. <view class="pop-view mb-25">
  76. <view class="fs-32 fw-600 pop-1 pop-view-1">请选择支付类型</view>
  77. <view class="pop-2">
  78. <view class="fs-32 pop-1 pop-view-1 fc-lv" @click="selectTyep(1)">微信</view>
  79. <view class="fs-32 pop-1 fc-lan" @click="selectTyep(2)">支付宝</view>
  80. </view>
  81. </view>
  82. <view class="code-view-1" @click="closePay()">取消支付</view>
  83. </view>
  84. </uni-popup>
  85. <!-- 付款码 -->
  86. <uni-popup ref="popupCode" :mask-click="false">
  87. <view class="">
  88. <view class="code-view">
  89. <view class="fs-42 fw-b fc-lan text-align-center">请出示{{payType == 1?'微信':'支付宝'}}付款码</view>
  90. <view class="text-align-center">
  91. <span class="fs-30 fc-9">应付</span>
  92. <span class="fs-42 fc-ED301D fw-b">¥{{totalPrice}}</span>
  93. </view>
  94. <image src="@/static/img/code-1.png" mode="scaleToFill"></image>
  95. <view class="fs-30 fc-6 text-align-center">对准下方扫描口</view>
  96. </view>
  97. <view class="code-view-1" @click="closePay()">取消支付</view>
  98. </view>
  99. </uni-popup>
  100. <!-- 手动输入条形码 -->
  101. <uni-popup ref="inputDialog" type="dialog">
  102. <uni-popup-dialog v-model="headValue" mode="input" title="输入条码" placeholder="请输入条码"
  103. @confirm="dialogInputConfirm"></uni-popup-dialog>
  104. </uni-popup>
  105. <!-- 选择会员登录方式 -->
  106. <uni-popup ref="memberType" type="center" :mask-click="false">
  107. <view class="member-type-box">
  108. <view class="member-type-box-title mb-40">
  109. <view class="fs-32 fw-b text-align-center">选择会员登录方式</view>
  110. <image @click="closeMemberTypePop()" src="@/static/member/close.png" mode=""></image>
  111. </view>
  112. <view class="flex-justify-around member-type-box-icon">
  113. <view class="" @click="openPhone()">
  114. <image src="@/static/img/phone-login.png" mode=""></image>
  115. <view class="">手机号登录</view>
  116. </view>
  117. <view class="" @click="openPOP()">
  118. <image src="@/static/img/code-login.png" mode=""></image>
  119. <view class="">扫码登录</view>
  120. </view>
  121. </view>
  122. </view>
  123. </uni-popup>
  124. <!-- 会员输入手机号 -->
  125. <uni-popup ref="inputPhone" type="bottom" :mask-click="false">
  126. <view class="flex-common-css member-pop-view">
  127. <view class="member-pop-phone-1 flex-1"></view>
  128. <view class="member-pop-phone-2">
  129. <view class="member-type-box-title mb-40">
  130. <view class="fs-32 fw-b text-align-center">手机号登录会员</view>
  131. <image @click="closePhone()" src="@/static/member/fanhui.png" mode=""></image>
  132. </view>
  133. <view class="member-phone-input mb-25" :class="phone?'fc-3':'fc-9'">
  134. {{phone||'请输入手机号'}}
  135. <image @click="closeALL()" src="@/static/member/close.png" mode=""></image>
  136. </view>
  137. <view class="flex-wrap-wrap flex-justify-space">
  138. <view class="phone-num-box text-align-center fw-600 fs-30" @click="inputPhoneNum(item)" v-for="(item,i) in numList" :key="i">{{item}}</view>
  139. <view class="phone-num-box text-align-center fw-600 fs-30 fc-f bgc-lv" @click="memberPhoneLogin()">登录</view>
  140. <view class="phone-num-box text-align-center fw-600 fs-30" @click="inputPhoneNum(0)">0</view>
  141. <view class="phone-num-box text-align-center fw-600 fs-42 bgc-hui fc-ED301D" @click="delPhoneNum()">←</view>
  142. </view>
  143. </view>
  144. </view>
  145. </uni-popup>
  146. <!-- 会员扫码 -->
  147. <uni-popup ref="inputMember" type="bottom" :mask-click="false">
  148. <view class="flex-common-css member-pop-view">
  149. <view class="member-pop-view-1"></view>
  150. <view class="member-pop-view-2 flex-1">
  151. <view class="flex-justify-space align-items-center mb-40">
  152. <image class="img-11" src="@/static/member/shuom.png" mode=""></image>
  153. <image @click="closePOP()" class="img-close" src="@/static/member/close.png" mode=""></image>
  154. </view>
  155. <view class="mb-40">
  156. <view class="align-items-center mb-13">
  157. <view class="yuan">1</view>
  158. <view class="align-items-center">
  159. <view class="fs-30">微信搜索</view>
  160. <view class="fs-30 fc-1778FD">振合网实体联盟</view>
  161. <view class="fs-30">公众号,点击</view>
  162. <view class="fs-30 fc-1778FD">民营经济</view>
  163. </view>
  164. </view>
  165. <view class="bg-1 flex-justify-center align-items-center">
  166. <image class="img-12" src="@/static/member/1.png" mode=""></image>
  167. <image class="img-13" src="@/static/member/right.png" mode=""></image>
  168. <image class="img-12" src="@/static/member/2.png" mode=""></image>
  169. </view>
  170. </view>
  171. <view class="mb-40">
  172. <view class="align-items-center mb-13">
  173. <view class="yuan">2</view>
  174. <view class="align-items-center">
  175. <view class="fs-30">找到个人中心点击</view>
  176. <view class="fs-30 fc-1778FD">分享码</view>
  177. </view>
  178. </view>
  179. <view class="bg-1 flex-justify-center align-items-center">
  180. <image class="img-12" src="@/static/member/3.png" mode=""></image>
  181. <image class="img-13" src="@/static/member/right.png" mode=""></image>
  182. <image class="img-12" src="@/static/member/4.png" mode=""></image>
  183. </view>
  184. </view>
  185. <view class="">
  186. <view class="align-items-center mb-13">
  187. <view class="yuan">3</view>
  188. <view class="align-items-center">
  189. <view class="fs-30">二维码对准扫描口,</view>
  190. <view class="fs-30 fc-1778FD">识别完成,显示会员IP</view>
  191. </view>
  192. </view>
  193. <view class="bg-1 flex-justify-center align-items-center">
  194. <image class="img-12" src="@/static/member/5.png" mode=""></image>
  195. <image class="img-13" src="@/static/member/right.png" mode=""></image>
  196. <image class="img-12" src="@/static/member/6.png" mode=""></image>
  197. </view>
  198. </view>
  199. </view>
  200. </view>
  201. </uni-popup>
  202. </view>
  203. </template>
  204. <script>
  205. import {
  206. projectDiscount
  207. } from '@/api/project.js';
  208. import keyboardListener from 'uniapp-keyboard-listener';
  209. import {
  210. GoodsInfo,
  211. OrderCreate,
  212. OrderPay
  213. } from '@/api/cashierApi.js'
  214. import tools from '@/common/js/tools';
  215. import Countdown from '../mod/countdown.vue'
  216. export default {
  217. components: {
  218. keyboardListener,
  219. Countdown
  220. },
  221. data() {
  222. return {
  223. isMemeber: false,//是否打开会员扫描
  224. discount: 0, //折扣
  225. member_id: '', //会员id
  226. invite_code: '', //推荐码
  227. totalNum: 0, //总数量
  228. totalPrice: 0, //总金额
  229. payType: '', //1微信 2支护宝
  230. goodsList: [], //商品列表
  231. outscan: false,//是否加载扫码组件
  232. keyArr: [],
  233. nvalue: '',
  234. auth_code: '', //付款码
  235. order_id: '',
  236. payFLag: true, //支付还是添加商品 true 添加商品 false 结算扫码
  237. isAJAX: false,
  238. headValue: '', //手动输入的值
  239. shop_id: '',
  240. phone:'',
  241. numList:[1,2,3,4,5,6,7,8,9],
  242. };
  243. },
  244. onLoad() {
  245. this.outscan = true
  246. },
  247. beforeDestroy() {
  248. this.outscan = false
  249. },
  250. deactivated() {
  251. this.outscan = false
  252. },
  253. onShow() {
  254. this.shop_id = uni.getStorageSync('shop_id')
  255. },
  256. methods: {
  257. monitorKeyboard(e) {
  258. if (e.key.length == 1) { // 字母和数字的长度都是1,所以只要字母和数字的按键,适配不同的设备
  259. this.keyArr.push(e.key)
  260. } else if (e.key == 'Enter') { // 监听到回车
  261. let newArr = [];
  262. this.nvalue = '';
  263. // 条码中可能会有大写字母和未定义的按键,所以要过滤出来
  264. newArr = this.keyArr.filter(item => item != 'Shift' && item != 'Enter' && item != 'Unidentified')
  265. if (this.isMemeber) {
  266. if (this.isAJAX) {
  267. return
  268. }
  269. this.isAJAX = true;
  270. let href = newArr.join("")
  271. let index = href.indexOf('membercode=') + 11
  272. this.invite_code = href.substring(index, index + 8)
  273. projectDiscount({
  274. invite_code: this.invite_code
  275. }).then((res) => {
  276. if (res.code == 1) {
  277. this.isAJAX = false;
  278. this.member_id = res.data.member_id;
  279. this.discount = res.data.discount * 1 / 10;
  280. this.isMemeber = false;
  281. this.$refs.inputMember.close();
  282. } else {
  283. this.isAJAX = false;
  284. tools.error(res.msg)
  285. }
  286. })
  287. } else {
  288. if (this.payFLag) {
  289. // 添加商品
  290. if (this.isAJAX) {
  291. return
  292. }
  293. this.isAJAX = true;
  294. this.nvalue = newArr.join("")
  295. this.getGoods();
  296. } else {
  297. // 支付扫码
  298. if (this.isAJAX) {
  299. return
  300. }
  301. this.isAJAX = true;
  302. this.auth_code = newArr.join("")
  303. OrderPay({
  304. order_id: this.order_id,
  305. pay_type: this.payType,
  306. auth_code: this.auth_code
  307. }).then((res) => {
  308. if (res.code == 1) {
  309. this.payFLag = true;
  310. this.isAJAX = false;
  311. uni.redirectTo({
  312. url: '/pages/index/success?money=' + this.totalPrice +
  313. "&discount=" + this.discount + '&invite_code=' + this
  314. .invite_code
  315. })
  316. } else {
  317. this.isAJAX = false;
  318. tools.error(res.msg)
  319. }
  320. })
  321. }
  322. }
  323. this.keyArr = [];
  324. }
  325. },
  326. // 获取商品
  327. getGoods() {
  328. GoodsInfo({
  329. goods_sn: this.nvalue
  330. }).then((res) => {
  331. if (res.code == 1) {
  332. this.isAJAX = false;
  333. if (this.goodsList.length == 0) {
  334. let obj = res.data;
  335. obj.num = 1;
  336. this.goodsList.push(obj)
  337. this.totalNum = 1;
  338. this.totalPrice = res.data.price;
  339. } else {
  340. let obj = res.data;
  341. let flag = true;
  342. this.goodsList.forEach((v, i) => {
  343. if (v.id == obj.id) {
  344. v.num += 1;
  345. this.totalNum += 1;
  346. this.totalPrice = (this.totalPrice * 1 + v.price * 1).toFixed(2);
  347. flag = false;
  348. }
  349. })
  350. if (flag) {
  351. obj.num = 1;
  352. this.goodsList.push(obj)
  353. this.totalNum += 1;
  354. this.totalPrice = (this.totalPrice * 1 + res.data.price * 1).toFixed(2);
  355. }
  356. }
  357. this.headValue = '';
  358. } else {
  359. this.isAJAX = false;
  360. this.headValue = '';
  361. tools.error(res.msg)
  362. }
  363. })
  364. },
  365. // 删除商品
  366. delGoods(i) {
  367. this.totalNum = this.totalNum - this.goodsList[i].num;
  368. this.totalPrice = (this.totalPrice * 1 - (this.goodsList[i].price * this.goodsList[i].num)).toFixed(2);
  369. this.goodsList.splice(i, 1)
  370. },
  371. // 减少
  372. reduce(i) {
  373. this.goodsList[i].num -= 1
  374. this.totalNum -= 1;
  375. this.totalPrice = (this.totalPrice * 1 - (this.goodsList[i].price * 1)).toFixed(2);
  376. },
  377. // 添加
  378. add(i) {
  379. this.goodsList[i].num += 1
  380. this.totalNum += 1;
  381. this.totalPrice = (this.totalPrice * 1 + this.goodsList[i].price * 1).toFixed(2);
  382. },
  383. // 支付
  384. save() {
  385. if (this.goodsList.length > 0) {
  386. this.payFLag = false;
  387. this.$refs.popup.open('center')
  388. } else {
  389. this.payFLag = true;
  390. tools.error('请添加商品')
  391. }
  392. },
  393. // 选择支付类型
  394. selectTyep(type) {
  395. this.payType = type;
  396. if (this.isAJAX) {
  397. return
  398. }
  399. this.isAJAX = true;
  400. OrderCreate({
  401. goods: this.goodsList,
  402. discount: this.discount
  403. }).then((res) => {
  404. if (res.code == 1) {
  405. this.isAJAX = false;
  406. this.order_id = res.data.order_id;
  407. this.$refs.popup.close();
  408. this.$refs.countdown.timeFun();
  409. // 扫码弹窗
  410. this.$refs.popupCode.open('center')
  411. } else {
  412. tools.error(res.msg)
  413. this.isAJAX = false;
  414. this.payFLag = true;
  415. this.order_id = '';
  416. this.payType = '';
  417. this.$refs.popup.close();
  418. }
  419. })
  420. },
  421. // 取消支付
  422. closePay() {
  423. this.payFLag = true;
  424. this.order_id = '';
  425. this.payType = '';
  426. this.$refs.popup.close();
  427. this.$refs.popupCode.close();
  428. },
  429. // 手动输入
  430. headInput() {
  431. this.$refs.inputDialog.open();
  432. },
  433. // 手动输入获取商品
  434. dialogInputConfirm() {
  435. this.nvalue = this.headValue;
  436. this.getGoods();
  437. },
  438. // 选择会员登录方式
  439. openMenber() {
  440. this.$refs.memberType.open();
  441. },
  442. closeMemberTypePop(){
  443. this.$refs.memberType.close();
  444. },
  445. // 扫码登录会员
  446. openPOP(){
  447. this.isMemeber = true;
  448. this.$refs.memberType.close();
  449. this.$refs.inputMember.open();
  450. },
  451. closePOP() {
  452. this.isMemeber = false;
  453. this.$refs.inputMember.close();
  454. },
  455. // 手机号登录会员
  456. openPhone(){
  457. this.$refs.memberType.close();
  458. this.$refs.inputPhone.open();
  459. },
  460. closePhone(){
  461. this.$refs.inputPhone.close();
  462. },
  463. closeALL(){
  464. this.phone = '';
  465. },
  466. inputPhoneNum(num){
  467. this.phone = this.phone + num + ''
  468. },
  469. delPhoneNum(){
  470. if(this.phone.length > 0){
  471. this.phone = this.phone.slice(0,-1)
  472. }
  473. },
  474. memberPhoneLogin(){
  475. if (this.isAJAX) {
  476. return
  477. }
  478. this.isAJAX = true;
  479. projectDiscount({
  480. phone: this.phone
  481. }).then((res) => {
  482. this.isAJAX = false;
  483. if (res.code == 1) {
  484. this.phone = '';
  485. this.member_id = res.data.member_id;
  486. this.discount = res.data.discount * 1 / 10;
  487. this.$refs.inputPhone.close();
  488. } else {
  489. tools.error(res.msg)
  490. }
  491. })
  492. },
  493. },
  494. };
  495. </script>
  496. <style scoped lang="scss">
  497. .member-phone-input{
  498. width: 100%;
  499. height: 92rpx;
  500. background: #F4F4F4;
  501. border-radius: 25rpx;
  502. border: 2rpx solid #333333;
  503. line-height: 92rpx;
  504. box-sizing: border-box;
  505. padding: 0 100rpx 0 30rpx;
  506. position: relative;
  507. image{
  508. width: 40rpx;
  509. height: 40rpx;
  510. position: absolute;
  511. right: 20rpx;
  512. top: 25rpx;
  513. }
  514. }
  515. .phone-num-box{
  516. width: 32%;
  517. height: 100rpx;
  518. line-height: 100rpx;
  519. border: 1rpx solid #ccc;
  520. margin-bottom: 10rpx;
  521. border-radius: 20rpx;
  522. }
  523. .member-type-box-title{
  524. position: relative;
  525. image{
  526. position: absolute;
  527. top: 0;
  528. right: 0;
  529. width: 50rpx;
  530. height: 50rpx;
  531. }
  532. }
  533. .member-type-box{
  534. width: 600rpx;
  535. height: 300rpx;
  536. background-color: #fff;
  537. border-radius: 20rpx;
  538. box-sizing: border-box;
  539. padding: 24rpx;
  540. .member-type-box-icon{
  541. image{
  542. width: 100rpx;
  543. height: 100rpx;
  544. margin: 0 auto;
  545. }
  546. }
  547. }
  548. .member-pop-view {
  549. width: 100%;
  550. height: 100vh;
  551. background: #939394;
  552. .member-pop-phone-1{
  553. width: 100%;
  554. }
  555. .member-pop-phone-2{
  556. width: 100%;
  557. min-height: 600rpx;
  558. background-color: #fff;
  559. box-sizing: border-box;
  560. padding: 38rpx;
  561. border-radius: 20rpx 20rpx 0 0;
  562. }
  563. .member-pop-view-1 {
  564. width: 100%;
  565. height: 187rpx;
  566. }
  567. .member-pop-view-2 {
  568. background-color: #fff;
  569. box-sizing: border-box;
  570. padding: 38rpx;
  571. border-radius: 20rpx;
  572. .img-11 {
  573. width: 258rpx;
  574. height: 50rpx;
  575. }
  576. .img-close {
  577. width: 58rpx;
  578. height: 58rpx;
  579. }
  580. .yuan {
  581. width: 41rpx;
  582. height: 41rpx;
  583. border-radius: 50%;
  584. background: #1778FD;
  585. margin-right: 17rpx;
  586. text-align: center;
  587. line-height: 41rpx;
  588. font-size: 24rpx;
  589. font-weight: bold;
  590. color: #fff;
  591. }
  592. .bg-1 {
  593. width: 100%;
  594. height: 221rpx;
  595. background: #E8EFF9;
  596. border-radius: 25rpx;
  597. }
  598. .img-12 {
  599. width: 270rpx;
  600. ;
  601. height: 210rpx;
  602. }
  603. .img-13 {
  604. width: 42rpx;
  605. ;
  606. height: 42rpx;
  607. }
  608. }
  609. }
  610. .index-home {
  611. .no-img {
  612. width: 200rpx;
  613. height: 200rpx;
  614. margin: 30% auto 30rpx auto;
  615. }
  616. .box-1 {
  617. width: 100%;
  618. height: 150rpx;
  619. box-sizing: border-box;
  620. padding: 80rpx 0 0 24rpx;
  621. position: relative;
  622. .box-1-time {
  623. position: absolute;
  624. bottom: 20rpx;
  625. right: 20rpx;
  626. }
  627. image {
  628. width: 48rpx;
  629. height: 48rpx;
  630. margin-right: 10rpx;
  631. }
  632. }
  633. .list-box {
  634. background-color: #F2F3F5;
  635. box-sizing: border-box;
  636. padding: 17rpx 24rpx;
  637. .goods-box {
  638. width: 100%;
  639. height: 179rpx;
  640. background: #FFFFFF;
  641. border-radius: 17rpx;
  642. margin-bottom: 17rpx;
  643. box-sizing: border-box;
  644. padding: 25rpx;
  645. image {
  646. width: 129rpx;
  647. height: 129rpx;
  648. border-radius: 14rpx;
  649. margin-right: 16rpx;
  650. }
  651. .text-1 {
  652. width: 440rpx;
  653. font-size: 25rpx;
  654. margin-bottom: 40rpx;
  655. }
  656. .num-buttom {
  657. width: 50rpx;
  658. height: 50rpx;
  659. line-height: 50rpx;
  660. border-radius: 50%;
  661. background-color: #DAE9FF;
  662. color: #1778FD;
  663. font-weight: 600;
  664. text-align: center;
  665. font-size: 32rpx
  666. }
  667. .num-box {
  668. width: 110rpx;
  669. height: 50rpx;
  670. line-height: 50rpx;
  671. text-align: center;
  672. font-size: 33rpx;
  673. font-weight: 600;
  674. }
  675. }
  676. }
  677. .box-2-b {
  678. width: 100%;
  679. height: 83rpx;
  680. background: #E6E7E9;
  681. box-sizing: border-box;
  682. padding: 12rpx 23rpx;
  683. .box-2-shou {
  684. width: 177rpx;
  685. height: 58rpx;
  686. border-radius: 104rpx;
  687. background: #fff;
  688. margin-right: 20rpx;
  689. image {
  690. width: 25rpx;
  691. height: 25rpx;
  692. margin-right: 2rpx;
  693. }
  694. }
  695. }
  696. .box-2 {
  697. width: 100%;
  698. height: 150rpx;
  699. box-sizing: border-box;
  700. padding: 20rpx 23rpx;
  701. .to-save {
  702. margin-top: auto;
  703. width: 292rpx;
  704. height: 83rpx;
  705. line-height: 83rpx;
  706. background: linear-gradient(90deg, #4AB6FF 0%, #1778FD 100%);
  707. box-shadow: 0rpx 0rpx 4rpx 0rpx rgba(108, 168, 252, 0.64);
  708. border-radius: 104rpx;
  709. }
  710. }
  711. }
  712. .pop-view {
  713. width: 500rpx;
  714. min-height: 100rpx;
  715. background-color: #fff;
  716. border-radius: 20rpx;
  717. .pop-1 {
  718. box-sizing: border-box;
  719. height: 120rpx;
  720. width: 100%;
  721. text-align: center;
  722. line-height: 120rpx;
  723. }
  724. .pop-2 {
  725. box-sizing: border-box;
  726. padding: 0 50rpx;
  727. }
  728. .pop-view-1 {
  729. border-bottom: 1rpx solid #ccc;
  730. }
  731. }
  732. .code-view {
  733. width: 633rpx;
  734. height: 710rpx;
  735. background-image: url('@/static/img/code-bg.png');
  736. background-size: 100% 100%;
  737. box-sizing: border-box;
  738. padding: 62rpx 0 0 0;
  739. margin-bottom: 62rpx;
  740. image {
  741. width: 327rpx;
  742. height: 327rpx;
  743. margin: 50rpx auto 25rpx auto;
  744. }
  745. }
  746. .code-view-1 {
  747. text-align: center;
  748. margin: 0 auto;
  749. width: 223rpx;
  750. height: 57rpx;
  751. line-height: 57rpx;
  752. border-radius: 104rpx;
  753. border: 2rpx solid #fff;
  754. text-align: center;
  755. color: #fff;
  756. font-size: 32rpx;
  757. }
  758. </style>