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