1 line
41 KiB
JavaScript
1 line
41 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-member_renew-index"],{"0f95":function(e,t,r){"use strict";r("7a82");var n=r("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("e25e"),r("caad"),r("2532"),r("4de4"),r("d3b7"),r("14d9"),r("d81d");var i=n(r("ade3")),a=n(r("5530")),o=n(r("c7eb")),u=n(r("1da1")),s=r("d7c4"),l=n(r("0310")),f=n(r("645c")),d={name:"member_application",components:{paymentMember:l.default},data:function(){return{memberData:[],payInfo:{userPhone:"",confirmPhone:"",orderInfos:[]},payMode:[{name:"微信支付",icon:"icon-weixinzhifu",value:"WXPAY",title:"微信快捷支付"},{name:"支付宝",icon:"icon-zhifubao",value:"ALIPAY",title:"支付宝快捷支付"}],pay_close:!1,activeIndex:[],form:{userPhone:""},rules:{userPhone:[{required:!0,message:"手机号不能为空",trigger:["change","blur"]},{pattern:/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[1-25-9])\d{8}$/g,transform:function(e){return String(e)},message:"手机号不正确(190.193号段不可充值)",trigger:["change","blur"]}]}}},onLoad:function(){var e=this;return(0,u.default)((0,o.default)().mark((function t(){var r;return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return uni.showLoading({title:"加载中",mask:!0}),t.prev=1,t.next=4,(0,s.memberGradeInfo)();case 4:r=t.sent,e.memberData=r.data,e.form.userPhone=f.default.state.app.userInfo.mobile;case 7:return t.prev=7,uni.hideLoading(),t.finish(7);case 10:case"end":return t.stop()}}),t,null,[[1,,7,10]])})))()},methods:(0,i.default)({handleMember:function(e,t){parseInt(e.isExist)||(this.activeIndex.includes(t)?this.activeIndex=this.activeIndex.filter((function(e){return e!==t})):this.activeIndex.push(t))},goPay:function(){var e=this;if(this.activeIndex.length){this.$set(this,"pay_close",!0);var t=this.activeIndex.map((function(t){return(0,a.default)((0,a.default)({},e.memberData[t]),{},{gearId:e.memberData[t].id})}));this.payInfo={userPhone:f.default.state.app.userInfo.mobile,orderInfos:t}}else this.$util.Tips({title:"请选择档次套餐"})},onChangeFun:function(e){var t=e,r=t.action||null,n=void 0!=t.value?t.value:null;r&&this[r]&&this[r](n)},payClose:function(){this.pay_close=!1},pay_complete:function(){this.status=!1,this.page=1,this.$set(this,"bargain",[]),this.$set(this,"pay_close",!1),this.getBargainUserList()},pay_fail:function(){this.pay_close=!1}},"onChangeFun",(function(e){var t=e,r=t.action||null,n=void 0!=t.value?t.value:null;r&&this[r]&&this[r](n)}))};t.default=d},"1d5c":function(e,t,r){"use strict";r("7a82");var n=r("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("d772")),a=n(r("337a")),o={name:"u--form",mixins:[uni.$u.mpMixin,a.default,uni.$u.mixin],components:{uvForm:i.default},created:function(){this.children=[]},methods:{setRules:function(e){this.$refs.uForm.setRules(e)},validate:function(){return this.$refs.uForm.validate()},validateField:function(e,t){return this.$refs.uForm.validateField(e,t)},resetFields:function(){return this.$refs.uForm.resetFields()},clearValidate:function(e){return this.$refs.uForm.clearValidate(e)},setMpData:function(){this.$refs.uForm.children=this.children}}};t.default=o},"1d66":function(e,t,r){var n=r("24fb"),i=r("1de5"),a=r("f4de");t=n(!1);var o=i(a);t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\
|