1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-member_renew-index"],{"0ad3":function(e,t,i){"use strict";var r=i("1ad0"),a=i.n(r);a.a},"1ad0":function(e,t,i){var r=i("fbca");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=i("4f06").default;a("cc62a22a",r,!0,{sourceMap:!1,shadowMode:!1})},"5e1c":function(e,t,i){"use strict";i("7a82");var r=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("e25e"),i("caad"),i("2532"),i("4de4"),i("d3b7"),i("14d9"),i("d81d");var a=r(i("ade3")),n=r(i("5530")),o=r(i("c7eb")),m=r(i("1da1")),s=i("43cd"),b=r(i("ae4b")),d=r(i("821a")),l={name:"member_renew",components:{paymentMember:b.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:{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,m.default)((0,o.default)().mark((function t(){var i;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:i=t.sent,e.memberData=i.data,e.form.userPhone=d.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,a.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;this.$refs.uForm.validate().then((function(t){if(e.activeIndex.length){e.$set(e,"pay_close",!0);var i=e.activeIndex.map((function(t){return(0,n.default)((0,n.default)({},e.memberData[t]),{},{gearId:e.memberData[t].id})}));e.payInfo={userPhone:d.default.state.app.userInfo.mobile,userName:e.form.userName,orderInfos:i}}else e.$util.Tips({title:"请选择档次套餐"})})).catch((function(e){}))},onChangeFun:function(e){var t=e,i=t.action||null,r=void 0!=t.value?t.value:null;i&&this[i]&&this[i](r)},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,i=t.action||null,r=void 0!=t.value?t.value:null;i&&this[i]&&this[i](r)}))};t.default=l},"81e0":function(e,t,i){"use strict";i.r(t);var r=i("cd18"),a=i("abd8");for(var n in a)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(n);i("0ad3");var o=i("f0c5"),m=Object(o["a"])(a["default"],r["b"],r["c"],!1,null,"583e466e",null,!1,r["a"],void 0);t["default"]=m.exports},abd8:function(e,t,i){"use strict";i.r(t);var r=i("5e1c"),a=i.n(r);for(var n in r)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(n);t["default"]=a.a},cd18:function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return r}));var r={"u-Form":i("1f60").default,uFormItem:i("c431").default,"u-Input":i("f193").default},a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"box"},[r("v-uni-view",{staticClass:"box-phone"},[r("u--form",{ref:"uForm",attrs:{model:e.form,rules:e.rules,labelWidth:"100",errorType:"toast"}},[r("u-form-item",{attrs:{label:"姓名",prop:"userName"}},[r("u--input",{attrs:{maxlength:"11",placeholder:"请输入您的姓名"},model:{value:e.form.userName,callback:function(t){e.$set(e.form,"userN
|