(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["spread-page-spread-apply"],{"23fd":function(t,a,e){"use strict";e.r(a);var n=e("7ecf"),i=e("6ce15");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(o);e("b26e");var r=e("828b"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"6d19a362",null,!1,n["a"],void 0);a["default"]=s.exports},"2d2d":function(t,a,e){"use strict";e.r(a);var n=e("b2ef"),i=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(o);a["default"]=i.a},"38d9":function(t,a,e){"use strict";e("6a54"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=e("3e51"),i={data:function(){return{formData:{name:"",mobile:"",remark:""},canApply:!1,tips:""}},onLoad:function(t){},onShow:function(){this.myApply()},methods:{apply:function(){this.canApply&&(uni.showLoading({title:"提交中..."}),(0,n.applyApi)(this.formData).then((function(t){console.log(t),uni.hideLoading(),uni.showModal({title:"提示",content:"申请提交成功,请耐心等待审核",showCancel:!1,success:function(){uni.navigateBack()}})})).catch((function(t){console.log(t),uni.hideLoading(),uni.showModal({title:"提示",content:t.msg||"提交失败",showCancel:!1})})))},myApply:function(){var t=this;uni.showLoading({title:"加载中..."}),(0,n.myApplyApi)().then((function(a){console.log(a),null===a.data?t.canApply=!0:0==a.data.status?t.tips="您的申请已提交,请耐心等待后台审核":1==a.data.status?t.tips="您的申请已通过":2==a.data.status&&(t.canApply=!0,t.tips="您的申请已驳回,请重新申请",t.formData.name=a.data.name,t.formData.mobile=a.data.mobile,t.formData.remark=a.data.remark),uni.hideLoading()})).catch((function(t){console.log(t),uni.hideLoading(),uni.showModal({title:"提示",content:t.msg||"加载失败",showCancel:!1})}))}}};a.default=i},"3e51":function(t,a,e){"use strict";e("6a54");var n=e("f5bd").default;Object.defineProperty(a,"__esModule",{value:!0}),a.singleAgentData=a.setAccount=a.myApplyApi=a.multipleAgentData=a.getWithdrawalRecord=a.getSpreadWithdrawal=a.getSpreadPoster=a.getSpreadMyTeam=a.getSpreadIndex=a.getScanTipsInfo=a.getPosterGoodsApi=a.getCurrentLogList=a.getAccount=a.bindingPromotionRelationship=a.applyWithdrawal=a.applyApi=a.allGroupsApi=a.agentList=void 0;var i=n(e("7653"));a.getSpreadIndex=function(){return i.default.get("api/user.spread.index/index")};a.getSpreadWithdrawal=function(){return i.default.get("api/user.spread.get_cash/index")};a.getCurrentLogList=function(t){return i.default.get("api/user.spread.current_log/list",t)};a.getSpreadPoster=function(){return i.default.post("api/user.spread.poster/index")};a.getWithdrawalRecord=function(t){return i.default.get("api/user.spread.get_cash/list",t)};a.getSpreadMyTeam=function(t){return i.default.get("api/user.spread.index/down",t)};a.applyWithdrawal=function(t){return i.default.post("api/user.spread.get_cash/apply",t)};a.getScanTipsInfo=function(t){return i.default.get("api/user.spread.index/scanTipsInfo",t)};a.bindingPromotionRelationship=function(t){return i.default.get("api/user.spread.index/member_spread_bind",t)};a.getAccount=function(){return i.default.post("api/user.spread.get_cash/getAccount")};a.setAccount=function(t){return i.default.post("api/user.spread.get_cash/setAccount",t)};a.getPosterGoodsApi=function(t){return i.default.get("api/user.spread.service_provider/index",t)};a.allGroupsApi=function(){return i.default.get("api/user.spread.index/allGroups")};a.agentList=function(){return i.default.get("api/user.partner.index/agentList")};a.singleAgentData=function(t){return i.default.post("api/user.partner.index/singleAgentData",t)};a.multipleAgentData=function(t){return i.default.post("api/user.partner.index/multipleAgentData",t)};a.myApplyApi=function(t){return i.default.get("api/user.spread.apply/myApply",t)};a.applyApi=function(t){return i.default.post("api/user.spread.apply/apply",t)}},"6ce15":function(t,a,e){"use strict";e.r(a);var n=e("38d9"),i=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(o);a["default"]=i.a},"74ff":function(t,a,e){e("64aa"),t.exports={data:function(){},props:{backgroundColor:{type:String,default:""},fontColor:{type:String,default:""},fontSize:{type:Number,default:0},fontUnit:{type:String,default:"rpx"}},computed:{backgroundColorStyle:function(){return this.$tn.color.getBackgroundColorStyle(this.backgroundColor)},backgroundColorClass:function(){return this.$tn.color.getBackgroundColorInternalClass(this.backgroundColor)},fontColorStyle:function(){return this.$tn.color.getFontColorStyle(this.fontColor)},fontColorClass:function(){return this.$tn.color.getFontColorInternalClass(this.fontColor)},fontSizeStyle:function(){return this.$tn.string.getLengthUnitValue(this.fontSize,this.fontUnit)}},methods:{}}},"7ecf":function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return o})),e.d(a,"a",(function(){return n}));var n={tnNavBar:e("a305").default},i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"container"},[e("tn-nav-bar",{attrs:{fixed:!0}},[t._v("申请成为推广员")]),e("v-uni-view",{staticClass:"body"},[e("v-uni-view",{staticClass:"form-data"},[e("v-uni-view",{staticClass:"form-item"},[e("v-uni-view",{staticClass:"form-item-label"},[t._v("姓名")]),e("v-uni-view",{staticClass:"form-item-input"},[e("v-uni-input",{attrs:{type:"text",placeholder:"请输入姓名"},model:{value:t.formData.name,callback:function(a){t.$set(t.formData,"name",a)},expression:"formData.name"}})],1)],1),e("v-uni-view",{staticClass:"form-item"},[e("v-uni-view",{staticClass:"form-item-label"},[t._v("手机号")]),e("v-uni-view",{staticClass:"form-item-input"},[e("v-uni-input",{attrs:{type:"text",placeholder:"请输入手机号"},model:{value:t.formData.mobile,callback:function(a){t.$set(t.formData,"mobile",a)},expression:"formData.mobile"}})],1)],1),e("v-uni-view",{staticClass:"form-item"},[e("v-uni-view",{staticClass:"form-item-label"},[t._v("备注")]),e("v-uni-view",{staticClass:"form-item-input"},[e("v-uni-textarea",{attrs:{placeholder:"请输入备注"},model:{value:t.formData.remark,callback:function(a){t.$set(t.formData,"remark",a)},expression:"formData.remark"}})],1)],1)],1),e("v-uni-view",{staticClass:"form-button"},[e("v-uni-view",{staticClass:"form-button-item",class:{disabled:!t.canApply},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.apply.apply(void 0,arguments)}}},[t._v("提交")]),t.tips?e("v-uni-view",{staticClass:"tips"},[t._v(t._s(t.tips))]):t._e()],1)],1)],1)},o=[]},"84b2":function(t,a,e){"use strict";var n=e("c94c"),i=e.n(n);i.a},"862f":function(t,a,e){"use strict";e.d(a,"b",(function(){return n})),e.d(a,"c",(function(){return i})),e.d(a,"a",(function(){}));var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"tn-custom-nav-bar-class tn-custom-nav-bar",style:[t.navBarStyle]},[e("v-uni-view",{staticClass:"tn-custom-nav-bar__bar",class:[t.barClass],style:[t.barStyle]},[t.isBack?e("v-uni-view",[t.customBack?e("v-uni-view",[e("v-uni-view",{style:{width:t.customBackStyleInfo.width+"px",height:t.customBackStyleInfo.height+"px",marginLeft:t.customBackStyleInfo.left+"px"}},[t._t("back")],2)],1):e("v-uni-view",{staticClass:"tn-custom-nav-bar__bar__action",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.handlerBack.apply(void 0,arguments)}}},[e("v-uni-text",{staticClass:"tn-custom-nav-bar__bar__action--nav-back",class:["tn-icon-"+t.backIcon]}),t.backTitle?e("v-uni-text",{staticClass:"tn-custom-nav-bar__bar__action--nav-back-text"},[t._v(t._s(t.backTitle))]):t._e()],1)],1):t._e(),e("v-uni-view",{staticClass:"tn-custom-nav-bar__bar__content",style:[t.contentStyle]},[t._t("default")],2),e("v-uni-view",[t._t("right")],2)],1)],1)},i=[]},8721:function(t,a,e){var n=e("c86c");a=n(!1),a.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-custom-nav-bar[data-v-312b16c3]{display:block;position:relative}.tn-custom-nav-bar__bar[data-v-312b16c3]{display:flex;position:relative;align-items:center;min-height:%?100?%;justify-content:space-between;min-height:0;box-shadow:%?0?% %?0?% %?0?%;z-index:9999}.tn-custom-nav-bar__bar--fixed[data-v-312b16c3]{position:fixed;width:100%;top:0}.tn-custom-nav-bar__bar--alpha[data-v-312b16c3]{background:transparent!important;box-shadow:none!important}.tn-custom-nav-bar__bar--bottom-shadow[data-v-312b16c3]{box-shadow:%?0?% %?0?% %?80?% %?0?% rgba(0,0,0,.05)}.tn-custom-nav-bar__bar__action[data-v-312b16c3]{display:flex;align-items:center;height:100%;justify-content:center;max-width:100%}.tn-custom-nav-bar__bar__action--nav-back[data-v-312b16c3]{\n /* position: absolute; */\n /* top: 50%; */\n /* left: 20rpx; */\n /* margin-top: -15rpx; */margin-left:%?20?%;font-size:%?38?%;line-height:100%}.tn-custom-nav-bar__bar__action--nav-back-text[data-v-312b16c3]{margin-left:%?10?%}.tn-custom-nav-bar__bar__content[data-v-312b16c3]{position:absolute;text-align:center;left:0;right:0;bottom:0;margin:auto;font-size:%?32?%;cursor:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}',""]),t.exports=a},"8cda":function(t,a,e){var n=e("c86c");a=n(!1),a.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.container[data-v-6d19a362]{background-color:#f5f5f5;height:100vh}.body[data-v-6d19a362]{padding:%?20?%;margin-top:%?155?%}.body .form-data[data-v-6d19a362]{padding:%?20?%}.body .form-data .form-item[data-v-6d19a362]{display:flex;flex-direction:column;border-radius:%?10?%;margin-bottom:%?20?%}.body .form-data .form-item .form-item-label[data-v-6d19a362]{font-size:%?28?%;color:#333;padding:%?10?%}.body .form-data .form-item .form-item-input[data-v-6d19a362]{font-size:%?28?%;color:#333;border-radius:%?10?%;border:%?1?% solid #ccc;padding:%?20?%}.body .form-button[data-v-6d19a362]{padding:%?20?%;width:100%}.body .form-button .form-button-item[data-v-6d19a362]{font-size:%?28?%;color:#fff;background-color:#ffca28;border-radius:%?10?%;padding:%?20?%;text-align:center}.body .form-button .disabled[data-v-6d19a362]{background-color:#ccc}.body .form-button .tips[data-v-6d19a362]{font-size:%?28?%;color:red;padding:%?20?%;width:100%;text-align:center}',""]),t.exports=a},a305:function(t,a,e){"use strict";e.r(a);var n=e("862f"),i=e("2d2d");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(o);e("84b2");var r=e("828b"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"312b16c3",null,!1,n["a"],void 0);a["default"]=s.exports},b26e:function(t,a,e){"use strict";var n=e("c998"),i=e.n(n);i.a},b2ef:function(t,a,e){"use strict";e("6a54");var n=e("f5bd").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=n(e("2634")),o=n(e("2fdc"));e("64aa");var r=n(e("74ff")),s={name:"tn-nav-bar",mixins:[r.default],props:{zIndex:{type:Number,default:0},height:{type:Number,default:0},unit:{type:String,default:"px"},isBack:{type:Boolean,default:!0},backIcon:{type:String,default:"left"},backTitle:{type:String,default:"返回"},alpha:{type:Boolean,default:!1},fixed:{type:Boolean,default:!0},bottomShadow:{type:Boolean,default:!0},customBack:{type:Boolean,default:!1},beforeBack:{type:Function,default:null}},computed:{navBarStyle:function(){var t={};return t.height=0===this.height?this.customBarHeight+this.unit:this.height+this.unit,this.fixed&&(t.position="fixed"),t.zIndex=this.elZIndex,t},barClass:function(){var t="";return this.backgroundColorClass&&(t+=" ".concat(this.backgroundColorClass)),this.fontColorClass&&(t+="".concat(this.fontColorClass)),this.fixed&&(t+=" tn-custom-nav-bar__bar--fixed"),this.alpha&&(t+=" tn-custom-nav-bar__bar--alpha"),this.bottomShadow&&(t+=" tn-custom-nav-bar__bar--bottom-shadow"),t},barStyle:function(){var t={};return t.height=0===this.height?this.customBarHeight+this.unit:this.height+this.unit,this.fixed&&(t.paddingTop=this.statusBarHeight+"px"),this.backgroundColorClass||(t.backgroundColor=""!==this.backgroundColor?this.backgroundColor:"#FFFFFF"),!this.fontColorClass&&this.fontColor&&(t.color=this.fontColor),t.zIndex=this.elZIndex,t},contentStyle:function(){var t={};if(t.top=this.fixed?this.statusBarHeight+"px":"0px",t.height=0===this.height?this.customBarHeight-this.statusBarHeight+this.unit:this.height+this.unit,t.lineHeight=t.height,this.isBack)if(this.customBack){var a=2*(this.customBackStyleInfo.width+this.customBackStyleInfo.left);t.width="calc(100% - ".concat(a,"px)")}else t.width="calc(100% - 340rpx)";else t.width="100%";return t},elZIndex:function(){return this.zIndex?this.zIndex:this.$tn.zIndex.navbar}},data:function(){return{statusBarHeight:0,customBarHeight:0,customBackStyleInfo:{width:86,height:32,left:15}}},mounted:function(){this.updateNavBarInfo()},created:function(){},methods:{updateNavBarInfo:function(){var t=this;return(0,o.default)((0,i.default)().mark((function a(){var e,n,o;return(0,i.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(e=t.vuex_custom_bar_height,n=t.vuex_status_bar_height,e){a.next=15;break}return a.prev=3,a.next=6,t.$tn.updateCustomBar();case 6:o=a.sent,e=o.customBarHeight,n=o.statusBarHeight,a.next=15;break;case 11:return a.prev=11,a.t0=a["catch"](3),setTimeout((function(){t.updateNavBarInfo()}),10),a.abrupt("return");case 15:t&&t.$tn.vuex("vuex_status_bar_height",n),t&&t.$tn.vuex("vuex_custom_bar_height",e),t.customBarHeight=e,t.statusBarHeight=n;case 19:case"end":return a.stop()}}),a,null,[[3,11]])})))()},handlerBack:function(){var t=this;return(0,o.default)((0,i.default)().mark((function a(){var e;return(0,i.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!t.beforeBack||"function"!==typeof t.beforeBack){a.next=10;break}if(e=t.beforeBack.bind(t.$tn.$parent.call(t))(),!e||"function"!==typeof e.then){a.next=7;break}return a.next=5,e.then((function(a){t.navBack()})).catch((function(t){}));case 5:a.next=8;break;case 7:!0===e&&t.navBack();case 8:a.next=11;break;case 10:t.navBack();case 11:case"end":return a.stop()}}),a)})))()},navBack:function(){var t=getCurrentPages();if(t&&t.length>0){var a=t[0];1!=t.length||a.route&&"pages/index/index"==a.route?uni.navigateBack({delta:1}):uni.reLaunch({url:"/pages/index/index"})}else uni.reLaunch({url:"/pages/index/index"})}}};a.default=s},c94c:function(t,a,e){var n=e("8721");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=e("967d").default;i("41c5c44b",n,!0,{sourceMap:!1,shadowMode:!1})},c998:function(t,a,e){var n=e("8cda");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=e("967d").default;i("56c0ef87",n,!0,{sourceMap:!1,shadowMode:!1})}}]);