fugou.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768
  1. <template>
  2. <view>
  3. <!-- 商品列表 -->
  4. <view class="g-item">
  5. <image :src="shopList.image"></image>
  6. <view class="right">
  7. <text class="title clamp">{{ shopList.store_name }}</text>
  8. <text class="spec">{{ '默认' }}</text>
  9. <view class="price-box">
  10. <text class="price">¥{{ moneyAll }}</text>
  11. </view>
  12. </view>
  13. </view>
  14. <!-- 金额明细 -->
  15. <view class="yt-list">
  16. <view class="yt-list-cell b-b">
  17. <text class="cell-tit clamp">积分抵扣{{ '(当前积分:' + integralAll + ')' }}</text>
  18. <view class="cell-tip"><radio @click="checkedPoints = !checkedPoints" color=" #5dbc7c" :checked="checkedPoints" /></view>
  19. </view>
  20. </view>
  21. <view class="yt-list">
  22. <view class="yt-list-cell b-b">
  23. <text class="cell-tit clamp">商品总价</text>
  24. <text class="cell-tip">¥{{ moneyAll }}</text>
  25. </view>
  26. </view>
  27. <!-- 底部 -->
  28. <view class="footer">
  29. <view class="price-content">
  30. <text>实付款</text>
  31. <text class="price-tip">¥</text>
  32. <text class="price">{{ payAllMoney }}</text>
  33. </view>
  34. <text class="submit" :class="{ submitNo: !payType }" @click="payType ? submit() : ''">提交订单</text>
  35. </view>
  36. <uni-popup ref="popupPay" type="bottom">
  37. <view class="popup-box">
  38. <view class="popup-pay">
  39. <view class="paybox-top flex">
  40. <view class="type">选择支付方式</view>
  41. <view class="image" @click="close"><image src="../../static/img/x.png" mode="aspectFill"></image></view>
  42. </view>
  43. <!-- <view class="paybox-main flex">
  44. <view class="zftype flex">
  45. <image src="../../static/img/weixin.png" mode="aspectFill"></image>
  46. <view class="zf">微信支付</view>
  47. </view>
  48. <label class="radio1" @click="changePayType(1)"><radio style="transform:scale(0.7)" value="" :checked="payType == 1" color="#5dbc7c"></radio></label>
  49. </view>
  50. <view class="paybox-main flex">
  51. <view class="zftype flex">
  52. <image src="../../static/img/weixin.png" mode="aspectFill"></image>
  53. <view class="zf">支付宝支付</view>
  54. </view>
  55. <label class="radio1" @click="changePayType(4)"><radio style="transform:scale(0.7)" value="" :checked="payType == 4" color="#5dbc7c"></radio></label>
  56. </view> -->
  57. <view class="paybox-main flex">
  58. <view class="zftype flex">
  59. <image src="../../static/img/yue.png" mode="aspectFill"></image>
  60. <view class="zf">余额支付</view>
  61. </view>
  62. <label class="radio" @click="changePayType(2)">
  63. <radio style="transform:scale(0.7)" class="rad" value="" :checked="payType == 2" color="#5dbc7c"></radio>
  64. </label>
  65. </view>
  66. <view class="paybox-main flex">
  67. <view class="zftype flex">
  68. <image src="../../static/img/yong.png" mode="aspectFill"></image>
  69. <view class="zf">佣金支付</view>
  70. </view>
  71. <label class="radio1" @click="changePayType(3)"><radio style="transform:scale(0.7)" value="" :checked="payType == 3" color="#5dbc7c"></radio></label>
  72. </view>
  73. </view>
  74. <view class="buttom flex">
  75. <view class="heji">
  76. 合计:
  77. <text>
  78. <text class="money">{{ payAllMoney }}</text>
  79. </text>
  80. </view>
  81. <view class="zhifu" @click="pay">立即支付</view>
  82. </view>
  83. </view>
  84. </uni-popup>
  85. </view>
  86. </template>
  87. <script>
  88. import { fugou } from '@/api/order.js';
  89. import { getUserInfo } from '@/api/user.js';
  90. import { loadIndexs } from '@/api/index.js';
  91. export default {
  92. data() {
  93. return {
  94. addressImg:
  95. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAu4AAAAFCAYAAAAaAWmiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIH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EtYeeEh3jqcdKjl2BcWY65q9UAQb+c6+k3iePnaS+P5Pq8spOJ38fJ09RVI1OFuWo6xtJXSD+J6xh++OHN8PEt8HxtNY4pbAczC+m2Rnh8V3J9Q0Fa4LeG97YQdehj4aoSL9NZiZNMTKStp6g5/x5NsW37vWQaS1WXzPHvjihzYS/lgshbeJ75WySHm7wNXXk8SbK/xutOX4ntHtYRxE0eJn6uARaGf6ie++7GPNxVkf/78AAwCn1+RYqusbZQAAAABJRU5ErkJggg==',
  96. // 当前选中的支付方式
  97. tabCurrentIndex: 0,
  98. navList: [
  99. {
  100. state: 0,
  101. text: '快递配送'
  102. }
  103. // {
  104. // state: 1,
  105. // text: '到店自提'
  106. // }
  107. ],
  108. desc: '', //备注
  109. payType: 2, //1微信 2余额 2佣金
  110. payName:'yue',
  111. // 商品列表
  112. shopList: '',
  113. // 购物车id
  114. cartId: '',
  115. froms: '',
  116. payLoding: false, //判断是否支付中
  117. //购物金额详情
  118. moneyAll: '',
  119. now_money: '', // 当前余额
  120. payPrice: 0, //总支付金额
  121. payAllMoney: 0, //实际支付金额
  122. checkedPoints: false, //判断是否积分抵扣
  123. integralAll: 0, //可使用的积分
  124. integralMoney: 0 //积分抵扣金额
  125. };
  126. },
  127. onLoad(option) {
  128. this.loadData();
  129. this.userinfo();
  130. },
  131. watch: {
  132. checkedPoints(newValue, oldValue) {
  133. if (this.checkedPoints) {
  134. if (+this.moneyAll - +this.integralAll < 0) {
  135. this.payAllMoney = 0;
  136. } else {
  137. this.payAllMoney = +this.moneyAll - +this.integralAll;
  138. }
  139. } else {
  140. this.payAllMoney = +this.moneyAll;
  141. }
  142. }
  143. },
  144. computed: {
  145. Postage() {
  146. let money = +this.moneyAll.storePostage;
  147. if (money == 0) {
  148. return '免运费';
  149. } else {
  150. return '¥' + money;
  151. }
  152. }
  153. },
  154. methods: {
  155. // 加载用户基础信息
  156. userinfo() {
  157. getUserInfo({}).then(({ data }) => {
  158. this.integralAll = data.integral;
  159. });
  160. },
  161. close() {
  162. this.$refs.popupPay.close();
  163. },
  164. // 是否使用积分
  165. checkedIntegral() {
  166. this.checkedPoints = !this.checkedPoints;
  167. },
  168. loadData() {
  169. let obj = this;
  170. loadIndexs({}).then(({ data }) => {
  171. obj.shopList = data.register_order; //商品列表
  172. console.log(obj.shopList);
  173. obj.moneyAll = data.register_price; //金额数据
  174. obj.payAllMoney = data.register_price; //金额数据
  175. });
  176. },
  177. // 修改支付方式
  178. changePayType(type) {
  179. this.payType = type;
  180. if (this.payType == 1) {
  181. this.payName = 'weixin';
  182. console.log('weixin', this.payName);
  183. }
  184. if (this.payType == 2) {
  185. this.payName = 'yue';
  186. console.log('yue', this.payName);
  187. }
  188. if (this.payType == 3) {
  189. this.payName = 'brokerage';
  190. console.log('brokerage', this.payName);
  191. }
  192. if (this.payType == 4) {
  193. this.payName = 'ali';
  194. console.log('ali', this.payName);
  195. }
  196. },
  197. // 提交订单
  198. submit() {
  199. this.$refs.popupPay.open();
  200. },
  201. pay() {
  202. console.log('点击');
  203. try {
  204. let obj = this;
  205. // 判断是否余额不足
  206. // if (obj.payName == 'yue' && +obj.now_money < obj.payAllMoney) {
  207. // uni.showModal({
  208. // title: '提示',
  209. // content: '账户余额不足!',
  210. // showCancel: false,
  211. // success: res => {},
  212. // fail: () => {},
  213. // complete: () => {}
  214. // });
  215. // return;
  216. // }
  217. // if (obj.payName == 'yue' && +obj.now_money < obj.payAllMoney) {
  218. // uni.showModal({
  219. // title: '提示',
  220. // content: '账户余额不足!',
  221. // showCancel: false,
  222. // success: res => {},
  223. // fail: () => {},
  224. // complete: () => {}
  225. // });
  226. // return;
  227. // }
  228. // 支付中
  229. obj.payLoding = true;
  230. // #ifdef H5
  231. // 获取当前是否为微信浏览器
  232. obj.froms = uni.getStorageSync('weichatBrowser') || '';
  233. // #endif
  234. uni.showLoading({
  235. title: '支付中',
  236. mask: true
  237. });
  238. let use_integral = ''
  239. if(obj.checkedPoints) {
  240. use_integral = 1
  241. }else {
  242. use_integral = 0
  243. }
  244. let data = {
  245. use_integral: use_integral,
  246. pay_type: this.payName,
  247. // #ifdef H5
  248. from: obj.froms ? 'weixin' : 'H5', //来源
  249. // #endif
  250. // #ifdef MP-WEIXIN
  251. from: 'routine', //来源
  252. // #endif
  253. // #ifdef APP-PLUS
  254. from: 'app' //来源
  255. // #endif
  256. };
  257. fugou(data).then(({ data }) => {
  258. console.log('fufei', data);
  259. uni.hideLoading();
  260. if (data.status == 'PAY_DEFICIENCY') {
  261. console.log(data);
  262. this.$api.msg('支付失败')
  263. }
  264. if (data.status == 'SUCCESS') {
  265. this.$refs.popupPay.close();
  266. uni.showModal({
  267. title: '提示',
  268. content: '支付成功!',
  269. showCancel: false,
  270. success: res => {
  271. uni.switchTab({
  272. url: '/pages/index/index'
  273. });
  274. },
  275. fail: () => {},
  276. complete: () => {}
  277. });
  278. }
  279. console.log('-----', data);
  280. let da = data.result.jsConfig;
  281. // #ifdef MP-WEIXIN
  282. if (obj.payName == 'weixin' || obj.payName == 'routine') {
  283. // let da = data.result.jsConfig;
  284. console.log('--da--', da);
  285. let data = {
  286. // #ifdef H5
  287. timestamp: da.timestamp,
  288. // #endif
  289. // #ifdef MP
  290. timeStamp: da.timestamp,
  291. // #endif
  292. nonceStr: da.nonceStr,
  293. package: da.package,
  294. signType: da.signType,
  295. paySign: da.paySign
  296. };
  297. console.log('--data--', data);
  298. wx.requestPayment(data);
  299. }
  300. // #endif
  301. uni.hideLoading();
  302. // #ifdef H5
  303. if (data.status == 'PAY_DEFICIENCY') {
  304. console.log(data);
  305. this.$api.msg('支付失败')
  306. }
  307. if (data.status == 'SUCCESS') {
  308. this.$refs.popupPay.close();
  309. uni.showModal({
  310. title: '提示',
  311. content: '支付成功!',
  312. showCancel: false,
  313. success: res => {
  314. uni.switchTab({
  315. url: '/pages/index/index'
  316. });
  317. },
  318. fail: () => {},
  319. complete: () => {}
  320. });
  321. }
  322. // #endif
  323. });
  324. } catch (e) {
  325. console.log('fufiecw', e);
  326. //TODO handle the exception
  327. }
  328. },
  329. }
  330. };
  331. </script>
  332. <style lang="scss">
  333. page {
  334. background: $page-color-base;
  335. padding-bottom: 100rpx;
  336. }
  337. .navbar {
  338. display: flex;
  339. height: 80rpx;
  340. padding: 0 5px;
  341. background: #fff;
  342. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.06);
  343. position: relative;
  344. z-index: 10;
  345. .nav-item {
  346. flex: 1;
  347. display: flex;
  348. justify-content: center;
  349. align-items: center;
  350. height: 100%;
  351. font-size: $font-lg + 4rpx;
  352. color: $font-color-dark;
  353. position: relative;
  354. &.current {
  355. color: $base-color;
  356. &:after {
  357. content: '';
  358. position: absolute;
  359. left: 50%;
  360. bottom: 0;
  361. transform: translateX(-50%);
  362. width: 140rpx;
  363. height: 0;
  364. border-bottom: 2px solid $base-color;
  365. }
  366. }
  367. }
  368. }
  369. .address-section {
  370. padding: 30rpx 0;
  371. background: #fff;
  372. position: relative;
  373. border-top: 1px solid $border-color-light;
  374. .order-content {
  375. min-height: 100rpx;
  376. display: flex;
  377. align-items: center;
  378. .addAddress {
  379. text-align: center;
  380. width: 100%;
  381. display: flex;
  382. justify-content: center;
  383. align-items: center;
  384. .iconaddition {
  385. font-size: 55rpx;
  386. line-height: 1;
  387. border-radius: 100rpx;
  388. margin-right: 20rpx;
  389. }
  390. }
  391. }
  392. .iconlocation {
  393. flex-shrink: 0;
  394. display: flex;
  395. align-items: center;
  396. justify-content: center;
  397. width: 90rpx;
  398. color: #888;
  399. font-size: 44rpx;
  400. }
  401. .cen {
  402. display: flex;
  403. flex-direction: column;
  404. flex: 1;
  405. font-size: 28rpx;
  406. color: $font-color-dark;
  407. }
  408. .name {
  409. font-size: 34rpx;
  410. margin-right: 24rpx;
  411. }
  412. .address {
  413. margin-top: 16rpx;
  414. margin-right: 20rpx;
  415. color: $font-color-light;
  416. }
  417. .icon-you {
  418. font-size: 32rpx;
  419. color: $font-color-light;
  420. margin-right: 30rpx;
  421. }
  422. .a-bg {
  423. position: absolute;
  424. left: 0;
  425. bottom: 0;
  426. display: block;
  427. width: 100%;
  428. height: 5rpx;
  429. }
  430. }
  431. .goods-section {
  432. margin-top: 16rpx;
  433. background: #fff;
  434. padding-bottom: 1px;
  435. .g-header {
  436. display: flex;
  437. align-items: center;
  438. height: 84rpx;
  439. padding: 0 30rpx;
  440. position: relative;
  441. }
  442. .logo {
  443. display: block;
  444. width: 50rpx;
  445. height: 50rpx;
  446. border-radius: 100px;
  447. }
  448. .name {
  449. font-size: 30rpx;
  450. color: $font-color-base;
  451. margin-left: 24rpx;
  452. }
  453. }
  454. .g-item {
  455. display: flex;
  456. padding-top: 20rpx;
  457. margin: 0 30rpx;
  458. image {
  459. flex-shrink: 0;
  460. display: block;
  461. width: 140rpx;
  462. height: 140rpx;
  463. border-radius: 4rpx;
  464. }
  465. .right {
  466. flex: 1;
  467. padding-left: 24rpx;
  468. overflow: hidden;
  469. }
  470. .title {
  471. font-size: 30rpx;
  472. color: $font-color-dark;
  473. }
  474. .spec {
  475. font-size: 26rpx;
  476. color: $font-color-light;
  477. }
  478. .price-box {
  479. display: flex;
  480. align-items: center;
  481. font-size: 32rpx;
  482. color: $font-color-dark;
  483. padding-top: 10rpx;
  484. .price {
  485. margin-bottom: 4rpx;
  486. color: $color-red;
  487. }
  488. .number {
  489. font-size: 26rpx;
  490. color: $font-color-base;
  491. margin-left: 20rpx;
  492. }
  493. }
  494. .step-box {
  495. position: relative;
  496. }
  497. }
  498. .yt-list {
  499. margin-top: 16rpx;
  500. background: #fff;
  501. }
  502. .yt-list-cell {
  503. display: flex;
  504. align-items: center;
  505. padding: 10rpx 30rpx 10rpx 40rpx;
  506. line-height: 70rpx;
  507. position: relative;
  508. &.cell-hover {
  509. background: #fafafa;
  510. }
  511. &.b-b:after {
  512. left: 30rpx;
  513. }
  514. .cell-icon {
  515. height: 32rpx;
  516. width: 32rpx;
  517. font-size: 22rpx;
  518. color: #fff;
  519. text-align: center;
  520. line-height: 32rpx;
  521. background: #f85e52;
  522. border-radius: 4rpx;
  523. margin-right: 12rpx;
  524. &.hb {
  525. background: #ffaa0e;
  526. }
  527. &.lpk {
  528. background: #3ab54a;
  529. }
  530. }
  531. .cell-more {
  532. align-self: center;
  533. font-size: 24rpx;
  534. color: $font-color-light;
  535. margin-left: 8rpx;
  536. margin-right: -10rpx;
  537. }
  538. .cell-tit {
  539. flex: 1;
  540. font-size: 26rpx;
  541. color: $font-color-light;
  542. margin-right: 10rpx;
  543. }
  544. .cell-tip {
  545. font-size: 26rpx;
  546. color: $font-color-dark;
  547. &.disabled {
  548. color: $font-color-light;
  549. }
  550. &.active {
  551. color: $base-color;
  552. }
  553. &.red {
  554. color: $base-color;
  555. }
  556. }
  557. &.desc-cell {
  558. .cell-tit {
  559. max-width: 90rpx;
  560. }
  561. }
  562. .desc {
  563. flex: 1;
  564. text-align: right;
  565. font-size: $font-base;
  566. color: $font-color-dark;
  567. }
  568. }
  569. /* 支付列表 */
  570. .pay-list {
  571. padding-left: 40rpx;
  572. margin-top: 16rpx;
  573. background: #fff;
  574. .pay-item {
  575. display: flex;
  576. align-items: center;
  577. padding-right: 20rpx;
  578. line-height: 1;
  579. height: 110rpx;
  580. position: relative;
  581. }
  582. .icon-weixinzhifu {
  583. width: 80rpx;
  584. font-size: 40rpx;
  585. color: #6bcc03;
  586. }
  587. .icon-alipay {
  588. width: 80rpx;
  589. font-size: 40rpx;
  590. color: #06b4fd;
  591. }
  592. .icon-xuanzhong2 {
  593. display: flex;
  594. align-items: center;
  595. justify-content: center;
  596. width: 60rpx;
  597. height: 60rpx;
  598. font-size: 40rpx;
  599. color: $base-color;
  600. }
  601. .tit {
  602. font-size: 32rpx;
  603. color: $font-color-dark;
  604. flex: 1;
  605. }
  606. }
  607. .footer {
  608. position: absolute;
  609. left: 0;
  610. bottom: 0;
  611. z-index: 10;
  612. display: flex;
  613. align-items: center;
  614. width: 100%;
  615. height: 90rpx;
  616. justify-content: space-between;
  617. font-size: 30rpx;
  618. background-color: #fff;
  619. color: $font-color-base;
  620. box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
  621. .price-content {
  622. padding-left: 30rpx;
  623. }
  624. .price-tip {
  625. color: $font-color-base;
  626. margin-left: 8rpx;
  627. }
  628. .price {
  629. font-size: 36rpx;
  630. color: $font-color-base;
  631. }
  632. .submit {
  633. display: flex;
  634. align-items: center;
  635. justify-content: center;
  636. width: 280rpx;
  637. height: 100%;
  638. color: #fff;
  639. font-size: 32rpx;
  640. background-color: $base-color;
  641. &.submitNo {
  642. background-color: $font-color-disabled;
  643. }
  644. }
  645. }
  646. .popup-box {
  647. position: relative;
  648. z-index: 100;
  649. width: 100%;
  650. height: auto;
  651. background: #ffffff;
  652. .popup-pay {
  653. position: relative;
  654. justify-content: space-between;
  655. padding: 0rpx 25rpx 32rpx 25rpx;
  656. .paybox-top {
  657. padding-top: 38rpx;
  658. width: 100%;
  659. .type {
  660. font-size: 28rpx;
  661. font-family: PingFang SC;
  662. font-weight: bold;
  663. color: #333333;
  664. }
  665. .image {
  666. padding-right: 24rpx;
  667. padding-bottom: 10rpx;
  668. image {
  669. width: 16rpx;
  670. height: 16rpx;
  671. }
  672. }
  673. }
  674. .paybox-main {
  675. width: 100%;
  676. margin-top: 54rpx;
  677. .zftype {
  678. padding-left: 5rpx;
  679. image {
  680. width: 38rpx;
  681. height: 40rpx;
  682. }
  683. .zf {
  684. padding-left: 18rpx;
  685. font-size: 28rpx;
  686. font-family: PingFang SC;
  687. font-weight: 400;
  688. color: #3f454b;
  689. }
  690. }
  691. }
  692. }
  693. .buttom {
  694. position: relative;
  695. z-index: 100;
  696. width: 100%;
  697. height: 113rpx;
  698. padding-top: 20rpx;
  699. align-items: center;
  700. .heji {
  701. height: 100%;
  702. width: 50%;
  703. padding-left: 23rpx;
  704. padding-top: 20rpx;
  705. font-size: 28rpx;
  706. font-family: PingFang SC;
  707. font-weight: 400;
  708. color: #3f454b;
  709. text {
  710. font-size: 24rpx;
  711. font-family: PingFang SC;
  712. font-weight: bold;
  713. color: #ff0000;
  714. .money {
  715. font-size: 36rpx;
  716. }
  717. }
  718. }
  719. .zhifu {
  720. width: 50%;
  721. height: 92rpx;
  722. background: #5dbc7c;
  723. text-align: center;
  724. line-height: 92rpx;
  725. font-size: 32rpx;
  726. font-family: PingFang SC;
  727. font-weight: bold;
  728. color: #ffffff;
  729. }
  730. }
  731. }
  732. </style>