canyin-project/ybcy/views/channel/index/static/js/chunk-8f37091c.542fdd7f.js

1 line
12 KiB
JavaScript
Raw Normal View History

2024-11-01 16:07:54 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8f37091c"],{"3abd":function(e,t,a){},"6e01":function(e,t,a){"use strict";var i=a("3abd"),s=a.n(i);s.a},c8f1:function(e,t,a){},dad0:function(e,t,a){"use strict";var i=a("c8f1"),s=a.n(i);s.a},e65b: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",{staticClass:"storeinformation"},[a("div",{staticClass:"ba_f outmain"},[e._m(0),a("el-form",{ref:"form4",attrs:{model:e.form4,rules:e.rules4,"label-width":"180px"}},[a("el-form-item",{attrs:{label:"登录账号",prop:"userName"}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"请输入登录账号"},model:{value:e.form4.userName,callback:function(t){e.$set(e.form4,"userName",t)},expression:"form4.userName"}})],1),a("el-form-item",{attrs:{label:"登录密码",prop:"password"}},[a("el-input",{attrs:{type:"password",autocomplete:"off",placeholder:"请输入登录密码"},model:{value:e.form4.password,callback:function(t){e.$set(e.form4,"password",t)},expression:"form4.password"}})],1),a("el-form-item",{attrs:{label:"绑定手机号",prop:"bindTel"}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"请输入绑定手机号"},model:{value:e.form4.bindTel,callback:function(t){e.$set(e.form4,"bindTel",t)},expression:"form4.bindTel"}})],1)],1)],1),a("div",{staticClass:"mar_t20 ba_f pad_20 t_c"},[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("保存")])],1)])},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"shuju_title mar_b20"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("账号密码")])])])}],n=(a("96cf"),a("1da1")),r=a("5530"),o=a("fc6e"),l=a("e692"),c=a("2f62"),d={name:"storinformation",created:function(){this.edit()},computed:Object(r["a"])({},Object(c["d"])(["storeId"])),components:{attachmentImg:o["a"]},data:function(){var e=function(e,t,a){if(!t)return a(new Error("账号不能为空"))},t=function(e,t,a){""===t?a(new Error("请输入密码")):a()},a=function(e,t,a){if(!t)return a(new Error("手机号不能为空"))};return{loading:!0,form4:{userName:"",password:"",bindTel:""},rules4:{password:[{validator:t,trigger:"blur"}],userName:[{validator:e,trigger:"blur"}],bindTel:[{validator:a,trigger:"blur"}]}}},methods:{handleClick:function(){this.edit()},edit:function(){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function t(){var a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["e"])({storeType:2,id:e.storeId});case 2:a=t.sent,i=a.data,i.id&&(e.form4.userName=i.userName,e.form4.password=i.passWord,e.form4.bindTel=i.phone,e.form4.id=e.storeId,e.form4.userId=i.id);case 5:case"end":return t.stop()}}),t)})))()},test:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;console.log(this.$refs,e),this.$refs["img"+e].dialogVisible=!0},enter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.$refs["imgicon"+e].style.display="none"},leave:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.$refs["imgicon"+e].style.display="inline-block"},imgadd1:function(e){this.form.icon=e.str},onSubmit:function(){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function t(){var a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.form4.id=e.storeId,t.next=3,Object(l["o"])(e.form4);case 3:a=t.sent,i=a.msg,e.$baseMessage(i,"success"),e.$router.go(-1);case 7:case"end":return t.stop()}}),t)})))()}}},u=d,m=(a("6e01"),a("2877")),p=Object(m["a"])(u,i,s,!1,null,"84c1edde",null);t["default"]=p.exports},fc6e:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{staticClass:"attachmentImg",attrs:{title:"选择图片",visible:e.dialogVisible,"close-on-click-modal":!1,width:"55%"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.modalClose,opened:e.dialogOpened}},[a("div",{staticClass:"attachment_img_box",attrs:{flex:"box:first"}},[a("div",{d