confirmCreateOrder.vue 19 KB

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