From cda2c837fd0fd267c364e28759ec0d85990a58c4 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Fri, 10 Nov 2023 17:00:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dthis=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E5=9C=A8=E7=AE=AD=E5=A4=B4=E5=87=BD=E6=95=B0=E5=86=85=E4=BD=BF?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xxx --- pages/API/loading/loading.uvue | 4 +- pages/API/modal/modal.uvue | 302 +++++++++--------- pages/API/request/request.uvue | 2 +- .../set-custom-navigation-bar-color.uvue | 12 +- .../set-navigation-bar-color.uvue | 12 +- .../set-navigation-bar-title.uvue | 6 +- pages/API/toast/toast.uvue | 226 ++++++------- 7 files changed, 282 insertions(+), 282 deletions(-) diff --git a/pages/API/loading/loading.uvue b/pages/API/loading/loading.uvue index 6e6d0753..8429d945 100644 --- a/pages/API/loading/loading.uvue +++ b/pages/API/loading/loading.uvue @@ -85,7 +85,7 @@ mask: this.maskSelect }); } - setTimeout(function () { + setTimeout(() => { this.hideLoading(); }, 3000); }, @@ -94,4 +94,4 @@ } } } - \ No newline at end of file + diff --git a/pages/API/modal/modal.uvue b/pages/API/modal/modal.uvue index a2dab955..587786ae 100644 --- a/pages/API/modal/modal.uvue +++ b/pages/API/modal/modal.uvue @@ -1,151 +1,151 @@ - - \ No newline at end of file + + diff --git a/pages/API/request/request.uvue b/pages/API/request/request.uvue index cdf323c6..3028c1f2 100644 --- a/pages/API/request/request.uvue +++ b/pages/API/request/request.uvue @@ -239,4 +239,4 @@ } } } - \ No newline at end of file + diff --git a/pages/API/set-navigation-bar-color/set-custom-navigation-bar-color.uvue b/pages/API/set-navigation-bar-color/set-custom-navigation-bar-color.uvue index 5ba29c1c..8c99bca0 100644 --- a/pages/API/set-navigation-bar-color/set-custom-navigation-bar-color.uvue +++ b/pages/API/set-navigation-bar-color/set-custom-navigation-bar-color.uvue @@ -47,16 +47,16 @@ export default { uni.setNavigationBarColor({ frontColor: '#ffffff', backgroundColor: '#0000', - success() { + success: () => { this.navigationBarTextColor = '#fff' console.log('setNavigationBarColor success') this.setLifeCycleNum(state.lifeCycleNum + 1) }, - fail() { + fail: () => { console.log('setNavigationBarColor fail') this.setLifeCycleNum(state.lifeCycleNum - 1) }, - complete() { + complete: () => { console.log('setNavigationBarColor complete') this.setLifeCycleNum(state.lifeCycleNum + 1) } @@ -66,16 +66,16 @@ export default { uni.setNavigationBarColor({ frontColor: '#000000', backgroundColor: '#0000', - success() { + success: () => { this.navigationBarTextColor = '#000' console.log('setNavigationBarColor success') this.setLifeCycleNum(state.lifeCycleNum + 1) }, - fail() { + fail: () => { console.log('setNavigationBarColor fail') this.setLifeCycleNum(state.lifeCycleNum - 1) }, - complete() { + complete: () => { console.log('setNavigationBarColor complete') this.setLifeCycleNum(state.lifeCycleNum + 1) } diff --git a/pages/API/set-navigation-bar-color/set-navigation-bar-color.uvue b/pages/API/set-navigation-bar-color/set-navigation-bar-color.uvue index 30efdc46..fce17bab 100644 --- a/pages/API/set-navigation-bar-color/set-navigation-bar-color.uvue +++ b/pages/API/set-navigation-bar-color/set-navigation-bar-color.uvue @@ -24,15 +24,15 @@ export default { uni.setNavigationBarColor({ frontColor: '#ffffff', backgroundColor: '#00ff00', - success() { + success: () => { console.log('setNavigationBarColor success') this.setLifeCycleNum(state.lifeCycleNum + 1) }, - fail() { + fail: () => { console.log('setNavigationBarColor fail') this.setLifeCycleNum(state.lifeCycleNum - 1) }, - complete() { + complete: () => { console.log('setNavigationBarColor complete') this.setLifeCycleNum(state.lifeCycleNum + 1) } @@ -42,15 +42,15 @@ export default { uni.setNavigationBarColor({ frontColor: '#000000', backgroundColor: '#ff0000', - success() { + success: () => { console.log('setNavigationBarColor success') this.setLifeCycleNum(state.lifeCycleNum + 1) }, - fail() { + fail: () => { console.log('setNavigationBarColor fail') this.setLifeCycleNum(state.lifeCycleNum - 1) }, - complete() { + complete: () => { console.log('setNavigationBarColor complete') this.setLifeCycleNum(state.lifeCycleNum + 1) } diff --git a/pages/API/set-navigation-bar-title/set-navigation-bar-title.uvue b/pages/API/set-navigation-bar-title/set-navigation-bar-title.uvue index 00f2e8e1..f3a6ad1f 100644 --- a/pages/API/set-navigation-bar-title/set-navigation-bar-title.uvue +++ b/pages/API/set-navigation-bar-title/set-navigation-bar-title.uvue @@ -26,15 +26,15 @@ export default { setNavigationBarNewTitle() { uni.setNavigationBarTitle({ title: this.newTitle, - success() { + success: () => { console.log('setNavigationBarTitle success') this.setLifeCycleNum(state.lifeCycleNum + 1) }, - fail() { + fail: () => { console.log('setNavigationBarTitle fail') this.setLifeCycleNum(state.lifeCycleNum - 1) }, - complete() { + complete: () => { console.log('setNavigationBarTitle complete') this.setLifeCycleNum(state.lifeCycleNum + 1) } diff --git a/pages/API/toast/toast.uvue b/pages/API/toast/toast.uvue index ebdb2d57..b36ab0df 100644 --- a/pages/API/toast/toast.uvue +++ b/pages/API/toast/toast.uvue @@ -1,104 +1,104 @@ -