|
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/CooperationApply/CooperationApply"],{231:function(e,n,o){"use strict";(function(e){o(3);t(o(2));var n=t(o(232));function t(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=o,e(n.default)}).call(this,o(0)["createPage"])},232:function(e,n,o){"use strict";o.r(n);var t=o(61),r=o(31);for(var a in r)"default"!==a&&function(e){o.d(n,e,(function(){return r[e]}))}(a);o(233);var i,u=o(1),s=Object(u["a"])(r["default"],t["b"],t["c"],!1,null,"683ba9e6",null,!1,t["a"],i);s.options.__file="pages/CooperationApply/CooperationApply.vue",n["default"]=s.exports},233:function(e,n,o){"use strict";var t=o(33),r=o.n(t);r.a},31:function(e,n,o){"use strict";o.r(n);var t=o(32),r=o.n(t);for(var a in t)"default"!==a&&function(e){o.d(n,e,(function(){return t[e]}))}(a);n["default"]=r.a},32:function(e,n,o){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=a(o(5)),r=o(4);function a(e){return e&&e.__esModule?e:{default:e}}function i(e,n,o,t,r,a,i){try{var u=e[a](i),s=u.value}catch(c){return void o(c)}u.done?n(s):Promise.resolve(s).then(t,r)}function u(e){return function(){var n=this,o=arguments;return new Promise((function(t,r){var a=e.apply(n,o);function u(e){i(a,t,r,u,s,"next",e)}function s(e){i(a,t,r,u,s,"throw",e)}u(void 0)}))}}var s=function(){o.e("components/UploadSuccess/UploadSuccess").then(function(){return resolve(o(281))}.bind(null,o)).catch(o.oe)},c=getApp().globalData.Player,l=getApp().globalData.Define,p={note:"",partnerinfo:{},partnerstatus:0,toppic:{}},d={components:{UploadSuccess:s},onLoad:function(){e.showLoading({});getApp().globalData.agreementData;this.$utils.getAgreementData();var n=this;(0,r.post)("pages/getbecpartner",{}).then((function(o){var t,r,a;e.hideLoading();var i=l.onNetMessage(o);if(i){n.pageData=i;var u=i.partnerstatus,s=getApp().globalData.mainPageData;s.partnerstatus=u,console.log("合作申请页面信息:",i);var c=i.partnerinfo,p=n.person;p.name=null!==(t=c.name)&&void 0!==t?t:"",p.phone=null!==(r=c.phone)&&void 0!==r?r:"",p.referrer=null!==(a=c.recommender)&&void 0!==a?a:"";var d=c.province,f=c.city,m=c.area;d&&""!=d&&(n.defaultRegion=[d,f,m],p.address=d+" "+f+" "+m),i.partnerstatus>0&&(n.isAgree=!0,console.log("强制改变当前选中状态"))}}))},data:function(){var n=this;return{pageData:p,isAgree:!1,isShowUpload:!1,person:{name:"",phone:c.phone,address:"",referrer:""},rules:{"person.name":{type:"string",required:!0,message:"请输入您的姓名",validator:function(e){n.person.name=e.detail.value}},"person.phone":{type:"string",required:!0,message:"请输入您的联系电话",validator:function(o){var t=e.$u.test.mobile(o.detail.value);return t?n.person.phone=o.detail.value:(e.$u.toast("请输入正确的电话号码!"),n.person.phone=""),t}},"person.address":{type:"string",required:!1,message:"请选择您的地址"},"person.referrer":{type:"string",required:!1,message:"请输入推荐人电话号码",validator:function(o){var t=e.$u.test.mobile(o.detail.value);return t?n.person.referrer=o.detail.value:(e.$u.toast("请输入正确的电话号码!"),n.person.referrer=""),t}}},defaultRegion:["四川省","成都市","武侯区"],region:[]}},methods:{onTouchBack:function(){e.navigateBack({})},onClickToSelectCity:function(){e.hideKeyboard()},handleGetRegion:function(e){this.region=e,this.person.address=this.regionName(),this.$refs.form1.validateField("person.address")},regionName:function(){return this.region.map((function(e){return e.name})).join(" ")},onChechBoxChange:function(e){console.log(e),this.isAgree=!this.isAgree},onClickAreement:function(){var n=getApp().globalData.agreementData;getApp().globalData.showingSkipData=n,e.navigateTo({url:"/pages/SkipView/SkipView"})},showToast:function(n){e.$u.toast(n)},onTouchConfirm:function(){var n=this;return u(t.default.mark((function o(){var a,i,u,s,c,l,p,d,f,m,g;return t.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(n.isAgree){o.next=3;break}return n.showToast("请阅读并同意协议条款"),o.abr
|