From 017b913443f8d2d6d018cb95f7c775c57a710ee7 Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Fri, 19 Aug 2022 11:45:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=96=E6=8E=98=E8=AF=9D?= =?UTF-8?q?=E6=9C=AF=E6=B7=BB=E5=8A=A0=E5=A4=9A=E6=AC=A1=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 2 +- pages/mine/details2.vue | 73 +++++++++++++++++++++-------------------- 2 files changed, 38 insertions(+), 37 deletions(-) diff --git a/manifest.json b/manifest.json index 16c8fd4..16f44b9 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "name" : "去房智控管家", + "name" : "数智工牌", "appid" : "__UNI__7A1611D", "description" : "去房智控管家", "versionName" : "1.1.0", diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index 6bd4230..2a66bec 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -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) {