ccj %!s(int64=3) %!d(string=hai) anos
pai
achega
383dfc129c
Modificáronse 2 ficheiros con 22 adicións e 22 borrados
  1. 1 1
      pages/grain_pulse/home.vue
  2. 21 21
      pages/sale/information.vue

+ 1 - 1
pages/grain_pulse/home.vue

@@ -63,7 +63,7 @@
 				当前暂无数据
 			</view>
 		</view>
-		<view v-if='datalist.length==0' class="enter" @click="enterUrl">
+		<view  class="enter" @click="enterUrl">
 			<image style='width:56.5px;height:28px;' src="../../static/img/liangmai/ruzhu.png" mode=""></image>
 			<view class='enter-content'>入驻</view>
 		</view>

+ 21 - 21
pages/sale/information.vue

@@ -168,7 +168,6 @@
 				portPriceData: {}
 			};
 		},
-		onReady() {},
 		onShow() {
 			
 			uni.hideKeyboard()
@@ -179,26 +178,7 @@
 			this.loadData()
 			var userInfo = uni.getStorageSync("userInfo")
 			var that = this
-			this.$api.doRequest('get', '/commonUser/api/checkSession').then(res => {
-				console.log("checkSession",res)
-				if (res.data.data == "INVALID") {
-					uni.showModal({
-						title: '登录提示',
-						content: 'Session过期需要重新登录,是否立即登录?',
-						showCancel: true,
-						confirmText: '登录',
-						success: (e) => {
-							if (e.confirm) {
-								uni.navigateTo({
-									url: '/pages/public/login'
-								})
-							}
-						},
-						fail: () => {},
-						complete: () => {}
-					})
-				}
-			})
+			
 			this.$api.doRequest('get', '/notice/query/noticeNumber').then(res => {
 				if (res.data.data) {
 					let name = 'myTip';
@@ -243,6 +223,26 @@
 					that.statusBarHeight += res.statusBarHeight + "px"; //这就是状态栏的高度
 				},
 			});
+			this.$api.doRequest('get', '/commonUser/api/checkSession').then(res => {
+				console.log("checkSession",res)
+				if (res.data.data == "INVALID") {
+					uni.showModal({
+						title: '登录提示',
+						content: 'Session过期需要重新登录,是否立即登录?',
+						showCancel: true,
+						confirmText: '登录',
+						success: (e) => {
+							if (e.confirm) {
+								uni.navigateTo({
+									url: '/pages/public/login'
+								})
+							}
+						},
+						fail: () => {},
+						complete: () => {}
+					})
+				}
+			})
 			var infoList = [];
 			uni.request({
 				url: "https://hq.sinajs.cn/list=C0,C2109,C2111,C2201,C2203,C2205,C2207,A0,A2109,A2111,A2201,A2203,A2205,A2207",