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 lines
11 KiB
1 lines
11 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["agent-pages-apply"],{"27d8":function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.apply-info-box[data-v-404510b4]{width:100%;height:%?1632?%}.apply-info-box .bg-1[data-v-404510b4]{width:%?750?%;height:%?1632?%;top:0;left:0;z-index:1}.apply-info-box .bg-2[data-v-404510b4]{width:%?750?%;height:%?575?%;top:0;left:0;z-index:3}.apply-info-box .join-us[data-v-404510b4]{width:%?671?%;height:%?890?%;top:%?482?%;left:%?44?%;z-index:2}.apply-info-box .join-us .item-input[data-v-404510b4]{height:%?74?%;border:%?4?% solid #069f5e}.apply-info-box .join-us .item-input .flex-between[data-v-404510b4]{height:%?74?%}.apply-info-box .join-us .item-input.text[data-v-404510b4]{height:%?82?%}.apply-info-box .submit[data-v-404510b4]{width:%?662?%;height:%?93?%;top:%?1400?%;left:%?47?%;z-index:2}',""]),t.exports=e},"348f":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"},[t.mineInfo.is_admin?n("v-uni-view",{staticClass:"page-height"},[n("abnor",{attrs:{percent:"150%",title:"您已经是代理商了",tip:[{text:"快去管理订单吧",color:0}],button:[{text:"去管理",type:"confirm"}],image:"https://lbqny.migugu.com/admin/public/apply_suc.jpg"},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:"/agent/pages/index?agent=1",openType:"reLaunch"})}}})],1):[n("v-uni-view",{staticClass:"apply-info-box rel",style:{background:t.primaryColor}},[n("v-uni-image",{staticClass:"bg-1 abs",attrs:{src:"https://lbqny.migugu.com/admin/anmo/apply/bg-4.png"}}),n("v-uni-image",{staticClass:"bg-2 abs",attrs:{src:"https://lbqny.migugu.com/admin/anmo/apply/bg-3.png"}}),n("v-uni-image",{staticClass:"join-us abs",attrs:{src:"https://lbqny.migugu.com/admin/anmo/apply/join-us-1.png"}}),n("v-uni-view",{staticClass:"join-us pd-lg abs",staticStyle:{"z-index":"3"}},[n("v-uni-view",{staticStyle:{height:"90rpx"}}),n("v-uni-view",{staticClass:"f-title c-title text-bold"},[t._v("您的姓名")]),n("v-uni-input",{staticClass:"item-input fill-base f-mini-title c-title mt-sm pl-lg pr-lg radius-10",style:{borderColor:t.primaryColor},attrs:{type:"text",maxlength:"20","placeholder-class":"c-caption",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"}}),n("v-uni-view",{staticClass:"mt-md f-title c-title text-bold"},[t._v("代理类型")]),n("v-uni-view",{staticClass:"flex-y-center mt-sm"},t._l(t.cityList,(function(e,i){return n("v-uni-view",{key:i,staticClass:"flex-y-center f-mini-title c-title",class:[{"mr-lg pr-lg":2!=i}],style:{color:t.form.city_type==e.id?t.primaryColor:""},on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.form.city_type=e.id}}},[n("i",{staticClass:"iconfont mr-sm",class:[{"icon-xuanze":t.form.city_type!=e.id},{"icon-radio-fill":t.form.city_type==e.id}]}),t._v(t._s(e.title)+"代理")])})),1),n("v-uni-view",{staticClass:"mt-md f-title c-title text-bold"},[t._v("手机号")]),n("v-uni-view",{staticClass:"item-input fill-base f-mini-title c-title mt-sm pl-lg pr-lg radius-10",staticStyle:{height:"auto","min-height":"82rpx"},style:{borderColor:t.primaryColor}},[n("v-uni-input",{staticStyle:{"margin-top":"15rpx"},attrs:{type:"text",maxlength:"20","placeholder-class":"c-caption",placeholder:t.rule[1].errorMsg},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}}),t.configInfo.short_code_status?n("v-uni-view",{staticClass:"flex-between"},[n("v-uni-input",{style:{borderColor:t.primaryColor},attrs:{type:"text",maxlength:"6","placeholder-class":"c-caption",placeholder:"请输入验证码"},model:{value:t.form.short_code,callback:function(e){t.$set(t.form,"short_code",e)},expression:"form.short_code"}}),n("v-uni-view",{style:{color:t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toSend.apply(void 0,arguments)}}},[t._v(t._s(t.authTime>0?"重新获取("+t.authTime+"s)":"获取验证码"))])],1):t._e()],1),n("v-uni-view",{staticClass:"mt-md f-title c-title text-bold"},[t._v("申请加入的区域")]),n("v-uni-input",{staticClass:"item-input fill-base f-mini-title c-title mt-sm pl-lg pr-lg radius-10",style:{borderColor:t.primaryColor},attrs:{type:"text",maxlength:"50","placeholder-class":"c-caption",placeholder:t.rule[2].errorMsg},model:{value:t.form.city,callback:function(e){t.$set(t.form,"city",e)},expression:"form.city"}})],1),n("v-uni-image",{staticClass:"submit abs",attrs:{src:"https://lbqny.migugu.com/admin/anmo/apply/submit-1.png"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}})],1)]],2):t._e()},a=[]},"37d7":function(t,e,n){var i=n("27d8");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("496b66ac",i,!0,{sourceMap:!1,shadowMode:!1})},"3bb5":function(t,e,n){"use strict";var i=n("37d7"),a=n.n(i);a.a},"8d48":function(t,e,n){"use strict";n.r(e);var i=n("cf70"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},c92e:function(t,e,n){"use strict";n.r(e);var i=n("348f"),a=n("8d48");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("3bb5");var r=n("828b"),l=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"404510b4",null,!1,i["a"],void 0);e["default"]=l.exports},cf70:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("5c47"),n("0506"),n("fd3c");var a=i(n("9b1b")),o=i(n("2634")),r=i(n("2fdc")),l=n("8f59"),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,l.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},mineInfo:function(t){return t.user.mineInfo}}),onLoad:function(t){var e=this;return(0,r.default)((0,o.default)().mark((function n(){return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.options=t,e.$util.showLoading(),n.next=4,e.initIndex();case 4:case"end":return n.stop()}}),n)})))()},methods:(0,a.default)((0,a.default)((0,a.default)({},(0,l.mapActions)(["getConfigInfo","getMineInfo"])),(0,l.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,r.default)((0,o.default)().mark((function n(){var i,a,r;return(0,o.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&&e.configInfo.hasOwnProperty("plugAuth")&&(!e.configInfo.hasOwnProperty("plugAuth")||e.configInfo.plugAuth.hasOwnProperty("store"))&&!i){n.next=8;break}return n.next=8,e.getConfigInfo();case 8:return n.next=10,e.getMineInfo();case 10:a=e.mineInfo.is_admin,r=void 0===a?0:a,uni.setNavigationBarTitle({title:r?"":"招商加盟"}),e.$util.setNavigationBarColor({bg:e.primaryColor}),e.$util.hideAll(),e.isLoad=!0;case 15:case"end":return n.stop()}}),n)})))()},initRefresh:function(){this.initIndex(!0)},toSend:function(){var t=this;return(0,r.default)((0,o.default)().mark((function e(){var n,i,a,r;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.authTime,!n){e.next=3;break}return e.abrupt("return");case 3:if(i=t.form.phone,a=void 0===i?"":i,null!=a&&/^(1[0-9]{10})$/.test(a)){e.next=7;break}return t.$util.showToast({title:null==a?"请输入手机号":"".concat(a," 手机号无效")}),e.abrupt("return");case 7:if(!t.lockTap){e.next=9;break}return e.abrupt("return");case 9:return t.lockTap=!0,t.$util.showLoading(),e.prev=11,e.next=14,t.$api.user.sendShortMsg({phone:a});case 14:t.$util.hideAll(),t.lockTap=!1,r=60,t.timer=setInterval((function(){0!==r?(r--,t.authTime=r):clearInterval(t.timer)}),1e3),e.next=23;break;case 20:e.prev=20,e.t0=e["catch"](11),setTimeout((function(){t.lockTap=!1,t.$util.hideAll()}),2e3);case 23:case"end":return e.stop()}}),e,null,[[11,20]])})))()},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,r.default)((0,o.default)().mark((function e(){var n,i,a;return(0,o.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.configInfo.short_code_status,!a||null!=n.short_code&&6==n.short_code.length){e.next=9;break}return t.$util.showToast({title:"请输入6位数短信验证码"}),e.abrupt("return");case 9:if(a||delete n.short_code,!t.lockTap){e.next=12;break}return e.abrupt("return");case 12:return t.lockTap=!0,t.$util.showLoading(),e.prev=14,e.next=17,t.$api.agent.agentApply(n);case 17:t.$util.hideAll(),t.$util.showToast({title:"提交成功,即将跳转个人中心"}),t.timer&&clearInterval(t.timer),setTimeout((function(){getCurrentPages().length>1&&t.$util.back(),t.$util.goUrl({url:"/pages/mine",openType:"reLaunch"})}),2e3),e.next=26;break;case 23:e.prev=23,e.t0=e["catch"](14),setTimeout((function(){t.lockTap=!1,t.$util.hideAll()}),2e3);case 26:case"end":return e.stop()}}),e,null,[[14,23]])})))()}})};e.default=s}}]); |