作者 刘朕

定位、预约优化

... ... @@ -115,8 +115,8 @@ Page({
lng: this.data.longitude,
};
app.post(url, params, header).then((res) => {
// console.log('打卡结果', res);
if (+res.is_success) {
console.log('打卡结果', res);
if (res.data.is_success) {
this.setData({
punchState: false,
'state_data.is_showSuccessModal': true,
... ...
... ... @@ -41,6 +41,7 @@ Page({
"XX-token": wx.getStorageSync('token')
};
let params = {
is_order_detail: 1,
page: this.data.page_number,
};
app.post(url,params,header).then((res) => {
... ...
... ... @@ -21,6 +21,7 @@ Page({
wx.hideLoading()
}, 1000);
}else {
console.log(22);
wx.checkSession({
success: function () {
console.log('未过期');
... ... @@ -59,6 +60,7 @@ Page({
wx.login({
success: function (res) {
// console.log(res)
console.log(11);
app.post(url, {
code: res.code
}, {}).then((ret) => {
... ...