浏览代码

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

@dongkboy 4 周之前
父节点
当前提交
f91e18e993
共有 2 个文件被更改,包括 10 次插入0 次删除
  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;