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'; // 佳豪