define({
name:"cultural_space",
template:`
关闭
开启
不开启
开启
赠送贡献值比例在文创空间基本设置中同意设置
`,
style:`
.ladder-content{
min-width: 550px!important;
}
.ladder-content .ladder-row{
margin-bottom: 5px!important;
}
.ladder-content .ladder-row .ladder-input{
width: 230px!important;
}
`,
props: {
form: {
default() {
return {}
}
}
},
data() {
return {
json: {
is_open: 0,// 当前商品是否参与文创空间:0=未开启,1=开启
is_give_contribution: 0,// 是否赠送贡献值:0=不赠送,1=赠送
is_fund_open: 0,// 是否赠送贡献值:0=不赠送,1=赠送
}
}
},
watch: { },
mounted() {
if (this.form) {
let cultural_space = this.form || {};
console.log('商品权重值设置信息');
console.log(cultural_space);
this.json.is_open = cultural_space.is_open ? cultural_space.is_open : 0;
this.json.is_give_contribution = cultural_space.is_give_contribution ? cultural_space.is_give_contribution : 0;
this.json.is_fund_open = cultural_space.is_fund_open ? cultural_space.is_fund_open : 0;
}
},
methods:{
validate(){
return this.json;
}
}
})