webpackJsonp([68],{F1Rz:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("3E4D"),s=a("Ch4/"),o=a("PI0u"),n=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeName:"first",activeGroup:this.activeGroupId,wxEnterpriseRelatedId:JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId,myCustomData:{wmOrderShow:!1,damoOrderShow:!1},loading:!1}},methods:{submit:Object(o.a)(function(t){this.loading=!0,this.setData(t)},500),setData:function(t){var e=this,a={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,wmOrderShow:e.myCustomData.wmOrderShow?1:0,damoOrderShow:e.myCustomData.damoOrderShow?1:0};Object(n.d)("/haoban-app-customer-web/customer/save-consume-setting",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return r.a.showmsg("保存成功","success"),void e.getShowSet();s.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},getShowSet:function(t){var e=this,a={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(n.d)("/haoban-app-customer-web/customer/find-consume-setting",a).then(function(t){var a=t.data;1!=a.errorCode?s.a.errorMsg(a):a.result&&(a.result.wmOrderShow=1==a.result.wmOrderShow,a.result.damoOrderShow=1==a.result.damoOrderShow,e.myCustomData=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){this.getShowSet(this.brandId)}},mounted:function(){this.$emit("showTab","14"),this.getShowSet(this.brandId)},components:{}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.myCustomData.wmOrderShow,callback:function(e){t.$set(t.myCustomData,"wmOrderShow",e)},expression:"myCustomData.wmOrderShow"}},[t._v("展示微盟商城订单")]),t._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注：保存勾选项后，顾客详情 - 消费记录中将展示微盟商城交易成功的订单")])],1),t._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.myCustomData.damoOrderShow,callback:function(e){t.$set(t.myCustomData,"damoOrderShow",e)},expression:"myCustomData.damoOrderShow"}},[t._v("展示达摩商城订单")]),t._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注：保存勾选项后，顾客详情 - 消费记录中将展示达摩商城交易成功的订单")])],1),t._v(" "),a("div",{staticClass:"m-t-46 m-l-25"},[a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.submit("showFlag")}}},[t._v("保 存")])],1)])])},staticRenderFns:[]};var u=a("VU/8")(i,d,!1,function(t){a("tWyU")},"data-v-4781456e",null);e.default=u.exports},tWyU:function(t,e){}});