From b1a705e0f83e0d641b7aee5c455d24b64907bedc Mon Sep 17 00:00:00 2001 From: Gdpao <1341331954@qq.com> Date: Mon, 17 Aug 2020 16:57:23 +0800 Subject: [PATCH] gdpao --- App.vue | 8 +++++- components/index/video-item/index.vue | 4 ++- manifest.json | 4 +-- pageA/bindinges/bindinges.vue | 2 +- pageB/components/userinfo/index.vue | 8 +++++- pageB/details/index.vue | 36 +++++++++++++++++++++++++-- pageB/video/video.nvue | 34 ++++++++++++++++--------- pages/index/index.vue | 30 ++++++++++++++-------- 8 files changed, 95 insertions(+), 31 deletions(-) diff --git a/App.vue b/App.vue index 5182421..dab60a9 100644 --- a/App.vue +++ b/App.vue @@ -18,8 +18,14 @@ }) // 刷新token if (this.hasLogin) { - this.refreshToken_function(); + this.refreshToken_function(); } + // #ifdef APP-PLUS + //app关闭默认的启动 方法关闭启动图。但是这个时间不能太晚,6s 超时后依旧会主动关闭。 + setTimeout(()=>{ + plus.navigator.closeSplashscreen(); + },3000) + // #endif }, methods: { ...mapMutations(['loginIn']), diff --git a/components/index/video-item/index.vue b/components/index/video-item/index.vue index a9cfe18..27b5dbf 100644 --- a/components/index/video-item/index.vue +++ b/components/index/video-item/index.vue @@ -242,7 +242,9 @@ export default { if(res.errCode == 0) { this.$u.toast(res.message); this.$emit("updateList"); - } + } else { + this.$u.toast(res.message); + } }) }, toDetailsPage(id,type) { diff --git a/manifest.json b/manifest.json index 6916d64..7dc4eb3 100644 --- a/manifest.json +++ b/manifest.json @@ -11,8 +11,8 @@ "nvueCompiler" : "uni-app", "compilerVersion" : 3, "splashscreen" : { - "alwaysShowBeforeRender" : true, - "waiting" : true, + "alwaysShowBeforeRender" : false, + "waiting" : false, "autoclose" : true, "delay" : 0 }, diff --git a/pageA/bindinges/bindinges.vue b/pageA/bindinges/bindinges.vue index 549e2c5..7a95643 100644 --- a/pageA/bindinges/bindinges.vue +++ b/pageA/bindinges/bindinges.vue @@ -9,7 +9,7 @@ - + {{ is_sendcode ? time_count + "后可以重新发送" : "发送验证码" }} diff --git a/pageB/components/userinfo/index.vue b/pageB/components/userinfo/index.vue index 9f43448..c6e8df4 100644 --- a/pageB/components/userinfo/index.vue +++ b/pageB/components/userinfo/index.vue @@ -1,7 +1,7 @@