Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-program
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈玉桐
wx-program
Commits
9177a2c4
Commit
9177a2c4
authored
Oct 10, 2019
by
陈玉桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 首页
parent
e2a586dd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
index.js
pages/index/index.js
+4
-1
index.wxml
pages/index/index.wxml
+1
-1
index.wxss
pages/index/index.wxss
+0
-0
No files found.
pages/index/index.js
View file @
9177a2c4
...
@@ -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
:
'加载中'
,
...
...
pages/index/index.wxml
View file @
9177a2c4
...
@@ -267,7 +267,7 @@
...
@@ -267,7 +267,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<cover-view id="guide" wx:if="{{guideStatus==0}}" hidden="{{guide
Id>5 || guide
Status==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>
...
...
pages/index/index.wxss
View file @
9177a2c4
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment