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.

1 line
6.4 KiB

8 months ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/pages/channel/apply"],{1191:function(t,e,n){"use strict";n.r(e);var r=n("96b0"),a=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=a.a},"96b0":function(t,e,n){"use strict";(function(t){var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n("7eb4")),i=r(n("34cf")),o=r(n("7ca3")),u=r(n("ee10")),c=n("8f59");function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f={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,c.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,u.default)(a.default.mark((function n(){return a.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:s(s(s({},(0,c.mapActions)(["getConfigInfo","getUserInfo"])),(0,c.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var e=arguments,n=this;return(0,u.default)(a.default.mark((function r(){var o,u,c,l,s,f;return a.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o=e.length>0&&void 0!==e[0]&&e[0],n.configInfo.id&&!o){r.next=4;break}return r.next=4,n.getConfigInfo();case 4:return r.next=6,Promise.all([n.$api.channel.channelCateSelect(),n.$api.channel.channelInfo()]);case 6:if(u=r.sent,c=(0,i.default)(u,2),l=c[0],s=c[1],n.$util.setNavigationBarColor({bg:n.primaryColor}),n.channelList=l,s.id){r.next=15;break}return n.$util.hideAll(),r.abrupt("return");case 15:for(f in n.form)n.form[f]=s[f];n.channel_status=s.status,4==s.status&&s.sh_text&&(n.tipArr[4][0].text=s.sh_text),t.setNavigationBarTitle({title:n.title[s.status]}),n.$util.hideAll();case 20:case"end":return r.stop()}}),r)})))()},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,u.default)(a.default.mark((function e(){