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
0fb852cb
Commit
0fb852cb
authored
Oct 11, 2019
by
陈玉桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页增加下拉不刷新,跳转不返回
parent
2006d5ec
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
+13
-7
app.json
app.json
+1
-1
index.js
pages/index/index.js
+7
-3
index.json
pages/index/index.json
+3
-1
index.wxss
pages/index/index.wxss
+2
-2
No files found.
app.json
View file @
0fb852cb
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
"pages/targetList/targetList"
"pages/targetList/targetList"
],
],
"window"
:
{
"window"
:
{
"backgroundTextStyle"
:
"
light
"
,
"backgroundTextStyle"
:
"
dark
"
,
"navigationBarBackgroundColor"
:
"#353535"
,
"navigationBarBackgroundColor"
:
"#353535"
,
"navigationBarTitleText"
:
"欧欧家长端"
,
"navigationBarTitleText"
:
"欧欧家长端"
,
"navigationBarTextStyle"
:
"white"
"navigationBarTextStyle"
:
"white"
...
...
pages/index/index.js
View file @
0fb852cb
...
@@ -434,7 +434,7 @@ Page({
...
@@ -434,7 +434,7 @@ Page({
// 没有孩子跳转完善信息
// 没有孩子跳转完善信息
if
(
res
.
data
.
errno
==
40010
){
if
(
res
.
data
.
errno
==
40010
){
wx
.
navigate
To
({
wx
.
redirect
To
({
url
:
'/pages/childInfo/childInfo'
url
:
'/pages/childInfo/childInfo'
})
})
return
return
...
@@ -442,7 +442,7 @@ Page({
...
@@ -442,7 +442,7 @@ Page({
// 没有视力信息跳转初始视力
// 没有视力信息跳转初始视力
if
(
res
.
data
.
errno
==
4001
){
if
(
res
.
data
.
errno
==
4001
){
wx
.
navigate
To
({
wx
.
redirect
To
({
url
:
'/pages/eyesight/eyesight'
url
:
'/pages/eyesight/eyesight'
})
})
return
return
...
@@ -850,5 +850,8 @@ Page({
...
@@ -850,5 +850,8 @@ Page({
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'/pages/out/out?url='
+
e
.
currentTarget
.
dataset
.
url
url
:
'/pages/out/out?url='
+
e
.
currentTarget
.
dataset
.
url
})
})
}
},
onPullDownRefresh
:
function
()
{
wx
.
stopPullDownRefresh
();
},
})
})
\ No newline at end of file
pages/index/index.json
View file @
0fb852cb
{
{
"usingComponents"
:
{
"usingComponents"
:
{
"ec-canvas"
:
"../../component/ec-canvas/ec-canvas"
"ec-canvas"
:
"../../component/ec-canvas/ec-canvas"
}
},
"enablePullDownRefresh"
:
true
}
}
\ No newline at end of file
pages/index/index.wxss
View file @
0fb852cb
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
height: 20rpx;
height: 20rpx;
}
}
.swiperBox{
.swiperBox{
padding: 20rpx 20rpx;
padding:
10rpx
20rpx 20rpx;
height: 2
1
0rpx;
height: 2
2
0rpx;
background-color: #e6ece5;
background-color: #e6ece5;
}
}
.swiperCon{
.swiperCon{
...
...
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