bztang-admin/addons/yun_shop/static/app/js/chunk-b637fe36.5deef6f4.js

1 line
9.5 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b637fe36"],{a96c:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"adApply"}},[a("c-title",{attrs:{hide:!1,text:"广告管理"}}),t.isStatus?a("div",{staticClass:"okApply"},[t._m(0),a("div",{staticClass:"text"},[t._v(t._s(t.statusText))]),a("a",{on:{click:function(e){return t.goToIndex()}}},[a("div",{staticClass:"sub"},[t._v("去商城逛逛")])])]):[a("div",{staticClass:"main"},[a("div",{staticClass:"title"},[t._v("姓名")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.apply.realname,expression:"apply.realname"}],attrs:{type:"text",placeholder:"请输入广告主姓名"},domProps:{value:t.apply.realname},on:{input:function(e){e.target.composing||t.$set(t.apply,"realname",e.target.value)}}}),a("div",{staticClass:"title"},[t._v("手机号")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.apply.mobile,expression:"apply.mobile"}],attrs:{type:"number",placeholder:"请输入手机号"},domProps:{value:t.apply.mobile},on:{input:function(e){e.target.composing||t.$set(t.apply,"mobile",e.target.value)}}}),a("div",{staticClass:"title"},[t._v("公司名称")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.apply.company_name,expression:"apply.company_name"}],attrs:{type:"text",placeholder:"请输入公司名称"},domProps:{value:t.apply.company_name},on:{input:function(e){e.target.composing||t.$set(t.apply,"company_name",e.target.value)}}}),a("div",{staticClass:"title"},[t._v("所在区域")]),a("van-cell",{staticClass:"clearDefault",attrs:{border:!1,"is-link":"",center:""}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.addressName,expression:"addressName"}],attrs:{type:"text",readonly:"",placeholder:"请选择区域"},domProps:{value:t.addressName},on:{click:function(e){e.stopPropagation(),t.addressShow=!0},input:function(e){e.target.composing||(t.addressName=e.target.value)}}})]),a("div",{directives:[{name:"show",rawName:"v-show",value:t.strShow,expression:"strShow"}],staticClass:"title"},[t._v("所在街道")]),a("van-cell",{directives:[{name:"show",rawName:"v-show",value:t.strShow,expression:"strShow"}],staticClass:"clearDefault",attrs:{border:!1,"is-link":"",center:""}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.street,expression:"street"}],attrs:{slot:"default",type:"text",readonly:"",placeholder:"请选择街道"},domProps:{value:t.street},on:{click:function(e){e.stopPropagation(),t.streetShow=!0},input:function(e){e.target.composing||(t.street=e.target.value)}},slot:"default"})]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.apply.company_address,expression:"apply.company_address"}],attrs:{type:"text",placeholder:"输入详细地址"},domProps:{value:t.apply.company_address},on:{input:function(e){e.target.composing||t.$set(t.apply,"company_address",e.target.value)}}}),a("div",{staticClass:"title"},[t._v("备注信息")]),a("van-cell",{staticClass:"morehand",staticStyle:{"padding-bottom":"0.625rem"},attrs:{border:!1,center:""}},[a("van-field",{staticClass:"remark",staticStyle:{padding:"10px"},attrs:{rows:"2",autosize:"",type:"textarea",maxlength:"100",placeholder:"填写备注信息","show-word-limit":""},model:{value:t.apply.remark,callback:function(e){t.$set(t.apply,"remark",e)},expression:"apply.remark"}})],1),a("yd-cityselect",{attrs:{callback:t.addressCallback,items:t.area},model:{value:t.addressShow,callback:function(e){t.addressShow=e},expression:"addressShow"}}),a("van-popup",{style:{height:"100%",width:"100%"},attrs:{position:"right",duration:"0"},model:{value:t.streetShow,callback:function(e){t.streetShow=e},expression:"streetShow"}},[a("van-nav-bar",{attrs:{title:"选择街道"},scopedSlots:t._u([{key:"left",fn:function(){return[a("span",[a("van-icon",{attrs:{name:"arrow-left",size:"18",color:"#333"},nativeOn:{click:function(e){t.streetShow=!1}}})],1)]},proxy:!0}],null,!1,1785184484)}),t._l(t.districtVal,(function(e,i){return a("van-cell",{key:i,attrs:{"is-link":""},nativeOn:{click:function(a){return t.streetConfirm(e)}}},[a("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.areaname))])])}))],2)],1),a("div",{staticClass:"btnBox"},[a("span",{on:{click:t.submit}},[t._v("提交")])])]],2)},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ico"},[a("i",{staticClass:"fa fa-check"})])}],r=(a("e7e5"),a("d399")),n=(a("14d9"),a("6968")),l={data:function(){return{apply:{realname:"",mobile:"",company_name:"",province_id:"",city_id:"",district_id:"",company_address:"",remark:"",street_id:""},addressShow:!1,area:district,isStatus:!1,statusText:"",addressName:"",street:"",districtVal:[],strShow:!1,streetShow:!1}},activated:function(){this.init(),this.getStatus()},components:{cTitle:n["a"]},computed:{},methods:{init:function(){this.apply.realname="",this.apply.mobile="",this.apply.company_name="",this.addressShow=!1,this.apply.province_id="",this.apply.city_id="",this.apply.district_id="",this.apply.street_id="",this.apply.company_address="",this.apply.remark="",this.addressName="",this.streetShow=!1},getStatus:function(){var t=this;$http.get("plugin.advert-market.frontend.advertMember.verify",{},"加载中...").then((function(e){1===e.result?t.isStatus=!1:(Object(r["a"])(e.msg),t.isStatus=!0,t.statusText=e.msg)}),(function(t){Object(r["a"])(t.msg)}))},addressCallback:function(t){this.addressName=t.itemName1+" "+t.itemName2+" "+t.itemName3,this.apply.province_id=t.itemValue1,this.apply.city_id=t.itemValue2,this.apply.district_id=t.itemValue3,this.getStreet(t.itemValue3)},getStreet:function(t){var e=this;$http.get("member.memberAddress.street",{district_id:t}).then((function(t){1===t.result&&!e.fun.isTextEmpty(t.data)&&t.data.length>0?(e.districtVal=t.data,e.strShow=!0):e.strShow=!1})).catch((function(t){}))},streetConfirm:function(t){this.street=t.areaname,this.apply.street_id=t.id,this.streetShow=!1},submit:function(){var t=this;this.fun.isTextEmpty(this.apply.realname)?Object(r["a"])("请填写姓名"):this.fun.isTextEmpty(this.apply.mobile)?Object(r["a"])("请填写号码"):this.fun.isMoblie(this.apply.mobile)?Object(r["a"])("请输入正确的手机号"):this.fun.isTextEmpty(this.apply.company_name)?Object(r["a"])("请填写公司名称"):this.fun.isTextEmpty(this.apply.province_id)||this.fun.isTextEmpty(this.apply.city_id)||this.fun.isTextEmpty(this.apply.district_id)?Object(r["a"])("请选择省市区"):this.fun.isTextEmpty(this.apply.street_id)?Object(r["a"])("请在后台系统-交易设置-开启街道地址"):this.fun.isTextEmpty(this.apply.company_address)?Object(r["a"])("请填写详细地址"):$http.post("plugin.advert-market.frontend.advertMember.subApply",{apply:this.apply},"提交中").then((function(e){1===e.result?(Object(r["a"])(e.msg),t.init(),t.$store.commit("setAdApply",!0),t.$router.go(-1)):Object(r["a"])(e.msg)}),(function(t){}))},goToIndex:function(){this.$router.push(this.fun.getUrl("home"))}}},o=l,p=(a("d49e"),a("2877")),d=Object(p["a"])(o,i,s,!1,null,"f941e53c",null);e["default"]=d.exports},b027:function(t,e,a){var i=a("d76c2");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("532f0286",i,!0,{sourceMap:!1,shadowMode:!1})},d49e:function(t,e,a){"use strict";a("b027")},d76c2:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#adApply[data-v-f941e53c]{background:#fff;min-height:100vh}#adApply .main[data-v-f941e53c]{padding:0 1.315rem 4rem;text-align:left}#adApply .main .title[data-v-f941e53c]{color:#333;font-weight:700;margin-top:.625rem}#adApply .main .title[data-v-f941e53c],#adApply .main input[data-v-f941e53c]{height:2.25rem;line-height:2.25rem;font-size:1rem}#adApply .main input[data-v-f941e53c]{width:100%;border:none;border-bottom:.0625rem solid #efefef}#adApply .main .clearDefault[data-v-f941e53c],#adApply .yd-cell-item[data-v-f941e53c]{padding:0}#adApply .yd-cell-item .remark[data-v-f941e53c]{background:none;border:1px solid #efefef;border-radius:0}#adApply[data-v-f941e53c] .yd-cell-item .yd-cell-right{padding:0}#adApply .btnBox[data-v-f941e53c]{height:3.75rem;position:fixed;width:100%;left:0;bottom:0;background:#fff;z-index:99;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-shadow:0 0 .313rem 0 rgba(0,0,0,.2);box-shadow:0 0 .313rem 0 rgba(0,0,0,.2)}#adApply .btnBox span[data-v-f941e53c]{width:85%;height:2.438rem;line-height:2.438rem;text-align:center;display:block;margin:0 auto;color:#fff;border-radius:1.219rem;background:#f15353}#adApply .okApply[data-v-f941e53c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:2rem}#adApply .okApply .ico[data-v-f941e53c]{width:4rem;height:4rem;line-height:4rem;font-size:2.5rem;background:#70bd79;color:#fff;text-align:center;border-radius:100%}#adApply .okApply .text[data-v-f941e53c]{padding:.825rem 0}#adApply .okApply a .sub[data-v-f941e53c]{height:2rem;background:#f15353;line-height:2rem;color:#fff;border-radius:1rem;padding:0 1rem}#adApply .morehand[data-v-f941e53c]{margin-bottom:.625rem;padding:10px 0;background:none;border:1px solid #efefef}#adApply[data-v-f941e53c] .van-cell--clickable:active{background-color:#fff}",""]),t.exports=e}}]);