Commit e1f13869 authored by wangxuelai's avatar wangxuelai

'小程序流程改版上线'

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