From 8081e115c0d8ffd0dd572e02a4dfa28818ad2d5a Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期一, 12 五月 2025 17:09:40 +0800
Subject: [PATCH] 1.采购入库实现35%

---
 pages/login/index.vue |   39 ++++++++++++++++++++++++++++-----------
 1 files changed, 28 insertions(+), 11 deletions(-)

diff --git a/pages/login/index.vue b/pages/login/index.vue
index da9bce5..ccca08a 100644
--- a/pages/login/index.vue
+++ b/pages/login/index.vue
@@ -34,6 +34,17 @@
 						@click="gotoIndex"></u-button>
 				</view>
 
+				<u-modal :show="isShow" :showCancelButton="isShowCancelButton" :showConfirmButton='false' title=""
+					@confirm='isShowConfirm' @cancel='isShowCancel'>
+					<view>
+						<view>
+							<u--text type="info" :size='32' :block='false' text="褰撳墠鐗堟湰涓嶆槸鏈�鏂扮増鏈紝璇风偣鍑�"></u--text>
+						</view>
+						<view>
+							<u--text :block='false' mode="link" :size='50' text="閾炬帴涓嬭浇" :href="downloadUrl"></u--text>
+						</view>
+					</view>
+				</u-modal>
 
 			</view>
 
@@ -54,6 +65,7 @@
 	import {
 		LoginSave,
 		ForcedOffline,
+		AppUpgrade
 	} from '../../config/api.js';
 	import {
 		decode
@@ -62,22 +74,19 @@
 		data() {
 			return {
 				// #ifdef H5
-				usercode: '999',
+				usercode: '001',
 				// #endif
 
 				// #ifdef APP-PLUS
-				usercode: '998',
+				usercode: '999',
 				// #endif
 
 				userpassword: '123',
 				isView: false, //瀵嗙爜鏄惁鍙
 
-
-
 				isDisabledSubmitButton: false, //鎻愪氦鎸夐挳鏄惁澶勪簬鍔犺浇涓�
 
-
-				isShowCancelButton: false,
+				isShowCancelButton: true,
 				isShow: false,
 				downloadUrl: '', //涓嬭浇鍦板潃
 
@@ -89,12 +98,21 @@
 
 		},
 		created() {
-
+			this.getAppUpgrade()
 		},
 		mounted() {
 
 		},
 		methods: {
+			getAppUpgrade() {
+				AppUpgrade().then(res => {
+					this.isShow = res.data[0].version !== this.$appVersion
+					if (res.data[0].version !== this.$appVersion) { // 璇存槑涓庢渶鏂扮増鏈笉鍖归厤
+						this.downloadUrl = this.$baseUrl.substring(0, 25) + '/APK/JLAPP.apk'
+					}
+				})
+
+			},
 			//瀵嗙爜鏄惁鏌ョ湅  鏄剧ず鏄庢枃
 			isViewClick() {
 				this.isView = !this.isView
@@ -122,8 +140,8 @@
 							url: '../xtsy/index'
 						});
 						// uni.$u.toast(result.Message)
-					} 
-					
+					}
+
 					// else if (result.code === '302') {
 					// 	const data2 = {
 					// 		// token: uni.getStorageSync('Token'),
@@ -148,8 +166,7 @@
 					// 		}
 					// 	})
 					// }
-					 
-					 else {
+					else {
 						this.isDisabledSubmitButton = false
 					}
 				})

--
Gitblit v1.9.3