(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["fenxiao-apply"],{"43a6":function(e,t,i){"use strict";i.r(t);var a=i("bd82"),l=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(n);t["default"]=l.a},"521a":function(e,t,i){var a=i("6c8f");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var l=i("967d").default;l("07d81aa2",a,!0,{sourceMap:!1,shadowMode:!1})},"6c8f":function(e,t,i){var a=i("c86c");t=a(!1),t.push([e.i,".form-box[data-v-f06b1c80]{background-color:#fff;padding:0 %?30?%}.submit-btn[data-v-f06b1c80]{width:100%;height:35px;border-radius:35px;display:flex;justify-content:center;align-items:center;color:#fff;font-size:%?28?%;background-color:var(--main-color)}",""]),e.exports=t},"7c14":function(e,t,i){"use strict";i.d(t,"b",(function(){return l})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return a}));var a={uForm:i("4f21").default,uFormItem:i("4240").default,uInput:i("69de").default,uParse:i("90c0").default},l=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{style:e.themeStyle},[i("u-form",{ref:"uForm",attrs:{model:e.form}},[i("v-uni-view",{staticClass:"form-box"},[i("u-form-item",{attrs:{labelStyle:e.labelStyle,"label-width":"100","label-position":"left",label:"姓名:",prop:"realname"}},[i("u-input",{attrs:{placeholder:"请填写姓名",type:"text"},model:{value:e.form.realname,callback:function(t){e.$set(e.form,"realname",t)},expression:"form.realname"}})],1),i("u-form-item",{attrs:{labelStyle:e.labelStyle,"label-width":"100","label-position":"left",label:"手机号:",prop:"mobile"}},[i("u-input",{attrs:{placeholder:"请填写手机号",type:"text"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1)],1),i("v-uni-view",{staticClass:"padding"},[i("v-uni-view",{staticClass:"submit-btn",style:{backgroundColor:e.base.btn_color},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submit.apply(void 0,arguments)}}},[e._v("提交申请")])],1)],1),e.level.description?i("v-uni-view",{staticClass:"padding-lr padding-tb-xl"},[i("u-parse",{attrs:{content:e.level.description}})],1):e._e()],1)},n=[]},bd82:function(e,t,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=a(i("9b1b")),n=i("8f59"),o={data:function(){return{form:{realname:"",mobile:"",level:-1},labelStyle:{"font-size":"28rpx","font-weight":"600",color:"#595959"},is_submit:!1,level:{}}},computed:(0,l.default)({},(0,n.mapGetters)(["base","user"])),onLoad:function(e){e.level&&(this.form.level=e.level),this.init()},methods:{init:function(){var e=this;this.user.nextLevel&&1==this.user.nextLevel.apply&&-1==this.form.level&&(uni.setNavigationBarTitle({title:"申请成为"+this.user.nextLevel.title}),this.level=this.user.nextLevel),-1!=this.form.level&&this.$util.get("fenxiao/index/getLevel",{id:this.form.level}).then((function(t){1==t.code?(e.level=t.data,uni.setNavigationBarTitle({title:"申请成为"+e.level.title})):e.toast(t.message,2e3,"back")})),this.user.realname&&(this.form.realname=this.user.realname),this.user.mobile&&(this.form.mobile=this.user.mobile),this.$forceUpdate()},submit:function(){var e=this;this.is_submit||(this.is_submit=!0,this.$util.post("fenxiao/apply/submit",this.form).then((function(t){e.is_submit=!1,1==t.code?e.toast(t.message,1500,(function(){uni.navigateBack({delta:1})})):e.toast(t.message,3e3)})).catch((function(t){e.is_submit=!1})))}}};t.default=o},c24a:function(e,t,i){"use strict";i.r(t);var a=i("7c14"),l=i("43a6");for(var n in l)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return l[e]}))}(n);i("edf8");var o=i("828b"),s=Object(o["a"])(l["default"],a["b"],a["c"],!1,null,"f06b1c80",null,!1,a["a"],void 0);t["default"]=s.exports},edf8:function(e,t,i){"use strict";var a=i("521a"),l=i.n(a);l.a}}]);