Commit 5ff539a5 by lixiaomin

修改店铺商品信息特惠bug

parent 68779bae
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
if(length >= 3){ if(length >= 3){
this.$message.error('标签个数最多添加三个!'); this.$message.error('标签个数最多添加三个!');
}else{ }else{
this.tagValues=this.tagValues+inputValues; this.tagValues=this.tagValues+inputValues;
if((this.goodsTagValue.length+this.tagValues.length)>13){ if((this.goodsTagValue.length+this.tagValues.length)>13){
this.$message.error('标签总字符数量最大13!'); this.$message.error('标签总字符数量最大13!');
this.tagValues=this.tagValues.replace(inputValues,""); this.tagValues=this.tagValues.replace(inputValues,"");
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
// 取消按钮 // 取消按钮
cancel() { cancel() {
this.open = false; this.open = false;
this.reset(); //this.reset();
}, },
// 表单重置 // 表单重置
reset() { reset() {
...@@ -151,7 +151,7 @@ export default { ...@@ -151,7 +151,7 @@ export default {
this.resetForm("form"); this.resetForm("form");
}, },
openModal(data) { openModal(data) {
console.log("data",data); console.log("data",data);
this.goodsTagValue=""; this.goodsTagValue="";
this.form.goodsName = data.name this.form.goodsName = data.name
this.form.shopId = this.shopId this.form.shopId = this.shopId
...@@ -160,13 +160,15 @@ export default { ...@@ -160,13 +160,15 @@ export default {
this.form.discount = data.discount this.form.discount = data.discount
this.form.type = 2; this.form.type = 2;
this.recommendTagList=[]; this.recommendTagList=[];
this.tagValues="";
this.form.recommendPrice=null;
this.goodsTagList=data.goodsTagList; this.goodsTagList=data.goodsTagList;
if(this.goodsTagList.length>0){ if(this.goodsTagList.length>0){
for(let i=0;i<this.goodsTagList.length;i++){ for(let i=0;i<this.goodsTagList.length;i++){
this.goodsTagValue=this.goodsTagValue+this.goodsTagList[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