1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-58ae32c2"],{"927b":function(e,t,a){var i=a("f6cd6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("499e").default;n("4adf765c",i,!0,{sourceMap:!1,shadowMode:!1})},9491:function(e,t,a){"use strict";a("927b")},b7cc:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"power_addMeb"}},[a("c-title",{attrs:{hide:!1,text:"会员资料填写"}}),a("div",{staticClass:"content"},[a("div",{staticClass:"name"},[a("span",[e._v("姓名")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.form.user_name,expression:"form.user_name"}],attrs:{type:"text",placeholder:"请输入您的姓名"},domProps:{value:e.form.user_name},on:{input:function(t){t.target.composing||e.$set(e.form,"user_name",t.target.value)}}})]),a("div",{staticClass:"bind-phone"},[a("span",[e._v("手机号")]),a("div",{staticClass:"input"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.form.phone,expression:"form.phone"}],attrs:{type:"text",placeholder:"请输入您的手机号"},domProps:{value:e.form.phone},on:{input:function(t){t.target.composing||e.$set(e.form,"phone",t.target.value)}}}),e.form.phone?e._e():a("div",{staticClass:"tobind",on:{click:e.tobind}},[e._v(" 绑定手机 ")])])]),a("div",{staticClass:"sex"},[a("span",[e._v("性别")]),a("div",{staticClass:"select-sex"},[a("span",[e._v(e._s("1"==e.form.sex?"男":"女"))]),a("i",{staticClass:"iconfont icon-advertise-next",on:{click:function(t){e.show=!0}}})])]),a("div",{staticClass:"district"},[a("span",{staticClass:"slot-left"},[e._v("地区")]),a("div",{staticClass:"select-district"},[a("span",[e._v(e._s(e.form.address))]),a("i",{staticClass:"iconfont icon-advertise-next",on:{click:function(t){e.show2=!0}}})])]),a("div",{staticClass:"name"},[a("span",[e._v("经销商")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"name"}],attrs:{type:"text",disabled:""},domProps:{value:e.name},on:{input:function(t){t.target.composing||(e.name=t.target.value)}}})]),a("div",{staticClass:"btn",on:{click:function(t){return e.confirm()}}},[e._v(" 确认提交 ")])]),a("yd-cityselect",{ref:"cityselectDemo",attrs:{callback:e.result2,items:e.district},model:{value:e.show2,callback:function(t){e.show2=t},expression:"show2"}}),a("van-popup",{staticClass:"pop",attrs:{position:"bottom"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[a("div",{staticClass:"title"},[a("span",{staticClass:"cancel",on:{click:function(t){e.show=!1}}},[e._v("取消")]),a("span",[e._v("选择性别")]),a("span",{staticClass:"confirm",on:{click:function(t){e.show=!1}}},[e._v("确认")])]),a("div",{staticClass:"pop-content"},[a("van-radio-group",{attrs:{"checked-color":"#ee2a2b"},model:{value:e.form.sex,callback:function(t){e.$set(e.form,"sex",t)},expression:"form.sex"}},e._l(e.upgrade_level,(function(t,i){return a("div",{key:i,staticClass:"item"},[a("span",[e._v(e._s(t.text))]),a("van-radio",{attrs:{name:t.id}})],1)})),0)],1)])],1)},n=[],o=(a("e7e5"),a("d399")),s=(a("b0c0"),a("6968")),d=a("5dbd"),r=a.n(d),l={data:function(){return{show:!1,show2:!1,district:r.a,name:"",form:{sex:"1",user_name:"",phone:"",address:"",dealer_user_id:""},upgrade_level:[{id:"1",text:"男"},{id:"2",text:"女"}]}},components:{cTitle:s["a"]},mounted:function(){},methods:{initData:function(){this.show=!1,this.show2=!1,this.district=r.a,this.name="",this.form={sex:"1",user_name:"",phone:"",address:"",dealer_user_id:""}},confirm:function(){var e=this;this.fun.isTextEmpty(this.form.user_name)?Object(o["a"])("请输入姓名"):this.form.phone?this.form.address?$http.post("plugin.energy-cabin.frontend.dealer-terminal.add-member-info",{data:this.form},"加载中...").then((function(t){1===t.result?(Object(o["a"])(t.msg),e.$router.go(-1)):Object(o["a"])(t.msg)}),(function(e){})):Object(o["a"])("请选择地址"):Object(o["a"])("请绑定手机号")},getData:function(){var e=this,t={dealer_uid:this.$route.params.dealer_uid};$http.get("plugin.energy-cabin.frontend.dealer-terminal.show-member-page",t,"加载中...").then((function(t){1===t.result?(e.form.phone=t.data.member.mobile,e.form.dealer_user_id=t.data.dealer_member.uid,e.form.user_name=t.data.member.nickname,e.name=t.data.dealer_member.nickname):Object(o["a"])(t.msg)}),(function(e){}))},tobind:function(){this.$router.push(this.fun.getUrl("editmobile"))},result2:function(e){this.form.address=e.itemName1+" "+e.itemName2+" "+e.itemName3}},activated:function(){this.initData(),this.getData()}},c=l,p=c,f=(a("9491"),a("2877")),b=Object(f["a"])(p,i,n,!1,null,"48d2e14d",null);t["default"]=b.exports},f6cd6:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,"#power_addMeb[data-v-48d2e14d]{height:100vh;background-color:#fff}#power_addMeb .content[data-v-48d2e14d]{padding-left:.75rem;padding-right:.75rem}#power_addMeb .content .name[data-v-48d2e14d]{padding:1rem 0;border-bottom:1px solid #f5f7fa;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-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start}#power_addMeb .content .name span[data-v-48d2e14d]{width:4.375rem;display:inline-block;margin-left:.25rem;text-align:left}#power_addMeb .content .name input[data-v-48d2e14d]{outline:none;border:none;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#power_addMeb .content .bind-phone[data-v-48d2e14d]{padding:1rem 0;border-bottom:1px solid #f5f7fa;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-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start}#power_addMeb .content .bind-phone span[data-v-48d2e14d]{width:4.375rem;display:inline-block;margin-left:.25rem;text-align:left}#power_addMeb .content .bind-phone .input[data-v-48d2e14d]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;position:relative}#power_addMeb .content .bind-phone .input input[data-v-48d2e14d]{outline:none;border:none}#power_addMeb .content .bind-phone .input .tobind[data-v-48d2e14d]{width:4.6875rem;height:1.75rem;background-color:rgba(255,77,72,.27);border-radius:.875rem;color:#ff4d48;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;position:absolute;right:0;top:0;margin-top:-.2rem}#power_addMeb .content .bind-phone .input .tobind[data-v-48d2e14d],#power_addMeb .content .sex[data-v-48d2e14d]{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}#power_addMeb .content .sex[data-v-48d2e14d]{padding:1rem 0;border-bottom:1px solid #f5f7fa;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start}#power_addMeb .content .sex span[data-v-48d2e14d]{width:4.375rem;display:inline-block;margin-left:.25rem;text-align:left}#power_addMeb .content .sex .select-sex[data-v-48d2e14d]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#power_addMeb .content .district[data-v-48d2e14d],#power_addMeb .content .sex .select-sex[data-v-48d2e14d]{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}#power_addMeb .content .district[data-v-48d2e14d]{padding:1rem 0;border-bottom:1px solid #f5f7fa;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start}#power_addMeb .content .district .slot-left[data-v-48d2e14d]{width:4.375rem;display:inline-block;margin-left:.25rem;text-align:left}#power_addMeb .content .district .select-district[data-v-48d2e14d]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#power_addMeb .content .btn[data-v-48d2e14d],#power_addMeb .content .district .select-district[data-v-48d2e14d]{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}#power_addMeb .content .btn[data-v-48d2e14d]{width:18.75rem;height:2.5rem;background-image:-webkit-gradient(linear,left bottom,left top,from(#ff8a66),color-stop(84%,#ff4946)),-webkit-gradient(linear,left top,left bottom,from(#03ddc8),to(#03ddc8));background-image:-webkit-linear-gradient(bottom,#ff8a66,#ff4946 84%),-webkit-linear-gradient(#03ddc8,#03ddc8);background-image:linear-gradient(0deg,#ff8a66,#ff4946 84%),linear-gradient(#03ddc8,#03ddc8);background-blend-mode:normal,normal;-webkit-box-shadow:0 .125rem .25rem 0 rgba(255,79,73,.13);box-shadow:0 .125rem .25rem 0 rgba(255,79,73,.13);border-radius:1.25rem;margin:0 auto;color:#fff;margin-top:2rem;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:16px}#power_addMeb .pop[data-v-48d2e14d]{border-radius:1.3125rem 1.3125rem 0 0;padding-top:.75rem;padding-bottom:2.875rem}#power_addMeb .pop .title[data-v-48d2e14d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:100%;padding:0 1.75rem}#power_addMeb .pop .title .cancel[data-v-48d2e14d]{color:#666}#power_addMeb .pop .title .confirm[data-v-48d2e14d]{color:#ee2e2b}#power_addMeb .pop .pop-content .item[data-v-48d2e14d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 1.75rem;margin-top:2.25rem}",""]),e.exports=t}}]); |