(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-07f19863"],{1194:function(t,s,e){"use strict";e.r(s);var i=e("9ab4"),o=e("1b40"),a=e("b3ad"),c=e("f175");let n=class extends o.e{constructor(){super(...arguments),this.goodsSettings={image:"",is_show:0,show_price:0}}getGoodsSettings(){c.a.get("/settings.goods.goods_settings/getConfig").then(t=>{this.goodsSettings=t}).catch(()=>{})}putGoodsSettings(){var t;(t=this.goodsSettings,c.a.post("/settings.goods.goods_settings/setConfig",t)).then(t=>{this.getGoodsSettings()}).catch(()=>{})}created(){this.getGoodsSettings()}};n=Object(i.a)([Object(o.a)({components:{MaterialSelect:a.a}})],n);var l=n,g=(e("6531"),e("2877")),d=Object(g.a)(l,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-goods"},[e("el-form",{ref:"goodsSettingsRef",attrs:{model:t.goodsSettings,"label-width":"120px",size:"small"}},[e("div",{staticClass:"ls-card"},[e("div",{staticClass:"card-title"},[t._v("商品信息")]),e("div",{staticClass:"card-content m-t-24"},[e("el-form-item",{attrs:{label:"商品详情显示库存"}},[e("div",{staticClass:"flex"},[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.styleConfig.primary,"inactive-color":"#f4f4f5"},model:{value:t.goodsSettings.is_show,callback:function(s){t.$set(t.goodsSettings,"is_show",s)},expression:"goodsSettings.is_show"}}),e("span",{staticClass:"m-l-16"},[t._v(t._s(t.goodsSettings.is_show?"显示":"不显示"))])],1),e("div",{staticClass:"muted xs"},[t._v("商品详情显示剩余库存数量，默认不显示")])]),e("el-form-item",{attrs:{label:"商品划线价显示"}},[e("div",{staticClass:"flex"},[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.styleConfig.primary,"inactive-color":"#f4f4f5"},model:{value:t.goodsSettings.show_price,callback:function(s){t.$set(t.goodsSettings,"show_price",s)},expression:"goodsSettings.show_price"}}),e("span",{staticClass:"m-l-16"},[t._v(t._s(t.goodsSettings.show_price?"显示":"不显示"))])],1),e("div",{staticClass:"muted xs"},[t._v("默认显示，设置为不显示则商城的商品都不显示划线价，包括列表页")]),e("div",{staticClass:"muted xs"},[t._v("注：划线价实际是原价")])])],1)])]),e("div",{staticClass:"bg-white ls-fixed-footer"},[e("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(s){return t.putGoodsSettings()}}},[t._v("保存")])],1)])],1)}),[],!1,null,"10e7f9d2",null);s.default=d.exports},6531:function(t,s,e){"use strict";e("f3af")},f3af:function(t,s,e){}}]);