From 4a7938a2c51f6fdc59d53ddc1609660240b0909d Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 30 Dec 2024 17:36:04 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dapp=E8=BF=90=E8=A1=8Cpage?= =?UTF-8?q?.json=E6=96=87=E4=BB=B6=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages.json b/pages.json index 394d3ad..ab393d9 100644 --- a/pages.json +++ b/pages.json @@ -105,9 +105,9 @@ "path": "pages/me/index", "style": { "navigationBarTitleText": "我的", - "navigationStyle": "custom", + "navigationStyle": "custom" // #ifdef H5 - "enablePullDownRefresh": true + ,"enablePullDownRefresh": true // #endif } }, From d12f35e078bbb40a152336a0490f776fc7415ba8 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 30 Dec 2024 17:36:41 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E5=AF=B9=E9=83=A8=E5=88=86=E5=BD=B1?= =?UTF-8?q?=E5=93=8D=E8=BF=BD=E5=89=A7=E9=A1=B5=E9=9D=A2=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E8=AF=B7=E6=B1=82=E8=BF=9B=E8=A1=8C=E9=A2=9D=E5=A4=96?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/httpRequest.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/common/httpRequest.js b/common/httpRequest.js index 3683f5b..9adb7c2 100644 --- a/common/httpRequest.js +++ b/common/httpRequest.js @@ -1,8 +1,13 @@ import configdata from './config' import cache from './cache' import { - cacheClearAll + cacheClearAll,cacheClear } from '@/store/cashe.js' +function successCallBack(url){ + if(url.includes('app/courseCollect/insertCourseCollect')){ + cacheClear('chasingDrama') + } +} module.exports = { config: function(name) { var info = null; @@ -24,7 +29,6 @@ module.exports = { } } } - console.log(info); return info; }, logout: function() { @@ -152,7 +156,11 @@ module.exports = { success: function(result) { if (result.data.code == 401) { that.logout(); + }else{ + successCallBack(url) + // cacheClear('chasingDrama') } + succ.call(self, result.data) }, fail: function(e) { @@ -186,7 +194,6 @@ module.exports = { let that = this; header = header || "application/x-www-form-urlencoded"; url = that.config("APIHOST1") + url.replace(/^\//, ""); - console.log(url); // let token = uni.getStorageSync("token"); let token = uni.getStorageSync("token"); if (token) { From f237774e0e8a81779da7482818bd734533abcbe4 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 30 Dec 2024 17:38:00 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E7=BC=93=E5=AD=98=E6=B8=85=E9=99=A4?= =?UTF-8?q?=E5=85=A8=E9=83=A8=E6=96=B9=E6=B3=95=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- store/cashe.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/store/cashe.js b/store/cashe.js index e0c2657..fb24bcd 100644 --- a/store/cashe.js +++ b/store/cashe.js @@ -113,13 +113,9 @@ const $cache={ config:$cache_config } export function cacheClearAll() { - console.log($cache_index); - $cache_index.clear() - $cache_video.clear() - $cache_renwu.clear() - $cache_chasingDrama.clear() - $cache_user.clear() - $cache_config.clear() + for(let i in $cache){ + $cache[i].clear() + } } export function cacheClear(arr){ if(typeof arr==='string'&&$cache[arr]){ From 0da8cd5f3bd5b1f7f8fdfa3e6747345fa475fc4c Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 30 Dec 2024 17:38:46 +0800 Subject: [PATCH 4/9] =?UTF-8?q?=E8=BF=BD=E5=89=A7=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/chasingDrama/chasingDrama.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/pages/chasingDrama/chasingDrama.vue b/pages/chasingDrama/chasingDrama.vue index 6d3c3bf..a365038 100644 --- a/pages/chasingDrama/chasingDrama.vue +++ b/pages/chasingDrama/chasingDrama.vue @@ -113,7 +113,8 @@