|
|
|
@ -15,14 +15,15 @@ Page({ |
|
|
|
onLoad: function (options) { // 实例化腾讯地图API核心类
|
|
|
|
let that = this; |
|
|
|
qqmapsdk = new QQMapWX({ |
|
|
|
// 二号家政
|
|
|
|
key: 'C5KBZ-RISKD-INW4P-PWYQJ-QC6C7-BQBGC' |
|
|
|
//微信正式用 key:'JN7BZ-MJBK5-52SIH-QOKGH-FJE5F-IWFGG'
|
|
|
|
}); |
|
|
|
wx.getStorage({ |
|
|
|
key: 'merchantNo', |
|
|
|
success: function (res) { |
|
|
|
console.log(res.data) |
|
|
|
if (res.data == '') { |
|
|
|
console.log(1111); |
|
|
|
// 页面渲染完成
|
|
|
|
var tt = this; |
|
|
|
setTimeout(function () { |
|
|
|
@ -41,14 +42,13 @@ Page({ |
|
|
|
} else { |
|
|
|
//未授权
|
|
|
|
wx.navigateTo({ |
|
|
|
url: '../city/city/?1', |
|
|
|
url: '../city/city/', |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
} else { |
|
|
|
console.log(6666); |
|
|
|
wx.switchTab({ |
|
|
|
url: '../index/index' |
|
|
|
}) |
|
|
|
@ -56,37 +56,11 @@ Page({ |
|
|
|
that.setData({ |
|
|
|
merchantNo: res.data |
|
|
|
}) |
|
|
|
console.log(222); |
|
|
|
// that.setData({ userName: res.data });
|
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
onReady: function () { |
|
|
|
// // 页面渲染完成
|
|
|
|
// var tt = this;
|
|
|
|
// setTimeout(function () {
|
|
|
|
// tt.setData({
|
|
|
|
// hiddenLoading: true
|
|
|
|
// });
|
|
|
|
// tt.update();
|
|
|
|
// }, 2000);
|
|
|
|
// wx.getSetting({
|
|
|
|
// success: function (res) {
|
|
|
|
// if (res.authSetting['scope.userInfo']) {
|
|
|
|
// //授权了
|
|
|
|
// wx.navigateTo({
|
|
|
|
// url: '../at_present/at_present',
|
|
|
|
// })
|
|
|
|
// } else {
|
|
|
|
// //未授权
|
|
|
|
// wx.navigateTo({
|
|
|
|
// url: '../city/city/?1',
|
|
|
|
// })
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
|
|
|
|
}, |
|
|
|
}) |