text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["promoter-recruit"],{"0e28":function(t,n,e){"use strict";e.d(n,"q",(function(){return s})),e.d(n,"t",(function(){return u})),e.d(n,"a",(function(){return d})),e.d(n,"L",(function(){return l})),e.d(n,"k",(function(){return f})),e.d(n,"j",(function(){return p})),e.d(n,"z",(function(){return h})),e.d(n,"x",(function(){return m})),e.d(n,"u",(function(){return g})),e.d(n,"y",(function(){return v})),e.d(n,"c",(function(){return w})),e.d(n,"v",(function(){return b})),e.d(n,"w",(function(){return x})),e.d(n,"D",(function(){return y})),e.d(n,"d",(function(){return P})),e.d(n,"i",(function(){return k})),e.d(n,"C",(function(){return _})),e.d(n,"B",(function(){return z})),e.d(n,"E",(function(){return A})),e.d(n,"e",(function(){return O})),e.d(n,"f",(function(){return I})),e.d(n,"A",(function(){return T})),e.d(n,"h",(function(){return N})),e.d(n,"F",(function(){return j})),e.d(n,"l",(function(){return C})),e.d(n,"n",(function(){return E})),e.d(n,"I",(function(){return q})),e.d(n,"m",(function(){return G})),e.d(n,"H",(function(){return R})),e.d(n,"J",(function(){return $})),e.d(n,"p",(function(){return B})),e.d(n,"b",(function(){return D})),e.d(n,"K",(function(){return M})),e.d(n,"G",(function(){return L})),e.d(n,"s",(function(){return U})),e.d(n,"g",(function(){return X})),e.d(n,"o",(function(){return F})),e.d(n,"r",(function(){return H}));e("2769"),e("ecf1"),e("f49b"),e("b1fa");var o=e("430a"),i=(e("6afd"),e("2070"),e("eb62"),["X-PAGINATION-TOTAL-COUNT","X-PAGINATION-PER-PAGE","X-PAGINATION-PAGE-COUNT","X-PAGINATION-CURRENT-PAGE"]);function r(t){Object.keys(t.headers).forEach((function(n){t.headers[n.toUpperCase()]=t.headers[n],delete t.headers[n]}));var n={current:1,pageCount:1,totalCount:1};i.forEach((function(n){Object.keys(t.headers).map((function(e){n===e&&(t.headers[e]=parseInt(t.headers[e]))}))})),n.current=t.headers["X-PAGINATION-CURRENT-PAGE"],n.pageCount=t.headers["X-PAGINATION-PAGE-COUNT"],n.totalCount=t.headers["X-PAGINATION-TOTAL-COUNT"],t.pagination=n}e("7c98");var a=o["default"].prototype.$heshop,c=o["default"].prototype.$message.error;function s(t){var n=t.tabKey,e=void 0===n?"all":n,o=t.page,i=void 0===o?1:o,s=t.search,u=void 0===s?"":s,d=t.sort,l=void 0===d?{}:d,f=t.time_start,p=void 0===f?0:f,h=t.time_end,m=void 0===h?0:h,g=t.cost_status,v=void 0===g?null:g,w=t.is_promoter,b=void 0===w?null:w,x=t.group,y=void 0===x?[]:x,P=t.price_start,k=void 0===P?"":P,_=t.price_end,z=void 0===_?"":_;return new Promise((function(t){a.search("post",{include:"goods"},{keyword:{tab_key:e,search:u,sort:l,time_start:p,time_end:m,is_promoter:b,cost_status:v,group:y,price_start:k,price_end:z}}).page(i,10).then((function(n){r(n);var e=n.data,o=n.pagination;t({data:e,pagination:o})})).catch((function(t){c(t.data.message)}))}))}function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return new Promise((function(i,r){a.promotergoods("put",{type:t,id:n,tab_key:e},{is_promoter:o}).then(i).catch(r)}))}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(n,e){a.promoter("post",t).then(n).catch((function(t){c(t.data.message),e(t)}))}))}function l(t){return new Promise((function(n,e){a.promoter("get",{behavior:"add_search",search:t}).then((function(t){n(t)})).catch((function(t){c(t.data.message),e(t)}))}))}function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{keyword:"",begin_time:null,end_time:null,type:null,level:null};return new Promise((function(e){a.finance("get",n).page(t,10).then((function(t){r(t);var n=t.data,o=t.pagination;e({data:n,pagination:o})})).catch((function(t){c(t.data.message)}))}))}function p(t,n,e){return t=parseInt(t),new Promise((function(o,i){a.finance("put",t,{status:n,content:e}).then(o).catch((function(t){i(t)}))}))}function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(e){a.search("post",{include:"promoterorder"},n).page(t,10).then((function(t){r(t);var n=t.data,o=t.pagination;e({data:n,pagination:o})})).catch((function(t){c(t.data.message)}))}))}function m(){return new Promise((function(t){a.promoterlevel("get").then(t).catch((function(t){c(t.data.message)}))}))}function g(t){return t=parseInt(t),new Promise((function(n){a.promoterlevel("delete",t).then(n).catch((function(t){c(t.data.message)}))}))}function v(){return new Promise((function(t){a.promoterlevel("get",{behavior:"option"}).then(t).catch((function(t){c(t.data.message)}))}))}function w(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(n,e){a.promoterlevel("post",t).then(n).catch((function(t){c(t.data.message),e(t)}))}))}function b(t){return t=parseInt(t),new Promise((function(n){a.promoterlevel("get",t).then(n).catch((function(t){c(t.data.message)}))}))}function x(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=parseInt(t),new Promise((function(e,o){a.promoterlevel("put",t,n).then(e).catch((function(t){c(t.data.message),o(t)}))}))}function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1?arguments[1]:void 0;return new Promise((function(e){a.promotermaterial("get",n).page(t,10).then((function(t){r(t);var n=t.data,o=t.pagination;e({data:n,pagination:o})})).catch((function(t){c(t.data.message)}))}))}function P(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(n){a.promotermaterial("post",t).then(n).catch((function(t){c(t.data.message)}))}))}function k(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(e){a.promotermaterial("put",t,n).then(e).catch((function(t){c(t.data.message)}))}))}function _(t){return new Promise((function(n){a.promotermaterial("get",t).then(n).catch((function(t){c(t.data.message)}))}))}function z(t){return new Promise((function(n){a.promotermaterial("delete",t).then(n).catch((function(t){c(t.data.message)}))}))}function A(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(e){a.promoterzone("get",n).page(t,10).then((function(t){r(t);var n=t.data,o=t.pagination;e({data:n,pagination:o})})).catch((function(t){c(t.data.message)}))}))}function O(t){return new Promise((function(n){a.promoterzone("post",t).then(n).catch((function(t){c(t.data.message)}))}))}function I(t){return new Promise((function(n){a.promoterzone("delete",t).then(n).catch((function(t){c(t.data.message)}))}))}function T(t){return t=parseInt(t),new Promise((function(n){a.promoterzone("get",t).then((function(t){n(t)})).catch((function(t){c(t.data.message)}))}))}function N(t,n){return t=parseInt(t),new Promise((function(e,o){a.promoterzone("put",t,n).then(e).catch((function(t){o(t),c(t.data.message)}))}))}function j(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(n,e){a.setting("post",{keyword:"commission_setting",content:t}).then(n).catch((function(t){e(t)}))}))}function C(){return new Promise((function(t,n){a.search("post",{include:"setting"},{keyword:"commission_setting"}).then(t).catch((function(t){c(t.data.message),n()}))}))}function E(){return new Promise((function(t,n){a.search("post",{include:"setting"},{keyword:"promoter_setting"}).then(t).catch((function(t){c(t.data.message),n()}))}))}function q(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(n,e){a.setting("post",{keyword:"promoter_setting",content:t}).then(n).catch((function(t){e(t)}))}))}function G(){return new Promise((function(t,n){a.search("post",{include:"setting"},{keyword:"promoter_rank"}).then(t).catch((function(t){c(t.data.message),n()}))}))}function R(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(n,e){a.setting("post",{keyword:"promoter_rank",content:t}).then(n).catch((function(t){e(t)}))}))}function $(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(n,e){a.setting("post",{keyword:"promoter_recruit_make",content:t}).then(n).catch((function(t){e(t)}))}))}function B(){return new Promise((function(t,n){a.search("post",{include:"setting"},{keyword:"promoter_recruit_make"}).then((function(n){t(n.content)})).catch((function(t){c(t.data.message),n()}))}))}function D(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(o,i){a.promoter("put",{id:t,behavior:n},e).then(o).catch((function(t){c(t.data.message),i()}))}))}function M(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{uid:"",mobile:""};return new Promise((function(n,e){a.promoter("get",{behavior:"transfer_search",from_uid:t.uid,mobile:t.mobile}).then(n).catch((function(t){c(t.data.message),e(t)}))}))}function L(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(n,e){a.setting("post",{keyword:"promoter_page_setting",content:t}).then(n).catch((function(t){c(t.data.message),e(t)}))}))}function U(){return new Promise((function(t,n){a.search("post",{include:"setting"},{keyword:"promoter_page_setting"}).then((function(n){t(n.content)})).catch((function(t){c(t.data.message),n(t)}))}))}function X(t,n){return new Promise((function(e,o){a.promoter("put",parseInt(t),{level:n}).then(e).catch((function(t){c(t.data.message),o(t)}))}))}function F(t){return new Promise((function(n,e){a.qrcode("post",t).then(n).catch((function(t){c(t.data.message),e(t)}))}))}function H(){return new Promise((function(t,n){a.group("get",{include:"goods"}).then((function(n){t(n)})).catch((function(t){c(t.data.message),n(t)}))}))}},2573:function(t,n,e){"use strict";var o,i,r=e("4c02"),a=e.n(r),c=e("46d3"),s=e("19e9"),u=e("0e28"),d=e("3303"),l={name:"recruitment-promotion",data:function(){return{platform:"weapp",form:{weapp:{},wechat:{}}}},props:{value:{type:Boolean,default:!1},info:{type:[Object]}},computed:{showDialog:{get:function(t){var n=t.value;return n},set:function(t){this.$emit("input",t)}}},render:function(){var t=arguments[0],n=this;return t("el-dialog",a()([{attrs:{visible:n.showDialog,title:"推广",width:"533px",top:"30vh"}},{on:Object(c["a"])({},"update:visible",(function(t){n.showDialog=t}))}]),[t("div",{class:"flex"},[t("div",{class:"left"},[t("div",{class:[{active:"weapp"===n.platform},"left-item"],on:{click:function(){return n.platform="weapp"}}},["微信小程序"]),t("div",{class:[{active:"wechat"===n.platform},"left-item"],on:{click:function(){return n.platform="wechat"}}},["公众号"])]),t("div",{class:"right"},[t("div",{class:"right--title"},["weapp"===n.platform?"小程序路径":"wechat"===n.platform?"公众号路径":null]),t("el-input",{attrs:{value:n.form[n.platform].url,disabled:!0},class:"le-input--300"},[t("el-button",{slot:"append",on:{click:function(){Object(s["a"])({content:n.form[n.platform].url,success:function(){n.$message.success("复制成功")}})}}},["复制"])]),t("el-button",{class:"download--btn",attrs:{plain:!0},on:{click:function(){Object(d["a"])(n.form[n.platform].image,"招募令")}}},["下载","weapp"===n.platform?"小程序":"wechat"===n.platform?"公众号":null,"码"])])])])},mounted:function(){var t=this,n={page:"promoter/pages/recruit",scene:"behavior=recruiting&invite_id=0"};Object(u["o"])(n).then((function(n){t.form=n}))}},f=l,p=(e("becf"),e("4ac2")),h=Object(p["a"])(f,o,i,!1,null,"55426c11",null);n["a"]=h.exports},"56e7":function(t,n,e){"use strict";e("c00f")},6475:function(t,n,e){"use strict";e.r(n);var o,i,r=e("4c02"),a=e.n(r),c=(e("b1fa"),e("9932")),s=e.n(c),u=e("5fd4"),d=e.n(u),l=e("0e28"),f=e("2573"),p=e("8f98"),h='\n      <img src="https://qmxq.oss-cn-hangzhou.aliyuncs.com/promoter/recruit-1.png" width="100%" style="display: block">\n      <div style="width: 100%;background-color: #3A18AB;overflow: hidden;">\n        <div style="padding: 0 16px">\n            <div style="background-color: #ffffff;border-radius: 8px;padding: 20px 20px;font-size: 13px;font-weight: 500;color: #222222;">【店铺名称】诚挚邀请你加入我们的分销员团队，无任何成本，不用您处理订单和售后，即可成为我们的分销员，你只需将高品质商品分享推荐给他人，赚取佣金。欢迎您和我们一起分享喜悦！</div>\n        </div>\n        <div style="position: relative;">\n          <img src="https://qmxq.oss-cn-hangzhou.aliyuncs.com/promoter/recruit-2.png" width="100%" alt="">\n          <span style="color: #fff;font-size: 16px;font-weight: 400;line-height: 24px;position: absolute;z-index: 10;top:34px;left: 16px">如何成为分销商</span>\n          <div style="background-color: #fff;border-radius: 8px;margin: 0 16px;padding: 20px 20px;font-size: 13px;font-weight: 500;color: #222222;">\n              √ 阅读此招募令内容，点击底部成为分销商按钮<br/>\n              √ 根据指引，完成申请流程，提交申请信息\n          </div>\n        </div>\n        <div style="position: relative;">\n            <img src="https://qmxq.oss-cn-hangzhou.aliyuncs.com/promoter/recruit-3.png" width="100%" alt="">\n            <span style="color: #fff;font-size: 16px;font-weight: 400;line-height: 24px;position: absolute;z-index: 10;top:34px;left: 16px">如何赚取佣金</span>\n            <div style="background-color: #fff;border-radius: 8px;margin: 0 16px;padding: 20px 20px;font-size: 13px;font-weight: 500;color: #222222;">\n                A. 点击商品详情页的【分享】按钮，将商品链接或商  &nbsp;&nbsp;&nbsp;&nbsp;品海报分享给好友<br/>\n                B. 其他人通过分享的链接或海报，进入到商品详情页  &nbsp;&nbsp;&nbsp;&nbsp;并购买商品<br/>\n                C. 订单过售后时间后，系统自动结算佣金\n            </div>\n          </div>\n          <div style="position: relative;">\n            <img src="https://qmxq.oss-cn-hangzhou.aliyuncs.com/promoter/recruit-4.png" width="100%" alt="">\n            <span style="color: #fff;font-size: 16px;font-weight: 400;line-height: 24px;position: absolute;z-index: 10;top:34px;left: 16px">如何提现佣金</span>\n            <div style="background-color: #fff;border-radius: 8px;margin: 0 16px;padding: 20px 20px;font-size: 13px;font-weight: 500;color: #222222;">\n                A. 进入到分销员中心，查看待提现佣金<br/>\n                B. 点击待提现佣金，进入到提现页面，根据指引，完  &nbsp;&nbsp;&nbsp;&nbsp;成提现申请<br/>\n                C. 商家收到提现申请后，将佣金打款至提现账户\n            </div>\n          </div>\n          <div style="position: relative;">\n            <img src="https://qmxq.oss-cn-hangzhou.aliyuncs.com/promoter/recruit-5.png" width="100%" alt="">\n            <span style="color: #fff;font-size: 16px;font-weight: 400;line-height: 24px;position: absolute;z-index: 10;top:34px;left: 16px">联系我们</span>\n            <div style="background-color: #fff;border-radius: 8px;margin: 0 16px;padding: 8px 20px;">\n                <div style="height: 50px;border-bottom: 1px solid #E5E5E5;line-height: 50px;">\n                   <span style="font-size: 13px;font-weight: 500;color: #222222;display: inline-block;width: 60px;margin-right: 8px">联系人</span>\n                   <span style="font-size: 13px;font-weight: 500;color: #999999;">请填写联系人姓名</span>\n                </div>\n                <div style="height: 50px;border-bottom: 1px solid #E5E5E5;line-height: 50px;">\n                   <span style="font-size: 13px;font-weight: 500;color: #222222;display: inline-block;width: 60px;margin-right: 8px">手机号</span>\n                   <span style="font-size: 13px;font-weight: 500;color: #999999;">请填写手机号</span>\n                </div>\n                <div style="height: 50px;line-height: 50px;">\n                   <span style="font-size: 13px;font-weight: 500;color: #222222;display: inline-block;width: 60px;margin-right: 8px">邮箱</span>\n                   <span style="font-size: 13px;font-weight: 500;color: #999999;">请填写邮箱</span>\n                </div>\n            </div>\n          </div>\n          <div style="background-color: #3A18AB;overflow: hidden;">\n              <div ref="button" style="background-color: #FFB43E;text-align: center;width: calc(100% - 32px);height: 40px;line-height: 40px;border-radius: 20px;border: none;cursor: pointer;color: #fff;margin: 24px 16px;">申请成为分销商</div>\n          </div>\n      </div>\n    ',m={components:{recruitmentPromotion:f["a"]},data:function(){return{form:{title:"",content:h},rules:{title:[{required:!0,message:"页面标题不能为空"}]},loading:!0,disabled:!0,editor:null,showRecruitmentPromotion:!1}},mounted:function(){var t=this,n=new d.a("#editor");n.config.height=587,n.menus.extend("alertMenuKey",p["a"]),n.config.uploadFile=function(){t.$refs.pictureDialog.handleClick()},n.config.menus=["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","foreColor","backColor","justify","image","undo","redo","alertMenuKey"],n.config.showFullScreen=!1,n.config.zIndex=99,n.create(),this.editor=n,this.editor.config.onchange=function(n){t.form.content=n},Object(l["p"])().then((function(n){t.form=n,t.editor.txt.html(t.form.content),t.loading=!1,t.disabled=!1}))},render:function(){var t=this,n=arguments[0],e=this;return n("div",{class:"le-main flex"},[n("div",{class:"le-mobilePreview"},[n("div",{class:"content--title"},[e.form.title]),n("img",{attrs:{height:"80px",width:"340px",src:s.a},class:"le-mobile-head"}),n("div",{class:"le-mobileContent",domProps:{innerHTML:e.form.content}})]),n("div",{class:"flex-sub"},[n("div",{class:"le-card"},[n("div",{class:"le-card-head flex align-center"},[n("span",{class:"le-card-line"}),n("span",["基础信息"])]),n("el-form",a()([{attrs:{"label-width":"133px"},class:"le-form"},{props:{model:e.form,rules:e.rules}}]),[n("el-form-item",{attrs:{label:"页面标题",prop:"title"}},[n("el-input",{attrs:{maxlength:"8","show-word-limit":!0},model:{value:e.form.title,callback:function(n){t.$set(e.form,"title",n)}}})]),n("el-form-item",{attrs:{label:"页面样式"}},[n("el-button",{attrs:{type:"text"},on:{click:e.reset}},["恢复默认"])]),n("el-form-item",{attrs:{label:"推广招募"}},[n("el-button",{attrs:{type:"text"},on:{click:function(){return e.showRecruitmentPromotion=!0}}},["推广"])])])]),n("div",{class:"le-card"},[n("div",{class:"le-card-head flex align-center"},[n("span",{class:"le-card-line"}),n("span",["页面编辑"])]),n("div",{class:"le-editor",attrs:{id:"editor"}})])]),n("div",{class:"le-cardpin"},[n("el-button",{attrs:{type:"primary",loading:e.loading&&!e.disabled,disabled:e.disabled},on:{click:e.saveRecruitMake}},["保存"])]),function(){if(e.showRecruitmentPromotion)return n(f["a"],{model:{value:e.showRecruitmentPromotion,callback:function(n){t.$set(e,"showRecruitmentPromotion",n)}}})}(),n("pictureDialog",{on:{confirm:e.confirm},ref:"pictureDialog",attrs:{limit:10,max:10}})])},methods:{confirm:function(t){for(var n=this.editor,e=0;e<t.length;e++)n.cmd.do("insertHTML",'<img style="width: 100%" src="'.concat(t[e],'"/>'))},saveRecruitMake:function(){var t=this;this.loading=!0,Object(l["J"])(this.form).then((function(){t.$message({type:"success",message:"保存成功"})})).finally((function(){t.loading=!1}))},reset:function(){var t=this;this.$confirm("确认恢复默认样式？","提示",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0}).then((function(){t.editor.txt.html(h),t.$message({type:"success",message:"恢复默认样式成功!"})})).catch((function(){}))}}},g=m,v=(e("56e7"),e("4ac2")),w=Object(v["a"])(g,o,i,!1,null,"5d5746f1",null);n["default"]=w.exports},"886d":function(t,n,e){},"8f98":function(t,n,e){"use strict";e.d(n,"a",(function(){return f}));var o=e("78e0"),i=e("b96e"),r=e("83a7"),a=e("4453"),c=e("8595"),s=e("46d3"),u=e("5fd4"),d=e.n(u),l=(d.a.$,d.a.BtnMenu),f=(d.a.DropListMenu,d.a.PanelMenu,d.a.DropList,d.a.Panel,d.a.Tooltip,function(t){Object(a["a"])(e,t);var n=Object(c["a"])(e);function e(t){var i;Object(o["a"])(this,e);var a=d.a.$('<div class="w-e-menu" data-title="Alert">\n                <div>\n                <i class="w-e-icon-image"></i>\n</div>\n            </div>');return i=n.call(this,a,t),Object(s["a"])(Object(r["a"])(i),"editor",void 0),i.editor=t,i}return Object(i["a"])(e,[{key:"clickHandler",value:function(){var t=this.editor,n=t.config,e=n.uploadFile;e&&"function"===typeof e&&e()}},{key:"tryChangeActive",value:function(){this.active()}}]),e}(l))},9932:function(t,n,e){t.exports=e.p+"img/mobile-head.33467fb1.png"},becf:function(t,n,e){"use strict";e("886d")},c00f:function(t,n,e){}}]);