From d6c0ef9fd15a5c8bdfcbc5b65215e0d453577c82 Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Mon, 9 May 2022 17:40:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=8B=E7=BC=A9=E5=9B=BE=E7=89=87=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E5=87=8F=E5=B0=91=E4=B8=BB=E5=8C=85=E4=BD=93=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Customerportrait/Receivedetailabout.vue | 18 ++++++++++-------- .../Customerportrait/Receivingrecords.vue | 10 +++++----- utils/domain.js | 5 +++-- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue index 26ee63a..848e53f 100644 --- a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue +++ b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue @@ -507,7 +507,7 @@ argtextindex1: 0, argtextindex2: 0, isSw: false, - info: {}, // 详细信息 + info: null, // 详细信息 }; }, filters: { @@ -527,6 +527,12 @@ } }, }, + + onLoad(options) { + if (options.info) this.info = JSON.parse(options.info); + this.customerId = options.customerId; + }, + onShow() { this.intention = false; this.kehuyixiangcenterindex = 0; @@ -545,14 +551,14 @@ var info = currPage.data.info; if (info) { info = info; - console.log('1') + console.log('1', info) } else { info = { bg: 0 } } - if (Object.keys(this.info).length > 0) { + if (this.info) { info = this.info } @@ -568,10 +574,6 @@ this.TimeUpdate() this.init(info) }, - onLoad(options) { - this.customerId = options.customerId; - if (options.info) this.info = JSON.parse(options.info); - }, // 在组件实例被从页面节点树移除时执行 destroyed: function() { //暂停 @@ -945,7 +947,7 @@ this.newluyinList = [] uni.request({ url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id + - "&bg=" + info.bg + "&speaker=" + this.roleindex, //仅为示例,并非真实接口地址。并非真实接口地址。 + "&bg=" + (info.bg || 0) + "&speaker=" + this.roleindex, //仅为示例,并非真实接口地址。并非真实接口地址。 method: "GET", header: { 'content-type': 'application/json', diff --git a/pages/center/Piabodata/Customerportrait/Receivingrecords.vue b/pages/center/Piabodata/Customerportrait/Receivingrecords.vue index 4e1a0e5..7ea6e2e 100644 --- a/pages/center/Piabodata/Customerportrait/Receivingrecords.vue +++ b/pages/center/Piabodata/Customerportrait/Receivingrecords.vue @@ -192,13 +192,8 @@ export default { this.getinit(); }, methods: { - //搜索 - searchinfo(){ - - }, toinfo(item){ - console.log(item) let parames = { marketingId: this.keywordIds, customerId: item.id, @@ -210,6 +205,11 @@ export default { uni.navigateTo({ url: `/pages/center/Piabodata/Customerportrait/Receivedetailabout?customerId=${item.id}&info=${JSON.stringify(items)}` }) + }).catch(e => { + uni.setStorageSync("entrance", 1); //写入缓存 + uni.navigateTo({ + url: `/pages/center/Piabodata/Customerportrait/Receivedetailabout?customerId=${item.id}` + }) }) }, //搜索 diff --git a/utils/domain.js b/utils/domain.js index d345381..e927a88 100644 --- a/utils/domain.js +++ b/utils/domain.js @@ -5,8 +5,9 @@ // const baseUrl = 'http://192.168.31.89:9090/api';// sh // const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站 // const baseUrl = 'http://192.168.31.92:8080/api';// 测试站 -const baseUrl = 'http://127.0.0.1:8080/autoSR/api';// 本地 -// const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 测试站 +// const baseUrl = 'http://127.0.0.1:8080/autoSR/api';// 本地 +// const baseUrl = 'http://192.168.31.244:8080/autoSR/api';// 本地 +const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 测试站 // const baseUrl = 'http://192.168.31.210:8080/api'; // 泽明 // const baseUrl = 'http://192.168.31.167:8080/autoSR/api'; // 长龙 // const baseUrl = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪