柒零 1 년 전
부모
커밋
eec194788b
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  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;