|
@@ -1475,11 +1475,7 @@ Page({
|
|
|
this.showData();
|
|
this.showData();
|
|
|
},
|
|
},
|
|
|
onReady() {
|
|
onReady() {
|
|
|
- if (!wx.getStorageSync('hasAuth')) {
|
|
|
|
|
- this.setData({ showAuthorizedDialog: true })
|
|
|
|
|
- } else {
|
|
|
|
|
- this.showData();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
showData() {
|
|
showData() {
|
|
|
let hotelcodeTemp = wx.getStorageSync("hotelEmpower");
|
|
let hotelcodeTemp = wx.getStorageSync("hotelEmpower");
|
|
@@ -1502,7 +1498,11 @@ Page({
|
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
*/
|
|
|
onShow: function () {
|
|
onShow: function () {
|
|
|
-
|
|
|
|
|
|
|
+ if (!wx.getStorageSync('hasAuth')) {
|
|
|
|
|
+ this.setData({ showAuthorizedDialog: true })
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.showData();
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
var that = this;
|
|
var that = this;
|