apply.vue 26 KB

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