confirmOrder.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885
  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">{{$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. // uni.requestSubscribeMessage({
  333. // tmplIds: this.temps,
  334. // success(res) {
  335. // that.createOrder();
  336. // },
  337. // fail(res) {
  338. // that.createOrder();
  339. // }
  340. // })
  341. },
  342. createOrder() {
  343. var that = this;
  344. var data = null;
  345. var tuiUserId = uni.getStorageSync('tuiUserId');
  346. uni.showLoading({
  347. title: '正在处理中...'
  348. });
  349. if (tuiUserId != null && tuiUserId != undefined && tuiUserId > 0) {
  350. data = {
  351. orderCreateType: 1,
  352. tuiUserId: tuiUserId,
  353. companyId: this.form.companyId,
  354. companyUserId: this.form.companyUserId,
  355. couponUserId: this.couponUserId,
  356. mark: this.form.mark,
  357. orderKey: this.form.orderKey,
  358. addressId: this.form.addressId,
  359. useIntegral: this.form.useIntegral,
  360. payType: 1
  361. };
  362. } else {
  363. data = {
  364. orderCreateType: 1,
  365. companyId: this.form.companyId,
  366. companyUserId: this.form.companyUserId,
  367. couponUserId: this.couponUserId,
  368. mark: this.form.mark,
  369. orderKey: this.form.orderKey,
  370. addressId: this.form.addressId,
  371. useIntegral: this.form.useIntegral,
  372. payType: 1
  373. };
  374. }
  375. if (this.storeId != null && this.storeId > 0) {
  376. data.storeId = this.storeId;
  377. }
  378. var urlInfo = uni.getStorageSync('urlInfo')
  379. console.log('this.isCourse',this.courseId)
  380. if(this.courseId!=null && this.courseId > 0){
  381. data.courseId=urlInfo.courseId
  382. data.videoId=urlInfo.videoId
  383. data.periodId = urlInfo.periodId
  384. data.projectId = urlInfo.projectId
  385. data.companyUserId=urlInfo.companyUserId
  386. data.companyId=urlInfo.companyId
  387. data.orderType=3
  388. }
  389. uni.hideLoading()
  390. create(data).then(
  391. res => {
  392. uni.hideLoading()
  393. if (res.code == 200) {
  394. uni.hideLoading()
  395. if (res.order.isPrescribe == 1) {
  396. setTimeout(function() {
  397. uni.redirectTo({
  398. url: "prescribe?orderId=" + res.order.id
  399. })
  400. }, 200);
  401. } else {
  402. setTimeout(function() {
  403. uni.redirectTo({
  404. url: './paymentOrder?orderId=' + res.order.id
  405. })
  406. }, 200);
  407. }
  408. return;
  409. } else {
  410. if (res.code == 501) {
  411. uni.showToast({
  412. icon: 'none',
  413. title: res.msg,
  414. });
  415. setTimeout(function() {
  416. uni.navigateBack({
  417. delta: 1
  418. })
  419. }, 200);
  420. return;
  421. } else {
  422. uni.showToast({
  423. icon: 'none',
  424. title: res.msg,
  425. });
  426. }
  427. }
  428. },
  429. rej => {}
  430. );
  431. },
  432. openAddress() {
  433. uni.navigateTo({
  434. url: '/pages_user/user/address'
  435. })
  436. }
  437. }
  438. }
  439. </script>
  440. <style lang="scss">
  441. .inner-box {
  442. padding: 20upx 20upx 140upx;
  443. .address-box {
  444. box-sizing: border-box;
  445. min-height: 171upx;
  446. background: #FFFFFF;
  447. border-radius: 16upx;
  448. background-image: url("https://jnlzjk-1323137866.cos.ap-chongqing.myqcloud.com/shop/images/address_bg.png");
  449. background-repeat: no-repeat;
  450. background-size: 100% 30upx;
  451. background-position: left bottom;
  452. padding: 38upx 30upx 36upx;
  453. display: flex;
  454. align-items: center;
  455. justify-content: space-between;
  456. .left {
  457. width: 92%;
  458. .name-box {
  459. display: flex;
  460. align-items: center;
  461. .text {
  462. font-size: 32upx;
  463. font-family: PingFang SC;
  464. font-weight: bold;
  465. color: #111111;
  466. line-height: 1;
  467. &.name {
  468. margin-right: 30upx;
  469. }
  470. }
  471. }
  472. .address {
  473. font-size: 28upx;
  474. font-family: PingFang SC;
  475. font-weight: 500;
  476. color: #666666;
  477. line-height: 42upx;
  478. text-align: left;
  479. margin-top: 23upx;
  480. }
  481. }
  482. .arrow-box {
  483. width: 12upx;
  484. height: 23upx;
  485. display: flex;
  486. align-items: cenetr;
  487. justify-content: cenetr;
  488. image {
  489. width: 100%;
  490. height: 100%;
  491. }
  492. }
  493. }
  494. .goods-list {
  495. margin-top: 20upx;
  496. padding: 0 30upx;
  497. background-color: #FFFFFF;
  498. border-radius: 16upx;
  499. .item {
  500. padding: 30upx 0;
  501. border-bottom: 1px solid #EDEEEF;
  502. display: flex;
  503. align-items: center;
  504. .img-box {
  505. width: 160upx;
  506. height: 160upx;
  507. margin-right: 30upx;
  508. image {
  509. width: 100%;
  510. height: 100%;
  511. }
  512. }
  513. .info-box {
  514. width: calc(100% - 190upx);
  515. height: 160upx;
  516. display: flex;
  517. flex-direction: column;
  518. justify-content: space-between;
  519. .name-box {
  520. font-size: 28upx;
  521. font-family: PingFang SC;
  522. font-weight: 500;
  523. color: #111111;
  524. line-height: 40upx;
  525. .tag {
  526. display: inline-block;
  527. padding: 0 6upx;
  528. height: 30upx;
  529. background: linear-gradient(90deg, #66b2ef 0%, #FF233C 100%);
  530. border-radius: 4upx;
  531. margin-right: 10upx;
  532. font-size: 22upx;
  533. font-family: PingFang SC;
  534. font-weight: bold;
  535. color: #FFFFFF;
  536. line-height: 30upx;
  537. float: left;
  538. margin-top: 7upx;
  539. }
  540. }
  541. .spec {
  542. margin-top: 10upx;
  543. font-size: 24upx;
  544. font-family: PingFang SC;
  545. font-weight: 500;
  546. color: #999999;
  547. line-height: 1;
  548. }
  549. .price-num {
  550. display: flex;
  551. align-items: center;
  552. justify-content: space-between;
  553. .price {
  554. display: flex;
  555. align-items: flex-end;
  556. .unit {
  557. font-size: 24upx;
  558. font-family: PingFang SC;
  559. font-weight: 500;
  560. color: #111111;
  561. line-height: 1.2;
  562. margin-right: 4upx;
  563. }
  564. .num {
  565. font-size: 32upx;
  566. font-family: PingFang SC;
  567. font-weight: 500;
  568. color: #111111;
  569. line-height: 1;
  570. }
  571. }
  572. .num {
  573. font-size: 24upx;
  574. font-family: PingFang SC;
  575. font-weight: 500;
  576. color: #999999;
  577. line-height: 1;
  578. }
  579. }
  580. }
  581. }
  582. .sub-total {
  583. height: 88upx;
  584. display: flex;
  585. align-items: center;
  586. justify-content: flex-end;
  587. .label {
  588. font-size: 24upx;
  589. font-family: PingFang SC;
  590. font-weight: 500;
  591. color: #999999;
  592. }
  593. .price {
  594. display: flex;
  595. align-items: flex-end;
  596. .unit {
  597. font-size: 24upx;
  598. font-family: PingFang SC;
  599. font-weight: 500;
  600. color: #FF6633;
  601. line-height: 1.2;
  602. margin-right: 4upx;
  603. }
  604. .num {
  605. font-size: 32upx;
  606. font-family: PingFang SC;
  607. font-weight: bold;
  608. color: #FF6633;
  609. line-height: 1;
  610. }
  611. }
  612. }
  613. }
  614. .points {
  615. height: 88upx;
  616. padding: 0 30upx;
  617. background: #FFFFFF;
  618. border-radius: 16upx;
  619. display: flex;
  620. align-items: center;
  621. justify-content: space-between;
  622. .left {
  623. display: flex;
  624. align-items: center;
  625. image {
  626. width: 28upx;
  627. height: 28upx;
  628. margin-right: 20upx;
  629. }
  630. .text {
  631. font-size: 28upx;
  632. font-family: PingFang SC;
  633. font-weight: 500;
  634. color: #666666;
  635. }
  636. }
  637. .right {
  638. display: flex;
  639. align-items: center;
  640. .text {
  641. font-size: 28upx;
  642. font-family: PingFang SC;
  643. font-weight: 500;
  644. color: #111111;
  645. }
  646. image {
  647. margin-left: 15upx;
  648. width: 14upx;
  649. height: 24upx;
  650. }
  651. }
  652. }
  653. .remarks {
  654. height: 88upx;
  655. padding: 0 30upx;
  656. background: #FFFFFF;
  657. border-radius: 16upx;
  658. margin-top: 20upx;
  659. display: flex;
  660. align-items: center;
  661. input {
  662. width: 100%;
  663. font-size: 28upx;
  664. font-family: PingFang SC;
  665. font-weight: 500;
  666. color: #000000;
  667. }
  668. .input {
  669. font-size: 28upx;
  670. font-family: PingFang SC;
  671. font-weight: 500;
  672. color: #999999;
  673. }
  674. }
  675. }
  676. .btn-foot {
  677. box-sizing: border-box;
  678. width: 100%;
  679. height: 121upx;
  680. background: #FFFFFF;
  681. padding: 16upx 30upx 16upx 60upx;
  682. display: flex;
  683. align-items: center;
  684. justify-content: flex-end;
  685. position: fixed;
  686. left: 0;
  687. bottom: 0;
  688. z-index: 99;
  689. .right {
  690. display: flex;
  691. align-items: center;
  692. .total {
  693. display: flex;
  694. align-items: flex-end;
  695. margin-right: 36upx;
  696. .label {
  697. font-size: 26upx;
  698. font-family: PingFang SC;
  699. font-weight: 500;
  700. color: #999999;
  701. line-height: 1.5;
  702. }
  703. .price {
  704. display: flex;
  705. align-items: flex-end;
  706. .unit {
  707. font-size: 32upx;
  708. font-family: PingFang SC;
  709. font-weight: bold;
  710. color: #FF6633;
  711. line-height: 1.2;
  712. margin-right: 10upx;
  713. }
  714. .num {
  715. font-size: 50upx;
  716. font-family: PingFang SC;
  717. font-weight: bold;
  718. color: #FF6633;
  719. line-height: 1;
  720. }
  721. }
  722. }
  723. .btn {
  724. width: 200upx;
  725. height: 88upx;
  726. line-height: 88upx;
  727. text-align: center;
  728. font-size: 30upx;
  729. font-family: PingFang SC;
  730. font-weight: bold;
  731. color: #FFFFFF;
  732. background: #FF233C;
  733. border-radius: 44upx;
  734. }
  735. }
  736. }
  737. </style>
  738. <style lang="less" scoped>
  739. .coupon {
  740. height: 100%;
  741. }
  742. /*优惠券列表公共*/
  743. .coupon-list {}
  744. .coupon-list .item {
  745. display: flex;
  746. flex-direction: column;
  747. justify-content: center;
  748. align-items: center;
  749. width: 100%;
  750. height: 1.7 * 100rpx;
  751. margin-bottom: 0.16 * 100rpx;
  752. }
  753. .coupon-list .item .money {
  754. background-size: 100% 100%;
  755. width: 2.4 * 100rpx;
  756. height: 100%;
  757. color: #fff;
  758. font-size: 0.36 * 100rpx;
  759. font-weight: bold;
  760. text-align: center;
  761. display: flex;
  762. flex-direction: column;
  763. align-items: center;
  764. justify-content: center;
  765. position: relative;
  766. }
  767. .coupon-list .item .money .img {
  768. position: absolute;
  769. width: 2.4 * 100rpx;
  770. height: 100%;
  771. color: #fff;
  772. }
  773. .coupon-list .item .money .num {
  774. font-size: 0.6 * 100rpx;
  775. }
  776. .coupon-list .item .money .pic-num {
  777. font-size: 20rpx;
  778. z-index: 99;
  779. }
  780. .coupon-list .item .text {
  781. width: 4.5 * 100rpx;
  782. padding: 0 0.17 * 100rpx 0 0.24 * 100rpx;
  783. background-color: #fff;
  784. box-sizing: border-box;
  785. }
  786. .coupon-list .item .text .condition {
  787. font-size: 0.3 * 100rpx;
  788. color: #282828;
  789. height: 0.93 * 100rpx;
  790. line-height: 0.93 * 100rpx;
  791. border-bottom: 1px solid #f0f0f0;
  792. }
  793. .coupon-list .item .text .data {
  794. font-size: 0.2 * 100rpx;
  795. color: #999;
  796. height: 0.76 * 100rpx;
  797. }
  798. .coupon-list .item .text .data .bnt {
  799. width: 1.36 * 100rpx;
  800. height: 0.44 * 100rpx;
  801. border-radius: 0.22 * 100rpx;
  802. font-size: 0.22 * 100rpx;
  803. color: #fff;
  804. text-align: center;
  805. line-height: 0.44 * 100rpx;
  806. background-color: red;
  807. }
  808. .coupon-list .item .text .data .bnt.gray {
  809. background-color: #ccc;
  810. }
  811. </style>