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