Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
walk_daka_wx
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
穆启卓
walk_daka_wx
Commits
3ad20622
Commit
3ad20622
authored
Apr 22, 2019
by
穆启卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释1分钟提交限制
parent
2c922037
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
index.js
pages/index/index.js
+8
-8
No files found.
pages/index/index.js
View file @
3ad20622
...
@@ -191,14 +191,14 @@ Page({
...
@@ -191,14 +191,14 @@ Page({
// 用户点击提交步数打卡1(处理授权情况)
// 用户点击提交步数打卡1(处理授权情况)
clickStepData
()
{
clickStepData
()
{
console
.
log
(
'clickStepData'
)
console
.
log
(
'clickStepData'
)
if
(
!
this
.
data
.
reCheck
&&
!
this
.
data
.
isFirstReq
&&
wx
.
getStorageSync
(
'getStepLoading'
)
&&
Date
.
now
()
-
wx
.
getStorageSync
(
'getStepLoading'
)
<
60000
)
{
//
if (!this.data.reCheck && !this.data.isFirstReq && wx.getStorageSync('getStepLoading') && Date.now() - wx.getStorageSync('getStepLoading') < 60000) {
wx
.
showToast
({
//
wx.showToast({
title
:
'已是最新步数,建议前往微信运动获取最新步数再返回同步'
,
//
title: '已是最新步数,建议前往微信运动获取最新步数再返回同步',
icon
:
'none'
,
//
icon: 'none',
duration
:
2000
//
duration: 2000
});
//
});
return
;
//
return;
}
//
}
let
needStepAuth
=
(
reCheck
)
=>
{
let
needStepAuth
=
(
reCheck
)
=>
{
wx
.
authorize
({
// 调起授权窗口
wx
.
authorize
({
// 调起授权窗口
scope
:
'scope.werun'
,
scope
:
'scope.werun'
,
...
...
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