require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/agent/state"],{"0941":function(t,e,i){"use strict";var n=i("6676"),a=i.n(n);a.a},"4c8e":function(t,e,i){"use strict";i.r(e);var n=i("91db"),a=i("6215");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("0941");var u=i("828b"),s=Object(u["a"])(a["default"],n["b"],n["c"],!1,null,"397b8fc4",null,!1,n["a"],void 0);e["default"]=s.exports},5667:function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i("4d38"),r=n(i("89cc")),u=i("92f9"),s={mixins:[r.default],data:function(){return{imgHost:a.HTTP_REQUEST_URL,id:0,type:2,url:"",account:"",pwd:"",status_time:"",add_time:"",refusal_reason:"",ftype:"",loading:!0}},filters:{typeFilter:function(t){return{0:"正在审核",1:"审核通过",2:"审核失败"}[t]},descFilter:function(t){return{0:"正在审核当中，请耐心等待",1:"恭喜您，审核通过",2:"请按提示修改您所填写的信息"}[t]}},onLoad:function(t){this.id=t.id,this.ftype=t.type||0,this.supplierApply()},methods:{copyWb:function(){t.setClipboardData({data:"网址:"+this.url+"\n账号:"+this.account+"\n密码:"+this.pwd})},supplierApply:function(){var t,e=this;this.loading=!0,t="promoter"===this.ftype?(0,u.userPromoterInfo)():(0,u.userAgentInfo)(),t.then((function(t){var i="promoter"===e.ftype?t.data.user:t.data;e.type=i.status,e.add_time=i.add_time,e.status_time=i.status_time,e.refusal_reason=i.refusal_reason,e.loading=!1})).catch((function(t){return e.$util.Tips({title:t})}))},pageBack:function(){t.switchTab({url:"/pages/user/index"})},edit:function(){0==this.type||1==this.type?t.switchTab({url:"/pages/user/index"}):"promoter"===this.ftype?t.reLaunch({url:"/pages/users/distributor/apply?id="+this.id}):t.reLaunch({url:"/pages/users/agent/apply?id="+this.id})}}};e.default=s}).call(this,i("df3c")["default"])},6215:function(t,e,i){"use strict";i.r(e);var n=i("5667"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},6676:function(t,e,i){},"6f48":function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("f076");n(i("3240"));var a=n(i("4c8e"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(a.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"91db":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=(this._self._c,this.loading?null:this._f("typeFilter")(this.type)),i=this.loading?null:this._f("descFilter")(this.type);this.$mp.data=Object.assign({},{$root:{f0:e,f1:i}})},a=[]}},[["6f48","common/runtime","common/vendor"]]]);