Commit 9177a2c4 by 陈玉桐

fix 首页

parent e2a586dd
...@@ -401,7 +401,7 @@ Page({ ...@@ -401,7 +401,7 @@ Page({
lastVision: '',//训练成就旧视力 lastVision: '',//训练成就旧视力
nowVision: '',//训练成就新视力 nowVision: '',//训练成就新视力
guideStatus: '',//是否进行过新手引导 1:已经引导过 0:未引导过 guideStatus: 1,//是否进行过新手引导 1:已经引导过 0:未引导过
guideId: 1,//引导顺序 guideId: 1,//引导顺序
}, },
onReady() { onReady() {
...@@ -816,6 +816,9 @@ Page({ ...@@ -816,6 +816,9 @@ Page({
scrollTop: 0, scrollTop: 0,
duration: 0 duration: 0
}) })
this.setData({
guideStatus: 1
})
// 请求前加Loading // 请求前加Loading
wx.showLoading({ wx.showLoading({
title: '加载中', title: '加载中',
......
...@@ -267,7 +267,7 @@ ...@@ -267,7 +267,7 @@
</view> </view>
</view> </view>
</view> </view>
<cover-view id="guide" wx:if="{{guideStatus==0}}" hidden="{{guideId>5 || guideStatus==1}}" catchtouchmove="preventTouchMove" bindtap="guide"> <cover-view id="guide" wx:if="{{guideStatus==0}}" hidden="{{guideStatus==1}}" catchtouchmove="preventTouchMove" bindtap="guide">
<cover-image id="guide1" hidden="{{guideId!=1}}" src="../../assets/guide1.png"></cover-image> <cover-image id="guide1" hidden="{{guideId!=1}}" src="../../assets/guide1.png"></cover-image>
<cover-image id="guide2" hidden="{{guideId!=2}}" src="../../assets/guide2.png"></cover-image> <cover-image id="guide2" hidden="{{guideId!=2}}" src="../../assets/guide2.png"></cover-image>
<cover-image id="guide3" hidden="{{guideId!=3}}" src="../../assets/guide3.png"></cover-image> <cover-image id="guide3" hidden="{{guideId!=3}}" src="../../assets/guide3.png"></cover-image>
......
...@@ -652,4 +652,4 @@ ...@@ -652,4 +652,4 @@
left: 0; left: 0;
width: 100%; width: 100%;
height: 416rpx; height: 416rpx;
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment