From 88c573205ec601ba9c56549c65334d710a763bab Mon Sep 17 00:00:00 2001 From: wangxiaohua <1214073490@qq.com> Date: Tue, 16 Nov 2021 17:27:04 +0800 Subject: [PATCH] init --- config.js | 4 ++-- .../Customerportrait/Receivedetailabout.vue | 20 +++++++++------- pages/center/records/index.vue | 4 ++-- pages/learning/Thefulltext/index.vue | 13 ++++++---- pages/learning/Thefulltext/index2.vue | 14 +++++++---- pages/mine/details.vue | 6 +++++ pages/mine/details2.vue | 24 ++++++++++--------- utils/http.js | 4 ++-- 8 files changed, 56 insertions(+), 33 deletions(-) diff --git a/config.js b/config.js index e94ab8d..a3c49f3 100644 --- a/config.js +++ b/config.js @@ -6,8 +6,8 @@ // var host = 'http://192.168.31.169:8080/autoSR/api'; // 长龙 // var host = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 // var host = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 -var host = 'https://zkgj.quhouse.com/api'; // 质控正式 -// var host = 'https://hfju.com/api'; // 数智正式 +// var host = 'https://zkgj.quhouse.com/api'; // 质控正式 +var host = 'https://hfju.com/api'; // 数智正式 var iMServiceHost = 'https://im.quhouse.com/'; //IM的后端地址正式 diff --git a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue index 0e2a19d..ab28549 100644 --- a/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue +++ b/pages/center/Piabodata/Customerportrait/Receivedetailabout.vue @@ -507,12 +507,16 @@ }, // 在组件实例被从页面节点树移除时执行 destroyed: function() { - if (this.innerAudioContext) { - this.innerAudioContext.destroy(); - } + //暂停 + this.innerAudioContext.pause() + // 销毁 + this.innerAudioContext.destroy(); }, // 销毁实例 onUnload: function() { + //暂停 + this.innerAudioContext.pause() + // 销毁 this.innerAudioContext.destroy(); }, methods: { @@ -1610,11 +1614,11 @@ } .bottombox{ width: 100%; - height: 150rpx; + height: 170rpx; border-top: 1px solid #E0E0E0; .bottomhead{ width: 100%; - height: 61rpx; + height: 81rpx; border-bottom: 1px solid #E0E0E0; display: flex; justify-content: space-between; @@ -1634,15 +1638,15 @@ .audio-time { width: 110rpx; text-align: right; - font-size: 24rpx; + font-size: 26rpx; line-height: 28rpx; color: #70798D; display: flex; justify-content: space-between; } .audio-play { - width: 40rpx; - height: 40rpx; + width: 48rpx; + height: 48rpx; flex-shrink: 0; } .audio-play .image { diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue index 8fbbb33..11ecef2 100644 --- a/pages/center/records/index.vue +++ b/pages/center/records/index.vue @@ -212,8 +212,7 @@ soltishow:false, orderBy:'', methodsisshow:false, - userInfo:{} - + userInfo:{}, } }, onLoad(options) { @@ -234,6 +233,7 @@ }, onShow() { + this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); if(this.userInfo.dataCode==6 || this.userInfo.dataCode==3){ this.methodsisshow=false; diff --git a/pages/learning/Thefulltext/index.vue b/pages/learning/Thefulltext/index.vue index 1dcf4a2..66d5d87 100644 --- a/pages/learning/Thefulltext/index.vue +++ b/pages/learning/Thefulltext/index.vue @@ -234,11 +234,16 @@ // 在组件实例被从页面节点树移除时执行 destroyed: function() { clearTimeout(this.timer) - if (this.innerAudioContext) { - this.innerAudioContext.destroy(); - } + //暂停 + this.innerAudioContext.pause() + // 销毁 + this.innerAudioContext.destroy(); }, - onUnload:function(){ + // 销毁实例 + onUnload: function() { + //暂停 + this.innerAudioContext.pause() + // 销毁 this.innerAudioContext.destroy(); }, methods: { diff --git a/pages/learning/Thefulltext/index2.vue b/pages/learning/Thefulltext/index2.vue index 2d4157f..eae2151 100644 --- a/pages/learning/Thefulltext/index2.vue +++ b/pages/learning/Thefulltext/index2.vue @@ -269,13 +269,19 @@ // 在组件实例被从页面节点树移除时执行 destroyed: function() { clearTimeout(this.timer) - if (this.innerAudioContext) { - this.innerAudioContext.destroy(); - } + //暂停 + this.innerAudioContext.pause() + // 销毁 + this.innerAudioContext.destroy(); }, - onUnload:function(){ + // 销毁实例 + onUnload: function() { + //暂停 + this.innerAudioContext.pause() + // 销毁 this.innerAudioContext.destroy(); }, + methods: { toKeywordsearch(){ this.innerAudioContext.destroy(); diff --git a/pages/mine/details.vue b/pages/mine/details.vue index e962fdd..95f94e7 100644 --- a/pages/mine/details.vue +++ b/pages/mine/details.vue @@ -310,10 +310,16 @@ }, // 在组件实例被从页面节点树移除时执行 destroyed: function() { + //暂停 + this.innerAudioContext.pause() + // 销毁 this.innerAudioContext.destroy(); }, // 销毁实例 onUnload: function() { + //暂停 + this.innerAudioContext.pause() + // 销毁 this.innerAudioContext.destroy(); }, methods: { diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index f0ac075..99a4a8d 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -505,7 +505,7 @@ effectiveitext:'', textItself:'', argtextindex1:0, - argtextindex2:0 + argtextindex2:0, }; }, onLoad: function(options) { @@ -522,8 +522,6 @@ this.Menulistisshow=true; } }) - - this.intention=false; this.kehuyixiangcenterindex=0; this.buildingID = uni.getStorageSync('buildingID').id; @@ -560,12 +558,16 @@ }, // 在组件实例被从页面节点树移除时执行 destroyed: function() { - if (this.innerAudioContext) { - this.innerAudioContext.destroy(); - } + //暂停 + this.innerAudioContext.pause() + // 销毁 + this.innerAudioContext.destroy(); }, // 销毁实例 onUnload: function() { + //暂停 + this.innerAudioContext.pause() + // 销毁 this.innerAudioContext.destroy(); }, methods: { @@ -1804,11 +1806,11 @@ } .bottombox{ width: 100%; - height: 150rpx; + height: 170rpx; border-top: 1px solid #E0E0E0; .bottomhead{ width: 100%; - height: 61rpx; + height: 81rpx; border-bottom: 1px solid #E0E0E0; display: flex; justify-content: space-between; @@ -1828,15 +1830,15 @@ .audio-time { width: 110rpx; text-align: right; - font-size: 24rpx; + font-size: 26rpx; line-height: 28rpx; color: #70798D; display: flex; justify-content: space-between; } .audio-play { - width: 40rpx; - height: 40rpx; + width: 48rpx; + height: 48rpx; flex-shrink: 0; } .audio-play .image { diff --git a/utils/http.js b/utils/http.js index 761ef4c..15d55eb 100644 --- a/utils/http.js +++ b/utils/http.js @@ -3,8 +3,8 @@ // const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙 // const baseUrl = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪 // const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏 -const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 -// const baseUrl = 'https://hfju.com/api'; // 数智正式 +// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 +const baseUrl = 'https://hfju.com/api'; // 数智正式 const install = (Vue, vm) => { Vue.prototype.$u.http.setConfig({