1 line
50 KiB
JavaScript
1 line
50 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-member_renew-index"],{"024c":function(e,t,n){e.exports=n.p+"static/img/money_look.ecb00b68.png"},"0310":function(e,t,n){"use strict";n.r(t);var i=n("47540"),r=n("8580");for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);n("da77");var o=n("f0c5"),s=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,"351228a8",null,!1,i["a"],void 0);t["default"]=s.exports},"0f95":function(e,t,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("e25e"),n("caad"),n("2532"),n("4de4"),n("d3b7"),n("14d9"),n("d81d");var r=i(n("ade3")),a=i(n("5530")),o=i(n("c7eb")),s=i(n("1da1")),u=n("d7c4"),l=i(n("0310")),f=i(n("645c")),c={name:"member_renew",components:{paymentMember:l.default},data:function(){return{memberData:[],payInfo:{userPhone:"",confirmPhone:"",orderInfos:[]},payMode:[{name:"微信支付",icon:"icon-weixinzhifu",value:"WXPAY",title:"微信快捷支付"}],pay_close:!1,activeIndex:[],form:{userPhone:""},rules:{userName:[{required:!0,message:"姓名不能为空",trigger:["blur"]}],userPhone:[{required:!0,message:"手机号不能为空",trigger:["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:["blur"]}]}}},onLoad:function(){var e=this;return(0,s.default)((0,o.default)().mark((function t(){var n;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,u.memberGradeInfo)();case 4:n=t.sent,e.memberData=n.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,r.default)({handleRule:function(){uni.navigateTo({url:"/pages/member_rule/index"})},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;this.$refs.uForm.validate().then((function(t){if(e.activeIndex.length){e.$set(e,"pay_close",!0);var n=e.activeIndex.map((function(t){return(0,a.default)((0,a.default)({},e.memberData[t]),{},{gearId:e.memberData[t].id})}));e.payInfo={userPhone:f.default.state.app.userInfo.mobile,userName:e.form.userName,orderInfos:n}}else e.$util.Tips({title:"请选择档次套餐"})})).catch((function(e){}))},onChangeFun:function(e){var t=e,n=t.action||null,i=void 0!=t.value?t.value:null;n&&this[n]&&this[n](i)},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,n=t.action||null,i=void 0!=t.value?t.value:null;n&&this[n]&&this[n](i)}))};t.default=c},"1a12":function(e,t,n){var i=n("cccf");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4f06").default;r("c481cdfa",i,!0,{sourceMap:!1,shadowMode:!1})},"1d5c":function(e,t,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("d772")),a=i(n("337a")),o={name:"u--form",mixins:[uni.$u.mpMixin,a.default,uni.$u.mixin],components:{uvForm:r.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},"1ec7":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("a9e3");var i={props:{label:{type:Str
|