柒零 il y a 1 an
Parent
commit
eec194788b
1 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 6 6
      subpages/data/data.js

+ 6 - 6
subpages/data/data.js

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