confirmCreateOrder.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782
  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://bjczwh.oss-cn-beijing.aliyuncs.com/app/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://bjczwh.oss-cn-beijing.aliyuncs.com/app/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://bjczwh.oss-cn-beijing.aliyuncs.com/app/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://bjczwh.oss-cn-beijing.aliyuncs.com/app/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. <!-- <view class="points">
  90. <view class="left">
  91. <text class="text">服务费</text>
  92. </view>
  93. <view class="right">
  94. <text class="text">{{price.serviceFee==null||price.serviceFee==0?'免服务费':price.serviceFee.toFixed(2)}}</text>
  95. </view>
  96. </view> -->
  97. <!-- 备注 -->
  98. <view class="remarks">
  99. <input type="text" v-model="form.mark" placeholder="备注留言(选填)" placeholder-class="input" />
  100. </view>
  101. </view>
  102. <!-- 底部按钮 -->
  103. <view class="btn-foot">
  104. <view class="right">
  105. <view class="total">
  106. <text class="label">合计:</text>
  107. <view class="price">
  108. <text class="unit">¥</text>
  109. <text class="num">{{price.payPrice.toFixed(2)}}</text>
  110. </view>
  111. </view>
  112. <view class="btn" @click="submitOrder">提交订单</view>
  113. </view>
  114. </view>
  115. <popupBottom ref="popup" :visible.sync="couponVisible" title=" " bgColor="#f5f5f5" radius="30" maxHeight="60%">
  116. <view class="coupon" style="height:650rpx;">
  117. <div class="coupon-list" v-if="couponsList.length > 0">
  118. <div class="item acea-row row-center-wrapper" v-for="(item, index) in couponsList" :key="index">
  119. <div class="money" >
  120. <image v-if="item.status==0" class="img" src="https://bjczwh.oss-cn-beijing.aliyuncs.com/app/shop/images/coupon1.png" mode="widthFix"></image>
  121. <image v-if="item.status!=0" class="img" src="https://bjczwh.oss-cn-beijing.aliyuncs.com/app/shop/images/coupon2.png" mode="widthFix"></image>
  122. <div style="z-index: 999;">
  123. ¥<span class="num">{{ item.couponPrice }}</span>
  124. </div>
  125. <div class="pic-num" >满{{ item.useMinPrice }}元可用</div>
  126. </div>
  127. <div class="text">
  128. <div class="condition line1">
  129. {{ item.couponTitle }}
  130. </div>
  131. <div class="data acea-row row-between-wrapper">
  132. <div >{{ item.limitTime }}到期</div>
  133. <div class="bnt bg-color-red" @click="couponSelect(item)" >选择</div>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. <view v-if="couponsList.length == 0" class="no-data-box" >
  139. <image src="https://bjczwh.oss-cn-beijing.aliyuncs.com/app/shop/images/no_data.png" mode="aspectFit"></image>
  140. <view class="empty-title">暂无数据</view>
  141. </view>
  142. </view>
  143. </popupBottom>
  144. </view>
  145. </template>
  146. <script>
  147. import {getWeixinOrderTemps} from '@/api/common'
  148. import {confirm,computed,create} from '@/api/storeOrder'
  149. import { getMyEnableCouponList } from '@/api/coupon'
  150. import EvanSwitch from '@/components/evan-switch/evan-switch.vue'
  151. import popupBottom from '@/components/px-popup-bottom/px-popup-bottom.vue'
  152. export default {
  153. components: {
  154. EvanSwitch,
  155. popupBottom
  156. },
  157. data() {
  158. return {
  159. temps:[],
  160. couponUserId:null,
  161. couponText:"请选择",
  162. couponsList:[],
  163. couponVisible:false,
  164. price:{
  165. payPrice:0,
  166. totalPostage:0,
  167. usedIntegral:0,
  168. totalPrice:0.00,
  169. },
  170. address:null,
  171. carts:[],
  172. checked: false,
  173. type:null,
  174. cartIds:null,
  175. form:{
  176. useIntegral:0,
  177. orderKey:null,
  178. addressId:null,
  179. mark:null,
  180. companyId:null,
  181. companyUserId:null,
  182. createOrderKey:null,
  183. }
  184. }
  185. },
  186. onLoad(option) {
  187. this.form.createOrderKey=option.createOrderKey;
  188. this.form.companyId=option.companyId;
  189. this.form.companyUserId=option.companyUserId;
  190. this.cartIds=option.cartIds;
  191. this.type=option.type;
  192. this.confirm();
  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,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};
  323. }
  324. else{
  325. 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};
  326. }
  327. create(data).then(
  328. res => {
  329. uni.hideLoading()
  330. if(res.code==200){
  331. uni.hideLoading()
  332. if(res.order.isPrescribe==1){
  333. setTimeout(function(){
  334. uni.redirectTo({
  335. url:"prescribe?orderId="+res.order.id
  336. })
  337. },200);
  338. }
  339. else{
  340. console.log(111)
  341. setTimeout(()=>{
  342. uni.navigateTo({
  343. // url: './paymentOrder?orderId='+res.order.id
  344. url:'/pages/shopping/paymentOrder?orderId='+res.order.id
  345. })
  346. },200);
  347. }
  348. return;
  349. }
  350. else{
  351. if(res.code==501){
  352. uni.showToast({
  353. icon:'none',
  354. title: res.msg,
  355. });
  356. setTimeout(function(){
  357. uni.navigateBack({
  358. delta:1
  359. })
  360. },200);
  361. return;
  362. }
  363. else{
  364. uni.showToast({
  365. icon:'none',
  366. title: res.msg,
  367. });
  368. }
  369. }
  370. },
  371. rej => {}
  372. );
  373. },
  374. openAddress(){
  375. uni.navigateTo({
  376. url: '/pages_user/user/address'
  377. })
  378. }
  379. }
  380. }
  381. </script>
  382. <style lang="scss">
  383. .inner-box{
  384. padding: 20upx 20upx 140upx;
  385. .address-box{
  386. box-sizing: border-box;
  387. min-height: 171upx;
  388. background: #FFFFFF;
  389. border-radius: 16upx;
  390. background-image: url(https://bjczwh.oss-cn-beijing.aliyuncs.com/app/shop/images/address_bg.png);
  391. background-repeat: no-repeat;
  392. background-size: 100% 30upx;
  393. background-position: left bottom;
  394. padding: 38upx 30upx 36upx;
  395. display: flex;
  396. align-items: center;
  397. justify-content: space-between;
  398. .left{
  399. width: 92%;
  400. .name-box{
  401. display: flex;
  402. align-items: center;
  403. .text{
  404. font-size: 32upx;
  405. font-family: PingFang SC;
  406. font-weight: bold;
  407. color: #111111;
  408. line-height: 1;
  409. &.name{
  410. margin-right: 30upx;
  411. }
  412. }
  413. }
  414. .address{
  415. font-size: 28upx;
  416. font-family: PingFang SC;
  417. font-weight: 500;
  418. color: #666666;
  419. line-height: 42upx;
  420. text-align:left;
  421. margin-top: 23upx;
  422. }
  423. }
  424. .arrow-box{
  425. width: 12upx;
  426. height: 23upx;
  427. display: flex;
  428. align-items: cenetr;
  429. justify-content: cenetr;
  430. image{
  431. width: 100%;
  432. height: 100%;
  433. }
  434. }
  435. }
  436. .goods-list{
  437. margin-top: 20upx;
  438. padding: 0 30upx;
  439. background-color: #FFFFFF;
  440. border-radius: 16upx;
  441. .item{
  442. padding: 30upx 0;
  443. border-bottom: 1px solid #EDEEEF;
  444. display: flex;
  445. align-items: center;
  446. .img-box{
  447. width: 160upx;
  448. height: 160upx;
  449. margin-right: 30upx;
  450. image{
  451. width: 100%;
  452. height: 100%;
  453. }
  454. }
  455. .info-box{
  456. width: calc(100% - 190upx);
  457. height: 160upx;
  458. display: flex;
  459. flex-direction: column;
  460. justify-content: space-between;
  461. .name-box{
  462. font-size: 28upx;
  463. font-family: PingFang SC;
  464. font-weight: 500;
  465. color: #111111;
  466. line-height: 40upx;
  467. .tag{
  468. display: inline-block;
  469. padding: 0 6upx;
  470. height: 30upx;
  471. background: linear-gradient(90deg, #66b2ef 0%, #2BC7B9 100%);
  472. border-radius: 4upx;
  473. margin-right: 10upx;
  474. font-size: 22upx;
  475. font-family: PingFang SC;
  476. font-weight: bold;
  477. color: #FFFFFF;
  478. line-height: 30upx;
  479. float: left;
  480. margin-top: 7upx;
  481. }
  482. }
  483. .spec{
  484. margin-top: 10upx;
  485. font-size: 24upx;
  486. font-family: PingFang SC;
  487. font-weight: 500;
  488. color: #999999;
  489. line-height: 1;
  490. }
  491. .price-num{
  492. display: flex;
  493. align-items: center;
  494. justify-content: space-between;
  495. .price{
  496. display: flex;
  497. align-items: flex-end;
  498. .unit{
  499. font-size: 24upx;
  500. font-family: PingFang SC;
  501. font-weight: 500;
  502. color: #111111;
  503. line-height: 1.2;
  504. margin-right: 4upx;
  505. }
  506. .num{
  507. font-size: 32upx;
  508. font-family: PingFang SC;
  509. font-weight: 500;
  510. color: #111111;
  511. line-height: 1;
  512. }
  513. }
  514. .num{
  515. font-size: 24upx;
  516. font-family: PingFang SC;
  517. font-weight: 500;
  518. color: #999999;
  519. line-height: 1;
  520. }
  521. }
  522. }
  523. }
  524. .sub-total{
  525. height: 88upx;
  526. display: flex;
  527. align-items: center;
  528. justify-content: flex-end;
  529. .label{
  530. font-size: 24upx;
  531. font-family: PingFang SC;
  532. font-weight: 500;
  533. color: #999999;
  534. }
  535. .price{
  536. display: flex;
  537. align-items: flex-end;
  538. .unit{
  539. font-size: 24upx;
  540. font-family: PingFang SC;
  541. font-weight: 500;
  542. color: #FF6633;
  543. line-height: 1.2;
  544. margin-right: 4upx;
  545. }
  546. .num{
  547. font-size: 32upx;
  548. font-family: PingFang SC;
  549. font-weight: bold;
  550. color: #FF6633;
  551. line-height: 1;
  552. }
  553. }
  554. }
  555. }
  556. .points{
  557. height: 88upx;
  558. padding: 0 30upx;
  559. background: #FFFFFF;
  560. border-radius: 16upx;
  561. margin-top: 16rpx;
  562. display: flex;
  563. align-items: center;
  564. justify-content: space-between;
  565. .left{
  566. display: flex;
  567. align-items: center;
  568. image{
  569. width: 28upx;
  570. height: 28upx;
  571. margin-right: 20upx;
  572. }
  573. .text{
  574. font-size: 28upx;
  575. font-family: PingFang SC;
  576. font-weight: 500;
  577. color: #666666;
  578. }
  579. }
  580. .right{
  581. display: flex;
  582. align-items: center;
  583. .text{
  584. font-size: 28upx;
  585. font-family: PingFang SC;
  586. font-weight: 500;
  587. color: #111111;
  588. }
  589. image{
  590. margin-left: 15upx;
  591. width: 14upx;
  592. height: 24upx;
  593. }
  594. }
  595. }
  596. .remarks{
  597. height: 88upx;
  598. padding: 0 30upx;
  599. background: #FFFFFF;
  600. border-radius: 16upx;
  601. margin-top: 20upx;
  602. display: flex;
  603. align-items: center;
  604. input{
  605. width: 100%;
  606. font-size: 28upx;
  607. font-family: PingFang SC;
  608. font-weight: 500;
  609. color: #000000;
  610. }
  611. .input{
  612. font-size: 28upx;
  613. font-family: PingFang SC;
  614. font-weight: 500;
  615. color: #999999;
  616. }
  617. }
  618. }
  619. .btn-foot{
  620. box-sizing: border-box;
  621. width: 100%;
  622. height: 121upx;
  623. background: #FFFFFF;
  624. padding: 16upx 30upx 16upx 60upx;
  625. display: flex;
  626. align-items: center;
  627. justify-content: flex-end;
  628. position: fixed;
  629. left: 0;
  630. bottom: 0;
  631. z-index: 99;
  632. .right{
  633. display: flex;
  634. align-items: center;
  635. .total{
  636. display: flex;
  637. align-items: flex-end;
  638. margin-right: 36upx;
  639. .label{
  640. font-size: 26upx;
  641. font-family: PingFang SC;
  642. font-weight: 500;
  643. color: #999999;
  644. line-height: 1.5;
  645. }
  646. .price{
  647. display: flex;
  648. align-items: flex-end;
  649. .unit{
  650. font-size: 32upx;
  651. font-family: PingFang SC;
  652. font-weight: bold;
  653. color: #FF6633;
  654. line-height: 1.2;
  655. margin-right: 10upx;
  656. }
  657. .num{
  658. font-size: 50upx;
  659. font-family: PingFang SC;
  660. font-weight: bold;
  661. color: #FF6633;
  662. line-height: 1;
  663. }
  664. }
  665. }
  666. .btn{
  667. width: 200upx;
  668. height: 88upx;
  669. line-height: 88upx;
  670. text-align: center;
  671. font-size: 30upx;
  672. font-family: PingFang SC;
  673. font-weight: bold;
  674. color: #FFFFFF;
  675. background: #2BC7B9;
  676. border-radius: 44upx;
  677. }
  678. }
  679. }
  680. </style>
  681. <style lang="less" scoped>
  682. .coupon {
  683. height: 100%;
  684. }
  685. /*优惠券列表公共*/
  686. .coupon-list {
  687. }
  688. .coupon-list .item {
  689. display: flex;
  690. flex-direction: column;
  691. justify-content: center;
  692. align-items: center;
  693. width: 100%;
  694. height: 1.7 * 100rpx;
  695. margin-bottom: 0.16 * 100rpx;
  696. }
  697. .coupon-list .item .money {
  698. background-size: 100% 100%;
  699. width: 2.4 * 100rpx;
  700. height: 100%;
  701. color: #fff;
  702. font-size: 0.36 * 100rpx;
  703. font-weight: bold;
  704. text-align: center;
  705. display: flex;
  706. flex-direction: column;
  707. align-items: center;
  708. justify-content: center;
  709. position: relative;
  710. }
  711. .coupon-list .item .money .img{
  712. position: absolute;
  713. width: 2.4 * 100rpx;
  714. height: 100%;
  715. color: #fff;
  716. }
  717. .coupon-list .item .money .num {
  718. font-size: 0.6 * 100rpx;
  719. }
  720. .coupon-list .item .money .pic-num {
  721. font-size: 20rpx;
  722. z-index: 99;
  723. }
  724. .coupon-list .item .text {
  725. width: 4.5 * 100rpx;
  726. padding: 0 0.17 * 100rpx 0 0.24 * 100rpx;
  727. background-color: #fff;
  728. box-sizing: border-box;
  729. }
  730. .coupon-list .item .text .condition {
  731. font-size: 0.3 * 100rpx;
  732. color: #282828;
  733. height: 0.93 * 100rpx;
  734. line-height: 0.93 * 100rpx;
  735. border-bottom: 1px solid #f0f0f0;
  736. }
  737. .coupon-list .item .text .data {
  738. font-size: 0.2 * 100rpx;
  739. color: #999;
  740. height: 0.76 * 100rpx;
  741. }
  742. .coupon-list .item .text .data .bnt {
  743. width: 1.36 * 100rpx;
  744. height: 0.44 * 100rpx;
  745. border-radius: 0.22 * 100rpx;
  746. font-size: 0.22 * 100rpx;
  747. color: #fff;
  748. text-align: center;
  749. line-height: 0.44 * 100rpx;
  750. background-color: red;
  751. }
  752. .coupon-list .item .text .data .bnt.gray {
  753. background-color: #ccc;
  754. }
  755. </style>