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.0 KiB

5 months ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["agent/pages/apply"],{"1c12":function(e,t,n){"use strict";var r=n("4c42"),a=n.n(r);a.a},"4c42":function(e,t,n){},"8d48":function(e,t,n){"use strict";n.r(t);var r=n("c8a6"),a=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=a.a},a442:function(e,t,n){"use strict";(function(e,t){var r=n("47a9");n("7043");r(n("3240"));var a=r(n("c92e"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},adf0:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){return e.$util.goUrl({url:"/agent/pages/index?agent=1",openType:"reLaunch"})},e.e1=function(t,n){var r=arguments[arguments.length-1].currentTarget.dataset,a=r.eventParams||r["event-params"];n=a.item;t.stopPropagation(),e.form.city_type=n.id})},a=[]},c8a6:function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n("7eb4")),i=r(n("7ca3")),o=r(n("ee10")),u=n("8f59");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={components:{},data:function(){return{isLoad:!1,options:{},authTime:0,timer:null,cityList:[{id:3,title:"省"},{id:1,title:"城市"},{id:2,title:"区县"}],form:{user_name:"",city_type:3,phone:"",short_code:"",city:""},rule:[{name:"user_name",checkType:"isNotNull",errorMsg:"输入您的姓名",regType:2},{name:"phone",checkType:"isMobile",errorMsg:"输入手机号"},{name:"city",checkType:"isNotNull",errorMsg:"请输入您想代理的区域"}],lockTap:!1}},computed:(0,u.mapState)({primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor},configInfo:function(e){return e.config.configInfo},mineInfo:function(e){return e.user.mineInfo}}),onLoad:function(e){var t=this;return(0,o.default)(a.default.mark((function n(){return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.options=e,t.$util.showLoading(),n.next=4,t.initIndex();case 4:case"end":return n.stop()}}),n)})))()},methods:l(l(l({},(0,u.mapActions)(["getConfigInfo","getMineInfo"])),(0,u.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var t=arguments,n=this;return(0,o.default)(a.default.mark((function r(){var i,o,u;return a.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],n.configInfo.id&&n.configInfo.hasOwnProperty("plugAuth")&&(!n.configInfo.hasOwnProperty("plugAuth")||n.configInfo.plugAuth.hasOwnProperty("store"))&&!i){r.next=4;break}return r.next=4,n.getConfigInfo();case 4:return r.next=6,n.getMineInfo();case 6:o=n.mineInfo.is_admin,u=void 0===o?0:o,e.setNavigationBarTitle({title:u?"":"招商加盟"}),n.$util.setNavigationBarColor({bg:n.primaryColor}),n.$util.hideAll(),n.isLoad=!0;case 11:case"end":return r.stop()}}),r)})))()},initRefresh:function(){this.initIndex(!0)},toSend:function(){var e=this;return(0,o.default)(a.default.mark((function t(){var n,r,i,o;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.authTime,!n){t.next=3;break}return t.abrupt("return");case 3:if(r=e.form.phone,i=void 0===r?"":r,null!=i&&/^(1[0-9]{10})$/.test(i)){t.next=7;break}return e.$util.showToast({title:null==i?"请输入手机号":"".concat(i," 手机号无效")}),t.abrupt("return");case 7:if(!e.lockTap){t.next=9;break}return