confirmCreateOrder.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792
  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://ysy-1329817240.cos.ap-guangzhou.myqcloud.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://ysy-1329817240.cos.ap-guangzhou.myqcloud.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://ysy-1329817240.cos.ap-guangzhou.myqcloud.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://ysy-1329817240.cos.ap-guangzhou.myqcloud.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">{{deposit>=0?deposit.toFixed(2):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://ysy-1329817240.cos.ap-guangzhou.myqcloud.com/shop/images/coupon1.png" mode="widthFix"></image>
  113. <image v-if="item.status!=0" class="img" src="https://ysy-1329817240.cos.ap-guangzhou.myqcloud.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://ysy-1329817240.cos.ap-guangzhou.myqcloud.com/shop/images/no_data.png" mode="aspectFit"></image>
  132. <view class="empty-title">暂无数据</view>
  133. </view>
  134. </view>
  135. </popupBottom>
  136. </view>
  137. </template>
  138. <script>
  139. import {getWeixinOrderTemps} from '@/api/common'
  140. import {confirm,computed,create} from '@/api/storeOrder'
  141. import { getMyEnableCouponList } from '@/api/coupon'
  142. import EvanSwitch from '@/components/evan-switch/evan-switch.vue'
  143. import popupBottom from '@/components/px-popup-bottom/px-popup-bottom.vue'
  144. export default {
  145. components: {
  146. EvanSwitch,
  147. popupBottom
  148. },
  149. data() {
  150. return {
  151. temps:[],
  152. couponUserId:null,
  153. couponText:"请选择",
  154. couponsList:[],
  155. couponVisible:false,
  156. price:{
  157. payPrice:0,
  158. totalPostage:0,
  159. usedIntegral:0,
  160. totalPrice:0.00,
  161. },
  162. address:null,
  163. carts:[],
  164. checked: false,
  165. type:null,
  166. cartIds:null,
  167. form:{
  168. useIntegral:0,
  169. orderKey:null,
  170. addressId:null,
  171. mark:null,
  172. companyId:null,
  173. companyUserId:null,
  174. createOrderKey:null,
  175. },
  176. deposit:0
  177. }
  178. },
  179. onLoad(option) {
  180. this.form.createOrderKey=option.createOrderKey;
  181. this.form.companyId=option.companyId;
  182. this.form.companyUserId=option.companyUserId;
  183. this.cartIds=option.cartIds;
  184. this.type=option.type;
  185. console.log(option)
  186. if(option.deposit){
  187. this.deposit=Number(option.deposit)
  188. console.log(this.deposit)
  189. }
  190. if(option.cartIds){
  191. this.confirm();
  192. }
  193. uni.$on('updateAddress', (e) => {
  194. this.address=e;
  195. this.form.addressId=e.id;
  196. })
  197. this.getWeixinOrderTemps();
  198. },
  199. methods: {
  200. getWeixinOrderTemps:function(){
  201. getWeixinOrderTemps().then(
  202. res => {
  203. if(res.code==200){
  204. this.temps=res.temp
  205. console.log(this.temps)
  206. }else{
  207. }
  208. },
  209. rej => {}
  210. );
  211. },
  212. couponSelect(item){
  213. this.couponText="-¥"+item.couponPrice.toFixed(2);
  214. this.couponUserId=item.id;
  215. this.couponVisible=false;
  216. this.computed();
  217. },
  218. openCoupon(){
  219. let that = this;
  220. var data={couponType:2,useMinPrice:this.price.payPrice};
  221. getMyEnableCouponList(data).then(res => {
  222. this.couponVisible=true;
  223. that.couponsList = res.data
  224. })
  225. },
  226. integralChange(e){
  227. console.log(e)
  228. this.form.useIntegral=e?1:0
  229. this.computed()
  230. },
  231. confirm(item){
  232. let data = {type:this.type,cartIds:this.cartIds};
  233. confirm(data).then(
  234. res => {
  235. if(res.code==200){
  236. this.carts=res.carts;
  237. this.form.orderKey=res.orderKey;
  238. if(res.address!=null){
  239. this.form.addressId=res.address.id;
  240. this.address=res.address;
  241. console.log(this.form.addreddId)
  242. }
  243. this.computed()
  244. }else{
  245. uni.showToast({
  246. icon:'none',
  247. title: res.msg,
  248. });
  249. }
  250. },
  251. rej => {}
  252. );
  253. },
  254. computed(item){
  255. let data = {createOrderKey:this.form.createOrderKey,couponUserId:this.couponUserId,orderKey:this.form.orderKey,addressId:this.form.addressId,useIntegral:this.form.useIntegral};
  256. computed(data).then(
  257. res => {
  258. if(res.code==200){
  259. console.log(res)
  260. this.price=res.data
  261. }else{
  262. if(res.code==501){
  263. uni.showToast({
  264. icon:'none',
  265. title: res.msg,
  266. });
  267. setTimeout(function(){
  268. uni.navigateBack({
  269. delta:1
  270. })
  271. },500);
  272. return;
  273. }
  274. else{
  275. uni.showToast({
  276. icon:'none',
  277. title: res.msg,
  278. });
  279. }
  280. }
  281. },
  282. rej => {}
  283. );
  284. },
  285. // 提交订单
  286. submitOrder() {
  287. console.log(1223)
  288. var that=this;
  289. console.log(123)
  290. if(this.form.orderKey==null){
  291. uni.showToast({
  292. icon:'none',
  293. title: '订单KEY不存在',
  294. });
  295. return;
  296. }
  297. if(this.form.addressId==null){
  298. uni.showToast({
  299. icon:'none',
  300. title: '收货地址不能为空',
  301. });
  302. return;
  303. }
  304. uni.requestSubscribeMessage({
  305. tmplIds: this.temps,
  306. success(res) {
  307. that.createOrder();
  308. },
  309. fail(res) {
  310. that.createOrder();
  311. }
  312. })
  313. },
  314. createOrder(){
  315. var that=this;
  316. var data=null;
  317. var tuiUserId=uni.getStorageSync('tuiUserId');
  318. uni.showLoading({
  319. title: '正在处理中...'
  320. });
  321. if(tuiUserId!=null&&tuiUserId!=undefined&&tuiUserId>0){
  322. data = {createOrderKey:this.form.createOrderKey,orderCreateType:3,
  323. tuiUserId:tuiUserId,companyId:this.form.companyId,
  324. companyUserId:this.form.companyUserId,couponUserId:this.couponUserId,
  325. mark:this.form.mark,orderKey:this.form.orderKey,addressId:this.form.addressId,
  326. useIntegral:this.form.useIntegral,payType:1};
  327. }
  328. else{
  329. data = {createOrderKey:this.form.createOrderKey,orderCreateType:3,
  330. companyId:this.form.companyId,
  331. companyUserId:this.form.companyUserId,
  332. amount:this.price.payPrice,
  333. couponUserId:this.couponUserId,mark:this.form.mark,
  334. orderKey:this.form.orderKey,addressId:this.form.addressId,
  335. useIntegral:this.form.useIntegral,payType:1};
  336. }
  337. create(data).then(
  338. res => {
  339. uni.hideLoading()
  340. if(res.code==200){
  341. uni.hideLoading()
  342. if(res.order.isPrescribe==1){
  343. setTimeout(function(){
  344. uni.redirectTo({
  345. url:"prescribe?orderId="+res.order.id
  346. })
  347. },200);
  348. }
  349. else{
  350. console.log(111)
  351. setTimeout(()=>{
  352. uni.navigateTo({
  353. // url: './paymentOrder?orderId='+res.order.id
  354. url:'/pages/shopping/paymentOrder?orderId='+res.order.id
  355. })
  356. },200);
  357. }
  358. return;
  359. }
  360. else{
  361. if(res.code==501){
  362. uni.showToast({
  363. icon:'none',
  364. title: res.msg,
  365. });
  366. setTimeout(function(){
  367. uni.navigateBack({
  368. delta:1
  369. })
  370. },200);
  371. return;
  372. }
  373. else{
  374. uni.showToast({
  375. icon:'none',
  376. title: res.msg,
  377. });
  378. }
  379. }
  380. },
  381. rej => {}
  382. );
  383. },
  384. openAddress(){
  385. uni.navigateTo({
  386. url: '/pages_user/user/address'
  387. })
  388. }
  389. }
  390. }
  391. </script>
  392. <style lang="scss">
  393. .inner-box{
  394. padding: 20upx 20upx 140upx;
  395. .address-box{
  396. box-sizing: border-box;
  397. min-height: 171upx;
  398. background: #FFFFFF;
  399. border-radius: 16upx;
  400. background-image: url(https://ysy-1329817240.cos.ap-guangzhou.myqcloud.com/shop/images/address_bg.png);
  401. background-repeat: no-repeat;
  402. background-size: 100% 30upx;
  403. background-position: left bottom;
  404. padding: 38upx 30upx 36upx;
  405. display: flex;
  406. align-items: center;
  407. justify-content: space-between;
  408. .left{
  409. width: 92%;
  410. .name-box{
  411. display: flex;
  412. align-items: center;
  413. .text{
  414. font-size: 32upx;
  415. font-family: PingFang SC;
  416. font-weight: bold;
  417. color: #111111;
  418. line-height: 1;
  419. &.name{
  420. margin-right: 30upx;
  421. }
  422. }
  423. }
  424. .address{
  425. font-size: 28upx;
  426. font-family: PingFang SC;
  427. font-weight: 500;
  428. color: #666666;
  429. line-height: 42upx;
  430. text-align:left;
  431. margin-top: 23upx;
  432. }
  433. }
  434. .arrow-box{
  435. width: 12upx;
  436. height: 23upx;
  437. display: flex;
  438. align-items: cenetr;
  439. justify-content: cenetr;
  440. image{
  441. width: 100%;
  442. height: 100%;
  443. }
  444. }
  445. }
  446. .goods-list{
  447. margin-top: 20upx;
  448. padding: 0 30upx;
  449. background-color: #FFFFFF;
  450. border-radius: 16upx;
  451. .item{
  452. padding: 30upx 0;
  453. border-bottom: 1px solid #EDEEEF;
  454. display: flex;
  455. align-items: center;
  456. .img-box{
  457. width: 160upx;
  458. height: 160upx;
  459. margin-right: 30upx;
  460. image{
  461. width: 100%;
  462. height: 100%;
  463. }
  464. }
  465. .info-box{
  466. width: calc(100% - 190upx);
  467. height: 160upx;
  468. display: flex;
  469. flex-direction: column;
  470. justify-content: space-between;
  471. .name-box{
  472. font-size: 28upx;
  473. font-family: PingFang SC;
  474. font-weight: 500;
  475. color: #111111;
  476. line-height: 40upx;
  477. .tag{
  478. display: inline-block;
  479. padding: 0 6upx;
  480. height: 30upx;
  481. background: linear-gradient(90deg, #66b2ef 0%, #2BC7B9 100%);
  482. border-radius: 4upx;
  483. margin-right: 10upx;
  484. font-size: 22upx;
  485. font-family: PingFang SC;
  486. font-weight: bold;
  487. color: #FFFFFF;
  488. line-height: 30upx;
  489. float: left;
  490. margin-top: 7upx;
  491. }
  492. }
  493. .spec{
  494. margin-top: 10upx;
  495. font-size: 24upx;
  496. font-family: PingFang SC;
  497. font-weight: 500;
  498. color: #999999;
  499. line-height: 1;
  500. }
  501. .price-num{
  502. display: flex;
  503. align-items: center;
  504. justify-content: space-between;
  505. .price{
  506. display: flex;
  507. align-items: flex-end;
  508. .unit{
  509. font-size: 24upx;
  510. font-family: PingFang SC;
  511. font-weight: 500;
  512. color: #111111;
  513. line-height: 1.2;
  514. margin-right: 4upx;
  515. }
  516. .num{
  517. font-size: 32upx;
  518. font-family: PingFang SC;
  519. font-weight: 500;
  520. color: #111111;
  521. line-height: 1;
  522. }
  523. }
  524. .num{
  525. font-size: 24upx;
  526. font-family: PingFang SC;
  527. font-weight: 500;
  528. color: #999999;
  529. line-height: 1;
  530. }
  531. }
  532. }
  533. }
  534. .sub-total{
  535. height: 88upx;
  536. display: flex;
  537. align-items: center;
  538. justify-content: flex-end;
  539. .label{
  540. font-size: 24upx;
  541. font-family: PingFang SC;
  542. font-weight: 500;
  543. color: #999999;
  544. }
  545. .price{
  546. display: flex;
  547. align-items: flex-end;
  548. .unit{
  549. font-size: 24upx;
  550. font-family: PingFang SC;
  551. font-weight: 500;
  552. color: #FF6633;
  553. line-height: 1.2;
  554. margin-right: 4upx;
  555. }
  556. .num{
  557. font-size: 32upx;
  558. font-family: PingFang SC;
  559. font-weight: bold;
  560. color: #FF6633;
  561. line-height: 1;
  562. }
  563. }
  564. }
  565. }
  566. .points{
  567. height: 88upx;
  568. padding: 0 30upx;
  569. background: #FFFFFF;
  570. border-radius: 16upx;
  571. display: flex;
  572. align-items: center;
  573. justify-content: space-between;
  574. .left{
  575. display: flex;
  576. align-items: center;
  577. image{
  578. width: 28upx;
  579. height: 28upx;
  580. margin-right: 20upx;
  581. }
  582. .text{
  583. font-size: 28upx;
  584. font-family: PingFang SC;
  585. font-weight: 500;
  586. color: #666666;
  587. }
  588. }
  589. .right{
  590. display: flex;
  591. align-items: center;
  592. .text{
  593. font-size: 28upx;
  594. font-family: PingFang SC;
  595. font-weight: 500;
  596. color: #111111;
  597. }
  598. image{
  599. margin-left: 15upx;
  600. width: 14upx;
  601. height: 24upx;
  602. }
  603. }
  604. }
  605. .remarks{
  606. height: 88upx;
  607. padding: 0 30upx;
  608. background: #FFFFFF;
  609. border-radius: 16upx;
  610. margin-top: 20upx;
  611. display: flex;
  612. align-items: center;
  613. input{
  614. width: 100%;
  615. font-size: 28upx;
  616. font-family: PingFang SC;
  617. font-weight: 500;
  618. color: #000000;
  619. }
  620. .input{
  621. font-size: 28upx;
  622. font-family: PingFang SC;
  623. font-weight: 500;
  624. color: #999999;
  625. }
  626. }
  627. }
  628. .btn-foot{
  629. box-sizing: border-box;
  630. width: 100%;
  631. height: 121upx;
  632. background: #FFFFFF;
  633. padding: 16upx 30upx 16upx 60upx;
  634. display: flex;
  635. align-items: center;
  636. justify-content: flex-end;
  637. position: fixed;
  638. left: 0;
  639. bottom: 0;
  640. z-index: 99;
  641. .right{
  642. display: flex;
  643. align-items: center;
  644. .total{
  645. display: flex;
  646. align-items: flex-end;
  647. margin-right: 36upx;
  648. .label{
  649. font-size: 26upx;
  650. font-family: PingFang SC;
  651. font-weight: 500;
  652. color: #999999;
  653. line-height: 1.5;
  654. }
  655. .price{
  656. display: flex;
  657. align-items: flex-end;
  658. .unit{
  659. font-size: 32upx;
  660. font-family: PingFang SC;
  661. font-weight: bold;
  662. color: #FF6633;
  663. line-height: 1.2;
  664. margin-right: 10upx;
  665. }
  666. .num{
  667. font-size: 50upx;
  668. font-family: PingFang SC;
  669. font-weight: bold;
  670. color: #FF6633;
  671. line-height: 1;
  672. }
  673. }
  674. }
  675. .btn{
  676. width: 200upx;
  677. height: 88upx;
  678. line-height: 88upx;
  679. text-align: center;
  680. font-size: 30upx;
  681. font-family: PingFang SC;
  682. font-weight: bold;
  683. color: #FFFFFF;
  684. background: #2BC7B9;
  685. border-radius: 44upx;
  686. }
  687. }
  688. }
  689. </style>
  690. <style lang="less" scoped>
  691. .coupon {
  692. height: 100%;
  693. }
  694. /*优惠券列表公共*/
  695. .coupon-list {
  696. }
  697. .coupon-list .item {
  698. display: flex;
  699. flex-direction: column;
  700. justify-content: center;
  701. align-items: center;
  702. width: 100%;
  703. height: 1.7 * 100rpx;
  704. margin-bottom: 0.16 * 100rpx;
  705. }
  706. .coupon-list .item .money {
  707. background-size: 100% 100%;
  708. width: 2.4 * 100rpx;
  709. height: 100%;
  710. color: #fff;
  711. font-size: 0.36 * 100rpx;
  712. font-weight: bold;
  713. text-align: center;
  714. display: flex;
  715. flex-direction: column;
  716. align-items: center;
  717. justify-content: center;
  718. position: relative;
  719. }
  720. .coupon-list .item .money .img{
  721. position: absolute;
  722. width: 2.4 * 100rpx;
  723. height: 100%;
  724. color: #fff;
  725. }
  726. .coupon-list .item .money .num {
  727. font-size: 0.6 * 100rpx;
  728. }
  729. .coupon-list .item .money .pic-num {
  730. font-size: 20rpx;
  731. z-index: 99;
  732. }
  733. .coupon-list .item .text {
  734. width: 4.5 * 100rpx;
  735. padding: 0 0.17 * 100rpx 0 0.24 * 100rpx;
  736. background-color: #fff;
  737. box-sizing: border-box;
  738. }
  739. .coupon-list .item .text .condition {
  740. font-size: 0.3 * 100rpx;
  741. color: #282828;
  742. height: 0.93 * 100rpx;
  743. line-height: 0.93 * 100rpx;
  744. border-bottom: 1px solid #f0f0f0;
  745. }
  746. .coupon-list .item .text .data {
  747. font-size: 0.2 * 100rpx;
  748. color: #999;
  749. height: 0.76 * 100rpx;
  750. }
  751. .coupon-list .item .text .data .bnt {
  752. width: 1.36 * 100rpx;
  753. height: 0.44 * 100rpx;
  754. border-radius: 0.22 * 100rpx;
  755. font-size: 0.22 * 100rpx;
  756. color: #fff;
  757. text-align: center;
  758. line-height: 0.44 * 100rpx;
  759. background-color: red;
  760. }
  761. .coupon-list .item .text .data .bnt.gray {
  762. background-color: #ccc;
  763. }
  764. </style>