@@ -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 @@