Przeglądaj źródła

压缩图片大小减少主包体积

dev
douzhuo 2 lat temu
rodzic
commit
d6c0ef9fd1
3 zmienionych plików z 18 dodań i 15 usunięć
  1. +10
    -8
      pages/center/Piabodata/Customerportrait/Receivedetailabout.vue
  2. +5
    -5
      pages/center/Piabodata/Customerportrait/Receivingrecords.vue
  3. +3
    -2
      utils/domain.js

+ 10
- 8
pages/center/Piabodata/Customerportrait/Receivedetailabout.vue Wyświetl plik

@@ -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',


+ 5
- 5
pages/center/Piabodata/Customerportrait/Receivingrecords.vue Wyświetl plik

@@ -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}`
})
})
},
//搜索


+ 3
- 2
utils/domain.js Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz