Commit e1f13869 authored by wangxuelai's avatar wangxuelai

'小程序流程改版上线'

parent 75874ec8
...@@ -851,15 +851,14 @@ Page({ ...@@ -851,15 +851,14 @@ Page({
}) })
return; return;
} }
// if(this.compareSmallTime(_params.clock_start_time,_params.clock_end_time)){ if (this.data.calendarThemeAdInfo.id == 0) {
// wx.showModal({ wx.showToast({
// title: '提示', title: '请选择打卡营销页',
// content: '限制打卡时间段结束时间要大于开始时间', duration: 1500,
// confirm: true, icon: 'none',
// showCancel: false })
// }) return;
// return; }
// }
if (this.data.submiting) { if (this.data.submiting) {
return return
} }
......
...@@ -961,6 +961,14 @@ Page({ ...@@ -961,6 +961,14 @@ Page({
title: "获取手机号失败", title: "获取手机号失败",
icon: "none" icon: "none"
}); });
wx.login({
success(res) {
const sessionCode = res.code;
that.setData({
sessionCode: sessionCode
});
}
});
} else { } else {
//允许授权执行跳转 //允许授权执行跳转
that.setData({ that.setData({
...@@ -1028,9 +1036,25 @@ Page({ ...@@ -1028,9 +1036,25 @@ Page({
url: `/src/pages/calendarthemeindex/index?tid=${this.data.themeSelect.id}&sid=${this.data.sid}` url: `/src/pages/calendarthemeindex/index?tid=${this.data.themeSelect.id}&sid=${this.data.sid}`
}); });
} else { } else {
wx.login({
success(res) {
const sessionCode = res.code;
that.setData({
sessionCode: sessionCode
});
}
});
} }
}) })
.catch(err => { .catch(err => {
wx.login({
success(res) {
const sessionCode = res.code;
that.setData({
sessionCode: sessionCode
});
}
});
console.log(err); console.log(err);
}); });
} }
......
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