storeOrderPay.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780
  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. </view>
  11. <view class="arrow-box">
  12. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png" mode=""></image>
  13. </view>
  14. </view>
  15. <view class="address-box" v-if="address!=null" @click="openAddress()">
  16. <view class="left">
  17. <view class="name-box">
  18. <text class="text name">{{address.realName}}</text>
  19. <text class="text" v-if="address.phone!=null">{{address.phone}}</text>
  20. </view>
  21. <view class="address">
  22. {{address.address}}
  23. </view>
  24. </view>
  25. <view class="arrow-box">
  26. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png" mode=""></image>
  27. </view>
  28. </view>
  29. <!-- 药品列表 -->
  30. <view class="goods-list">
  31. <view v-for="(item,index) in items" :key="index" class="item">
  32. <view class="img-box">
  33. <image :src="JSON.parse(item.jsonInfo).image==''?'https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/drug.svg':JSON.parse(item.jsonInfo).image" mode="aspectFill"></image>
  34. </view>
  35. <view class="info-box">
  36. <view>
  37. <view class="name-box ellipsis2">
  38. {{JSON.parse(item.jsonInfo).productName}}
  39. </view>
  40. <view class="spec ellipsis2">{{JSON.parse(item.jsonInfo).sku}}</view>
  41. </view>
  42. <view class="price-num">
  43. <view class="price">
  44. <!-- <text class="unit">¥</text> -->
  45. <!-- <text class="num">{{JSON.parse(item.jsonInfo).price.toFixed(2)}}</text> -->
  46. </view>
  47. <view class="num" v-if="order.orderType==1">x{{item.num}}</view>
  48. </view>
  49. </view>
  50. </view>
  51. <!-- 小计 -->
  52. <view class="sub-total">
  53. <text class="label">合计:</text>
  54. <view class="price">
  55. <text class="unit">¥</text>
  56. <text class="num" v-if="order!=null">{{order.totalPrice.toFixed(2)}}</text>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="other-info">
  61. <view class="title">支付明细</view>
  62. <view class="item">
  63. <view class="left">
  64. <text class="label">订单金额:</text>
  65. </view>
  66. <view class="right">
  67. <text class="text" v-if="order!=null">{{order.payPrice.toFixed(2)}}</text>
  68. </view>
  69. </view>
  70. <view class="item" v-if="order!=null&&(order.userCouponId==null||order.userCouponId==0)" @click.stop="openCoupon()">
  71. <view class="left">
  72. <text class="label">优惠券:</text>
  73. </view>
  74. <view class="right">
  75. <text class="text">{{couponText}}</text>
  76. <image v-if="userCouponId!=0" @click.stop="delCoupon()" class="ic-close" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/close.png"></image>
  77. <image class="ic-back" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/arrow_gray.png"></image>
  78. </view>
  79. </view>
  80. <view class="item" >
  81. <view class="left">
  82. <text class="label">优惠金额:</text>
  83. </view>
  84. <view class="right">
  85. <text class="text">{{discountMoney.toFixed(2)}}</text>
  86. </view>
  87. </view>
  88. <view class="item">
  89. <view class="left">
  90. <text class="label">支付金额:</text>
  91. </view>
  92. <view class="right">
  93. <text class="text">{{payMoney.toFixed(2)}}</text>
  94. </view>
  95. </view>
  96. </view>
  97. <view class="pay-type">
  98. <view class="title">支付方式</view>
  99. <view class="item">
  100. <view class="left">
  101. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/wecha_pay.png" mode=""></image>
  102. <text class="text">全款支付</text>
  103. </view>
  104. <label>
  105. <radio value="" :checked="wxPay" color="#2583EB"></radio>
  106. </label>
  107. </view>
  108. </view>
  109. <!-- 备注 -->
  110. <view class="remarks" v-if="order!=null">
  111. <input type="text" v-model="order.remark" placeholder="备注留言(选填)" placeholder-class="input" />
  112. </view>
  113. </view>
  114. <u-popup :closeable="true" :show="couponShow" :round="10" mode="bottom" @close="close" @open="open">
  115. <view class="coupon">
  116. <view class="coupon-box" v-if="coupons.length>0" >
  117. <view @click="couponSelect(item)" class="coupon-item" v-for="(item) in coupons">
  118. <view class="left" >
  119. <image v-if="item.status==0" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/0fdd75d89db84458886d38e615011048.png" mode="widthFix"></image>
  120. <image v-if="item.status!=0" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/d950e4c7af1e4464be1a7777e9dca576.png" mode="widthFix"></image>
  121. <view style="z-index: 999;">
  122. ¥<span class="num">{{item.price.toFixed(2)}}</span>
  123. </view>
  124. <view class="pic-num" >满{{item.minPrice.toFixed(2)}}元可用</view>
  125. </view>
  126. <view class="right">
  127. <view class="title">
  128. {{item.title}}
  129. </view>
  130. <view class="btns">
  131. <view v-if="item.status==0||item.status==2" >{{item.limitTime}} 到期</view>
  132. <view v-if="item.status==1">使用时间 {{item.useTime}}</view>
  133. <view class="bnt gray" v-if="item.status==1" >已使用</view>
  134. <view class="bnt gray" v-if="item.status==2" >已过期</view>
  135. <view class="btn" v-if="item.status==0" >使用</view>
  136. </view>
  137. </view>
  138. </view>
  139. </view>
  140. <view class="empty" v-if="coupons.length==0">
  141. <image src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/empty_icon.png"></image>
  142. </view>
  143. </view>
  144. </u-popup>
  145. <!-- 底部按钮 -->
  146. <view class="btn-box">
  147. <view class="btn" v-if="order!=null" @click="payOrder()">支付{{payMoney.toFixed(2)}}元</view>
  148. </view>
  149. </view>
  150. </template>
  151. <script>
  152. import {getMyEnableCouponList} from '@/api/user.js'
  153. import {getStoreOrderById,pay,compute} from '@/api/storeOrder'
  154. export default {
  155. data() {
  156. return {
  157. addressId:null,
  158. wxPay: true,
  159. address:null,
  160. orderId:null,
  161. order:null,
  162. items:null,
  163. couponText:"请选择优惠券",
  164. userCouponId:0,
  165. coupons:[],
  166. couponShow:false,
  167. payMoney:0,
  168. discountMoney:0
  169. }
  170. },
  171. onLoad(option) {
  172. this.orderId=option.orderId;
  173. var that=this;
  174. uni.$on('updateAddress', (e) => {
  175. that.addressId=e.addressId;
  176. that.address=e;
  177. that.address.address=e.province+e.city+e.district+e.detail
  178. })
  179. },
  180. onShow() {
  181. this.getStoreOrderById();
  182. },
  183. // onShareAppMessage(res) {
  184. // var that=this;
  185. // if(this.$isLogin()){
  186. // return {
  187. // title: "订单支付",
  188. // path: '/pages_order/storeOrderPay?orderId='+that.orderId,
  189. // imageUrl: 'https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/sharelogo.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  190. // }
  191. // }
  192. // },
  193. methods: {
  194. couponSelect(item){
  195. this.couponShow = false;
  196. //计算金额
  197. this.userCouponId=item.id;
  198. console.log(item)
  199. // this.couponText=item.price+"元优惠券"
  200. this.couponText= item.title
  201. this.compute()
  202. },
  203. open() {
  204. },
  205. close() {
  206. this.couponShow = false
  207. },
  208. openCoupon(){
  209. this.couponShow=true;
  210. },
  211. delCoupon(){
  212. this.userCouponId=0;
  213. this.couponText="请选择优惠券";
  214. this.compute();
  215. },
  216. compute(){
  217. var data={
  218. orderId:this.orderId,
  219. userCouponId:this.userCouponId
  220. }
  221. console.log(data)
  222. compute(data).then(
  223. res => {
  224. if(res.code==200){
  225. this.payMoney=res.data.payMoney;
  226. this.discountMoney=res.data.discountMoney;
  227. }
  228. else{
  229. this.userCouponId=0;
  230. this.couponText="请选择优惠券"
  231. uni.showToast({
  232. icon:'none',
  233. title: res.msg,
  234. });
  235. this.$reLoginCheck(res.msg)
  236. }
  237. },
  238. err => {
  239. }
  240. );
  241. },
  242. getMyEnableCouponList(){
  243. let data={couponType:2,orderId:this.orderId}
  244. if(this.order.orderType == 2) {
  245. data={couponType:'2,4',orderId:this.orderId}
  246. }
  247. getMyEnableCouponList(data).then(
  248. res => {
  249. if(res.code==200){
  250. this.coupons=res.data;
  251. }
  252. },
  253. err => {
  254. }
  255. );
  256. },
  257. getStoreOrderById(){
  258. var data={orderId:this.orderId};
  259. console.log(data)
  260. getStoreOrderById(data).then(
  261. res => {
  262. if(res.code==200){
  263. this.order=res.order
  264. this.items=res.items
  265. if(this.order.userName!=null){
  266. this.address={
  267. realName:this.order.userName,
  268. phone:this.order.userPhone,
  269. address:this.order.userAddress,
  270. }
  271. }
  272. this.compute();
  273. this.getMyEnableCouponList();
  274. }else{
  275. }
  276. },
  277. rej => {}
  278. );
  279. },
  280. openAddress(){
  281. uni.navigateTo({
  282. url: '/pages_user/address'
  283. })
  284. },
  285. payOrder(){
  286. var data = {
  287. userCouponId:this.userCouponId,
  288. addressId:this.addressId,
  289. remark:this.order.remark,
  290. orderId:this.order.orderId,
  291. appId: getApp().globalData.appId
  292. };
  293. var that=this;
  294. uni.showLoading();
  295. pay(data).then(
  296. res => {
  297. if(res.code==200){
  298. var temps=['wqKEklE_w5N19w9VAGY74TltPE6Ne3BaFObDD47uDEo']
  299. uni.requestSubscribeMessage({
  300. tmplIds: temps,
  301. success(e) {
  302. setTimeout(function(){
  303. uni.redirectTo({
  304. url:"/pages_order/storeOrderPayment?orderId="+that.order.orderId
  305. })
  306. },200);
  307. },
  308. fail(e) {
  309. setTimeout(function(){
  310. uni.redirectTo({
  311. url:"/pages_order/storeOrderPayment?orderId="+that.order.orderId
  312. })
  313. },200);
  314. }
  315. })
  316. }else{
  317. uni.showToast({
  318. icon:'none',
  319. title: res.msg,
  320. });
  321. this.$reLoginCheck(res.msg)
  322. }
  323. },
  324. rej => {}
  325. );
  326. }
  327. }
  328. }
  329. </script>
  330. <style lang="scss">
  331. .inner-box{
  332. padding: 20upx 20upx 140upx;
  333. .address-box{
  334. box-sizing: border-box;
  335. min-height: 171upx;
  336. background: #FFFFFF;
  337. border-radius: 16upx;
  338. background-image: url(https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/address_bg.png);
  339. background-repeat: no-repeat;
  340. background-size: 100% 30upx;
  341. background-position: left bottom;
  342. padding: 38upx 30upx 36upx;
  343. display: flex;
  344. align-items: center;
  345. justify-content: space-between;
  346. .left{
  347. width: 92%;
  348. .name-box{
  349. display: flex;
  350. align-items: center;
  351. .text{
  352. font-size: 32upx;
  353. font-family: PingFang SC;
  354. font-weight: bold;
  355. color: #111111;
  356. line-height: 1;
  357. &.name{
  358. margin-right: 30upx;
  359. }
  360. }
  361. }
  362. .address{
  363. font-size: 28upx;
  364. font-family: PingFang SC;
  365. font-weight: 500;
  366. color: #666666;
  367. line-height: 42upx;
  368. text-align:left;
  369. margin-top: 23upx;
  370. }
  371. }
  372. .arrow-box{
  373. width: 12upx;
  374. height: 23upx;
  375. display: flex;
  376. align-items: cenetr;
  377. justify-content: cenetr;
  378. image{
  379. width: 100%;
  380. height: 100%;
  381. }
  382. }
  383. }
  384. .goods-list{
  385. margin-top: 20upx;
  386. padding: 0 30upx;
  387. background-color: #FFFFFF;
  388. border-radius: 16upx;
  389. .item{
  390. padding: 30upx 0;
  391. border-bottom: 1px solid #EDEEEF;
  392. display: flex;
  393. align-items: center;
  394. .img-box{
  395. width: 160upx;
  396. height: 160upx;
  397. margin-right: 30upx;
  398. image{
  399. width: 100%;
  400. height: 100%;
  401. }
  402. }
  403. .info-box{
  404. width: calc(100% - 190upx);
  405. height: 160upx;
  406. display: flex;
  407. flex-direction: column;
  408. justify-content: space-between;
  409. .name-box{
  410. font-size: 28upx;
  411. font-family: PingFang SC;
  412. font-weight: 500;
  413. color: #111111;
  414. line-height: 40upx;
  415. .tag{
  416. display: inline-block;
  417. padding: 0 6upx;
  418. height: 30upx;
  419. background: linear-gradient(90deg, #2583EB 0%, #2EDAD4 100%);
  420. border-radius: 4upx;
  421. margin-right: 10upx;
  422. font-size: 22upx;
  423. font-family: PingFang SC;
  424. font-weight: bold;
  425. color: #FFFFFF;
  426. line-height: 30upx;
  427. float: left;
  428. margin-top: 7upx;
  429. }
  430. }
  431. .spec{
  432. margin-top: 10upx;
  433. font-size: 24upx;
  434. font-family: PingFang SC;
  435. font-weight: 500;
  436. color: #999999;
  437. line-height: 1;
  438. }
  439. .price-num{
  440. display: flex;
  441. align-items: center;
  442. justify-content: space-between;
  443. .price{
  444. display: flex;
  445. align-items: flex-end;
  446. .unit{
  447. font-size: 24upx;
  448. font-family: PingFang SC;
  449. font-weight: 500;
  450. color: #111111;
  451. line-height: 1.2;
  452. margin-right: 4upx;
  453. }
  454. .num{
  455. font-size: 32upx;
  456. font-family: PingFang SC;
  457. font-weight: 500;
  458. color: #111111;
  459. line-height: 1;
  460. }
  461. }
  462. .num{
  463. font-size: 24upx;
  464. font-family: PingFang SC;
  465. font-weight: 500;
  466. color: #999999;
  467. line-height: 1;
  468. }
  469. }
  470. }
  471. }
  472. .sub-total{
  473. height: 88upx;
  474. display: flex;
  475. align-items: center;
  476. justify-content: flex-end;
  477. .label{
  478. font-size: 24upx;
  479. font-family: PingFang SC;
  480. font-weight: 500;
  481. color: #999999;
  482. }
  483. .price{
  484. display: flex;
  485. align-items: flex-end;
  486. .unit{
  487. font-size: 24upx;
  488. font-family: PingFang SC;
  489. font-weight: 500;
  490. color: #FF6633;
  491. line-height: 1.2;
  492. margin-right: 4upx;
  493. }
  494. .num{
  495. font-size: 32upx;
  496. font-family: PingFang SC;
  497. font-weight: bold;
  498. color: #FF6633;
  499. line-height: 1;
  500. }
  501. }
  502. }
  503. }
  504. .other-info{
  505. margin-top: 20upx;
  506. background-color: #fff;
  507. border-radius: 20upx;
  508. overflow: hidden;
  509. padding: 0 30upx;
  510. .title{
  511. height: 80upx;
  512. line-height: 80upx;
  513. font-size: 30upx;
  514. color: #000;
  515. font-weight: bold;
  516. border-bottom: 2upx solid #eeeeee;
  517. }
  518. .item{
  519. height: 80upx;
  520. display: flex;
  521. align-items: center;
  522. justify-content: space-between;
  523. &:last-child{
  524. border-bottom: none;
  525. }
  526. .left{
  527. flex: 1;
  528. display: flex;
  529. align-items: center;
  530. .label{
  531. min-width: 140rpx;
  532. font-size: 28upx;
  533. color: #000;
  534. }
  535. .text{
  536. font-size: 28upx;
  537. color: #1b1b1b;
  538. }
  539. }
  540. .right{
  541. display: flex;
  542. align-items: center;
  543. justify-content: flex-end;
  544. .text{
  545. font-size: 28upx;
  546. color: #1b1b1b;
  547. }
  548. .ic-close{
  549. margin-left: 10rpx;
  550. width: 30rpx;
  551. height:30rpx;
  552. }
  553. .ic-back{
  554. margin-left: 10rpx;
  555. width: 15rpx;
  556. height:30rpx;
  557. }
  558. }
  559. .item-btn{
  560. max-width: 200rpx;
  561. padding: 0rpx 15rpx;
  562. height: 48upx;
  563. border-radius: 24upx;
  564. line-height: 48upx;
  565. font-size: 24upx;
  566. color: #000;
  567. border: 1upx solid #d8d8d8;
  568. display: flex;
  569. align-items: center;
  570. justify-content: center;
  571. }
  572. }
  573. }
  574. .remarks{
  575. height: 88upx;
  576. padding: 0 30upx;
  577. background: #FFFFFF;
  578. border-radius: 16upx;
  579. margin-top: 20upx;
  580. display: flex;
  581. align-items: center;
  582. input{
  583. width: 100%;
  584. font-size: 28upx;
  585. font-family: PingFang SC;
  586. font-weight: 500;
  587. color: #000000;
  588. }
  589. .input{
  590. font-size: 28upx;
  591. font-family: PingFang SC;
  592. font-weight: 500;
  593. color: #999999;
  594. }
  595. }
  596. }
  597. .btn-box{
  598. height: 140upx;
  599. z-index: 9999;
  600. width: 100%;
  601. padding: 0rpx 30upx;
  602. position: fixed;
  603. bottom: 0;
  604. left: 0;
  605. box-sizing: border-box;
  606. background-color: #ffffff;
  607. display: flex;
  608. align-items: center;
  609. justify-content: center;
  610. .btn{
  611. width: 100%;
  612. height: 88upx;
  613. line-height: 88upx;
  614. text-align: center;
  615. font-size: 34upx;
  616. font-family: PingFang SC;
  617. font-weight: 400;
  618. color: #FFFFFF;
  619. background: #2583EB;
  620. border-radius: 10upx;
  621. }
  622. }
  623. .pay-type{
  624. box-sizing: border-box;
  625. height: 192upx;
  626. background: #FFFFFF;
  627. border-radius: 16upx;
  628. margin-top: 20upx;
  629. padding: 40upx 30upx;
  630. display: flex;
  631. flex-direction: column;
  632. justify-content: space-between;
  633. .title{
  634. font-size: 28upx;
  635. font-family: PingFang SC;
  636. font-weight: 500;
  637. color: #999999;
  638. line-height: 1;
  639. }
  640. .item{
  641. display: flex;
  642. align-items: center;
  643. justify-content: space-between;
  644. .left{
  645. display: flex;
  646. align-items: center;
  647. image{
  648. width: 44upx;
  649. height: 44upx;
  650. margin-right: 20upx;
  651. }
  652. .text{
  653. font-size: 30upx;
  654. font-family: PingFang SC;
  655. font-weight: bold;
  656. color: #222222;
  657. line-height: 1;
  658. }
  659. }
  660. }
  661. }
  662. .coupon{
  663. height: 100%;
  664. .empty{
  665. display: flex;
  666. align-items: center;
  667. justify-content: center;
  668. height: 650rpx;
  669. width: 100%;
  670. image{
  671. width: 280rpx;
  672. height: 200rpx;
  673. }
  674. }
  675. }
  676. .coupon-box{
  677. overflow-y: auto;
  678. padding: 80rpx 20rpx 80rpx;
  679. height: 650rpx;
  680. width: 100%;
  681. display: flex;
  682. flex-direction: column;
  683. align-items: flex-start;
  684. justify-content: flex-start;
  685. box-sizing: border-box;
  686. .coupon-item{
  687. width: 100%;
  688. display: flex;
  689. align-items: center;
  690. justify-content: flex-start;
  691. margin-bottom: 16rpx;
  692. height:170rpx;
  693. &:last-child{
  694. margin-bottom: 0rpx;
  695. }
  696. .left{
  697. color: #fff;
  698. font-size: 36rpx;
  699. font-weight: bold;
  700. text-align: center;
  701. display: flex;
  702. flex-direction: column;
  703. align-items: center;
  704. justify-content: center;
  705. position: relative;
  706. width: 230rpx;
  707. image{
  708. position: absolute;
  709. width: 230rpx;
  710. height:170rpx;
  711. color: #fff;
  712. }
  713. .num{
  714. font-size: 40rpx;
  715. }
  716. .pic-num{
  717. font-size: 20rpx;
  718. z-index: 99;
  719. }
  720. }
  721. .right{
  722. display: flex;
  723. flex-direction: column;
  724. align-items: flex-start;
  725. justify-content: flex-start;
  726. height:170rpx;
  727. width: calc(100% - 230rpx);
  728. padding: 0 17rpx 0 24rpx;
  729. background-color: #fff;
  730. box-sizing: border-box;
  731. .title{
  732. width: 100%;
  733. font-size: 0.3 * 100rpx;
  734. color: #282828;
  735. height: 0.93 * 100rpx;
  736. line-height: 0.93 * 100rpx;
  737. border-bottom: 1px solid #f0f0f0;
  738. }
  739. .btns{
  740. display: flex;
  741. align-items: center;
  742. justify-content: space-between;
  743. width: 100%;
  744. font-size: 0.2 * 100rpx;
  745. color: #999;
  746. height: 0.76 * 100rpx;
  747. .btn{
  748. width: 1.36 * 100rpx;
  749. height: 0.44 * 100rpx;
  750. border-radius: 0.22 * 100rpx;
  751. font-size: 0.22 * 100rpx;
  752. color: #fff;
  753. text-align: center;
  754. line-height: 0.44 * 100rpx;
  755. background-color: #2583EB;
  756. .gray{
  757. background-color: #ccc;
  758. }
  759. }
  760. }
  761. }
  762. }
  763. }
  764. </style>