From ee04a8cb089288a88f4fb17e009222e6d82d8dc0 Mon Sep 17 00:00:00 2001 From: Gdpao <1341331954@qq.com> Date: Tue, 18 Aug 2020 15:24:06 +0800 Subject: [PATCH] gdpaoup --- components/index/video-item/index.vue | 30 ++++++++++++++++++++------- pageA/login/login.vue | 8 +++---- pageE/mine/ArticleDetails.vue | 29 +++++++++++++++++++++----- pages.json | 11 +++++++++- 4 files changed, 60 insertions(+), 18 deletions(-) diff --git a/components/index/video-item/index.vue b/components/index/video-item/index.vue index 27b5dbf..35fbdad 100644 --- a/components/index/video-item/index.vue +++ b/components/index/video-item/index.vue @@ -1,9 +1,12 @@ @@ -26,11 +28,11 @@ import common from '@/static/js/common.js' export default { data() { return { - version: "", - phone_type: "", type: 1, nodes: "", - show: false, + version: "", + show: false, + phone_type: "", } }, onLoad(option) { @@ -43,6 +45,17 @@ export default { this.getVersion(); this.phone_type = this.$u.os(); }, + onBackPress() { + if (this.show) { + this.show = !this.show; + } else { + return false; + } + return true; + }, + onNavigationBarButtonTap(e) { + console.log(e); + }, methods: { setTitle(title){ uni.setNavigationBarTitle({ @@ -129,4 +142,10 @@ page { font-size: 22rpx; } } +.u-content { + padding: 20rpx; + font-size: 30rpx; + text-indent: 1rem; + line-height: 1.2; +} \ No newline at end of file diff --git a/pages.json b/pages.json index 51da0ec..8c36d72 100644 --- a/pages.json +++ b/pages.json @@ -610,7 +610,16 @@ "titleSize": "36px", "titleNView": { "titleColor": "#333333", - "backgroundColor": "#FFFFFF" + "backgroundColor": "#FFFFFF", + "buttons": [ + { + "width": "0", + "type":"none", + "text":"关闭", + "float":"right", + "fontSize":"14" + } + ] } } } -- 2.45.2