@@ -127,7 +127,8 @@
message: "",
userId: this.$store.state.user.userId,
goodsDetail: {},
- ids: {}
+ ids: {},
+ sendBool: true
}
},
onLoad(pam) {
@@ -263,6 +264,10 @@
this.scrollTop = e.detail.scrollTop
send() {
+ if (!this.sendBool) {
+ return
+ }
+ this.sendBool = false
if (this.pam.goodsId && this.$store.state.user.userId && this.message) {
api.postJson('/user/talk/send', {
message: this.message,
@@ -279,7 +284,12 @@
}, false).then(res => {
this.message = ""
this.getNewList()
+ this.sendBool = true
+ }).catch(() => {
})
+ } else {
goFpzn(item) {