From 92a0d63a9ad0f1ad3155bd555edb85ed0c9f9129 Mon Sep 17 00:00:00 2001
From: pengm <674192343@qq.com>
Date: Tue, 23 Jun 2026 11:32:32 +0800
Subject: [PATCH] 1.处理企业微信移动端上传,与App上传
---
src/mobile/common/CommobileToolBar.js | 5 ++++-
src/mobile/components/FileManageMobile.js | 6 +++---
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/mobile/common/CommobileToolBar.js b/src/mobile/common/CommobileToolBar.js
index f0fce3c..27bbee4 100644
--- a/src/mobile/common/CommobileToolBar.js
+++ b/src/mobile/common/CommobileToolBar.js
@@ -514,11 +514,14 @@ class CommobileToolBar extends Component {
btnStyle,
};
+
+ const isWeiXin = location.host.includes('ebc.km5c.com.cn');
+ console.log('weibxin', isWeiXin, commonConfig.isWeiXin);
return (
{commonUtils.isEmptyArr(buttonConfig) ? '' :
buttonConfig.map((item) => {
- if (!commonConfig.isWeiXin && item.sControlName.includes('BtnUpdPic')) {
+ if (!isWeiXin && item.sControlName.includes('BtnUpdPic')) {
return (
);
diff --git a/src/mobile/components/FileManageMobile.js b/src/mobile/components/FileManageMobile.js
index a64e778..d9dd100 100644
--- a/src/mobile/components/FileManageMobile.js
+++ b/src/mobile/components/FileManageMobile.js
@@ -240,14 +240,14 @@ class FileManageMobile extends React.Component {
const bPad = location.pathname.toLowerCase()?.indexOf('pad') > -1;
/* 上传照片样式定位 */
- let imgDivTop = '500';
+ let imgDivTop = '400';
const mobileBarStyle = document.getElementsByClassName('am-list-view-scrollview-content');
if (commonUtils.isNotEmptyArr(mobileBarStyle) && mobileBarStyle.length > 0) {
const obj = mobileBarStyle[0].getBoundingClientRect();
const objHeight = mobileBarStyle[0].clientHeight;
if (commonUtils.isEmptyObject(obj)) {
if (obj.top < dHeight) {
- imgDivTop = Math.floor(obj.top + objHeight);
+ imgDivTop = Math.floor(obj.top + objHeight - 100);
}
}
}
@@ -286,7 +286,7 @@ class FileManageMobile extends React.Component {
window.dispatchEvent(event);
}}
/>
-
+
{
commonUtils.isNotEmptyArr(files) && files.length > 0 ?
files.map((child) => {
--
libgit2 0.22.2