diff --git a/App.vue b/App.vue index bb3d74d..51ee35c 100644 --- a/App.vue +++ b/App.vue @@ -37,7 +37,11 @@ export default { that.G.watchUserPage(args.url); }, }); - + // 应用从后台返回时检查连接 + if (uni.getStorageSync("apply-token")) { + // console.log("app.vue 检查IM连接状态"); + that.checkAndReconnectIM(); + } uni.$on("isGlogin", function (data) { // console.log("app.vue 接收", data); if (uni.getStorageSync("apply-token")) { @@ -91,11 +95,6 @@ export default { }, 15 * 1000); } - // 应用从后台返回时检查连接 - if (uni.getStorageSync("apply-token")) { - // console.log("app.vue 检查IM连接状态"); - that.checkAndReconnectIM(); - } const updateManager = uni.getUpdateManager(); updateManager.onCheckForUpdate(function (res) { console.log("检测是否有新版本:", res.hasUpdate); @@ -175,7 +174,7 @@ export default { // console.log("IM连接已断开,尝试重连..."); that.reconnectIM(); } - } else if (uni.getStorageSync("apply-token") && uni.getStorageSync("apply-uid")) { + } else if (uni.getStorageSync("apply-token") ) { // console.log("IM SDK未初始化,重新初始化..."); that.initWyyx(); } @@ -551,11 +550,10 @@ page { padding-top: 90px; } -.g-rh-login-false-list{ - .bocai_btn_type_primary{ +.g-rh-login-false-list { + .bocai_btn_type_primary { background-color: #00b666 !important; border: 1px solid #00b666 !important; } } - diff --git a/components/list/job.vue b/components/list/job.vue index 9727748..de59200 100644 --- a/components/list/job.vue +++ b/components/list/job.vue @@ -2,15 +2,17 @@ - - + + + + + + - + @@ -119,7 +121,7 @@ - + @@ -162,10 +164,10 @@