王总上门按摩后台代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shangmenanmo/public/h6/static/js/user-pages-distribution-app...

1 line
5.4 KiB

2 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-distribution-apply"],{"00c0":function(e,t,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("fd3c");var r=i(n("9b1b")),a=i(n("2634")),u=i(n("2fdc")),s=n("8f59"),o={components:{},data:function(){return{cityIndex:0,cityList:[],isLoad:!1,options:{},form:{id:0,user_name:"",mobile:"",text:""},rule:[{name:"user_name",checkType:"isNotNull",errorMsg:"请输入您的真实姓名",regType:2},{name:"mobile",checkType:"isMobile",errorMsg:"请输入常用手机号码"}],lockTap:!1}},computed:(0,s.mapState)({primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor},configInfo:function(e){return e.config.configInfo},userInfo:function(e){return e.user.userInfo},location:function(e){return e.user.location}}),onLoad:function(e){var t=this;return(0,u.default)((0,a.default)().mark((function n(){return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.$util.showLoading(),t.options=e,n.next=4,t.initIndex();case 4:t.isLoad=!0;case 5:case"end":return n.stop()}}),n)})))()},methods:(0,r.default)((0,r.default)((0,r.default)({},(0,s.mapActions)(["getConfigInfo","getUserInfo"])),(0,s.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var e=arguments,t=this;return(0,u.default)((0,a.default)().mark((function n(){var i,r,u;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e.length>0&&void 0!==e[0]&&e[0],i||!t.$jweixin.isWechat()){n.next=5;break}return n.next=4,t.$jweixin.initJssdk();case 4:t.$jweixin.wxReady((function(){t.$jweixin.hideOptionMenu()}));case 5:if(t.configInfo.id&&!i){n.next=8;break}return n.next=8,t.getConfigInfo();case 8:return n.next=10,t.$api.mine.resellerInfo();case 10:if(r=n.sent,t.$util.setNavigationBarColor({bg:t.primaryColor}),r.id){n.next=15;break}return t.$util.hideAll(),n.abrupt("return");case 15:for(u in t.form)t.form[u]=r[u];t.$util.hideAll();case 17:case"end":return n.stop()}}),n)})))()},initRefresh:function(){this.initIndex(!0)},validate:function(e){var t=new this.$util.Validate;this.rule.map((function(n){var i=n.name;t.add(e[i],n)}));var n=t.start();return n},submit:function(){var e=this;return(0,u.default)((0,a.default)().mark((function t(){var n,i;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.$util.deepCopy(e.form),i=e.validate(n),!i){t.next=5;break}return e.$util.showToast({title:i}),t.abrupt("return");case 5:if(!e.lockTap){t.next=7;break}return t.abrupt("return");case 7:return e.lockTap=!0,e.$util.showLoading(),n.text=n.text.length>300?n.text.substring(0,300):n.text,t.prev=10,t.next=13,e.$api.mine.applyReseller(n);case 13:e.$util.hideAll(),e.$util.showToast({title:"提交成功"}),setTimeout((function(){getCurrentPages().length>1&&e.$util.back(),e.$util.goUrl({url:"/user/pages/apply-result?type=2",openType:"redirectTo"})}),1e3),t.next=21;break;case 18:t.prev=18,t.t0=t["catch"](10),setTimeout((function(){e.lockTap=!1,e.$util.hideAll()}),2e3);case 21:case"end":return t.stop()}}),t,null,[[10,18]])})))()}})};t.default=o},aa6a:function(e,t,n){"use strict";n.r(t);var i=n("00c0"),r=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=r.a},d04e:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isLoad?n("v-uni-view",{staticClass:"apply-pages"},[n("v-uni-view",{staticClass:"apply-form"},[n("v-uni-view",{staticClass:"fill-base mt-md radius-16"},[n("v-uni-view",{staticClass:"flex-between pl-lg pr-lg b-1px-b"},[n("v-uni-view",{staticClass:"item-text"},[e._v("您的姓名")]),n("v-uni-input",{staticClass:"item-input flex-1",attrs:{type:"text",maxlength:"20",placeholder:e.rule[0].errorMsg},model:{value:e.form.user_name,callback:function(t){e.$set(e.form,"user_name",t)},expression:"form.user_name"}})],1),n("v-uni-view",{static