From 506322fc0bfb0e10e386533e02306f4b4f27a20c Mon Sep 17 00:00:00 2001 From: yuexin Date: Tue, 3 Dec 2019 19:38:54 +0800 Subject: [PATCH] change css --- src/pages/details/index.vue | 47 +++++++++++++++++++++++++++++-------- src/pages/index/index.vue | 4 ++-- src/pages/result/index.vue | 36 +++++++++++++++++++++++----- 3 files changed, 69 insertions(+), 18 deletions(-) diff --git a/src/pages/details/index.vue b/src/pages/details/index.vue index 44b905e..c40a76c 100644 --- a/src/pages/details/index.vue +++ b/src/pages/details/index.vue @@ -5,7 +5,7 @@
- 测试 + 测试 题目
@@ -22,11 +22,13 @@
-
-
-
大家都在测
-
更多>>
+
+
+ 大家都在测
+
更多>>
+
+
@@ -63,12 +65,13 @@ export default { }, onShow() { let tmpData = this.$mp.page.data['$root']; - if (tmpData) { + if (tmpData && tmpData[0]) { this._id = tmpData[0]._id; this.maker = tmpData[0].maker; this.hotList = tmpData[0].hotList; this.users = tmpData[0].users; } + wx.pageScrollTo({scrollTop: 0}); }, mounted() { this.getData() @@ -124,7 +127,7 @@ export default { diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index c6d3134..ba58162 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -306,9 +306,9 @@ export default { font-size: 28rpx; font-weight: 700; background-color:#ffdc34; - height:48rpx; + height:52rpx; padding:0rpx 32rpx; - line-height:48rpx; + line-height:52rpx; color:#FAFAD2; } .r { diff --git a/src/pages/result/index.vue b/src/pages/result/index.vue index 1aff446..0f4362b 100644 --- a/src/pages/result/index.vue +++ b/src/pages/result/index.vue @@ -48,11 +48,13 @@
-
-
-
大家都在测
-
更多>>
+
+
+ 大家都在测
+
更多>>
+
+
@@ -276,7 +278,7 @@ export default {