apply.vue 33 KB

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