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