createOrder.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  1. <template>
  2. <view>
  3. <!-- 地址 -->
  4. <navigator url="/pages/set/address?source=1" class="address-section">
  5. <view class="order-content" v-if="addressData.real_name">
  6. <text class="iconfont iconlocation"></text>
  7. <view class="cen">
  8. <view class="top">
  9. <text class="name">{{ addressData.real_name }}</text>
  10. <text class="mobile">{{ addressData.phone }}</text>
  11. </view>
  12. <text class="address">{{ addressData.province + addressData.city + addressData.district }} {{ addressData.detail }}</text>
  13. </view>
  14. <text class="iconfont iconenter"></text>
  15. </view>
  16. <view class="order-content" v-if="!addressData.real_name">
  17. <view class="addAddress">
  18. <text class="iconfont iconaddition"></text>
  19. <text>添加收货地址</text>
  20. </view>
  21. </view>
  22. <image class="a-bg" :src="addressImg"></image>
  23. </navigator>
  24. <view class="goods-section" v-for="(ls, ind) in shopList" :key="ind">
  25. <!-- <view class="g-header b-b">
  26. <image class="logo" :src="ls.productInfo.image"></image>
  27. <text class="name">{{ ls.name }}</text>
  28. </view> -->
  29. <!-- 商品列表 -->
  30. <view class="g-item">
  31. <image :src="ls.productInfo.image"></image>
  32. <view class="right">
  33. <text class="title clamp">{{ ls.productInfo.store_name }}</text>
  34. <text class="spec">{{ ls.productInfo.attrInfo ? ls.productInfo.attrInfo.suk : '默认' }}</text>
  35. <view class="price-box">
  36. <text class="price">¥{{ ls.productInfo.attrInfo ? ls.productInfo.attrInfo.price : ls.productInfo.price }}</text>
  37. <text class="number">{{ 'x ' + ls.cart_num + (ls.productInfo.unit_name || '') }}</text>
  38. <!-- <view><text class="price">¥{{lss.price}}</text></view> -->
  39. <!-- <view class="number">
  40. <uni-number-box class="step" :value="lss.number" :index="indx" @eventChange="numberChange"></uni-number-box>
  41. </view> -->
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <!-- 优惠明细 -->
  47. <view class="yt-list">
  48. <!-- <view class="yt-list-cell b-b" @click="couponListshow ? toggleMask('show') : ''">
  49. <view class="cell-icon">券</view>
  50. <text class="cell-tit clamp">优惠券</text>
  51. <text class="cell-tip active" v-if="couponListshow && !couponChecked.coupon_price">选择优惠券</text>
  52. <text class="cell-tip red" v-if="couponChecked.coupon_price">-¥{{ couponChecked.coupon_price }}</text>
  53. <text class="cell-tip disabled" v-if="!couponListshow && !couponChecked.coupon_price">没有优惠券</text>
  54. <text class="cell-more wanjia wanjia-gengduo-d"></text>
  55. </view> -->
  56. <view class="yt-list-cell b-b" v-if="moneyAll.storeFreePostage > 0">
  57. <view class="cell-icon hb">减</view>
  58. <text class="cell-tit clamp">商家促销</text>
  59. <text class="cell-tip disabled">满{{ moneyAll.storeFreePostage }}包邮</text>
  60. </view>
  61. </view>
  62. <!-- 金额明细 -->
  63. <view class="yt-list">
  64. <!-- <view class="yt-list-cell b-b">
  65. <text class="cell-tit clamp">优惠金额</text>
  66. <text class="cell-tip red">-¥35</text>
  67. </view> -->
  68. <!-- <view class="yt-list-cell b-b">
  69. <text class="cell-tit clamp">积分抵扣{{ '(当前积分:' + integralAll + ')' }}</text>
  70. <view class="cell-tip"><radio @click="checkedPoints = !checkedPoints" color=" #5dbc7c" :checked="checkedPoints" /></view>
  71. </view> -->
  72. <view class="yt-list-cell b-b">
  73. <text class="cell-tit clamp">运费</text>
  74. <text class="cell-tip">{{ Postage }}</text>
  75. </view>
  76. <view class="yt-list-cell b-b">
  77. <text class="cell-tit clamp">备注</text>
  78. <input class="desc" type="text" v-model="desc" placeholder="请填写备注信息" placeholder-class="placeholder" />
  79. </view>
  80. </view>
  81. <view class="yt-list">
  82. <view class="yt-list-cell b-b">
  83. <text class="cell-tit clamp">商品金额</text>
  84. <text class="cell-tip">¥{{ payAllMoney }}</text>
  85. </view>
  86. <view class="yt-list-cell b-b" v-if="checkedPoints && integralShow">
  87. <text class="cell-tit clamp">积分抵扣</text>
  88. <text class="cell-tip">-¥{{ integralMoney }}</text>
  89. </view>
  90. <view class="yt-list-cell b-b" v-if="moneyAll.vipPrice > 0">
  91. <text class="cell-tit clamp">VIP优惠</text>
  92. <text class="cell-tip">-¥{{ moneyAll.vipPrice }}</text>
  93. </view>
  94. </view>
  95. <!-- 底部 -->
  96. <view class="footer">
  97. <view class="price-content">
  98. <text>实付款</text>
  99. <text class="price-tip">¥</text>
  100. <text class="price">{{ payPrice }}</text>
  101. </view>
  102. <text class="submit" :class="{ submitNo: !payType }" @click="payType ? submit() : ''">提交订单</text>
  103. </view>
  104. <!-- 优惠券面板 -->
  105. <view class="mask" :class="maskState === 0 ? 'none' : maskState === 1 ? 'show' : ''" @click="toggleMask">
  106. <view class="mask-content">
  107. <!-- 优惠券页面,仿mt -->
  108. <view class="coupon-item" @click="checkedCp(item)" v-for="(item, index) in couponList" :key="index">
  109. <view class="con">
  110. <view class="left">
  111. <text class="title">{{ item.coupon_title }}</text>
  112. <text class="time">领取时间{{ item.add_time }}</text>
  113. </view>
  114. <view class="right">
  115. <text class="price">{{ item.coupon_price }}</text>
  116. <text>满{{ item.use_min_price }}可用</text>
  117. </view>
  118. <view class="circle l"></view>
  119. <view class="circle r"></view>
  120. </view>
  121. <text class="tips">有效期至{{ item.end_time }}</text>
  122. </view>
  123. </view>
  124. </view>
  125. </view>
  126. </template>
  127. <script>
  128. import { confirm,computedOrderkey } from '@/api/order.js';
  129. import { getUserInfo } from '@/api/user.js';
  130. import { cartAdd } from '@/api/product.js';
  131. export default {
  132. data() {
  133. return {
  134. addressImg:
  135. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAu4AAAAFCAYAAAAaAWmiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6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HHYoTnrqlORkDx0BHr/ABzVVbknbZysZ3wnRVyda6HU1UIjvpt28p2C+T+GEtYeeEh3jqcdKjl2BcWY65q9UAQb+c6+k3iePnaS+P5Pq8spOJ38fJ09RVI1OFuWo6xtJXSD+J6xh++OHN8PEt8HxtNY4pbAczC+m2Rnh8V3J9Q0Fa4LeG97YQdehj4aoSL9NZiZNMTKStp6g5/x5NsW37vWQaS1WXzPHvjihzYS/lgshbeJ75WySHm7wNXXk8SbK/xutOX4ntHtYRxE0eJn6uARaGf6ie++7GPNxVkf/78AAwCn1+RYqusbZQAAAABJRU5ErkJggg==',
  136. maskState: 0, //优惠券面板显示状态
  137. desc: '', //备注
  138. payType: 1, //1微信 2支付宝
  139. // 优惠券列表
  140. couponList: [],
  141. couponListshow: false, //是有可以显示优惠券列表
  142. couponChecked: {}, //选中的优惠券
  143. // 收货地址
  144. addressData: {},
  145. // 店铺地址
  146. shopAddress: {
  147. name: '',
  148. mobile: '',
  149. addressName: '',
  150. address: '',
  151. area: '',
  152. default: false
  153. },
  154. // 商品列表
  155. shopList: [],
  156. // 购物车id
  157. cartId: '',
  158. //购物金额详情
  159. moneyAll: {
  160. storeFreePostage: 0, //邮费优惠
  161. storePostage: 0, //邮费
  162. totalPrice: 0, //总支付金额
  163. vipPrice: 0 //vip优惠价
  164. },
  165. payPrice: 0, //总支付金额
  166. orderKey: '', //订单id
  167. checkedPoints: false, //判断是否积分抵扣
  168. integralAll: 0, //可使用的积分
  169. integralMoney: 0, //积分抵扣金额
  170. integralShow: false, //是否显示积分抵扣金额
  171. payType: true, //是否可支付
  172. pinkid: '' //保存拼团商品id
  173. };
  174. },
  175. onLoad(option) {
  176. // 判断是否为拼团商品
  177. if (option.type == 'pink') {
  178. this.pinkid = option.pinkId;
  179. this.cartAdd(option);
  180. } else {
  181. // 保存当前商品在购物车中的id
  182. this.cartId = option.id;
  183. this.loadData();
  184. }
  185. this.userinfo();
  186. },
  187. watch: {
  188. checkedPoints(newValue, oldValue) {
  189. this.integralShow = false;
  190. this.payMoneyNub();
  191. }
  192. },
  193. computed: {
  194. Postage() {
  195. let money = +this.moneyAll.storePostage;
  196. if (money == 0) {
  197. return '免运费';
  198. } else {
  199. return '¥' + money;
  200. }
  201. },
  202. payAllMoney() {
  203. return +this.moneyAll.totalPrice + +this.moneyAll.vipPrice;
  204. }
  205. },
  206. methods: {
  207. // 添加商品到购物车
  208. cartAdd(opt) {
  209. let obj = this;
  210. cartAdd({
  211. cartNum: 1, //商品数量
  212. new: 1, //商品是否新增加到购物车1为不加入0为加入
  213. mer_id: +opt.merid, //商店id
  214. combinationId: +opt.gid, //拼团商品id
  215. productId: +opt.pid //普通商品id
  216. })
  217. .then(function(e) {
  218. let da = e.data;
  219. // 獲取购物车号
  220. obj.cartId = da.cartId;
  221. // 加载数据
  222. obj.loadData();
  223. })
  224. .catch(e => {
  225. console.log(e);
  226. });
  227. },
  228. // 加载用户基础信息
  229. userinfo() {
  230. getUserInfo({}).then(({ data }) => {
  231. this.integralAll = data.integral;
  232. });
  233. },
  234. // 计算支付金额
  235. payMoneyNub() {
  236. computedOrderkey({
  237. orderkey: this.orderKey,
  238. useIntegral: this.checkedPoints ? 1 : 0, //是否积分抵扣
  239. couponId: this.couponChecked.id, //优惠券编号
  240. addressId: this.addressData.id //地址编号
  241. })
  242. .then(({ data }) => {
  243. console.log(data,'111');
  244. this.payType = true;
  245. this.integralShow = true;
  246. // 获取支付金额
  247. this.payPrice = +data.result.pay_price;
  248. this.integralMoney = data.result.deduction_price;
  249. })
  250. .catch(e => {
  251. console.log(e);
  252. this.integralShow = false;
  253. this.payType = false;
  254. });
  255. },
  256. // 是否使用积分
  257. checkedIntegral() {
  258. this.checkedPoints = !this.checkedPoints;
  259. },
  260. // 选中优惠券
  261. checkedCp(item) {
  262. this.couponChecked = item;
  263. this.payMoneyNub();
  264. },
  265. //显示优惠券面板
  266. toggleMask(type) {
  267. let timer = type === 'show' ? 10 : 300;
  268. let state = type === 'show' ? 1 : 0;
  269. this.maskState = 2;
  270. setTimeout(() => {
  271. this.maskState = state;
  272. }, timer);
  273. },
  274. loadData() {
  275. let obj = this;
  276. confirm({ cartId: obj.cartId+'' }).then(({ data }) => {
  277. obj.addressData = data.addressInfo || {};
  278. obj.shopList = data.cartInfo; //商品列表
  279. obj.moneyAll = data.priceGroup; //金额数据
  280. obj.orderKey = data.orderKey; //订单key
  281. // 计算金额
  282. this.payMoneyNub();
  283. // 加载优惠券
  284. });
  285. },
  286. // 购买数量变化
  287. numberChange(data) {
  288. this.number = data.number;
  289. },
  290. // 修改支付方式
  291. changePayType(type) {
  292. this.payType = type;
  293. },
  294. // 提交订单
  295. submit() {
  296. if (this.checkedPoints && this.shopList.length > 1) {
  297. this.$api.msg('积分商品只可单件购买');
  298. return false;
  299. }
  300. if (!this.addressData.real_name) {
  301. this.$api.msg('请选择收货地址');
  302. return false;
  303. }
  304. let url = '/pages/money/pay?key='+ this.orderKey
  305. if(this.pinkid){
  306. url += '&pinkid='+this.pinkid
  307. }
  308. uni.navigateTo({
  309. url
  310. });
  311. }
  312. }
  313. };
  314. </script>
  315. <style lang="scss">
  316. page {
  317. background: $page-color-base;
  318. padding-bottom: 100rpx;
  319. }
  320. .navbar {
  321. display: flex;
  322. height: 80rpx;
  323. padding: 0 5px;
  324. background: #fff;
  325. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.06);
  326. position: relative;
  327. z-index: 10;
  328. .nav-item {
  329. flex: 1;
  330. display: flex;
  331. justify-content: center;
  332. align-items: center;
  333. height: 100%;
  334. font-size: $font-lg + 4rpx;
  335. color: $font-color-dark;
  336. position: relative;
  337. &.current {
  338. color: $base-color;
  339. &:after {
  340. content: '';
  341. position: absolute;
  342. left: 50%;
  343. bottom: 0;
  344. transform: translateX(-50%);
  345. width: 140rpx;
  346. height: 0;
  347. border-bottom: 2px solid $base-color;
  348. }
  349. }
  350. }
  351. }
  352. .address-section {
  353. padding: 30rpx 0;
  354. background: #fff;
  355. position: relative;
  356. border-top: 1px solid $border-color-light;
  357. .order-content {
  358. min-height: 100rpx;
  359. display: flex;
  360. align-items: center;
  361. .addAddress {
  362. text-align: center;
  363. width: 100%;
  364. display: flex;
  365. justify-content: center;
  366. align-items: center;
  367. .iconaddition {
  368. font-size: 55rpx;
  369. line-height: 1;
  370. border-radius: 100rpx;
  371. margin-right: 20rpx;
  372. }
  373. }
  374. }
  375. .iconlocation {
  376. flex-shrink: 0;
  377. display: flex;
  378. align-items: center;
  379. justify-content: center;
  380. width: 90rpx;
  381. color: #888;
  382. font-size: 44rpx;
  383. }
  384. .cen {
  385. display: flex;
  386. flex-direction: column;
  387. flex: 1;
  388. font-size: 28rpx;
  389. color: $font-color-dark;
  390. }
  391. .name {
  392. font-size: 34rpx;
  393. margin-right: 24rpx;
  394. }
  395. .address {
  396. margin-top: 16rpx;
  397. margin-right: 20rpx;
  398. color: $font-color-light;
  399. }
  400. .icon-you {
  401. font-size: 32rpx;
  402. color: $font-color-light;
  403. margin-right: 30rpx;
  404. }
  405. .a-bg {
  406. position: absolute;
  407. left: 0;
  408. bottom: 0;
  409. display: block;
  410. width: 100%;
  411. height: 5rpx;
  412. }
  413. }
  414. .goods-section {
  415. margin-top: 16rpx;
  416. background: #fff;
  417. padding-bottom: 1px;
  418. .g-header {
  419. display: flex;
  420. align-items: center;
  421. height: 84rpx;
  422. padding: 0 30rpx;
  423. position: relative;
  424. }
  425. .logo {
  426. display: block;
  427. width: 50rpx;
  428. height: 50rpx;
  429. border-radius: 100px;
  430. }
  431. .name {
  432. font-size: 30rpx;
  433. color: $font-color-base;
  434. margin-left: 24rpx;
  435. }
  436. .g-item {
  437. display: flex;
  438. margin: 20rpx 30rpx;
  439. image {
  440. flex-shrink: 0;
  441. display: block;
  442. width: 140rpx;
  443. height: 140rpx;
  444. border-radius: 4rpx;
  445. }
  446. .right {
  447. flex: 1;
  448. padding-left: 24rpx;
  449. overflow: hidden;
  450. }
  451. .title {
  452. font-size: 30rpx;
  453. color: $font-color-dark;
  454. }
  455. .spec {
  456. font-size: 26rpx;
  457. color: $font-color-light;
  458. }
  459. .price-box {
  460. display: flex;
  461. align-items: center;
  462. font-size: 32rpx;
  463. color: $font-color-dark;
  464. padding-top: 10rpx;
  465. .price {
  466. margin-bottom: 4rpx;
  467. color: $color-red;
  468. }
  469. .number {
  470. font-size: 26rpx;
  471. color: $font-color-base;
  472. margin-left: 20rpx;
  473. }
  474. }
  475. .step-box {
  476. position: relative;
  477. }
  478. }
  479. }
  480. .yt-list {
  481. margin-top: 16rpx;
  482. background: #fff;
  483. }
  484. .yt-list-cell {
  485. display: flex;
  486. align-items: center;
  487. padding: 10rpx 30rpx 10rpx 40rpx;
  488. line-height: 70rpx;
  489. position: relative;
  490. &.cell-hover {
  491. background: #fafafa;
  492. }
  493. &.b-b:after {
  494. left: 30rpx;
  495. }
  496. .cell-icon {
  497. height: 32rpx;
  498. width: 32rpx;
  499. font-size: 22rpx;
  500. color: #fff;
  501. text-align: center;
  502. line-height: 32rpx;
  503. background: #f85e52;
  504. border-radius: 4rpx;
  505. margin-right: 12rpx;
  506. &.hb {
  507. background: #ffaa0e;
  508. }
  509. &.lpk {
  510. background: #3ab54a;
  511. }
  512. }
  513. .cell-more {
  514. align-self: center;
  515. font-size: 24rpx;
  516. color: $font-color-light;
  517. margin-left: 8rpx;
  518. margin-right: -10rpx;
  519. }
  520. .cell-tit {
  521. flex: 1;
  522. font-size: 26rpx;
  523. color: $font-color-light;
  524. margin-right: 10rpx;
  525. }
  526. .cell-tip {
  527. font-size: 26rpx;
  528. color: $font-color-dark;
  529. &.disabled {
  530. color: $font-color-light;
  531. }
  532. &.active {
  533. color: $base-color;
  534. }
  535. &.red {
  536. color: $base-color;
  537. }
  538. }
  539. &.desc-cell {
  540. .cell-tit {
  541. max-width: 90rpx;
  542. }
  543. }
  544. .desc {
  545. flex: 1;
  546. text-align: right;
  547. font-size: $font-base;
  548. color: $font-color-dark;
  549. }
  550. }
  551. /* 支付列表 */
  552. .pay-list {
  553. padding-left: 40rpx;
  554. margin-top: 16rpx;
  555. background: #fff;
  556. .pay-item {
  557. display: flex;
  558. align-items: center;
  559. padding-right: 20rpx;
  560. line-height: 1;
  561. height: 110rpx;
  562. position: relative;
  563. }
  564. .icon-weixinzhifu {
  565. width: 80rpx;
  566. font-size: 40rpx;
  567. color: #6bcc03;
  568. }
  569. .icon-alipay {
  570. width: 80rpx;
  571. font-size: 40rpx;
  572. color: #06b4fd;
  573. }
  574. .icon-xuanzhong2 {
  575. display: flex;
  576. align-items: center;
  577. justify-content: center;
  578. width: 60rpx;
  579. height: 60rpx;
  580. font-size: 40rpx;
  581. color: $base-color;
  582. }
  583. .tit {
  584. font-size: 32rpx;
  585. color: $font-color-dark;
  586. flex: 1;
  587. }
  588. }
  589. .footer {
  590. position: fixed;
  591. left: 0;
  592. bottom: 0;
  593. z-index: 995;
  594. display: flex;
  595. align-items: center;
  596. width: 100%;
  597. height: 90rpx;
  598. justify-content: space-between;
  599. font-size: 30rpx;
  600. background-color: #fff;
  601. z-index: 998;
  602. color: $font-color-base;
  603. box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
  604. .price-content {
  605. padding-left: 30rpx;
  606. }
  607. .price-tip {
  608. color: $font-color-base;
  609. margin-left: 8rpx;
  610. }
  611. .price {
  612. font-size: 36rpx;
  613. color: $font-color-base;
  614. }
  615. .submit {
  616. display: flex;
  617. align-items: center;
  618. justify-content: center;
  619. width: 280rpx;
  620. height: 100%;
  621. color: #fff;
  622. font-size: 32rpx;
  623. background-color: $base-color;
  624. &.submitNo {
  625. background-color: $font-color-disabled;
  626. }
  627. }
  628. }
  629. /* 优惠券面板 */
  630. .mask {
  631. display: flex;
  632. align-items: flex-end;
  633. position: fixed;
  634. left: 0;
  635. top: var(--window-top);
  636. bottom: 0;
  637. width: 100%;
  638. background: rgba(0, 0, 0, 0);
  639. z-index: 9995;
  640. transition: 0.3s;
  641. .mask-content {
  642. width: 100%;
  643. max-height: 70vh;
  644. background: #f3f3f3;
  645. transform: translateY(100%);
  646. transition: 0.3s;
  647. overflow-y: scroll;
  648. }
  649. &.none {
  650. display: none;
  651. }
  652. &.show {
  653. background: rgba(0, 0, 0, 0.4);
  654. .mask-content {
  655. transform: translateY(0);
  656. }
  657. }
  658. }
  659. /* 优惠券列表 */
  660. .coupon-item {
  661. display: flex;
  662. flex-direction: column;
  663. margin: 20rpx 24rpx;
  664. background: #fff;
  665. .con {
  666. display: flex;
  667. align-items: center;
  668. position: relative;
  669. height: 120rpx;
  670. padding: 0 30rpx;
  671. &:after {
  672. position: absolute;
  673. left: 0;
  674. bottom: 0;
  675. content: '';
  676. width: 100%;
  677. height: 0;
  678. border-bottom: 1px dashed #f3f3f3;
  679. transform: scaleY(50%);
  680. }
  681. }
  682. .left {
  683. display: flex;
  684. flex-direction: column;
  685. justify-content: center;
  686. flex: 1;
  687. overflow: hidden;
  688. height: 100rpx;
  689. }
  690. .title {
  691. font-size: 32rpx;
  692. color: $font-color-dark;
  693. margin-bottom: 10rpx;
  694. }
  695. .time {
  696. font-size: 24rpx;
  697. color: $font-color-light;
  698. }
  699. .right {
  700. display: flex;
  701. flex-direction: column;
  702. justify-content: center;
  703. align-items: center;
  704. font-size: 26rpx;
  705. color: $font-color-base;
  706. height: 100rpx;
  707. }
  708. .price {
  709. font-size: 44rpx;
  710. color: $base-color;
  711. &:before {
  712. content: '¥';
  713. font-size: 34rpx;
  714. }
  715. }
  716. .tips {
  717. font-size: 24rpx;
  718. color: $font-color-light;
  719. line-height: 60rpx;
  720. padding-left: 30rpx;
  721. }
  722. .circle {
  723. position: absolute;
  724. left: -6rpx;
  725. bottom: -10rpx;
  726. z-index: 10;
  727. width: 20rpx;
  728. height: 20rpx;
  729. background: #f3f3f3;
  730. border-radius: 100px;
  731. &.r {
  732. left: auto;
  733. right: -6rpx;
  734. }
  735. }
  736. }
  737. </style>