confirmOrder.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  1. <template>
  2. <view>
  3. <view class="inner-box">
  4. <!-- 收货人 -->
  5. <view class="address-box" v-if="address==null" @click="openAddress()">
  6. <view class="left">
  7. <view class="name-box">
  8. <text class="text name">添加收货地址</text>
  9. </view>
  10. </vie>
  11. </view>
  12. <view class="arrow-box">
  13. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/arrow_gray.png"
  14. mode=""></image>
  15. </view>
  16. </view>
  17. <view class="address-box" v-if="address!=null" @click="openAddress()">
  18. <view class="left">
  19. <view class="name-box">
  20. <text class="text name">{{address.realName}}</text>
  21. <text class="text" v-if="address.phone!=null">{{utils.parsePhone(address.phone)}}</text>
  22. </view>
  23. <view class="address">
  24. {{address.province}}{{address.city}}{{address.district}}{{address.detail}}
  25. </view>
  26. </view>
  27. <view class="arrow-box">
  28. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/arrow_gray.png"
  29. mode=""></image>
  30. </view>
  31. </view>
  32. <!-- 产品列表 -->
  33. <view class="goods-list">
  34. <view v-for="(item,index) in carts" :key="index" class="item">
  35. <view class="img-box">
  36. <image :src="item.productAttrImage||item.productImage" mode="aspectFill"></image>
  37. </view>
  38. <view class="info-box">
  39. <view>
  40. <view class="name-box ellipsis2">
  41. <!-- <view class="tag">{{utils.getDictLabelName("storeProductType",item.productType)}}</view> -->
  42. {{item.productName}}
  43. </view>
  44. <view class="spec ellipsis2">{{item.productAttrName}}</view>
  45. </view>
  46. <view class="price-num">
  47. <view class="price">
  48. <text class="unit">¥</text>
  49. <text class="num">{{item.price.toFixed(2)}}</text>
  50. </view>
  51. <view class="num">x{{item.cartNum}}</view>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- 小计 -->
  56. <view class="sub-total">
  57. <text class="label">小计:</text>
  58. <view class="price">
  59. <text class="unit">¥</text>
  60. <text class="num">{{price.totalPrice.toFixed(2)}}</text>
  61. </view>
  62. </view>
  63. </view>
  64. <!-- 积分 -->
  65. <view class="points">
  66. <view class="left">
  67. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/points.png" mode="">
  68. </image>
  69. <text class="text">可用积分</text>
  70. </view>
  71. <view class="right">
  72. <text class="text">{{price.usedIntegral}}积分</text>
  73. <evan-switch @change="integralChange" v-model="checked" activeColor="#FF233C"
  74. inactiveColor="rgba(0, 0, 0, 0.1)"></evan-switch>
  75. </view>
  76. </view>
  77. <view class="points" @click="openCoupon()">
  78. <view class="left">
  79. <text class="text">优惠券</text>
  80. </view>
  81. <view class="right">
  82. <text class="text">{{couponText}}</text>
  83. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/arrow4.png" mode="">
  84. </image>
  85. </view>
  86. </view>
  87. <view class="points">
  88. <view class="left">
  89. <text class="text">运费</text>
  90. </view>
  91. <view class="right">
  92. <text
  93. class="text">{{price.payPostage==null||price.payPostage==0?'免运费':price.payPostage.toFixed(2)}}</text>
  94. </view>
  95. </view>
  96. <!-- 备注 -->
  97. <view class="remarks">
  98. <input type="text" v-model="form.mark" placeholder="备注留言(选填)" placeholder-class="input" />
  99. </view>
  100. </view>
  101. <!-- 底部按钮 -->
  102. <view class="btn-foot">
  103. <view class="right">
  104. <view class="total">
  105. <text class="label">合计:</text>
  106. <view class="price">
  107. <text class="unit">¥</text>
  108. <text class="num">{{price.payPrice.toFixed(2)}}</text>
  109. </view>
  110. </view>
  111. <view class="btn" @click="submitOrder">提交订单</view>
  112. </view>
  113. </view>
  114. <popupBottom ref="popup" :visible.sync="couponVisible" title=" " bgColor="#f5f5f5" radius="30" maxHeight="60%">
  115. <view class="coupon" style="height:650rpx;">
  116. <div class="coupon-list" v-if="couponsList.length > 0">
  117. <div class="item acea-row row-center-wrapper" v-for="(item, index) in couponsList" :key="index">
  118. <div class="money">
  119. <image v-if="item.status==0" class="img"
  120. src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/coupon1.png"
  121. mode="widthFix"></image>
  122. <image v-if="item.status!=0" class="img"
  123. src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/coupon2.png"
  124. mode="widthFix"></image>
  125. <div style="z-index: 999;">
  126. ¥<span class="num">{{ item.couponPrice }}</span>
  127. </div>
  128. <div class="pic-num">满{{ item.useMinPrice }}元可用</div>
  129. </div>
  130. <div class="text">
  131. <div class="condition line1">
  132. {{ item.couponTitle }}
  133. </div>
  134. <div class="data acea-row row-between-wrapper">
  135. <div>{{ item.limitTime }}到期</div>
  136. <div class="bnt bg-color-red" @click="couponSelect(item)">选择</div>
  137. </div>
  138. </div>
  139. </div>
  140. </div>
  141. <view v-if="couponsList.length == 0" class="no-data-box">
  142. <image src="https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/no_data.png"
  143. mode="aspectFit"></image>
  144. <view class="empty-title">暂无数据</view>
  145. </view>
  146. </view>
  147. </popupBottom>
  148. </view>
  149. </template>
  150. <script>
  151. import {
  152. getWeixinOrderTemps
  153. } from '@/api/common'
  154. import {
  155. confirm,
  156. computed,
  157. create
  158. } from '@/api/storeOrder'
  159. import {
  160. getMyEnableCouponList
  161. } from '@/api/coupon'
  162. import EvanSwitch from '@/components/evan-switch/evan-switch.vue'
  163. import popupBottom from '@/components/px-popup-bottom/px-popup-bottom.vue'
  164. export default {
  165. components: {
  166. EvanSwitch,
  167. popupBottom
  168. },
  169. data() {
  170. return {
  171. temps: [],
  172. couponUserId: null,
  173. couponText: "请选择",
  174. couponsList: [],
  175. couponVisible: false,
  176. price: {
  177. payPrice: 0,
  178. totalPostage: 0,
  179. usedIntegral: 0,
  180. totalPrice: 0.00,
  181. },
  182. address: null,
  183. carts: [],
  184. checked: false,
  185. type: null,
  186. cartIds: null,
  187. storeId: null,
  188. form: {
  189. useIntegral: 0,
  190. orderKey: null,
  191. addressId: null,
  192. mark: null,
  193. companyId: null,
  194. companyUserId: null
  195. },
  196. courseId:null
  197. }
  198. },
  199. onLoad(option) {
  200. console.log("确认订单option是", option)
  201. this.form.companyId = option.companyId;
  202. this.form.companyUserId = option.companyUserId;
  203. this.cartIds = option.cartIds;
  204. this.type = option.type;
  205. this.storeId = option.storeId;
  206. this.courseId = option.courseId
  207. this.confirm();
  208. uni.$on('updateAddress', (e) => {
  209. this.address = e;
  210. this.form.addressId = e.id;
  211. this.computed();
  212. })
  213. this.getWeixinOrderTemps();
  214. },
  215. onUnload() {
  216. uni.$off('updateAddress')
  217. },
  218. methods: {
  219. getWeixinOrderTemps: function() {
  220. getWeixinOrderTemps().then(
  221. res => {
  222. if (res.code == 200) {
  223. this.temps = res.temp
  224. console.log(this.temps)
  225. } else {
  226. }
  227. },
  228. rej => {}
  229. );
  230. },
  231. couponSelect(item) {
  232. this.couponText = "-¥" + item.couponPrice.toFixed(2);
  233. this.couponUserId = item.id;
  234. this.couponVisible = false;
  235. this.computed();
  236. },
  237. openCoupon() {
  238. let that = this;
  239. var data = {
  240. couponType: 0,
  241. useMinPrice: this.price.payPrice
  242. };
  243. getMyEnableCouponList(data).then(res => {
  244. this.couponVisible = true;
  245. that.couponsList = res.data
  246. })
  247. },
  248. integralChange(e) {
  249. console.log(e)
  250. this.form.useIntegral = e ? 1 : 0
  251. this.computed()
  252. },
  253. confirm(item) {
  254. let data = {
  255. type: this.type,
  256. cartIds: this.cartIds
  257. };
  258. confirm(data).then(
  259. res => {
  260. if (res.code == 200) {
  261. this.carts = res.carts;
  262. this.form.orderKey = res.orderKey;
  263. if (res.address != null) {
  264. this.form.addressId = res.address.id;
  265. this.address = res.address;
  266. console.log(this.form.addreddId)
  267. }
  268. this.computed()
  269. } else {
  270. uni.showToast({
  271. icon: 'none',
  272. title: res.msg,
  273. });
  274. }
  275. },
  276. rej => {}
  277. );
  278. },
  279. computed(item) {
  280. let data = {
  281. couponUserId: this.couponUserId,
  282. orderKey: this.form.orderKey,
  283. addressId: this.form.addressId,
  284. useIntegral: this.form.useIntegral
  285. };
  286. computed(data).then(
  287. res => {
  288. if (res.code == 200) {
  289. console.log(res)
  290. this.price = res.data
  291. } else {
  292. if (res.code == 501) {
  293. uni.showToast({
  294. icon: 'none',
  295. title: res.msg,
  296. });
  297. setTimeout(function() {
  298. uni.navigateBack({
  299. delta: 1
  300. })
  301. }, 500);
  302. return;
  303. } else {
  304. uni.showToast({
  305. icon: 'none',
  306. title: res.msg,
  307. });
  308. }
  309. }
  310. },
  311. rej => {}
  312. );
  313. },
  314. // 提交订单
  315. submitOrder() {
  316. var that = this;
  317. if (this.form.orderKey == null) {
  318. uni.showToast({
  319. icon: 'none',
  320. title: '订单KEY不存在',
  321. });
  322. return;
  323. }
  324. if (this.form.addressId == null) {
  325. uni.showToast({
  326. icon: 'none',
  327. title: '收货地址不能为空',
  328. });
  329. return;
  330. }
  331. this.createOrder();
  332. },
  333. createOrder() {
  334. var that = this;
  335. var data = null;
  336. var tuiUserId = uni.getStorageSync('tuiUserId');
  337. uni.showLoading({
  338. title: '正在处理中...'
  339. });
  340. if (tuiUserId != null && tuiUserId != undefined && tuiUserId > 0) {
  341. data = {
  342. orderCreateType: 1,
  343. tuiUserId: tuiUserId,
  344. companyId: this.form.companyId,
  345. companyUserId: this.form.companyUserId,
  346. couponUserId: this.couponUserId,
  347. mark: this.form.mark,
  348. orderKey: this.form.orderKey,
  349. addressId: this.form.addressId,
  350. useIntegral: this.form.useIntegral,
  351. payType: 1
  352. };
  353. } else {
  354. data = {
  355. orderCreateType: 1,
  356. companyId: this.form.companyId,
  357. companyUserId: this.form.companyUserId,
  358. couponUserId: this.couponUserId,
  359. mark: this.form.mark,
  360. orderKey: this.form.orderKey,
  361. addressId: this.form.addressId,
  362. useIntegral: this.form.useIntegral,
  363. payType: 1
  364. };
  365. }
  366. if (this.storeId != null && this.storeId > 0) {
  367. data.storeId = this.storeId;
  368. }
  369. var urlInfo = uni.getStorageSync('urlInfo')
  370. console.log('this.isCourse',this.courseId)
  371. if(this.courseId!=null && this.courseId > 0){
  372. data.courseId=urlInfo.courseId
  373. data.videoId=urlInfo.videoId
  374. data.periodId = urlInfo.periodId
  375. data.projectId = urlInfo.projectId
  376. data.companyUserId=urlInfo.companyUserId
  377. data.companyId=urlInfo.companyId
  378. data.orderType=3
  379. }
  380. uni.hideLoading()
  381. create(data).then(
  382. res => {
  383. uni.hideLoading()
  384. if (res.code == 200) {
  385. uni.hideLoading()
  386. if (res.order.isPrescribe == 1) {
  387. setTimeout(function() {
  388. uni.redirectTo({
  389. url: "prescribe?orderId=" + res.order.id
  390. })
  391. }, 200);
  392. } else {
  393. // try {
  394. // const urlInfo = uni.getStorageSync('urlInfo') || {};
  395. // if (urlInfo.videoId) {
  396. // uni.setStorageSync('videovip_myPurchase_' + urlInfo.videoId, {
  397. // ts: Date.now()
  398. // });
  399. // }
  400. // } catch (e) {}
  401. setTimeout(function() {
  402. uni.redirectTo({
  403. url: './paymentOrder?orderId=' + res.order.id
  404. })
  405. }, 200);
  406. }
  407. return;
  408. } else {
  409. if (res.code == 501) {
  410. uni.showToast({
  411. icon: 'none',
  412. title: res.msg,
  413. });
  414. setTimeout(function() {
  415. uni.navigateBack({
  416. delta: 1
  417. })
  418. }, 200);
  419. return;
  420. } else {
  421. uni.showToast({
  422. icon: 'none',
  423. title: res.msg,
  424. });
  425. }
  426. }
  427. },
  428. rej => {}
  429. );
  430. },
  431. openAddress() {
  432. uni.navigateTo({
  433. url: '/pages_user/user/address'
  434. })
  435. }
  436. }
  437. }
  438. </script>
  439. <style lang="scss">
  440. .inner-box {
  441. padding: 20upx 20upx 140upx;
  442. .address-box {
  443. box-sizing: border-box;
  444. min-height: 171upx;
  445. background: #FFFFFF;
  446. border-radius: 16upx;
  447. background-image: url("https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/address_bg.png");
  448. background-repeat: no-repeat;
  449. background-size: 100% 30upx;
  450. background-position: left bottom;
  451. padding: 38upx 30upx 36upx;
  452. display: flex;
  453. align-items: center;
  454. justify-content: space-between;
  455. .left {
  456. width: 92%;
  457. .name-box {
  458. display: flex;
  459. align-items: center;
  460. .text {
  461. font-size: 32upx;
  462. font-family: PingFang SC;
  463. font-weight: bold;
  464. color: #111111;
  465. line-height: 1;
  466. &.name {
  467. margin-right: 30upx;
  468. }
  469. }
  470. }
  471. .address {
  472. font-size: 28upx;
  473. font-family: PingFang SC;
  474. font-weight: 500;
  475. color: #666666;
  476. line-height: 42upx;
  477. text-align: left;
  478. margin-top: 23upx;
  479. }
  480. }
  481. .arrow-box {
  482. width: 12upx;
  483. height: 23upx;
  484. display: flex;
  485. align-items: cenetr;
  486. justify-content: cenetr;
  487. image {
  488. width: 100%;
  489. height: 100%;
  490. }
  491. }
  492. }
  493. .goods-list {
  494. margin-top: 20upx;
  495. padding: 0 30upx;
  496. background-color: #FFFFFF;
  497. border-radius: 16upx;
  498. .item {
  499. padding: 30upx 0;
  500. border-bottom: 1px solid #EDEEEF;
  501. display: flex;
  502. align-items: center;
  503. .img-box {
  504. width: 160upx;
  505. height: 160upx;
  506. margin-right: 30upx;
  507. image {
  508. width: 100%;
  509. height: 100%;
  510. }
  511. }
  512. .info-box {
  513. width: calc(100% - 190upx);
  514. height: 160upx;
  515. display: flex;
  516. flex-direction: column;
  517. justify-content: space-between;
  518. .name-box {
  519. font-size: 28upx;
  520. font-family: PingFang SC;
  521. font-weight: 500;
  522. color: #111111;
  523. line-height: 40upx;
  524. .tag {
  525. display: inline-block;
  526. padding: 0 6upx;
  527. height: 30upx;
  528. background: linear-gradient(90deg, #66b2ef 0%, #FF233C 100%);
  529. border-radius: 4upx;
  530. margin-right: 10upx;
  531. font-size: 22upx;
  532. font-family: PingFang SC;
  533. font-weight: bold;
  534. color: #FFFFFF;
  535. line-height: 30upx;
  536. float: left;
  537. margin-top: 7upx;
  538. }
  539. }
  540. .spec {
  541. margin-top: 10upx;
  542. font-size: 24upx;
  543. font-family: PingFang SC;
  544. font-weight: 500;
  545. color: #999999;
  546. line-height: 1;
  547. }
  548. .price-num {
  549. display: flex;
  550. align-items: center;
  551. justify-content: space-between;
  552. .price {
  553. display: flex;
  554. align-items: flex-end;
  555. .unit {
  556. font-size: 24upx;
  557. font-family: PingFang SC;
  558. font-weight: 500;
  559. color: #111111;
  560. line-height: 1.2;
  561. margin-right: 4upx;
  562. }
  563. .num {
  564. font-size: 32upx;
  565. font-family: PingFang SC;
  566. font-weight: 500;
  567. color: #111111;
  568. line-height: 1;
  569. }
  570. }
  571. .num {
  572. font-size: 24upx;
  573. font-family: PingFang SC;
  574. font-weight: 500;
  575. color: #999999;
  576. line-height: 1;
  577. }
  578. }
  579. }
  580. }
  581. .sub-total {
  582. height: 88upx;
  583. display: flex;
  584. align-items: center;
  585. justify-content: flex-end;
  586. .label {
  587. font-size: 24upx;
  588. font-family: PingFang SC;
  589. font-weight: 500;
  590. color: #999999;
  591. }
  592. .price {
  593. display: flex;
  594. align-items: flex-end;
  595. .unit {
  596. font-size: 24upx;
  597. font-family: PingFang SC;
  598. font-weight: 500;
  599. color: #FF6633;
  600. line-height: 1.2;
  601. margin-right: 4upx;
  602. }
  603. .num {
  604. font-size: 32upx;
  605. font-family: PingFang SC;
  606. font-weight: bold;
  607. color: #FF6633;
  608. line-height: 1;
  609. }
  610. }
  611. }
  612. }
  613. .points {
  614. height: 88upx;
  615. padding: 0 30upx;
  616. background: #FFFFFF;
  617. border-radius: 16upx;
  618. display: flex;
  619. align-items: center;
  620. justify-content: space-between;
  621. .left {
  622. display: flex;
  623. align-items: center;
  624. image {
  625. width: 28upx;
  626. height: 28upx;
  627. margin-right: 20upx;
  628. }
  629. .text {
  630. font-size: 28upx;
  631. font-family: PingFang SC;
  632. font-weight: 500;
  633. color: #666666;
  634. }
  635. }
  636. .right {
  637. display: flex;
  638. align-items: center;
  639. .text {
  640. font-size: 28upx;
  641. font-family: PingFang SC;
  642. font-weight: 500;
  643. color: #111111;
  644. }
  645. image {
  646. margin-left: 15upx;
  647. width: 14upx;
  648. height: 24upx;
  649. }
  650. }
  651. }
  652. .remarks {
  653. height: 88upx;
  654. padding: 0 30upx;
  655. background: #FFFFFF;
  656. border-radius: 16upx;
  657. margin-top: 20upx;
  658. display: flex;
  659. align-items: center;
  660. input {
  661. width: 100%;
  662. font-size: 28upx;
  663. font-family: PingFang SC;
  664. font-weight: 500;
  665. color: #000000;
  666. }
  667. .input {
  668. font-size: 28upx;
  669. font-family: PingFang SC;
  670. font-weight: 500;
  671. color: #999999;
  672. }
  673. }
  674. }
  675. .btn-foot {
  676. box-sizing: border-box;
  677. width: 100%;
  678. height: 121upx;
  679. background: #FFFFFF;
  680. padding: 16upx 30upx 16upx 60upx;
  681. display: flex;
  682. align-items: center;
  683. justify-content: flex-end;
  684. position: fixed;
  685. left: 0;
  686. bottom: 0;
  687. z-index: 99;
  688. .right {
  689. display: flex;
  690. align-items: center;
  691. .total {
  692. display: flex;
  693. align-items: flex-end;
  694. margin-right: 36upx;
  695. .label {
  696. font-size: 26upx;
  697. font-family: PingFang SC;
  698. font-weight: 500;
  699. color: #999999;
  700. line-height: 1.5;
  701. }
  702. .price {
  703. display: flex;
  704. align-items: flex-end;
  705. .unit {
  706. font-size: 32upx;
  707. font-family: PingFang SC;
  708. font-weight: bold;
  709. color: #FF6633;
  710. line-height: 1.2;
  711. margin-right: 10upx;
  712. }
  713. .num {
  714. font-size: 50upx;
  715. font-family: PingFang SC;
  716. font-weight: bold;
  717. color: #FF6633;
  718. line-height: 1;
  719. }
  720. }
  721. }
  722. .btn {
  723. width: 200upx;
  724. height: 88upx;
  725. line-height: 88upx;
  726. text-align: center;
  727. font-size: 30upx;
  728. font-family: PingFang SC;
  729. font-weight: bold;
  730. color: #FFFFFF;
  731. background: #FF233C;
  732. border-radius: 44upx;
  733. }
  734. }
  735. }
  736. </style>
  737. <style lang="less" scoped>
  738. .coupon {
  739. height: 100%;
  740. }
  741. /*优惠券列表公共*/
  742. .coupon-list {}
  743. .coupon-list .item {
  744. display: flex;
  745. flex-direction: column;
  746. justify-content: center;
  747. align-items: center;
  748. width: 100%;
  749. height: 1.7 * 100rpx;
  750. margin-bottom: 0.16 * 100rpx;
  751. }
  752. .coupon-list .item .money {
  753. background-size: 100% 100%;
  754. width: 2.4 * 100rpx;
  755. height: 100%;
  756. color: #fff;
  757. font-size: 0.36 * 100rpx;
  758. font-weight: bold;
  759. text-align: center;
  760. display: flex;
  761. flex-direction: column;
  762. align-items: center;
  763. justify-content: center;
  764. position: relative;
  765. }
  766. .coupon-list .item .money .img {
  767. position: absolute;
  768. width: 2.4 * 100rpx;
  769. height: 100%;
  770. color: #fff;
  771. }
  772. .coupon-list .item .money .num {
  773. font-size: 0.6 * 100rpx;
  774. }
  775. .coupon-list .item .money .pic-num {
  776. font-size: 20rpx;
  777. z-index: 99;
  778. }
  779. .coupon-list .item .text {
  780. width: 4.5 * 100rpx;
  781. padding: 0 0.17 * 100rpx 0 0.24 * 100rpx;
  782. background-color: #fff;
  783. box-sizing: border-box;
  784. }
  785. .coupon-list .item .text .condition {
  786. font-size: 0.3 * 100rpx;
  787. color: #282828;
  788. height: 0.93 * 100rpx;
  789. line-height: 0.93 * 100rpx;
  790. border-bottom: 1px solid #f0f0f0;
  791. }
  792. .coupon-list .item .text .data {
  793. font-size: 0.2 * 100rpx;
  794. color: #999;
  795. height: 0.76 * 100rpx;
  796. }
  797. .coupon-list .item .text .data .bnt {
  798. width: 1.36 * 100rpx;
  799. height: 0.44 * 100rpx;
  800. border-radius: 0.22 * 100rpx;
  801. font-size: 0.22 * 100rpx;
  802. color: #fff;
  803. text-align: center;
  804. line-height: 0.44 * 100rpx;
  805. background-color: red;
  806. }
  807. .coupon-list .item .text .data .bnt.gray {
  808. background-color: #ccc;
  809. }
  810. </style>