Commit 3ad20622 by 穆启卓

注释1分钟提交限制

parent 2c922037
......@@ -191,14 +191,14 @@ Page({
// 用户点击提交步数打卡1(处理授权情况)
clickStepData() {
console.log('clickStepData')
if (!this.data.reCheck && !this.data.isFirstReq && wx.getStorageSync('getStepLoading') && Date.now() - wx.getStorageSync('getStepLoading') < 60000) {
wx.showToast({
title: '已是最新步数,建议前往微信运动获取最新步数再返回同步',
icon: 'none',
duration: 2000
});
return;
}
// if (!this.data.reCheck && !this.data.isFirstReq && wx.getStorageSync('getStepLoading') && Date.now() - wx.getStorageSync('getStepLoading') < 60000) {
// wx.showToast({
// title: '已是最新步数,建议前往微信运动获取最新步数再返回同步',
// icon: 'none',
// duration: 2000
// });
// return;
// }
let needStepAuth = (reCheck) => {
wx.authorize({ // 调起授权窗口
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