confirmOrder.vue 19 KB

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