From de2e3cbb4389b933b27a65bafd6064192f2a3d9d Mon Sep 17 00:00:00 2001 From: chen <2659004835@qq.com> Date: Thu, 14 Apr 2022 18:30:07 +0800 Subject: [PATCH] =?UTF-8?q?request.js=E4=B8=ADtoken=E5=A4=B1=E6=95=88?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 6 +-- components/status-navs/status-nav-slot.vue | 3 +- components/status-navs/status-nav.vue | 15 ++----- jsFile/requst.js | 52 +++++++++++++++++++--- jsFile/tools.js | 16 +++---- pages/tabbar/pagehome/pagehome.vue | 2 +- 6 files changed, 61 insertions(+), 33 deletions(-) diff --git a/App.vue b/App.vue index 466b981..d86840c 100644 --- a/App.vue +++ b/App.vue @@ -10,13 +10,13 @@ onLaunch: function() { // 配置全局域名 // #ifdef APP-PLUS - getApp().globalData.hostapi = 'http://maintain.7and5.cn'; + this.globalData.hostapi = 'http://maintain.7and5.cn'; // #endif // #ifdef MP-WEIXIN - getApp().globalData.hostapi = 'http://maintain.7and5.cn'; + this.globalData.hostapi = 'http://maintain.7and5.cn'; // #endif // #ifdef H5 - getApp().globalData.hostapi = '/web'; + this.globalData.hostapi = '/web'; // #endif }, onShow: function() { diff --git a/components/status-navs/status-nav-slot.vue b/components/status-navs/status-nav-slot.vue index f05f447..9ef867e 100644 --- a/components/status-navs/status-nav-slot.vue +++ b/components/status-navs/status-nav-slot.vue @@ -105,8 +105,7 @@ // }).exec(); // 获取当前页面路径 - this.$toolAll.tools.obtainUrl(); - this.$toolAll.tools.obtainUrlParam(); + this.$toolAll.tools.obtainPagePath(); setTimeout(()=>{ this.ifNet = uni.getStorageSync('isNet'); },500) diff --git a/components/status-navs/status-nav.vue b/components/status-navs/status-nav.vue index b5316cb..5791bde 100644 --- a/components/status-navs/status-nav.vue +++ b/components/status-navs/status-nav.vue @@ -1,7 +1,7 @@