confirmCreateOrder.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816
  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://kntobs.jnmyunl.com/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://kntobs.jnmyunl.com/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.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">
  63. <view class="left">
  64. <image src="https://kntobs.jnmyunl.com/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()">
  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://kntobs.jnmyunl.com/shop/images/arrow4.png" mode=""></image>
  79. </view>
  80. </view>
  81. <view class="points">
  82. <view class="left">
  83. <text class="text">运费</text>
  84. </view>
  85. <view class="right">
  86. <text class="text">{{price.payPostage==null||price.payPostage==0?'免运费':price.payPostage.toFixed(2)}}</text>
  87. </view>
  88. </view>
  89. <!-- 备注 -->
  90. <view class="remarks">
  91. <input type="text" v-model="form.mark" placeholder="备注留言(选填)" placeholder-class="input" />
  92. </view>
  93. </view>
  94. <!-- 底部按钮 -->
  95. <view class="btn-foot">
  96. <view class="right">
  97. <view class="total">
  98. <text class="label">合计:</text>
  99. <view class="price">
  100. <text class="unit">¥</text>
  101. <text class="num">{{price.payPrice.toFixed(2)}}</text>
  102. </view>
  103. </view>
  104. <view class="btn" @click="submitOrder">提交订单</view>
  105. </view>
  106. </view>
  107. <popupBottom ref="popup" :visible.sync="couponVisible" title=" " bgColor="#f5f5f5" radius="30" maxHeight="60%">
  108. <view class="coupon" style="height:650rpx;">
  109. <div class="coupon-list" v-if="couponsList.length > 0">
  110. <div class="item acea-row row-center-wrapper" v-for="(item, index) in couponsList" :key="index">
  111. <div class="money" >
  112. <image v-if="item.status==0" class="img" src="https://kntobs.jnmyunl.com/shop/images/coupon1.png" mode="widthFix"></image>
  113. <image v-if="item.status!=0" class="img" src="https://kntobs.jnmyunl.com/shop/images/coupon2.png" mode="widthFix"></image>
  114. <div style="z-index: 999;">
  115. ¥<span class="num">{{ item.couponPrice }}</span>
  116. </div>
  117. <div class="pic-num" >满{{ item.useMinPrice }}元可用</div>
  118. </div>
  119. <div class="text">
  120. <div class="condition line1">
  121. {{ item.couponTitle }}
  122. </div>
  123. <div class="data acea-row row-between-wrapper">
  124. <div >{{ item.limitTime }}到期</div>
  125. <div class="bnt bg-color-red" @click="couponSelect(item)" >选择</div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <view v-if="couponsList.length == 0" class="no-data-box" >
  131. <image src="https://kntobs.jnmyunl.com/shop/images/no_data.png" mode="aspectFit"></image>
  132. <view class="empty-title">暂无数据</view>
  133. </view>
  134. </view>
  135. </popupBottom>
  136. <ykscreenRecord></ykscreenRecord>
  137. </view>
  138. </template>
  139. <script>
  140. import {getWeixinOrderTemps} from '@/api/common'
  141. import ykscreenRecord from "@/components/yk-screenRecord/yk-screenRecord.vue"
  142. import {confirm,computed,create,checkContinue} from '@/api/storeOrder'
  143. import { getMyEnableCouponList } from '@/api/coupon'
  144. import EvanSwitch from '@/components/evan-switch/evan-switch.vue'
  145. import popupBottom from '@/components/px-popup-bottom/px-popup-bottom.vue'
  146. export default {
  147. components: {
  148. EvanSwitch,
  149. popupBottom,
  150. ykscreenRecord
  151. },
  152. data() {
  153. return {
  154. temps:[],
  155. couponUserId:null,
  156. couponText:"请选择",
  157. couponsList:[],
  158. couponVisible:false,
  159. price:{
  160. payPrice:0,
  161. totalPostage:0,
  162. usedIntegral:0,
  163. totalPrice:0.00,
  164. },
  165. address:null,
  166. carts:[],
  167. checked: false,
  168. type:null,
  169. cartIds:null,
  170. form:{
  171. useIntegral:0,
  172. orderKey:null,
  173. addressId:null,
  174. mark:null,
  175. companyId:null,
  176. companyUserId:null,
  177. createOrderKey:null,
  178. }
  179. }
  180. },
  181. onLoad(option) {
  182. this.form.createOrderKey=option.createOrderKey;
  183. this.form.companyId=option.companyId;
  184. this.form.companyUserId=option.companyUserId;
  185. this.cartIds=option.cartIds;
  186. this.type=option.type;
  187. this.confirm();
  188. uni.$on('updateAddress', (e) => {
  189. this.address=e;
  190. this.form.addressId=e.id;
  191. })
  192. this.getWeixinOrderTemps();
  193. },
  194. onUnload() {
  195. uni.$off('updateAddress')
  196. },
  197. methods: {
  198. getWeixinOrderTemps:function(){
  199. getWeixinOrderTemps().then(
  200. res => {
  201. if(res.code==200){
  202. this.temps=res.temp
  203. console.log(this.temps)
  204. }else{
  205. }
  206. },
  207. rej => {}
  208. );
  209. },
  210. couponSelect(item){
  211. this.couponText="-¥"+item.couponPrice.toFixed(2);
  212. this.couponUserId=item.id;
  213. this.couponVisible=false;
  214. this.computed();
  215. },
  216. openCoupon(){
  217. let that = this;
  218. var data={couponType:2,useMinPrice:this.price.payPrice};
  219. getMyEnableCouponList(data).then(res => {
  220. this.couponVisible=true;
  221. that.couponsList = res.data
  222. })
  223. },
  224. integralChange(e){
  225. console.log(e)
  226. this.form.useIntegral=e?1:0
  227. this.computed()
  228. },
  229. confirm(item){
  230. let data = {type:this.type,cartIds:this.cartIds};
  231. confirm(data).then(
  232. res => {
  233. if(res.code==200){
  234. this.carts=res.carts;
  235. this.form.orderKey=res.orderKey;
  236. if(res.address!=null){
  237. this.form.addressId=res.address.id;
  238. this.address=res.address;
  239. console.log(this.form.addreddId)
  240. }
  241. this.computed()
  242. }else{
  243. uni.showToast({
  244. icon:'none',
  245. title: res.msg,
  246. });
  247. }
  248. },
  249. rej => {}
  250. );
  251. },
  252. computed(item){
  253. let data = {createOrderKey:this.form.createOrderKey,couponUserId:this.couponUserId,orderKey:this.form.orderKey,addressId:this.form.addressId,useIntegral:this.form.useIntegral};
  254. computed(data).then(
  255. res => {
  256. if(res.code==200){
  257. console.log(res)
  258. this.price=res.data
  259. }else{
  260. if(res.code==501){
  261. uni.showToast({
  262. icon:'none',
  263. title: res.msg,
  264. });
  265. setTimeout(function(){
  266. uni.navigateBack({
  267. delta:1
  268. })
  269. },500);
  270. return;
  271. }
  272. else{
  273. uni.showToast({
  274. icon:'none',
  275. title: res.msg,
  276. });
  277. }
  278. }
  279. },
  280. rej => {}
  281. );
  282. },
  283. // 提交订单
  284. submitOrder() {
  285. console.log(1223)
  286. var that=this;
  287. console.log(123)
  288. if(this.form.orderKey==null){
  289. uni.showToast({
  290. icon:'none',
  291. title: '订单KEY不存在',
  292. });
  293. return;
  294. }
  295. if(this.form.addressId==null){
  296. uni.showToast({
  297. icon:'none',
  298. title: '收货地址不能为空',
  299. });
  300. return;
  301. }
  302. let productInfo=this.carts.map(item => {
  303. return {
  304. productId: item.productId,
  305. num: item.cartNum
  306. };
  307. });
  308. const data={
  309. type:1,
  310. productInfo:productInfo
  311. }
  312. checkContinue(data).then(res=>{
  313. console.log(res)
  314. if(res.code==200){
  315. uni.requestSubscribeMessage({
  316. tmplIds: this.temps,
  317. success(res) {
  318. that.createOrder();
  319. },
  320. fail(res) {
  321. that.createOrder();
  322. }
  323. })
  324. }else{
  325. if (res.msg.length >14) {
  326. uni.showModal({
  327. title: '提示',
  328. content: res.msg,
  329. showCancel: false,
  330. confirmText: '我知道了'
  331. })
  332. } else {
  333. uni.showToast({
  334. title: res.msg,
  335. icon: 'none'
  336. })
  337. }
  338. }
  339. })
  340. // uni.requestSubscribeMessage({
  341. // tmplIds: this.temps,
  342. // success(res) {
  343. // that.createOrder();
  344. // },
  345. // fail(res) {
  346. // that.createOrder();
  347. // }
  348. // })
  349. },
  350. createOrder(){
  351. var that=this;
  352. var data=null;
  353. var tuiUserId=uni.getStorageSync('tuiUserId');
  354. uni.showLoading({
  355. title: '正在处理中...'
  356. });
  357. if(tuiUserId!=null&&tuiUserId!=undefined&&tuiUserId>0){
  358. data = {createOrderKey:this.form.createOrderKey,orderCreateType:3,tuiUserId:tuiUserId,companyId:this.form.companyId,companyUserId:this.form.companyUserId,couponUserId:this.couponUserId,mark:this.form.mark,orderKey:this.form.orderKey,addressId:this.form.addressId,useIntegral:this.form.useIntegral,payType:1};
  359. }
  360. else{
  361. data = {createOrderKey:this.form.createOrderKey,orderCreateType:3,companyId:this.form.companyId,companyUserId:this.form.companyUserId,couponUserId:this.couponUserId,mark:this.form.mark,orderKey:this.form.orderKey,addressId:this.form.addressId,useIntegral:this.form.useIntegral,payType:1};
  362. }
  363. create(data).then(
  364. res => {
  365. uni.hideLoading()
  366. if(res.code==200){
  367. uni.hideLoading()
  368. if(res.order.isPrescribe==1){
  369. setTimeout(function(){
  370. uni.redirectTo({
  371. url:"prescribe?orderId="+res.order.id
  372. })
  373. },200);
  374. }
  375. else{
  376. console.log(111)
  377. setTimeout(()=>{
  378. uni.navigateTo({
  379. // url: './paymentOrder?orderId='+res.order.id
  380. url:'/pages/shopping/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://kntobs.jnmyunl.com/shop/images/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, #66b2ef 0%, #2BC7B9 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: #2BC7B9;
  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>