Commit 5ff539a5 by lixiaomin

修改店铺商品信息特惠bug

parent 68779bae
......@@ -98,7 +98,7 @@ export default {
if(length >= 3){
this.$message.error('标签个数最多添加三个!');
}else{
this.tagValues=this.tagValues+inputValues;
this.tagValues=this.tagValues+inputValues;
if((this.goodsTagValue.length+this.tagValues.length)>13){
this.$message.error('标签总字符数量最大13!');
this.tagValues=this.tagValues.replace(inputValues,"");
......@@ -143,7 +143,7 @@ export default {
// 取消按钮
cancel() {
this.open = false;
this.reset();
//this.reset();
},
// 表单重置
reset() {
......@@ -151,7 +151,7 @@ export default {
this.resetForm("form");
},
openModal(data) {
console.log("data",data);
console.log("data",data);
this.goodsTagValue="";
this.form.goodsName = data.name
this.form.shopId = this.shopId
......@@ -160,13 +160,15 @@ export default {
this.form.discount = data.discount
this.form.type = 2;
this.recommendTagList=[];
this.tagValues="";
this.form.recommendPrice=null;
this.goodsTagList=data.goodsTagList;
if(this.goodsTagList.length>0){
for(let i=0;i<this.goodsTagList.length;i++){
this.goodsTagValue=this.goodsTagValue+this.goodsTagList[i];
}
}
this.open = true
this.open = true
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment