Browse Source

修改挖掘话术添加多次点击问题

newyun
corala 2 years ago
parent
commit
017b913443
2 changed files with 38 additions and 37 deletions
  1. +1
    -1
      manifest.json
  2. +37
    -36
      pages/mine/details2.vue

+ 1
- 1
manifest.json View File

@@ -1,5 +1,5 @@
{
"name" : "去房智控管家",
"name" : "数智工牌",
"appid" : "__UNI__7A1611D",
"description" : "去房智控管家",
"versionName" : "1.1.0",


+ 37
- 36
pages/mine/details2.vue View File

@@ -818,44 +818,45 @@
this.wajueshow = true
return;
}
let flag = true
this.wajueshow = true
if(flag){
flag = false
}
uni.request({
url: config.service.addWordMining,
method: "post",
header: {
'content-type': 'application/json',
'Access-Token': uni.getStorageSync('weapp_session_login_data').token
},
data: {
"houseId": this.buildingID, // 楼盘id
"cusId": this.customerId, //客户id
"question": this.thewrongword, // 问题
"keywordsId": this.wordBiao.wordBiaoqianId, // 标签id
"level": this.wordBiao.level // 标签等级
},
success: (res) => {
// console.log(res)
flag = true;
if (res.data.code == 10000) {
uni.showToast({
title: '添加成功',
duration: 2000
});
this.wajueshow = false
} else {
uni.showToast({
title: res.data.message,
icon: 'none',
duration: 2000
});
this.wajueshow = false
if(!this.flag){
this.flag = true
uni.request({
url: config.service.addWordMining,
method: "post",
header: {
'content-type': 'application/json',
'Access-Token': uni.getStorageSync('weapp_session_login_data').token
},
data: {
"houseId": this.buildingID, // 楼盘id
"cusId": this.customerId, //客户id
"question": this.thewrongword, // 问题
"keywordsId": this.wordBiao.wordBiaoqianId, // 标签id
"level": this.wordBiao.level // 标签等级
},
success: (res) => {
// console.log(res)
this.flag = false;
if (res.data.code == 10000) {
uni.showToast({
title: '添加成功',
icon: 'none',
duration: 2000
});
this.wajueshow = false
} else {
uni.showToast({
title: res.data.message,
icon: 'none',
duration: 2000
});
this.wajueshow = false
}
}
}
})
})
}
},
// 挖掘话术分类树的选择
confirmTree(e) {


Loading…
Cancel
Save