Parcourir la source

版本更新操作H5环境加限制

@dongkboy il y a 4 semaines
Parent
commit
f91e18e993
2 fichiers modifiés avec 10 ajouts et 0 suppressions
  1. 9 0
      components/uni-Cell/uni-Cell.vue
  2. 1 0
      style/zcm-main.css

+ 9 - 0
components/uni-Cell/uni-Cell.vue

@@ -90,7 +90,16 @@
 						}
 						break;
 					case 'checkVersion': //检查版本
+						//#ifdef APP-PLUS
 						this.$refs.app_update.update(); //调用子组件检查更新方法
+						//#endif
+						// 非app端不检查更新
+						//#ifdef H5
+						uni.showToast({
+							title: '请在App中操作',
+							icon: "none"
+						});
+						//#endif
 						break;
 					case 'auth': //实名认证  0.未认证 1. 认证成功 2. 认证驳回"
 						if (this.userInfo.sysUser.authStatus == 1) {

+ 1 - 0
style/zcm-main.css

@@ -1231,6 +1231,7 @@ uni-page {
 .uni-page-head,
 .footer,
 .u-overlay,
+.cropper-wrapper,
 .uni-navbar {
 	max-width: 375px;
 	margin: 0 auto;