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
f9987e18
Commit
f9987e18
authored
Oct 09, 2019
by
陈玉桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 首页跳转
parent
b979ed47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
index.js
pages/index/index.js
+12
-3
No files found.
pages/index/index.js
View file @
f9987e18
...
@@ -427,6 +427,15 @@ Page({
...
@@ -427,6 +427,15 @@ Page({
success
:
function
(
res
)
{
success
:
function
(
res
)
{
// 请求成功后关闭Loading
// 请求成功后关闭Loading
wx
.
hideLoading
();
wx
.
hideLoading
();
// 没有孩子跳转完善信息
if
(
res
.
data
.
errno
==
40010
){
wx
.
navigateTo
({
url
:
'/pages/childInfo/childInfo'
})
return
}
if
(
res
.
data
.
errno
==
200
){
if
(
res
.
data
.
errno
==
200
){
// 锁定设备警告状态
// 锁定设备警告状态
// 1:正常使用设备;
// 1:正常使用设备;
...
@@ -577,9 +586,9 @@ Page({
...
@@ -577,9 +586,9 @@ Page({
},
},
// 小目标
// 小目标
target
:
function
(){
target
:
function
(){
wx
.
navigateTo
({
//
wx.navigateTo({
url
:
'/pages/targetList/targetList'
//
url: '/pages/targetList/targetList'
})
//
})
},
},
// 立即关机
// 立即关机
PowerOff
:
function
()
{
PowerOff
:
function
()
{
...
...
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