openMember.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086
  1. <template>
  2. <view class="conter">
  3. <view class="top">
  4. <view class="bg">
  5. <view class="bg-item"></view>
  6. </view>
  7. <view class="card">
  8. <view class="opennow">{{ userInfo.level > 0 ? '已开通' : '立即开通' }}</view>
  9. <view class="card-top flex">
  10. <view class="avtur">
  11. <image :src="userInfo.avatar || '/static/error/missing-face.png'" mode=""></image>
  12. </view>
  13. <view class="main">
  14. <view class="name">{{ userInfo.nickname }}</view>
  15. <view class="tip" v-if="userInfo.level == 0">尚未开通会员</view>
  16. <view class="tip" v-else>
  17. <!-- <text v-if="type">离会员到期仅剩{{ day }}天</text> -->
  18. <text>已开通会员</text>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="bottom flex" style="z-index: 9; margin-top: 94rpx;">
  23. <view class="font">
  24. <view class="font-title">会员卡</view>
  25. <view class="font-tip">¥600/永久 终身付费会员</view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="vip">
  31. <view class="system-title">
  32. <view class="img" style="margin-right: 45rpx;">
  33. <image class="img" src="../../static/img/vip-left.png"></image>
  34. </view>
  35. <view class="title">会员特权</view>
  36. <view class="img" style="margin-left: 45rpx;">
  37. <image class="img" src="../../static/img/vip-right.png"></image>
  38. </view>
  39. </view>
  40. <view class="item-box flex">
  41. <view class="item" v-for="(item, index) in viplist" :key="index">
  42. <image :src="item.pic" mode=""></image>
  43. <view class="item-title">{{ item.title }}</view>
  44. <view class="item-tip">{{ item.tip }}</view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="store" @click="chooseStore" v-if="choose == 0">选择门店: {{ storeInfo1.name || '请选择门店' }}</view>
  49. <view class="vip">
  50. <view class="system-title">
  51. <view class="img" style="margin-right: 45rpx;">
  52. <image class="img" src="../../static/img/vip-left.png"></image>
  53. </view>
  54. <view class="title">会员特权</view>
  55. <view class="img" style="margin-left: 45rpx;">
  56. <image class="img" src="../../static/img/vip-right.png"></image>
  57. </view>
  58. </view>
  59. <view class="money-box flex">
  60. <view class="money" v-for="(item, index) in payList" @click="changevip(item, index)"
  61. :class="{ current: index == choose }">
  62. <view class="money-name">{{ item.name }}</view>
  63. <view class="now-money">
  64. <text>{{ item.money * 1 }}</text>
  65. </view>
  66. <view class="bf-money">¥{{ (item.money * 1.1).toFixed(2) * 1 }}</view>
  67. <view class="money-tip" :class="{ moneyc: index == choose }">
  68. <image src="../../static/img/good.png" mode=""></image>
  69. 专属折扣
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. <view class="zw"></view>
  75. <view class="box-buttom">
  76. <view class="price-left">
  77. <text class="entrepreneurship">
  78. 开通前请阅读
  79. <text>《会员服务协议》</text>
  80. </text>
  81. </view>
  82. <view class="price-right" @click="userInfo.level > 0 ? '' : submit()">马上开通</view>
  83. </view>
  84. <uni-popup ref="popupPay" type="bottom">
  85. <view class="popup-box">
  86. <view class="popup-pay">
  87. <view class="paybox-top flex">
  88. <view class="type">选择支付方式</view>
  89. <view class="image" @click="close">
  90. <image src="https://zhibo.liuniu946.com/img/x.png" mode="aspectFill"></image>
  91. </view>
  92. </view>
  93. <!-- #ifndef APP-PLUS -->
  94. <view class="paybox-main flex" @click="changePayType(1)">
  95. <view class="zftype flex">
  96. <image src="https://zhibo.liuniu946.com/img/weixin.png" mode="aspectFill"></image>
  97. <view class="zf">微信支付</view>
  98. </view>
  99. <label class="radio1">
  100. <radio style="transform:scale(0.7)" value="" :checked="payType == 1" color="#52C696">
  101. </radio>
  102. </label>
  103. </view>
  104. <!-- #endif -->
  105. <!-- #ifdef APP-PLUS -->
  106. <view class="paybox-main flex" @click="changePayType(3)">
  107. <view class="zftype flex">
  108. <view class="icon iconfont iconzhifubao"></view>
  109. <view class="zf">支付宝支付</view>
  110. </view>
  111. <label class="radio1">
  112. <radio style="transform:scale(0.7)" value="" :checked="payType == 3" color="#52C696">
  113. </radio>
  114. </label>
  115. </view>
  116. <!-- #endif -->
  117. <view class="paybox-main flex" @click="changePayType(2)">
  118. <view class="zftype flex">
  119. <image src="https://zhibo.liuniu946.com/img/yue.png" mode="aspectFill"></image>
  120. <view class="zf">流动积分兑换</view>
  121. </view>
  122. <label class="radio">
  123. <radio style="transform:scale(0.7)" class="rad" value="" :checked="payType == 2"
  124. color="#52C696"></radio>
  125. </label>
  126. </view>
  127. </view>
  128. <view class="buttom flex">
  129. <view class="heji">
  130. 合计:
  131. <text>
  132. <text class="money">{{ money }}</text>
  133. </text>
  134. </view>
  135. <view class="zhifu" @click="readyPay()">立即支付</view>
  136. </view>
  137. </view>
  138. </uni-popup>
  139. </view>
  140. </template>
  141. <script>
  142. import {
  143. mapState,
  144. mapMutations
  145. } from 'vuex';
  146. import {
  147. becomeVip,
  148. getVip,
  149. setUserRed,
  150. claseauto
  151. } from '@/api/user.js';
  152. import {
  153. getUserInfo
  154. } from '@/api/user.js';
  155. import {
  156. timeComputed
  157. } from '@/utils/rocessor.js';
  158. // #ifdef H5
  159. import weixinObj from '@/plugin/jweixin-module/index.js';
  160. // #endif
  161. export default {
  162. computed: {
  163. ...mapState(['weichatObj', 'storeInfo', 'canChange']),
  164. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  165. },
  166. onLoad(option) {
  167. this.state = option.state;
  168. this.getVip();
  169. console.log(this.userInfo);
  170. this.checkedAuto = +this.userInfo.red_packet == 0 ? false : true;
  171. if (this.userInfo.pay_valid_time != null) {
  172. let TimeObj = timeComputed(this.userInfo.pay_valid_time * 1000);
  173. this.type = TimeObj.type == 0 ? true : false;
  174. this.day = TimeObj.day;
  175. }
  176. if (this.storeInfo != '') {
  177. this.storeInfo1 = this.storeInfo;
  178. }
  179. },
  180. data() {
  181. return {
  182. storeInfo1: {
  183. name: ''
  184. },
  185. checkedZdLoding: false, //自动拼团是否加载中
  186. checkedAutoZd: 1, //开启关闭自动拼团
  187. timeEnd: true, //判断会员是否超时
  188. viplist: [{
  189. pic: '../../static/img/yjjl.png',
  190. title: '绿积分奖励',
  191. tip: '更多绿积分奖励'
  192. },
  193. {
  194. pic: '../../static/img/zszk.png',
  195. title: '专属折扣',
  196. tip: '优享会员折扣'
  197. },
  198. {
  199. pic: '../../static/img/tdjl.png',
  200. title: '团队奖励',
  201. tip: '更多团队奖励'
  202. }
  203. ],
  204. state: '',
  205. // #ifndef APP-PLUS
  206. payType: 1,
  207. payName: 'weixin',
  208. // #endif
  209. // #ifdef APP-PLUS
  210. payType: 2,
  211. payName: 'yue',
  212. // #endif
  213. day: '', //会员的天数
  214. name: '',
  215. payList: [],
  216. froms: '',
  217. money: 0,
  218. explain: '',
  219. now_money: '', // 当前余额
  220. payLoding: false, //判断是否支付中
  221. choose: 0,
  222. level_id: '',
  223. checkedAuto: false, //是否开启自动领红包
  224. checkedLoding: false, //请求自动加载设置保存中
  225. store: {
  226. name: ''
  227. }
  228. };
  229. },
  230. methods: {
  231. ...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
  232. // 开启关闭自动拼团
  233. autoOut(e) {
  234. uni.showLoading({
  235. title: '关闭中...',
  236. mask: true
  237. });
  238. claseauto()
  239. .then(e => {
  240. uni.hideLoading();
  241. uni.showToast({
  242. title: '成功关闭!'
  243. });
  244. })
  245. .catch(e => {
  246. uni.hideLoading();
  247. });
  248. }, //自动拼团是否加载中
  249. // 获取vip等级
  250. getVip() {
  251. getVip({}).then(({
  252. data
  253. }) => {
  254. console.log(data);
  255. this.payList = data;
  256. // 设置默认选中的对象
  257. this.level_id = data[0].id;
  258. this.money = data[0].money;
  259. console.log(this.payList);
  260. });
  261. },
  262. // 开启关闭自动加载
  263. changeAuto(e) {
  264. console.log(e);
  265. if (this.checkedLoding) {
  266. return;
  267. }
  268. this.checkedLoding = true;
  269. setUserRed({
  270. red_packet: e
  271. })
  272. .then(e => {
  273. uni.showToast({
  274. title: '设置成功!'
  275. });
  276. this.checkedLoding = false;
  277. })
  278. .catch(e => {
  279. this.checkedAuto = false;
  280. this.checkedLoding = false;
  281. });
  282. },
  283. submit() {
  284. // if (this.money == 0) {
  285. // uni.showModal({
  286. // title: '提示',
  287. // content: '请选择要开通的会员'
  288. // });
  289. // } else {
  290. // }
  291. if (this.choose == 0) {
  292. if (!this.storeInfo1.name) {
  293. return this.$api.msg('请选择门店');
  294. }
  295. }
  296. console.log('打开支付弹窗');
  297. this.$refs.popupPay.open();
  298. },
  299. close() {
  300. this.$refs.popupPay.close();
  301. },
  302. changePayType(type) {
  303. this.payType = type;
  304. console.log('this.payType', this.payType);
  305. if (this.payType == 1) {
  306. this.payName = 'weixin';
  307. console.log('weixin', this.payName);
  308. }
  309. if (this.payType == 2) {
  310. this.payName = 'yue';
  311. console.log('yue', this.payName);
  312. }
  313. if (this.payType == 3) {
  314. this.payName = 'ali';
  315. console.log('ali', this.payName);
  316. }
  317. },
  318. readyPay() {
  319. // this.$refs.popup.open();
  320. this.pay();
  321. },
  322. changevip(item, index) {
  323. this.level_id = item.id;
  324. this.choose = index;
  325. console.log(this.level_id);
  326. this.money = item.money;
  327. },
  328. getUserInfoB() {
  329. getUserInfo({})
  330. .then(({
  331. data
  332. }) => {
  333. this.setUserInfo(data);
  334. // if (this.state == 1) {
  335. // uni.switchTa({
  336. // url: '/pages/user/user'
  337. // });
  338. // } else {
  339. // uni.navigateBack();
  340. // }
  341. })
  342. .catch(e => {
  343. console.log(e);
  344. });
  345. },
  346. // 选择门店
  347. chooseStore() {
  348. if (this.canChange == 0) {
  349. return;
  350. } else {
  351. uni.navigateTo({
  352. url: '/pages/shoping/list?type=6'
  353. });
  354. }
  355. },
  356. pay() {
  357. let obj = this;
  358. console.log('点击');
  359. try {
  360. let obj = this;
  361. obj.payLoding = true;
  362. // #ifdef H5
  363. // 获取当前是否为微信浏览器
  364. obj.froms = uni.getStorageSync('weichatBrowser') || '';
  365. // #endif
  366. uni.showLoading({
  367. title: '支付中',
  368. mask: true
  369. });
  370. console.log(obj.storeInfo1, '654321');
  371. if (obj.choose == 0 && !obj.storeInfo1.name) {
  372. this.$api.msg('请选择门店');
  373. return;
  374. }
  375. let data;
  376. if (obj.choose == 0) {
  377. data = {
  378. store_id: obj.storeInfo1.id,
  379. pay_type: this.payName,
  380. level_id: obj.level_id,
  381. // #ifdef H5
  382. from: obj.froms ? 'weixin' : 'H5', //来源
  383. // #endif
  384. // #ifdef MP-WEIXIN
  385. from: 'routine', //来源
  386. // #endif
  387. // #ifdef APP-PLUS
  388. from: 'app' //来源
  389. // #endif
  390. };
  391. } else {
  392. data = {
  393. pay_type: this.payName,
  394. level_id: obj.level_id,
  395. // #ifdef H5
  396. from: obj.froms ? 'weixin' : 'H5', //来源
  397. // #endif
  398. // #ifdef MP-WEIXIN
  399. from: 'routine', //来源
  400. // #endif
  401. // #ifdef APP-PLUS
  402. from: 'app' //来源
  403. // #endif
  404. };
  405. }
  406. console.log(data, '传值');
  407. becomeVip(data).then(({
  408. data
  409. }) => {
  410. console.log('fufei', data);
  411. uni.hideLoading();
  412. if (obj.payName == 'ali') {
  413. const url = data.data;
  414. console.log(url, 'url');
  415. uni.requestPayment({
  416. provider: 'alipay',
  417. orderInfo: url,
  418. success: res => {
  419. console.log(res);
  420. uni.showToast({
  421. title: '充值成功',
  422. duration: 2000
  423. });
  424. },
  425. fail: e => {
  426. console.log(e);
  427. },
  428. complete: () => {}
  429. });
  430. obj.payLoding = false;
  431. }
  432. if (data.status == 'PAY_ERROR') {
  433. console.log(data);
  434. }
  435. if (data.status == 'SUCCESS') {
  436. obj.$refs.popupPay.close();
  437. obj.getUserInfoB();
  438. // getUserInfo({})
  439. // .then(({ data }) => {
  440. // obj.setUserInfo(data);
  441. // if (obj.state == 1) {
  442. // uni.navigateTo({
  443. // url: '/pages/vip/success'
  444. // });
  445. // } else {
  446. // uni.navigateBack();
  447. // }
  448. // })
  449. // .catch(e => {
  450. // console.log(e);
  451. // });
  452. }
  453. console.log('-----', data);
  454. let da = data.result.jsConfig;
  455. if (obj.payName == 'weixin' || obj.payName == 'routine') {
  456. // let da = data.result.jsConfig;
  457. console.log('--da--', da);
  458. let data = {
  459. // #ifdef H5
  460. timestamp: da.timestamp,
  461. // #endif
  462. // #ifdef MP
  463. timeStamp: da.timestamp,
  464. // #endif
  465. nonceStr: da.nonceStr,
  466. package: da.package,
  467. signType: da.signType,
  468. paySign: da.paySign,
  469. success: function(res) {
  470. console.log(res);
  471. // obj.getUserInfoB();
  472. getUserInfo({})
  473. .then(({
  474. data
  475. }) => {
  476. obj.setUserInfo(data);
  477. uni.showToast({
  478. title: '开通成功',
  479. duration: 2000
  480. });
  481. setTimeout(function() {
  482. uni.navigateBack();
  483. }, 1500);
  484. })
  485. .catch(e => {
  486. console.log(e);
  487. });
  488. },
  489. fail: e => {
  490. console.log(e);
  491. }
  492. };
  493. console.log('--data--', data);
  494. // #ifdef MP
  495. wx.requestPayment(data);
  496. // #endif
  497. // #ifdef H5
  498. if (obj.payName == 'weixin') {
  499. weixinObj.chooseWXPay(data);
  500. }
  501. // #endif
  502. }
  503. uni.hideLoading();
  504. // #ifdef H5
  505. if (data.status == 'PAY_ERROR') {
  506. console.log(data);
  507. }
  508. if (data.status == 'SUCCESS') {
  509. obj.$refs.popupPay.close();
  510. obj.getUserInfoB();
  511. getUserInfo({})
  512. .then(({
  513. data
  514. }) => {
  515. obj.setUserInfo(data);
  516. uni.showToast({
  517. title: '开通成功',
  518. duration: 2000
  519. });
  520. setTimeout(function() {
  521. uni.navigateBack();
  522. }, 1500);
  523. })
  524. .catch(e => {
  525. console.log(e);
  526. });
  527. }
  528. // #endif
  529. });
  530. } catch (e) {
  531. console.log('fufiecw', e);
  532. //TODO handle the exception
  533. }
  534. }
  535. }
  536. };
  537. </script>
  538. <style lang="scss">
  539. .outBottom {
  540. width: 190rpx;
  541. height: 69rpx;
  542. background: #3a3a3b;
  543. border-radius: 35rpx;
  544. color: #ffffff;
  545. line-height: 69rpx;
  546. text-align: center;
  547. font-size: 27rpx;
  548. font-family: PingFang SC;
  549. font-weight: 500;
  550. }
  551. .top {
  552. width: 750rpx;
  553. background-color: #fff;
  554. padding-top: 45rpx;
  555. padding-bottom: 45rpx;
  556. // height: 626rpx;
  557. .bg {
  558. position: absolute;
  559. top: 0;
  560. left: 0;
  561. right: 0;
  562. width: 750rpx;
  563. height: 200rpx;
  564. overflow: hidden;
  565. .bg-item {
  566. width: 750rpx;
  567. height: 145rpx;
  568. background-color: #363533;
  569. border-radius: 0 0 25% 25%;
  570. // position: absolute;
  571. // bottom: 0;
  572. // top: -2200rpx;
  573. // left: 0;
  574. // right: 0;
  575. // margin:0 auto;
  576. }
  577. }
  578. .title {
  579. position: relative;
  580. z-index: 10;
  581. width: 100%;
  582. padding-top: 20rpx;
  583. text-align: center;
  584. font-size: 34rpx;
  585. font-family: PingFang SC;
  586. font-weight: bold;
  587. color: #333333;
  588. }
  589. .card {
  590. position: relative;
  591. margin: 0 auto 0;
  592. z-index: 10;
  593. width: 655rpx;
  594. // height: 324rpx;
  595. background: linear-gradient(225deg, #ffeed2 0%, #fed591 100%);
  596. border-radius: 24rpx;
  597. padding: 28rpx 25rpx 30rpx 36rpx;
  598. .opennow {
  599. width: 190rpx;
  600. line-height: 69rpx;
  601. background: #3a3a3b;
  602. border-radius: 35rpx;
  603. position: absolute;
  604. top: 39rpx;
  605. right: 25rpx;
  606. font-size: 30rpx;
  607. font-family: PingFang SC;
  608. font-weight: 500;
  609. color: #ffffff;
  610. text-align: center;
  611. }
  612. .card-top {
  613. justify-content: flex-start;
  614. .avtur {
  615. width: 90rpx;
  616. height: 90rpx;
  617. border-radius: 50%;
  618. margin-right: 10rpx;
  619. image {
  620. background-color: #eee;
  621. width: 100%;
  622. height: 100%;
  623. border-radius: 50%;
  624. }
  625. }
  626. .name {
  627. font-size: 30rpx;
  628. font-family: PingFang SC;
  629. font-weight: 500;
  630. color: #333333;
  631. }
  632. .tip {
  633. font-size: 20rpx;
  634. font-family: PingFang SC;
  635. font-weight: 500;
  636. color: #333333;
  637. opacity: 0.52;
  638. }
  639. }
  640. .btn {
  641. position: absolute;
  642. top: 40rpx;
  643. right: 24rpx;
  644. width: 190rpx;
  645. height: 69rpx;
  646. background: #3a3a3b;
  647. border-radius: 35rpx;
  648. font-size: 30rpx;
  649. font-family: PingFang SC;
  650. font-weight: 500;
  651. color: #ffffff;
  652. line-height: 69rpx;
  653. text-align: center;
  654. }
  655. }
  656. .bottom {
  657. margin-top: 40rpx;
  658. .font-title {
  659. font-size: 30rpx;
  660. font-family: PingFang SC;
  661. font-weight: bold;
  662. color: #333333;
  663. }
  664. .font-tip {
  665. font-size: 22rpx;
  666. font-family: PingFang SC;
  667. font-weight: 500;
  668. color: #343434;
  669. }
  670. }
  671. .turn {
  672. width: 108rpx;
  673. height: 51rpx;
  674. background: #ffffff;
  675. border-radius: 26rpx;
  676. padding: 10rpx;
  677. font-size: 30rpx;
  678. font-family: PingFang SC;
  679. font-weight: bold;
  680. color: #333333;
  681. display: flex;
  682. align-items: center;
  683. .yuan {
  684. display: inline-block;
  685. width: 35rpx;
  686. height: 35rpx;
  687. background: linear-gradient(112deg, #ffe5bb, #fed591);
  688. border-radius: 50%;
  689. margin-right: 12rpx;
  690. }
  691. }
  692. }
  693. .vip {
  694. margin-top: 20rpx;
  695. background: #ffffff;
  696. padding-bottom: 54rpx;
  697. .system-title {
  698. display: flex;
  699. justify-content: center;
  700. align-items: center;
  701. padding-top: 40rpx;
  702. .title {
  703. font-size: 32rpx;
  704. font-family: PingFang SC;
  705. font-weight: bold;
  706. color: #1d2023;
  707. }
  708. .img {
  709. width: 170rpx;
  710. height: 2rpx;
  711. display: block;
  712. }
  713. }
  714. .item-box {
  715. margin-top: 40rpx;
  716. justify-content: center;
  717. align-items: center;
  718. .item {
  719. flex: 1;
  720. display: flex;
  721. flex-direction: column;
  722. align-items: center;
  723. image {
  724. width: 100rpx;
  725. height: 100rpx;
  726. }
  727. .item-title {
  728. margin-top: 14rpx;
  729. font-size: 24rpx;
  730. font-family: PingFang SC;
  731. font-weight: 500;
  732. color: #333333;
  733. }
  734. .item-tip {
  735. margin-top: 10rpx;
  736. font-size: 20rpx;
  737. font-family: PingFang SC;
  738. font-weight: 500;
  739. color: #999999;
  740. }
  741. }
  742. }
  743. .money-box {
  744. margin-top: 40rpx;
  745. justify-content: center;
  746. align-items: center;
  747. padding: 0 47rpx 50rpx 25rpx;
  748. .current {
  749. border: 1rpx solid #fed591 !important;
  750. background: #fff8ec !important;
  751. }
  752. .money {
  753. margin-left: 22rpx;
  754. flex: 1;
  755. display: flex;
  756. flex-direction: column;
  757. align-items: center;
  758. width: 204rpx;
  759. height: 296rpx;
  760. background: #f5f5f5;
  761. border: 1rpx solid #ffffff;
  762. border-radius: 20rpx;
  763. position: relative;
  764. .tj {
  765. position: absolute;
  766. top: 0;
  767. left: 0;
  768. width: 90rpx;
  769. height: 44rpx;
  770. text-align: center;
  771. line-height: 44rpx;
  772. font-size: 25rpx;
  773. font-family: PingFang SC;
  774. font-weight: 500;
  775. color: #ffffff;
  776. .tj-bg {
  777. width: 90rpx;
  778. height: 44rpx;
  779. }
  780. text {
  781. display: inline-block;
  782. position: relative;
  783. top: -56rpx;
  784. }
  785. }
  786. .money-name {
  787. margin-top: 58rpx;
  788. font-size: 33rpx;
  789. font-family: PingFang SC;
  790. font-weight: 500;
  791. color: #644931;
  792. }
  793. .now-money {
  794. font-size: 30rpx;
  795. font-family: FZCuHeiSongS-B-GB;
  796. font-weight: 400;
  797. color: #f7cf9c;
  798. text {
  799. font-size: 50rpx;
  800. }
  801. }
  802. .bf-money {
  803. font-size: 33rpx;
  804. font-family: PingFang SC;
  805. font-weight: 500;
  806. text-decoration: line-through;
  807. color: #9a5a12;
  808. opacity: 0.35;
  809. }
  810. .moneyc {
  811. background: #f7cf9c !important;
  812. color: #ffffff !important;
  813. }
  814. .money-tip {
  815. margin-top: 10rpx;
  816. width: 158rpx;
  817. height: 45rpx;
  818. background: #f5f5f5;
  819. border: 1px solid #f7cf9c;
  820. border-radius: 23rpx;
  821. padding: 5rpx 10rpx;
  822. font-size: 25rpx;
  823. font-family: PingFang SC;
  824. font-weight: 500;
  825. color: #f7cf9c;
  826. image {
  827. position: relative;
  828. top: 2rpx;
  829. width: 23rpx;
  830. height: 23rpx;
  831. }
  832. }
  833. }
  834. }
  835. }
  836. .zw {
  837. height: 98rpx;
  838. width: 750rpx;
  839. }
  840. .box-buttom {
  841. width: 750rpx;
  842. height: 98rpx;
  843. // position: absolute;
  844. // buttom:0;
  845. position: fixed;
  846. bottom: 0;
  847. right: 0;
  848. // position: absolute;
  849. // buttom:100rpx;
  850. display: flex;
  851. align-items: center;
  852. background: #34332f;
  853. .price-left {
  854. display: flex;
  855. .entrepreneurship {
  856. font-size: 24rpx;
  857. font-weight: 500;
  858. color: #bbbbbb;
  859. margin-left: 16rpx;
  860. text {
  861. font-size: 30rpx;
  862. color: #ffffff;
  863. }
  864. }
  865. }
  866. .price-right {
  867. position: absolute;
  868. bottom: 0;
  869. right: 0;
  870. // position: fixed;
  871. // buttom: 0;
  872. // right: 0;
  873. width: 280rpx;
  874. height: 108rpx;
  875. background: #fed591;
  876. font-size: 36rpx;
  877. font-weight: bold;
  878. color: #000000;
  879. display: flex;
  880. justify-content: center;
  881. align-items: center;
  882. }
  883. .price-right1 {
  884. position: absolute;
  885. bottom: 0;
  886. right: 0;
  887. // position: fixed;
  888. // buttom: 0;
  889. // right: 0;
  890. width: 280rpx;
  891. height: 108rpx;
  892. background: #b5b5b5;
  893. font-size: 36rpx;
  894. font-weight: bold;
  895. color: #ffffff;
  896. display: flex;
  897. justify-content: center;
  898. align-items: center;
  899. }
  900. }
  901. .popup-box {
  902. width: 100%;
  903. height: 450rpx;
  904. background: #ffffff;
  905. }
  906. .popup-pay {
  907. position: relative;
  908. justify-content: space-between;
  909. padding: 0rpx 25rpx 32rpx 25rpx;
  910. .paybox-top {
  911. padding-top: 38rpx;
  912. width: 100%;
  913. .type {
  914. font-size: 28rpx;
  915. font-family: PingFang SC;
  916. font-weight: bold;
  917. color: #333333;
  918. }
  919. .image {
  920. padding-right: 24rpx;
  921. padding-bottom: 10rpx;
  922. image {
  923. width: 16rpx;
  924. height: 16rpx;
  925. }
  926. }
  927. }
  928. .paybox-main {
  929. width: 100%;
  930. margin-top: 54rpx;
  931. .zftype {
  932. padding-left: 5rpx;
  933. image {
  934. width: 38rpx;
  935. height: 40rpx;
  936. }
  937. .zf {
  938. padding-left: 18rpx;
  939. font-size: 28rpx;
  940. font-family: PingFang SC;
  941. font-weight: 400;
  942. color: #3f454b;
  943. }
  944. }
  945. }
  946. }
  947. .buttom {
  948. width: 100%;
  949. height: 113rpx;
  950. padding-top: 20rpx;
  951. align-items: center;
  952. .heji {
  953. height: 100%;
  954. width: 50%;
  955. padding-left: 23rpx;
  956. padding-top: 20rpx;
  957. font-size: 28rpx;
  958. font-family: PingFang SC;
  959. font-weight: 400;
  960. color: #3f454b;
  961. text {
  962. font-size: 24rpx;
  963. font-family: PingFang SC;
  964. font-weight: bold;
  965. color: #ff0000;
  966. .money {
  967. font-size: 36rpx;
  968. }
  969. }
  970. }
  971. .zhifu {
  972. width: 50%;
  973. height: 92rpx;
  974. background: #52c696;
  975. text-align: center;
  976. line-height: 92rpx;
  977. font-size: 32rpx;
  978. font-family: PingFang SC;
  979. font-weight: bold;
  980. color: #ffffff;
  981. }
  982. }
  983. .ling-box {
  984. position: relative;
  985. z-index: 10;
  986. width: 654rpx;
  987. height: auto;
  988. background: #fff8ec;
  989. border: 1px solid #fed591;
  990. border-radius: 24rpx;
  991. margin: 20rpx auto 0;
  992. padding: 20rpx 24rpx 15rpx 42rpx;
  993. .ling-title {
  994. font-size: 30rpx;
  995. font-family: PingFang SC;
  996. font-weight: bold;
  997. color: #644931;
  998. }
  999. .ling-tip {
  1000. font-size: 22rpx;
  1001. font-family: PingFang SC;
  1002. font-weight: 500;
  1003. color: #644931;
  1004. line-height: 24px;
  1005. opacity: 0.67;
  1006. }
  1007. }
  1008. .store {
  1009. width: 750rpx;
  1010. margin-top: 20rpx;
  1011. padding: 20rpx;
  1012. background: #ffffff;
  1013. }
  1014. </style>