王总上门按摩后台代码
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-channel-apply.18...

1 lines
8.3 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-channel-apply"],{1191:function(t,e,n){"use strict";n.r(e);var i=n("6949"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"20c4":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isLoad?n("v-uni-view",{staticClass:"apply-pages"},[-1!=t.channel_status?n("v-uni-view",{staticClass:"page-height"},[n("abnor",{attrs:{percent:"150%",title:t.title[t.channel_status],tip:t.tipArr[t.channel_status],button:t.buttonArr[t.channel_status],image:t.image[t.channel_status],tipMax:4==t.channel_status?"690rpx":""},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)},cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)}}})],1):[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"},[t._v("您的姓名")]),n("v-uni-input",{staticClass:"item-input flex-1",attrs:{type:"text",maxlength:"20",placeholder:t.rule[0].errorMsg},model:{value:t.form.user_name,callback:function(e){t.$set(t.form,"user_name",e)},expression:"form.user_name"}})],1),n("v-uni-view",{staticClass:"flex-between pl-lg pr-lg b-1px-b"},[n("v-uni-view",{staticClass:"item-text"},[t._v("手机号码")]),n("v-uni-input",{staticClass:"item-input flex-1",attrs:{type:"text",placeholder:t.rule[1].errorMsg},model:{value:t.form.mobile,callback:function(e){t.$set(t.form,"mobile",e)},expression:"form.mobile"}})],1),n("v-uni-view",{staticClass:"flex-between pl-lg pr-lg b-1px-b"},[n("v-uni-view",{staticClass:"item-text"},[t._v("申请渠道")]),n("v-uni-view",{staticClass:"item-input flex-1 text"},[n("v-uni-picker",{attrs:{value:t.channelInd,range:t.channelList,"range-key":"title"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.pickerChange(e)}}},[n("v-uni-view",{staticClass:"flex-between",staticStyle:{color:"#A9A9A9"}},[t._v(t._s(-1!=t.channelInd&&t.channelList.length>0?t.channelList[t.channelInd].title:"请选择您能接入的渠道")),n("i",{staticClass:"iconfont icon-right ml-sm",staticStyle:{"font-size":"28rpx"}})])],1)],1)],1)],1),n("v-uni-view",{staticClass:"fill-base mt-md radius-16"},[n("v-uni-view",{staticClass:"flex-between pl-lg pr-lg"},[n("v-uni-view",{staticClass:"item-text"},[t._v("备注信息")]),n("v-uni-input",{staticClass:"item-input flex-1",attrs:{disabled:!0,type:"text"}})],1),n("v-uni-textarea",{staticClass:"item-textarea pd-lg",attrs:{maxlength:"300",placeholder:"输入备注信息"},model:{value:t.form.text,callback:function(e){t.$set(t.form,"text",e)},expression:"form.text"}}),n("v-uni-view",{staticClass:"text-right pb-lg pr-lg"},[t._v(t._s(t.form.text.length>300?300:t.form.text.length)+"/300")])],1)],1),n("v-uni-view",{staticClass:"space-max-footer"}),n("fix-bottom-button",{attrs:{text:[{text:"确定申请",type:"confirm",isAuth:!0}],bgColor:"#fff"},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}})]],2):t._e()},a=[]},6949:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("bf0f"),n("18f7"),n("de6c"),n("fd3c");var a=i(n("5de6")),r=i(n("9b1b")),l=i(n("2634")),s=i(n("2fdc")),u=n("8f59"),o={components:{},data:function(){return{tipArr:{1:[{text:"您已经成功提交申请",color:0},{text:"审核将在3个工作日内出结果,请耐心等待",color:0}],2:[{text:"恭喜您,审核通过!",color:0},{text:"您已具备渠道商资格,快去分享体验吧~",color:0}],3:[{text:"请联系平台管理人员询问原因",color:0}],4:[{text:"请联系平台管理人员询问失败原因",color:0}]},buttonArr:{1:[{text:"个人中心",type:"cancel"}],2:[{text:"去分享",type:"confirm"}],3:[{text:"个人中心",type:"cancel"}],4:[{text:"个人中心",type:"cancel"}]},title:{"-1":"申请渠道商",1:"等待审核",2:"",3:"取消授权",4:"申请失败"},image:{1:"https://lbqny.migugu.com/admin/public/apply_wait.jpg",2:"https://lbqny.migugu.com/admin/public/apply_suc.jpg",3:"https://lbqny.migugu.com/admin/public/apply_fail.jpg",4:"https://lbqny.migugu.com/admin/public/apply_fail.jpg"},channel_status:-1,channelInd:-1,channelList:[],isLoad:!1,options:{},form:{id:0,user_name:"",mobile:"",cate_id:"",text:""},rule:[{name:"user_name",checkType:"isNotNull",errorMsg:"请输入您的真实姓名",regType:2},{name:"mobile",checkType:"isMobile",errorMsg:"请输入常用手机号码"},{name:"cate_id",checkType:"isNotNull",errorMsg:"请选择您能接入的渠道"}],lockTap:!1}},computed:(0,u.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo},location:function(t){return t.user.location}}),onLoad:function(t){var e=this;return(0,s.default)((0,l.default)().mark((function n(){return(0,l.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.$util.showLoading(),e.options=t,n.next=4,e.initIndex();case 4:e.isLoad=!0;case 5:case"end":return n.stop()}}),n)})))()},methods:(0,r.default)((0,r.default)((0,r.default)({},(0,u.mapActions)(["getConfigInfo","getUserInfo"])),(0,u.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,s.default)((0,l.default)().mark((function n(){var i,r,s,u,o,c;return(0,l.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],i||!e.$jweixin.isWechat()){n.next=5;break}return n.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:if(e.configInfo.id&&!i){n.next=8;break}return n.next=8,e.getConfigInfo();case 8:return n.next=10,Promise.all([e.$api.channel.channelCateSelect(),e.$api.channel.channelInfo()]);case 10:if(r=n.sent,s=(0,a.default)(r,2),u=s[0],o=s[1],e.$util.setNavigationBarColor({bg:e.primaryColor}),e.channelList=u,o.id){n.next=19;break}return e.$util.hideAll(),n.abrupt("return");case 19:for(c in e.form)e.form[c]=o[c];e.channel_status=o.status,4==o.status&&o.sh_text&&(e.tipArr[4][0].text=o.sh_text),uni.setNavigationBarTitle({title:e.title[o.status]}),e.$util.hideAll();case 24:case"end":return n.stop()}}),n)})))()},initRefresh:function(){this.initIndex(!0)},pickerChange:function(t,e){this.channelInd=t.target.value,this.form.cate_id=this.channelList[this.channelInd].id},confirm:function(){var t=this;return(0,s.default)((0,l.default)().mark((function e(){var n,i;return(0,l.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=t.channel_status,i=2==n?"/user/pages/channel/income":"/pages/mine",t.$util.log(i),t.$util.goUrl({url:i,openType:"reLaunch"});case 4:case"end":return e.stop()}}),e)})))()},validate:function(t){var e=new this.$util.Validate;this.rule.map((function(n){var i=n.name;e.add(t[i],n)}));var n=e.start();return n},submit:function(){var t=this;return(0,s.default)((0,l.default)().mark((function e(){var n,i,a,r,s,u,o;return(0,l.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.$util.deepCopy(t.form),i=t.validate(n),!i){e.next=5;break}return t.$util.showToast({title:i}),e.abrupt("return");case 5:if(a=t.options,r=a.admin_id,s=void 0===r?0:r,u=a.salesman_id,o=void 0===u?0:u,n.admin_id=s,n.salesman_id=o,!t.lockTap){e.next=10;break}return e.abrupt("return");case 10:return t.lockTap=!0,n.text=n.text.length>300?n.text.substring(0,300):n.text,t.$util.showLoading(),e.prev=13,e.next=16,t.$api.channel.applyChannel(n);case 16:t.$util.hideAll(),t.$util.showToast({title:"提交成功"}),setTimeout((function(){t.$util.back(),t.$util.goUrl({url:"/user/pages/apply-result?type=3",openType:"redirectTo"})}),1e3),e.next=24;break;case 21:e.prev=21,e.t0=e["catch"](13),setTimeout((function(){t.lockTap=!1,t.$util.hideAll()}),2e3);case 24:case"end":return e.stop()}}),e,null,[[13,21]])})))()}})};e.default=o},fd7b:function(t,e,n){"use strict";n.r(e);var i=n("20c4"),a=n("1191");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);var l=n("828b"),s=Object(l["a"])(a["default"],i["b"],i["c"],!1,null,"04bf1130",null,!1,i["a"],void 0);e["default"]=s.exports}}]);