confirmOrder.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  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://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/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">{{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://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/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" :style="{background:_background(item.productType)}">{{$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&&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&&price.totalPrice.toFixed(2)}}</text>
  58. </view>
  59. </view>
  60. </view>
  61. <!-- 积分 -->
  62. <view class="points">
  63. <view class="left">
  64. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/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="#2583EB" 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://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/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. <view class="coupon-list" v-if="couponsList.length > 0">
  119. <view class="item acea-row row-center-wrapper" v-for="(item, index) in couponsList" :key="index">
  120. <view class="money" >
  121. <image v-if="item.status==0" class="img" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/coupon1.png" mode="widthFix"></image>
  122. <image v-if="item.status!=0" class="img" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/coupon2.png" mode="widthFix"></image>
  123. <view style="z-index: 999;">
  124. ¥<span class="num">{{ item.couponPrice }}</span>
  125. </view>
  126. <view class="pic-num" >满{{ item.useMinPrice }}元可用</view>
  127. </view>
  128. <view class="text">
  129. <view class="condition line1">
  130. {{ item.couponTitle }}
  131. </view>
  132. <view class="data acea-row row-between-wrapper">
  133. <view >{{ item.limitTime }}到期</view>
  134. <view class="bnt bg-color-red" @click="couponSelect(item)" >选择</view>
  135. </view>
  136. </view>
  137. </view>
  138. </view>
  139. <view v-if="couponsList.length == 0" class="no-data-box" >
  140. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/empty_icon.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.vue'
  152. import popupBottom from './components/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. }
  184. }
  185. },
  186. computed: {
  187. _background() {
  188. //productType: 1:OTC,2:Rx,3:非药品,4:器械
  189. return (productType)=> {
  190. switch (productType) {
  191. case 1: return '#37E2EA' // OTC
  192. case 2: return 'red' // Rx
  193. case 3: return '#2583EB' // 非药品
  194. case 4: return '#999' // 器械
  195. default: return '#ccc'
  196. }
  197. }
  198. }
  199. },
  200. onLoad(option) {
  201. this.form.companyId=option.companyId;
  202. this.form.companyUserId=option.companyUserId;
  203. this.cartIds=option.cartIds;
  204. this.type=option.type;
  205. this.confirm();
  206. uni.$on('updateAddress', (e) => {
  207. this.address=e;
  208. this.form.addressId=e.addressId;
  209. this.computed()
  210. })
  211. this.getWeixinOrderTemps();
  212. },
  213. methods: {
  214. getWeixinOrderTemps:function(){
  215. getWeixinOrderTemps().then(
  216. res => {
  217. if(res.code==200){
  218. this.temps=res.temp
  219. console.log(this.temps)
  220. }else{
  221. }
  222. },
  223. rej => {}
  224. );
  225. },
  226. couponSelect(item){
  227. this.couponText="-¥"+item.couponPrice.toFixed(2);
  228. this.couponUserId=item.id;
  229. this.couponVisible=false;
  230. this.computed();
  231. },
  232. openCoupon(){
  233. let that = this;
  234. var data={couponType:0,useMinPrice:this.price.payPrice};
  235. getMyEnableCouponList(data).then(res => {
  236. this.couponVisible=true;
  237. that.couponsList = res.data
  238. })
  239. },
  240. integralChange(e){
  241. console.log(e)
  242. this.form.useIntegral=e?1:0
  243. this.computed()
  244. },
  245. confirm(item){
  246. let data = {type:this.type,cartIds:this.cartIds};
  247. confirm(data).then(
  248. res => {
  249. if(res.code==200){
  250. this.carts=res.carts;
  251. this.form.orderKey=res.orderKey;
  252. if(res.address!=null){
  253. this.form.addressId=res.address.id;
  254. this.address=res.address;
  255. console.log(this.form.addreddId)
  256. }
  257. this.computed()
  258. }else{
  259. uni.showToast({
  260. icon:'none',
  261. title: res.msg,
  262. });
  263. }
  264. },
  265. rej => {}
  266. );
  267. },
  268. computed(){
  269. let data = {companyId:this.form.companyId,couponUserId:this.couponUserId,orderKey:this.form.orderKey,addressId:this.form.addressId,useIntegral:this.form.useIntegral};
  270. computed(data).then(
  271. res => {
  272. if(res.code==200){
  273. console.log(res)
  274. this.price=res.data
  275. }else{
  276. if(res.code==501){
  277. uni.showToast({
  278. icon:'none',
  279. title: res.msg,
  280. });
  281. setTimeout(function(){
  282. uni.navigateBack({
  283. delta:1
  284. })
  285. },500);
  286. return;
  287. }
  288. else{
  289. uni.showToast({
  290. icon:'none',
  291. title: res.msg,
  292. });
  293. }
  294. }
  295. },
  296. rej => {}
  297. );
  298. },
  299. // 提交订单
  300. submitOrder() {
  301. var that=this;
  302. if(this.form.orderKey==null){
  303. uni.showToast({
  304. icon:'none',
  305. title: '订单KEY不存在',
  306. });
  307. return;
  308. }
  309. if(this.form.addressId==null){
  310. uni.showToast({
  311. icon:'none',
  312. title: '收货地址不能为空',
  313. });
  314. return;
  315. }
  316. uni.requestSubscribeMessage({
  317. tmplIds: this.temps,
  318. success(res) {
  319. that.createOrder();
  320. },
  321. fail(res) {
  322. that.createOrder();
  323. }
  324. })
  325. },
  326. createOrder(){
  327. var that=this;
  328. var data=null;
  329. var tuiUserId=uni.getStorageSync('tuiUserId');
  330. uni.showLoading({
  331. title: '正在处理中...'
  332. });
  333. if(tuiUserId!=null&&tuiUserId!=undefined&&tuiUserId>0){
  334. 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};
  335. }
  336. else{
  337. 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};
  338. }
  339. create(data).then(
  340. res => {
  341. uni.hideLoading()
  342. if(res.code==200){
  343. uni.hideLoading()
  344. if(res.order.isPrescribe==1){
  345. setTimeout(function(){
  346. uni.redirectTo({
  347. url:"/pages_shopping/prescribe?orderId="+res.order.id
  348. })
  349. },200);
  350. }
  351. else{
  352. setTimeout(function(){
  353. uni.redirectTo({
  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/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://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/shopping/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, #2583EB 0%, #92C1F5 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: #2583EB;
  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>