bztang-admin/addons/yun_shop/static/app/js/chunk-19414b5c.e86d4d6a.js

1 line
11 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-19414b5c"],{"077b":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"areaAgent"}},[i("div",{staticClass:"banner"},[t.upload_flag?i("img",{attrs:{src:t.apply_background}}):i("img",{attrs:{src:a("5d5e")}})]),"1"==t.status?i("div",{staticClass:"success"},[t._m(0),i("div",{staticClass:"text"},[t._v("恭喜您已通过审核")]),i("a",{on:{click:function(e){return t.goEnterproseCentre()}}},[i("div",{staticClass:"sub"},[t._v("去"+t._s(t.title||"招商"))])])]):t._e(),"-1"==t.status?i("div",{staticClass:"content"},["1"==t.config_status?[i("p",{staticClass:"title"},[t._v("申请"+t._s(t.merchant_people||"招商员"))]),i("div",{staticClass:"text"},[t._v(" 如果成为"+t._s(t.merchant_people||"招商员")+",那么只要您的粉丝成为供应商,即可获得供应商的分红哦,快来申请吧~ ")]),1!=t.independent_backend||t.apply_switch?t._e():[i("van-field",{attrs:{label:"登录账号",placeholder:"登录账号"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}}),i("van-field",{attrs:{type:"password",label:"登录密码",placeholder:"输入登录密码"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),i("van-field",{attrs:{type:"password",label:"确认密码",placeholder:"输入确认密码"},model:{value:t.password_again,callback:function(e){t.password_again=e},expression:"password_again"}})],i("button",{staticClass:"submit",attrs:{type:"button"},on:{click:t.submit}},[t._v("申 请")])]:t._e(),"2"==t.config_status?[i("p",{staticClass:"title"},[t._v("申请"+t._s(t.merchant_people||"招商员"))]),i("div",{staticClass:"text"},[t._v(" 会员人数"),i("span",[t._v(t._s(t.config2.total))]),t._v("人 您还差 "),i("span",[t._v(t._s(t.config2.diff))]),t._v("人,如果成为"+t._s(t.merchant_people||"招商员")+",那么只要您的粉丝成为供应商,即可获得供应商的分红哦,快来申请吧~ ")]),1==t.independent_backend?[i("van-field",{attrs:{label:"登录账号",placeholder:"登录账号"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}}),i("van-field",{attrs:{type:"password",label:"登录密码",placeholder:"输入登录密码"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),i("van-field",{attrs:{type:"password",label:"确认密码",placeholder:"输入确认密码"},model:{value:t.password_again,callback:function(e){t.password_again=e},expression:"password_again"}})]:t._e(),i("button",{staticClass:"submit",attrs:{type:"button"},on:{click:t.submit}},[t._v("申 请")])]:t._e(),"3"==t.config_status?[i("p",{staticClass:"title"},[t._v("申请"+t._s(t.merchant_people||"招商员"))]),i("div",{staticClass:"text"},[t._v(" 请购买指定商品 "),i("span",[t._v(t._s(t.config3.goods_title))])]),i("button",{staticClass:"submit",attrs:{type:"button"},on:{click:function(e){return t.goToGoods(t.config3.goods_id)}}},[t._v("购 买")])]:t._e()],2):t._e(),"0"==t.status?i("div",{staticClass:"success"},[t._m(1),i("div",{staticClass:"text"},[t._v("申请已提交,请等待审核!")]),i("a",{on:{click:function(e){return t.goHome()}}},[i("div",{staticClass:"sub"},[t._v("去商城逛逛")])])]):t._e(),"-2"==t.status?i("div",{staticClass:"success"},[t._m(2),i("div",{staticClass:"text"},[t._v("您的申请被驳回,请继续努力!")]),i("a",{on:{click:function(e){return t.goHome()}}},[i("div",{staticClass:"sub"},[t._v("去商城逛逛")])])]):t._e(),"-1"==t.status?i("div",{staticClass:"vip_main"},[i("div",{staticClass:"title"},[t._v("推广特权")]),t._m(3),i("div",{staticClass:"vip"},[t._m(4),i("div",{staticClass:"text"},[i("div",{staticClass:"t1"},[t._v("推广"+t._s(t.income_name_text))]),i("div",{staticClass:"t2"},[t._v("推广的客户购买商品后,您将获得相应的推广"+t._s(t.income_name_text)+"")])])])]):t._e()])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ico"},[a("i",{staticClass:"fa fa-check"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ico"},[a("i",{staticClass:"fa fa-check"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ico"},[a("i",{staticClass:"fa fa-check"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"vip vip1"},[a("div",{staticClass:"ico1"},[a("i",{staticClass:"fa fa-qrcode"})]),a("div",{staticClass:"text"},[a("div",{staticClass:"t1"},[t._v("专属二维码")]),a("div",{staticClass:"t2"},[t._v("拥有专属推广二维码,用于推广客户;")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ico2"},[a("i",{staticClass:"fa fa-cny"})])}],n=(a("e7e5"),a("d399")),o=(a("b64b"),a("14d9"),{data:function(){return{status:"",config_status:"",config2:{},config3:{},income_name_text:"",username:"",password:"",password_again:"",independent_backend:"",merchant_people:"",title:"",upload_flag:!0,apply_background:"",apply_switch:!1}},activated:function(){this.status="",this.config_status="",this.getData(),this.customizeIncome()},mounted:function(){},methods:{getData:function(){var t=this,e={};$http.get("plugin.merchant.frontend.get-info",e,"加载中").then((function(e){if(1==e.result){var a,i,s,o;t.status=e.data.status,t.config_status=e.data.config_status,t.config2=e.data.config2,t.config3=e.data.config3,t.independent_backend=e.data.independent_backend,""==e.data.apply_background?t.upload_flag=!1:t.apply_background=e.data.apply_background,e.data.lang&&(t.merchant_people=e.data.lang.merchant_people,t.title=e.data.lang.title,t.fun.setWXTitle(t.merchant_people||"招商员"));var r=JSON.parse(localStorage.getItem("yz_basic_info"));t.apply_switch=e.basic_info?null!==(a=null===(i=e.basic_info.plugin_setting.sub_platform)||void 0===i?void 0:i.apply_switch)&&void 0!==a&&a:null!==(s=null===(o=r.plugin_setting.sub_platform)||void 0===o?void 0:o.apply_switch)&&void 0!==s&&s}else Object(n["a"])(e.msg)}),(function(t){}))},submit:function(){var t=this;if(1!=t.independent_backend||3==t.config_status||this.apply_switch||!(t.fun.isTextEmpty(t.username)||t.fun.isTextEmpty(t.password)||t.fun.isTextEmpty(t.password_again))){var e={config_status:t.config_status,user:{username:t.username,password:t.password,password_again:t.password_again}};$http.post("plugin.merchant.frontend.merchant-apply.staff",e,"提交中").then((function(e){1==e.result?t.status=e.data.status:Object(n["a"])(e.msg)}),(function(t){}))}else Object(n["a"])("请填写账户信息")},goHome:function(){this.$router.push(this.fun.getUrl("home"))},goToGoods:function(t){this.$router.push(this.fun.getUrl("goods",{id:t}))},goEnterproseCentre:function(){this.$router.push(this.fun.getUrl("enterprise_index",{}))},customizeIncome:function(){var t=this.fun.initMailLanguage();this.income_name_text=t.income.income_name}}}),r=o,c=r,d=(a("093d"),a("2877")),l=Object(d["a"])(c,i,s,!1,null,"8414252e",null);e["default"]=l.exports},"093d":function(t,e,a){"use strict";a("b957")},"5d5e":function(t,e,a){t.exports=a.p+"static/app/img/enterprose_apply.d945ef9b.jpg"},"690a":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#areaAgent .m_header[data-v-8414252e]{width:100%;height:2.8125rem;color:#000;text-align:center}#areaAgent .m_header span[data-v-8414252e]{width:9.375rem;line-height:2.8125rem;font-size:16px}#areaAgent .content[data-v-8414252e]{width:100%;padding:.9375rem;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff}#areaAgent .content p.title[data-v-8414252e]{line-height:2.0625rem;font-size:16px}#areaAgent .content div.text[data-v-8414252e]{text-align:left}#areaAgent .content div.text span[data-v-8414252e]{color:#f15353}#areaAgent .content .el-select[data-v-8414252e]{width:100%;height:2.5rem;margin-bottom:.625rem}#areaAgent .content .el-select .el-input__inner[data-v-8414252e]{color:#000!important;font-size:16px!important;border:.0625rem solid #b8b8b8}#areaAgent .content .submit[data-v-8414252e]{width:100%;height:2.5rem;border-radius:.375rem;background-color:#f15353;text-align:center;line-height:2.5rem;color:#fff;border:0;outline:0;font-size:16px;font-weight:700;margin-top:.625rem}#areaAgent .content input[data-v-8414252e]{display:block;margin-bottom:.8125rem;width:100%;border-radius:.3125rem;padding:0 .3125rem;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;font-size:16px;height:2.25rem;line-height:1}#areaAgent .content .inp[data-v-8414252e]{border:.0625rem solid #b8b8b8}#areaAgent .content .inp[data-v-8414252e]:focus{border-color:#f55955;-webkit-box-sizing:border-box;box-sizing:border-box}#areaAgent .banner[data-v-8414252e]{width:100%;background:#fff;height:100%}#areaAgent .banner img[data-v-8414252e]{width:100%}#areaAgent .vip_main[data-v-8414252e]{background:#fff;margin:.9375rem 0}#areaAgent .vip_main .title[data-v-8414252e]{padding:.625rem;font-size:12px;border-bottom:.0625rem solid #eee;text-align:center}#areaAgent .vip_main .vip[data-v-8414252e]{padding:.9375rem .625rem;overflow:hidden;font-size:12px;color:#999}#areaAgent .vip_main .vip .ico1[data-v-8414252e],#areaAgent .vip_main .vip .ico2[data-v-8414252e]{width:15%;float:left}#areaAgent .vip_main .vip .ico1 i[data-v-8414252e]{background:#32cd32}#areaAgent .vip_main .vip .ico2 i[data-v-8414252e]{background:#fece00}#areaAgent .vip_main .vip .text[data-v-8414252e]{float:left;width:85%}#areaAgent .vip_main .vip .text .t1[data-v-8414252e]{font-size:15px;color:#333;margin-bottom:.3125rem;text-align:left}#areaAgent .vip_main .vip .text .t2[data-v-8414252e]{text-align:justify}#areaAgent .vip_main .vip i[data-v-8414252e]{background:#32cd32;height:2.25rem;width:2.25rem;border-radius:1.125rem;color:#fff;text-align:center;line-height:2.375rem;font-size:20px}#areaAgent .vip_main .vip1[data-v-8414252e]{border-bottom:.0625rem solid #eee}#areaAgent .success[data-v-8414252e]{height:12.5rem;padding-top:4.0625rem;background:#fff}#areaAgent .success .ico[data-v-8414252e]{height:4.0625rem;width:4.0625rem;margin:auto;border:.1875rem solid #32cd32;border-radius:4rem;color:#32cd32;font-size:2.3rem;text-align:center;line-height:4rem}#areaAgent .success .text[data-v-8414252e]{height:2rem;margin-top:1.875rem;color:#666;line-height:1.6rem;text-align:center}#areaAgent .success a .sub[data-v-8414252e]{height:2rem;width:80%;background:#f55955;margin:1.25rem auto;border-radius:2rem;color:#fff;line-height:2rem;text-align:center;font-size:14px}#areaAgent .success a .sub[data-v-8414252e]:focus{background:#d8403c}",""]),t.exports=e},b957:function(t,e,a){var i=a("690a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("32fdc4c7",i,!0,{sourceMap:!1,shadowMode:!1})}}]);