webpackJsonp([36],{WwKQ:function(e,t){},ae7D:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("WSiR"),s=a("AKaA"),c=a("8V46"),n=a("9r/T"),m={components:{"v-nav":i.a},data:function(){return{navpath:[{name:"首页",path:""},{name:"微信会员",path:"/wechatmembers"},{name:"会员设置",path:""}],value:!1,actionUrl:"http://gicdev.demogic.com/api-marketing/upload-game-image",dialogVisible:!1,maxlength:5,dialogImageUrl:"",imageList:[{url:"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1537965482912&di=a6fc96e35e75b37ef01afa6e2dde925b&imgtype=0&src=http%3A%2F%2Fe.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2F2cf5e0fe9925bc316045679855df8db1cb137091.jpg"},{url:"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1537965522381&di=f259f5996e42a9abfac2d0f12798440c&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201412%2F04%2F20141204221313_uWxYi.jpeg"}]}},methods:{uploadOnSuccess:function(e){this.imageList.push(e)},deleteImage:function(e){this.imageList.splice(e,1)},saveSet:function(e){var t=this;Object(s.a)("/api-member/members-setting",{optype:e,appStatus:this.value?1:0}).then(function(a){0===a.data.errorCode?(1==a.data.result.appStatus&&(t.value=!0),2==e&&(t.$message({message:"设置成功！",type:"success"}),Object(n.setTimeout)(function(){t.$router.push({path:"/wechatmembers"})},1e3))):Object(c.a)(a.data.message)})}},created:function(){this.saveSet(1),this.$store.commit("mutations-slide",!0)}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"member-setting"},[a("div",{staticClass:"minheight"},[a("v-nav",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"setting-con"},[a("div",{staticClass:"setting-container"},[a("el-switch",{model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}),e._v(" "),a("span",{staticClass:"member-setting-txt"},[e._v("是否允许好办通过会员姓名、手机号和卡号搜索查询全品牌会员")])],1),e._v(" "),a("div",{staticClass:"save-btn"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveSet(2)}}},[e._v("保存")])],1)]),e._v(" "),a("div",{staticClass:"upload-image"},[a("vue-gic-upload-image",{attrs:{actionUrl:e.actionUrl,imageList:e.imageList,maxImageLength:e.maxlength},on:{uploadOnSuccess:e.uploadOnSuccess,deleteImage:e.deleteImage}})],1)],1),e._v(" "),a("div",{staticClass:"footer-box"},[a("vue-gic-footer")],1)])},staticRenderFns:[]};var u=a("C7Lr")(m,o,!1,function(e){a("WwKQ")},"data-v-27b3c864",null);t.default=u.exports}});