Commit 3ad20622 by 穆启卓

注释1分钟提交限制

parent 2c922037
...@@ -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',
......
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