From ac1c4597e055f2d821498e4fe762e388a25ee774 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Fri, 27 May 2022 20:35:27 +0800
Subject: [PATCH] 服务器配置

---
 pages/loging/loging.vue |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diff --git a/pages/loging/loging.vue b/pages/loging/loging.vue
index 127fc2e..b741db7 100644
--- a/pages/loging/loging.vue
+++ b/pages/loging/loging.vue
@@ -15,7 +15,7 @@
 				<view class="cell">
 					<view class="name">账号</view>
 					<view class="input-box">
-						<input type="text" v-model="names" placeholder="请输入账号" class="ipt" placeholder-class="hold"
+						<input type="text" v-model="names" placeholder="帐号为姓+身份证后4位" class="ipt" placeholder-class="hold"
 							@blur="handleInputCheck" />
 					</view>
 				</view>
@@ -61,12 +61,37 @@
 				disabled: true
 			}
 		},
+		onLoad() {
+			//检查应用版本号
+			console.log("版本号为++++"+ plus.runtime.versionCode)
+			var code = plus.runtime.versionCode;
+			// uni.showToast({
+			// 	title: '提交成功'+code,
+			// 	duration: 2000
+			// });
+			var that = this;
+			uni.request({
+				url: this.$store.state.piAPI + '/version/detail?id=1',
+				method: 'GET',
+				success: (res) => {
+					if(res.data.data.version > code){
+						that.ccc(res.data.data);
+					}
+				}
+			});
+		},
 		computed: {
 			OURpass() {
 				return this.$store.state.loging;
 			}
 		},
 		methods: {
+			ccc(data) {
+				let content =data.content;
+				var url = data.address;
+				this.$u.route("/uview-ui/components/u-full-screen/u-full-screen?content=" + content +
+					"&src="+url);
+			},
 			judgeUse() {
 				
 				// var main = plus.android.runtimeMainActivity();//获取当前的Activity

--
Gitblit v1.9.3