storeOrderPay.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  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. onUnload() {
  181. uni.$off('updateAddress')
  182. },
  183. onShow() {
  184. this.getStoreOrderById();
  185. },
  186. // onShareAppMessage(res) {
  187. // var that=this;
  188. // if(this.$isLogin()){
  189. // return {
  190. // title: "订单支付",
  191. // path: '/pages_order/storeOrderPay?orderId='+that.orderId,
  192. // imageUrl: 'https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/app/newImages/sharelogo.png' //分享图标,路径可以是本地文件路径、代码包文件路径或者网络图片路径.支持PNG及JPG。显示图片长宽比是 5:4
  193. // }
  194. // }
  195. // },
  196. methods: {
  197. couponSelect(item){
  198. this.couponShow = false;
  199. //计算金额
  200. this.userCouponId=item.id;
  201. console.log(item)
  202. // this.couponText=item.price+"元优惠券"
  203. this.couponText= item.title
  204. this.compute()
  205. },
  206. open() {
  207. },
  208. close() {
  209. this.couponShow = false
  210. },
  211. openCoupon(){
  212. this.couponShow=true;
  213. },
  214. delCoupon(){
  215. this.userCouponId=0;
  216. this.couponText="请选择优惠券";
  217. this.compute();
  218. },
  219. compute(){
  220. var data={
  221. orderId:this.orderId,
  222. userCouponId:this.userCouponId
  223. }
  224. console.log(data)
  225. compute(data).then(
  226. res => {
  227. if(res.code==200){
  228. this.payMoney=res.data.payMoney;
  229. this.discountMoney=res.data.discountMoney;
  230. }
  231. else{
  232. this.userCouponId=0;
  233. this.couponText="请选择优惠券"
  234. uni.showToast({
  235. icon:'none',
  236. title: res.msg,
  237. });
  238. this.$reLoginCheck(res.msg)
  239. }
  240. },
  241. err => {
  242. }
  243. );
  244. },
  245. getMyEnableCouponList(){
  246. let data={couponType:2,orderId:this.orderId}
  247. if(this.order.orderType == 2) {
  248. data={couponType:'2,4',orderId:this.orderId}
  249. }
  250. getMyEnableCouponList(data).then(
  251. res => {
  252. if(res.code==200){
  253. this.coupons=res.data;
  254. }
  255. },
  256. err => {
  257. }
  258. );
  259. },
  260. getStoreOrderById(){
  261. var data={orderId:this.orderId};
  262. console.log(data)
  263. getStoreOrderById(data).then(
  264. res => {
  265. if(res.code==200){
  266. this.order=res.order
  267. this.items=res.items
  268. if(this.order.userName!=null){
  269. this.address={
  270. realName:this.order.userName,
  271. phone:this.order.userPhone,
  272. address:this.order.userAddress,
  273. }
  274. }
  275. this.compute();
  276. this.getMyEnableCouponList();
  277. }else{
  278. }
  279. },
  280. rej => {}
  281. );
  282. },
  283. openAddress(){
  284. uni.navigateTo({
  285. url: '/pages_user/address'
  286. })
  287. },
  288. payOrder(){
  289. var data = {
  290. userCouponId:this.userCouponId,
  291. addressId:this.addressId,
  292. remark:this.order.remark,
  293. orderId:this.order.orderId,
  294. appId: getApp().globalData.appId
  295. };
  296. var that=this;
  297. uni.showLoading();
  298. pay(data).then(
  299. res => {
  300. if(res.code==200){
  301. var temps=['wqKEklE_w5N19w9VAGY74TltPE6Ne3BaFObDD47uDEo']
  302. uni.requestSubscribeMessage({
  303. tmplIds: temps,
  304. success(e) {
  305. setTimeout(function(){
  306. uni.redirectTo({
  307. url:"/pages_order/storeOrderPayment?orderId="+that.order.orderId
  308. })
  309. },200);
  310. },
  311. fail(e) {
  312. setTimeout(function(){
  313. uni.redirectTo({
  314. url:"/pages_order/storeOrderPayment?orderId="+that.order.orderId
  315. })
  316. },200);
  317. }
  318. })
  319. }else{
  320. uni.showToast({
  321. icon:'none',
  322. title: res.msg,
  323. });
  324. this.$reLoginCheck(res.msg)
  325. }
  326. },
  327. rej => {}
  328. );
  329. }
  330. }
  331. }
  332. </script>
  333. <style lang="scss">
  334. .inner-box{
  335. padding: 20upx 20upx 140upx;
  336. .address-box{
  337. box-sizing: border-box;
  338. min-height: 171upx;
  339. background: #FFFFFF;
  340. border-radius: 16upx;
  341. background-image: url(https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/address_bg.png);
  342. background-repeat: no-repeat;
  343. background-size: 100% 30upx;
  344. background-position: left bottom;
  345. padding: 38upx 30upx 36upx;
  346. display: flex;
  347. align-items: center;
  348. justify-content: space-between;
  349. .left{
  350. width: 92%;
  351. .name-box{
  352. display: flex;
  353. align-items: center;
  354. .text{
  355. font-size: 32upx;
  356. font-family: PingFang SC;
  357. font-weight: bold;
  358. color: #111111;
  359. line-height: 1;
  360. &.name{
  361. margin-right: 30upx;
  362. }
  363. }
  364. }
  365. .address{
  366. font-size: 28upx;
  367. font-family: PingFang SC;
  368. font-weight: 500;
  369. color: #666666;
  370. line-height: 42upx;
  371. text-align:left;
  372. margin-top: 23upx;
  373. }
  374. }
  375. .arrow-box{
  376. width: 12upx;
  377. height: 23upx;
  378. display: flex;
  379. align-items: cenetr;
  380. justify-content: cenetr;
  381. image{
  382. width: 100%;
  383. height: 100%;
  384. }
  385. }
  386. }
  387. .goods-list{
  388. margin-top: 20upx;
  389. padding: 0 30upx;
  390. background-color: #FFFFFF;
  391. border-radius: 16upx;
  392. .item{
  393. padding: 30upx 0;
  394. border-bottom: 1px solid #EDEEEF;
  395. display: flex;
  396. align-items: center;
  397. .img-box{
  398. width: 160upx;
  399. height: 160upx;
  400. margin-right: 30upx;
  401. image{
  402. width: 100%;
  403. height: 100%;
  404. }
  405. }
  406. .info-box{
  407. width: calc(100% - 190upx);
  408. height: 160upx;
  409. display: flex;
  410. flex-direction: column;
  411. justify-content: space-between;
  412. .name-box{
  413. font-size: 28upx;
  414. font-family: PingFang SC;
  415. font-weight: 500;
  416. color: #111111;
  417. line-height: 40upx;
  418. .tag{
  419. display: inline-block;
  420. padding: 0 6upx;
  421. height: 30upx;
  422. background: linear-gradient(90deg, #2583EB 0%, #2EDAD4 100%);
  423. border-radius: 4upx;
  424. margin-right: 10upx;
  425. font-size: 22upx;
  426. font-family: PingFang SC;
  427. font-weight: bold;
  428. color: #FFFFFF;
  429. line-height: 30upx;
  430. float: left;
  431. margin-top: 7upx;
  432. }
  433. }
  434. .spec{
  435. margin-top: 10upx;
  436. font-size: 24upx;
  437. font-family: PingFang SC;
  438. font-weight: 500;
  439. color: #999999;
  440. line-height: 1;
  441. }
  442. .price-num{
  443. display: flex;
  444. align-items: center;
  445. justify-content: space-between;
  446. .price{
  447. display: flex;
  448. align-items: flex-end;
  449. .unit{
  450. font-size: 24upx;
  451. font-family: PingFang SC;
  452. font-weight: 500;
  453. color: #111111;
  454. line-height: 1.2;
  455. margin-right: 4upx;
  456. }
  457. .num{
  458. font-size: 32upx;
  459. font-family: PingFang SC;
  460. font-weight: 500;
  461. color: #111111;
  462. line-height: 1;
  463. }
  464. }
  465. .num{
  466. font-size: 24upx;
  467. font-family: PingFang SC;
  468. font-weight: 500;
  469. color: #999999;
  470. line-height: 1;
  471. }
  472. }
  473. }
  474. }
  475. .sub-total{
  476. height: 88upx;
  477. display: flex;
  478. align-items: center;
  479. justify-content: flex-end;
  480. .label{
  481. font-size: 24upx;
  482. font-family: PingFang SC;
  483. font-weight: 500;
  484. color: #999999;
  485. }
  486. .price{
  487. display: flex;
  488. align-items: flex-end;
  489. .unit{
  490. font-size: 24upx;
  491. font-family: PingFang SC;
  492. font-weight: 500;
  493. color: #FF6633;
  494. line-height: 1.2;
  495. margin-right: 4upx;
  496. }
  497. .num{
  498. font-size: 32upx;
  499. font-family: PingFang SC;
  500. font-weight: bold;
  501. color: #FF6633;
  502. line-height: 1;
  503. }
  504. }
  505. }
  506. }
  507. .other-info{
  508. margin-top: 20upx;
  509. background-color: #fff;
  510. border-radius: 20upx;
  511. overflow: hidden;
  512. padding: 0 30upx;
  513. .title{
  514. height: 80upx;
  515. line-height: 80upx;
  516. font-size: 30upx;
  517. color: #000;
  518. font-weight: bold;
  519. border-bottom: 2upx solid #eeeeee;
  520. }
  521. .item{
  522. height: 80upx;
  523. display: flex;
  524. align-items: center;
  525. justify-content: space-between;
  526. &:last-child{
  527. border-bottom: none;
  528. }
  529. .left{
  530. flex: 1;
  531. display: flex;
  532. align-items: center;
  533. .label{
  534. min-width: 140rpx;
  535. font-size: 28upx;
  536. color: #000;
  537. }
  538. .text{
  539. font-size: 28upx;
  540. color: #1b1b1b;
  541. }
  542. }
  543. .right{
  544. display: flex;
  545. align-items: center;
  546. justify-content: flex-end;
  547. .text{
  548. font-size: 28upx;
  549. color: #1b1b1b;
  550. }
  551. .ic-close{
  552. margin-left: 10rpx;
  553. width: 30rpx;
  554. height:30rpx;
  555. }
  556. .ic-back{
  557. margin-left: 10rpx;
  558. width: 15rpx;
  559. height:30rpx;
  560. }
  561. }
  562. .item-btn{
  563. max-width: 200rpx;
  564. padding: 0rpx 15rpx;
  565. height: 48upx;
  566. border-radius: 24upx;
  567. line-height: 48upx;
  568. font-size: 24upx;
  569. color: #000;
  570. border: 1upx solid #d8d8d8;
  571. display: flex;
  572. align-items: center;
  573. justify-content: center;
  574. }
  575. }
  576. }
  577. .remarks{
  578. height: 88upx;
  579. padding: 0 30upx;
  580. background: #FFFFFF;
  581. border-radius: 16upx;
  582. margin-top: 20upx;
  583. display: flex;
  584. align-items: center;
  585. input{
  586. width: 100%;
  587. font-size: 28upx;
  588. font-family: PingFang SC;
  589. font-weight: 500;
  590. color: #000000;
  591. }
  592. .input{
  593. font-size: 28upx;
  594. font-family: PingFang SC;
  595. font-weight: 500;
  596. color: #999999;
  597. }
  598. }
  599. }
  600. .btn-box{
  601. height: 140upx;
  602. z-index: 9999;
  603. width: 100%;
  604. padding: 0rpx 30upx;
  605. position: fixed;
  606. bottom: 0;
  607. left: 0;
  608. box-sizing: border-box;
  609. background-color: #ffffff;
  610. display: flex;
  611. align-items: center;
  612. justify-content: center;
  613. .btn{
  614. width: 100%;
  615. height: 88upx;
  616. line-height: 88upx;
  617. text-align: center;
  618. font-size: 34upx;
  619. font-family: PingFang SC;
  620. font-weight: 400;
  621. color: #FFFFFF;
  622. background: #2583EB;
  623. border-radius: 10upx;
  624. }
  625. }
  626. .pay-type{
  627. box-sizing: border-box;
  628. height: 192upx;
  629. background: #FFFFFF;
  630. border-radius: 16upx;
  631. margin-top: 20upx;
  632. padding: 40upx 30upx;
  633. display: flex;
  634. flex-direction: column;
  635. justify-content: space-between;
  636. .title{
  637. font-size: 28upx;
  638. font-family: PingFang SC;
  639. font-weight: 500;
  640. color: #999999;
  641. line-height: 1;
  642. }
  643. .item{
  644. display: flex;
  645. align-items: center;
  646. justify-content: space-between;
  647. .left{
  648. display: flex;
  649. align-items: center;
  650. image{
  651. width: 44upx;
  652. height: 44upx;
  653. margin-right: 20upx;
  654. }
  655. .text{
  656. font-size: 30upx;
  657. font-family: PingFang SC;
  658. font-weight: bold;
  659. color: #222222;
  660. line-height: 1;
  661. }
  662. }
  663. }
  664. }
  665. .coupon{
  666. height: 100%;
  667. .empty{
  668. display: flex;
  669. align-items: center;
  670. justify-content: center;
  671. height: 650rpx;
  672. width: 100%;
  673. image{
  674. width: 280rpx;
  675. height: 200rpx;
  676. }
  677. }
  678. }
  679. .coupon-box{
  680. overflow-y: auto;
  681. padding: 80rpx 20rpx 80rpx;
  682. height: 650rpx;
  683. width: 100%;
  684. display: flex;
  685. flex-direction: column;
  686. align-items: flex-start;
  687. justify-content: flex-start;
  688. box-sizing: border-box;
  689. .coupon-item{
  690. width: 100%;
  691. display: flex;
  692. align-items: center;
  693. justify-content: flex-start;
  694. margin-bottom: 16rpx;
  695. height:170rpx;
  696. &:last-child{
  697. margin-bottom: 0rpx;
  698. }
  699. .left{
  700. color: #fff;
  701. font-size: 36rpx;
  702. font-weight: bold;
  703. text-align: center;
  704. display: flex;
  705. flex-direction: column;
  706. align-items: center;
  707. justify-content: center;
  708. position: relative;
  709. width: 230rpx;
  710. image{
  711. position: absolute;
  712. width: 230rpx;
  713. height:170rpx;
  714. color: #fff;
  715. }
  716. .num{
  717. font-size: 40rpx;
  718. }
  719. .pic-num{
  720. font-size: 20rpx;
  721. z-index: 99;
  722. }
  723. }
  724. .right{
  725. display: flex;
  726. flex-direction: column;
  727. align-items: flex-start;
  728. justify-content: flex-start;
  729. height:170rpx;
  730. width: calc(100% - 230rpx);
  731. padding: 0 17rpx 0 24rpx;
  732. background-color: #fff;
  733. box-sizing: border-box;
  734. .title{
  735. width: 100%;
  736. font-size: 0.3 * 100rpx;
  737. color: #282828;
  738. height: 0.93 * 100rpx;
  739. line-height: 0.93 * 100rpx;
  740. border-bottom: 1px solid #f0f0f0;
  741. }
  742. .btns{
  743. display: flex;
  744. align-items: center;
  745. justify-content: space-between;
  746. width: 100%;
  747. font-size: 0.2 * 100rpx;
  748. color: #999;
  749. height: 0.76 * 100rpx;
  750. .btn{
  751. width: 1.36 * 100rpx;
  752. height: 0.44 * 100rpx;
  753. border-radius: 0.22 * 100rpx;
  754. font-size: 0.22 * 100rpx;
  755. color: #fff;
  756. text-align: center;
  757. line-height: 0.44 * 100rpx;
  758. background-color: #2583EB;
  759. .gray{
  760. background-color: #ccc;
  761. }
  762. }
  763. }
  764. }
  765. }
  766. }
  767. </style>