Commit 42af69ed authored by zhengke's avatar zhengke

修改

parent ae806b5a
...@@ -338,7 +338,21 @@ ...@@ -338,7 +338,21 @@
this.signMsg.FirstShopLinkManList.push(JSON.parse(JSON.stringify(this.pMsg))); this.signMsg.FirstShopLinkManList.push(JSON.parse(JSON.stringify(this.pMsg)));
this.isShowAdd=false; this.isShowAdd=false;
}else{ }else{
this.signMsg.FirstShopLinkManList[this.EditIndex]=JSON.parse(JSON.stringify(this.pMsg)); this.signMsg.FirstShopLinkManList[this.EditIndex]=JSON.parse(JSON.stringify(this.pMsg));
if(this.signMsg.FirstShopLinkManList[this.EditIndex].LinkMan==''){
uni.showToast({
title: '请输入姓名',
icon: 'none'
})
return
}
if(this.signMsg.FirstShopLinkManList[this.EditIndex].LinkTel==''){
uni.showToast({
title: '请输入联系手机号',
icon: 'none'
})
return
}
this.isShowAdd=false; this.isShowAdd=false;
} }
}, },
...@@ -365,7 +379,8 @@ ...@@ -365,7 +379,8 @@
if (res.confirm) { if (res.confirm) {
that.signMsg.FirstShopLinkManList.splice(index,1); that.signMsg.FirstShopLinkManList.splice(index,1);
that.clearInput(); that.clearInput();
that.isShowAdd=false; that.isShowAdd=true;
that.isEdit=false;
} else if (res.cancel) { } else if (res.cancel) {
} }
}, },
......
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