storeOrderPay.vue 18 KB

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