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) => {