lilei 1 年之前
父節點
當前提交
cff25bcfe5

+ 16 - 0
pages/index/index.vue

@@ -37,6 +37,10 @@
 				 </view>
 			</view> -->
 		</view>
+		<view class="copright">
+			<view>系统版本:{{version}}</view>
+			<view>Copyright © 2023 陕西山海高科信息技术有限公司</view>
+		</view>
 		<!-- 选择出库类型 -->
 		<u-action-sheet
 				:show="showOutType"
@@ -79,6 +83,9 @@
 		computed: {
 			userData() {
 				return this.$store.state.vuex_user
+			},
+			version(){
+				return getApp().globalData.version.version
 			}
 		},
 		methods: {
@@ -159,6 +166,15 @@
 				}
 			}
 		}
+		.copright{
+			text-align: center;
+			color: $uni-text-color-grey;
+			font-size: 20upx;
+			position: fixed;
+			left: 0;
+			bottom: 30upx;
+			width: 100%;
+		}
 		.card-box{
 			border: 1px solid #eee;
 			border-radius: 20upx;

+ 5 - 2
pages/login/index.vue

@@ -24,7 +24,7 @@
 			</form>
 		</view>
 		<view class="copright">
-			<view>系统版本:1.0.0</view>
+			<view>系统版本:{{version}}</view>
 			<view>Copyright © 2023 陕西山海高科信息技术有限公司</view>
 		</view>
 	</view>
@@ -38,7 +38,8 @@
 			return {
 				showPassword: false,
 				username: '',
-				password: ''
+				password: '',
+				version: ''
 			};
 		},
 		onLoad() {
@@ -50,6 +51,8 @@
 					  plus.runtime.getProperty(plus.runtime.appid,(wgtinfo)=>{
 						wgtinfo.platform = res.platform
 					  	getApp().globalData.version = wgtinfo
+						const curr_version = wgtinfo && wgtinfo.version || ''
+						this.version = curr_version
 					  })
 				  }  
 			  })

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/app-plus/app-service.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/app-plus/app-view.js


File diff suppressed because it is too large
+ 3 - 3
unpackage/dist/dev/app-plus/app-service.js


File diff suppressed because it is too large
+ 17 - 2
unpackage/dist/dev/app-plus/app-view.js


Some files were not shown because too many files changed in this diff