confirmOrder.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808
  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.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="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. storeId:null,
  171. form:{
  172. useIntegral:0,
  173. orderKey:null,
  174. addressId:null,
  175. mark:null,
  176. companyId:null,
  177. companyUserId:null
  178. }
  179. }
  180. },
  181. onLoad(option) {
  182. this.form.companyId=option.companyId;
  183. this.form.companyUserId=option.companyUserId;
  184. this.cartIds=option.cartIds;
  185. this.type=option.type;
  186. this.storeId=option.storeId;
  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:0,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 = {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. var that=this;
  286. if(this.form.orderKey==null){
  287. uni.showToast({
  288. icon:'none',
  289. title: '订单KEY不存在',
  290. });
  291. return;
  292. }
  293. if(this.form.addressId==null){
  294. uni.showToast({
  295. icon:'none',
  296. title: '收货地址不能为空',
  297. });
  298. return;
  299. }
  300. let productInfo=this.carts.map(item => {
  301. return {
  302. productId: item.productId,
  303. num: item.cartNum
  304. };
  305. });
  306. const data={
  307. type:1,
  308. productInfo:productInfo
  309. }
  310. checkContinue(data).then(res=>{
  311. console.log(res)
  312. if(res.code==200){
  313. uni.requestSubscribeMessage({
  314. tmplIds: this.temps,
  315. success(res) {
  316. that.createOrder();
  317. },
  318. fail(res) {
  319. that.createOrder();
  320. }
  321. })
  322. }else{
  323. if (res.msg.length >14) {
  324. uni.showModal({
  325. title: '提示',
  326. content: res.msg,
  327. showCancel: false,
  328. confirmText: '我知道了'
  329. })
  330. } else {
  331. uni.showToast({
  332. title: res.msg,
  333. icon: 'none'
  334. })
  335. }
  336. }
  337. })
  338. },
  339. createOrder(){
  340. var that=this;
  341. var data=null;
  342. var tuiUserId=uni.getStorageSync('tuiUserId');
  343. uni.showLoading({
  344. title: '正在处理中...'
  345. });
  346. if(tuiUserId!=null&&tuiUserId!=undefined&&tuiUserId>0){
  347. data = {orderCreateType:1,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};
  348. }
  349. else{
  350. data = {orderCreateType:1,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};
  351. }
  352. if(this.storeId!=null&& this.storeId>0){
  353. data.storeId=this.storeId;
  354. }
  355. uni.hideLoading()
  356. create(data).then(
  357. res => {
  358. uni.hideLoading()
  359. if(res.code==200){
  360. uni.hideLoading()
  361. if(res.order.isPrescribe==1){
  362. setTimeout(function(){
  363. uni.redirectTo({
  364. url:"prescribe?orderId="+res.order.id
  365. })
  366. },200);
  367. }
  368. else{
  369. setTimeout(function(){
  370. uni.redirectTo({
  371. url: './paymentOrder?orderId='+res.order.id
  372. })
  373. },200);
  374. }
  375. return;
  376. }
  377. else{
  378. if(res.code==501){
  379. uni.showToast({
  380. icon:'none',
  381. title: res.msg,
  382. });
  383. setTimeout(function(){
  384. uni.navigateBack({
  385. delta:1
  386. })
  387. },200);
  388. return;
  389. }
  390. else{
  391. uni.showToast({
  392. icon:'none',
  393. title: res.msg,
  394. });
  395. }
  396. }
  397. },
  398. rej => {}
  399. );
  400. },
  401. openAddress(){
  402. uni.navigateTo({
  403. url: '/pages_user/user/address'
  404. })
  405. }
  406. }
  407. }
  408. </script>
  409. <style lang="scss">
  410. .inner-box{
  411. padding: 20upx 20upx 140upx;
  412. .address-box{
  413. box-sizing: border-box;
  414. min-height: 171upx;
  415. background: #FFFFFF;
  416. border-radius: 16upx;
  417. background-image: url("https://kntobs.jnmyunl.com/shop/images/address_bg.png");
  418. background-repeat: no-repeat;
  419. background-size: 100% 30upx;
  420. background-position: left bottom;
  421. padding: 38upx 30upx 36upx;
  422. display: flex;
  423. align-items: center;
  424. justify-content: space-between;
  425. .left{
  426. width: 92%;
  427. .name-box{
  428. display: flex;
  429. align-items: center;
  430. .text{
  431. font-size: 32upx;
  432. font-family: PingFang SC;
  433. font-weight: bold;
  434. color: #111111;
  435. line-height: 1;
  436. &.name{
  437. margin-right: 30upx;
  438. }
  439. }
  440. }
  441. .address{
  442. font-size: 28upx;
  443. font-family: PingFang SC;
  444. font-weight: 500;
  445. color: #666666;
  446. line-height: 42upx;
  447. text-align:left;
  448. margin-top: 23upx;
  449. }
  450. }
  451. .arrow-box{
  452. width: 12upx;
  453. height: 23upx;
  454. display: flex;
  455. align-items: cenetr;
  456. justify-content: cenetr;
  457. image{
  458. width: 100%;
  459. height: 100%;
  460. }
  461. }
  462. }
  463. .goods-list{
  464. margin-top: 20upx;
  465. padding: 0 30upx;
  466. background-color: #FFFFFF;
  467. border-radius: 16upx;
  468. .item{
  469. padding: 30upx 0;
  470. border-bottom: 1px solid #EDEEEF;
  471. display: flex;
  472. align-items: center;
  473. .img-box{
  474. width: 160upx;
  475. height: 160upx;
  476. margin-right: 30upx;
  477. image{
  478. width: 100%;
  479. height: 100%;
  480. }
  481. }
  482. .info-box{
  483. width: calc(100% - 190upx);
  484. height: 160upx;
  485. display: flex;
  486. flex-direction: column;
  487. justify-content: space-between;
  488. .name-box{
  489. font-size: 28upx;
  490. font-family: PingFang SC;
  491. font-weight: 500;
  492. color: #111111;
  493. line-height: 40upx;
  494. .tag{
  495. display: inline-block;
  496. padding: 0 6upx;
  497. height: 30upx;
  498. background: linear-gradient(90deg, #66b2ef 0%, #2BC7B9 100%);
  499. border-radius: 4upx;
  500. margin-right: 10upx;
  501. font-size: 22upx;
  502. font-family: PingFang SC;
  503. font-weight: bold;
  504. color: #FFFFFF;
  505. line-height: 30upx;
  506. float: left;
  507. margin-top: 7upx;
  508. }
  509. }
  510. .spec{
  511. margin-top: 10upx;
  512. font-size: 24upx;
  513. font-family: PingFang SC;
  514. font-weight: 500;
  515. color: #999999;
  516. line-height: 1;
  517. }
  518. .price-num{
  519. display: flex;
  520. align-items: center;
  521. justify-content: space-between;
  522. .price{
  523. display: flex;
  524. align-items: flex-end;
  525. .unit{
  526. font-size: 24upx;
  527. font-family: PingFang SC;
  528. font-weight: 500;
  529. color: #111111;
  530. line-height: 1.2;
  531. margin-right: 4upx;
  532. }
  533. .num{
  534. font-size: 32upx;
  535. font-family: PingFang SC;
  536. font-weight: 500;
  537. color: #111111;
  538. line-height: 1;
  539. }
  540. }
  541. .num{
  542. font-size: 24upx;
  543. font-family: PingFang SC;
  544. font-weight: 500;
  545. color: #999999;
  546. line-height: 1;
  547. }
  548. }
  549. }
  550. }
  551. .sub-total{
  552. height: 88upx;
  553. display: flex;
  554. align-items: center;
  555. justify-content: flex-end;
  556. .label{
  557. font-size: 24upx;
  558. font-family: PingFang SC;
  559. font-weight: 500;
  560. color: #999999;
  561. }
  562. .price{
  563. display: flex;
  564. align-items: flex-end;
  565. .unit{
  566. font-size: 24upx;
  567. font-family: PingFang SC;
  568. font-weight: 500;
  569. color: #FF6633;
  570. line-height: 1.2;
  571. margin-right: 4upx;
  572. }
  573. .num{
  574. font-size: 32upx;
  575. font-family: PingFang SC;
  576. font-weight: bold;
  577. color: #FF6633;
  578. line-height: 1;
  579. }
  580. }
  581. }
  582. }
  583. .points{
  584. height: 88upx;
  585. padding: 0 30upx;
  586. background: #FFFFFF;
  587. border-radius: 16upx;
  588. display: flex;
  589. align-items: center;
  590. justify-content: space-between;
  591. .left{
  592. display: flex;
  593. align-items: center;
  594. image{
  595. width: 28upx;
  596. height: 28upx;
  597. margin-right: 20upx;
  598. }
  599. .text{
  600. font-size: 28upx;
  601. font-family: PingFang SC;
  602. font-weight: 500;
  603. color: #666666;
  604. }
  605. }
  606. .right{
  607. display: flex;
  608. align-items: center;
  609. .text{
  610. font-size: 28upx;
  611. font-family: PingFang SC;
  612. font-weight: 500;
  613. color: #111111;
  614. }
  615. image{
  616. margin-left: 15upx;
  617. width: 14upx;
  618. height: 24upx;
  619. }
  620. }
  621. }
  622. .remarks{
  623. height: 88upx;
  624. padding: 0 30upx;
  625. background: #FFFFFF;
  626. border-radius: 16upx;
  627. margin-top: 20upx;
  628. display: flex;
  629. align-items: center;
  630. input{
  631. width: 100%;
  632. font-size: 28upx;
  633. font-family: PingFang SC;
  634. font-weight: 500;
  635. color: #000000;
  636. }
  637. .input{
  638. font-size: 28upx;
  639. font-family: PingFang SC;
  640. font-weight: 500;
  641. color: #999999;
  642. }
  643. }
  644. }
  645. .btn-foot{
  646. box-sizing: border-box;
  647. width: 100%;
  648. height: 121upx;
  649. background: #FFFFFF;
  650. padding: 16upx 30upx 16upx 60upx;
  651. display: flex;
  652. align-items: center;
  653. justify-content: flex-end;
  654. position: fixed;
  655. left: 0;
  656. bottom: 0;
  657. z-index: 99;
  658. .right{
  659. display: flex;
  660. align-items: center;
  661. .total{
  662. display: flex;
  663. align-items: flex-end;
  664. margin-right: 36upx;
  665. .label{
  666. font-size: 26upx;
  667. font-family: PingFang SC;
  668. font-weight: 500;
  669. color: #999999;
  670. line-height: 1.5;
  671. }
  672. .price{
  673. display: flex;
  674. align-items: flex-end;
  675. .unit{
  676. font-size: 32upx;
  677. font-family: PingFang SC;
  678. font-weight: bold;
  679. color: #FF6633;
  680. line-height: 1.2;
  681. margin-right: 10upx;
  682. }
  683. .num{
  684. font-size: 50upx;
  685. font-family: PingFang SC;
  686. font-weight: bold;
  687. color: #FF6633;
  688. line-height: 1;
  689. }
  690. }
  691. }
  692. .btn{
  693. width: 200upx;
  694. height: 88upx;
  695. line-height: 88upx;
  696. text-align: center;
  697. font-size: 30upx;
  698. font-family: PingFang SC;
  699. font-weight: bold;
  700. color: #FFFFFF;
  701. background: #2BC7B9;
  702. border-radius: 44upx;
  703. }
  704. }
  705. }
  706. </style>
  707. <style lang="less" scoped>
  708. .coupon {
  709. height: 100%;
  710. }
  711. /*优惠券列表公共*/
  712. .coupon-list {
  713. }
  714. .coupon-list .item {
  715. display: flex;
  716. flex-direction: column;
  717. justify-content: center;
  718. align-items: center;
  719. width: 100%;
  720. height: 1.7 * 100rpx;
  721. margin-bottom: 0.16 * 100rpx;
  722. }
  723. .coupon-list .item .money {
  724. background-size: 100% 100%;
  725. width: 2.4 * 100rpx;
  726. height: 100%;
  727. color: #fff;
  728. font-size: 0.36 * 100rpx;
  729. font-weight: bold;
  730. text-align: center;
  731. display: flex;
  732. flex-direction: column;
  733. align-items: center;
  734. justify-content: center;
  735. position: relative;
  736. }
  737. .coupon-list .item .money .img{
  738. position: absolute;
  739. width: 2.4 * 100rpx;
  740. height: 100%;
  741. color: #fff;
  742. }
  743. .coupon-list .item .money .num {
  744. font-size: 0.6 * 100rpx;
  745. }
  746. .coupon-list .item .money .pic-num {
  747. font-size: 20rpx;
  748. z-index: 99;
  749. }
  750. .coupon-list .item .text {
  751. width: 4.5 * 100rpx;
  752. padding: 0 0.17 * 100rpx 0 0.24 * 100rpx;
  753. background-color: #fff;
  754. box-sizing: border-box;
  755. }
  756. .coupon-list .item .text .condition {
  757. font-size: 0.3 * 100rpx;
  758. color: #282828;
  759. height: 0.93 * 100rpx;
  760. line-height: 0.93 * 100rpx;
  761. border-bottom: 1px solid #f0f0f0;
  762. }
  763. .coupon-list .item .text .data {
  764. font-size: 0.2 * 100rpx;
  765. color: #999;
  766. height: 0.76 * 100rpx;
  767. }
  768. .coupon-list .item .text .data .bnt {
  769. width: 1.36 * 100rpx;
  770. height: 0.44 * 100rpx;
  771. border-radius: 0.22 * 100rpx;
  772. font-size: 0.22 * 100rpx;
  773. color: #fff;
  774. text-align: center;
  775. line-height: 0.44 * 100rpx;
  776. background-color: red;
  777. }
  778. .coupon-list .item .text .data .bnt.gray {
  779. background-color: #ccc;
  780. }
  781. </style>