webpackJsonp([54],{ae7D:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("WSiR"),i=a("AKaA"),n=a("8V46"),c=a("PKNu"),r={components:{"v-nav":s.a},data:function(){return{navpath:[{name:"首页",path:""},{name:"微信会员",path:"/wechatmembers"},{name:"会员设置",path:""}],value:!1,projectName:"member",actionUrl:"/api-plug/upload-img",dilogVisible:!1,maxlength:5,dilogImageUrl:""}},methods:{uploadOnSuccess:function(t){t.file.url=t.res.result[0].qcloudImageUrl,this.imageList.push(t.file)},deleteImage:function(t){this.imageList.splice(t,1)},saveSet:function(t){var e=this;Object(i.a)("/api-member/members-setting",{optype:t,appStatus:this.value?1:0}).then(function(a){0===a.data.errorCode?(1==a.data.result.appStatus&&(e.value=!0),2==t&&(e.$message({message:"设置成功！",type:"success"}),Object(c.setTimeout)(function(){e.$router.push({path:"/wechatmembers"})},1e3))):Object(n.a)(a.data.message)})},sortImg:function(t){this.imageList=t}},created:function(){this.saveSet(1),this.$store.commit("mutations-slide",!0)}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"member-setting"},[a("div",{staticClass:"minheight"},[a("v-nav",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"setting-con"},[a("div",{staticClass:"setting-container"},[a("el-switch",{model:{value:t.value,callback:function(e){t.value=e},expression:"value"}}),t._v(" "),a("span",{staticClass:"member-setting-txt"},[t._v("是否允许好办通过会员姓名、手机号和卡号搜索查询全品牌会员")])],1),t._v(" "),a("div",{staticClass:"save-btn"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveSet(2)}}},[t._v("保存")])],1)])],1),t._v(" "),a("div",{staticClass:"footer-box"},[a("vue-gic-footer")],1)])},staticRenderFns:[]};var u=a("C7Lr")(r,o,!1,function(t){a("n66h")},"data-v-04000bb2",null);e.default=u.exports},n66h:function(t,e){}});