Commit 92a0d63a9ad0f1ad3155bd555edb85ed0c9f9129

Authored by Min
1 parent c5fab05d

1.处理企业微信移动端上传,与App上传

src/mobile/common/CommobileToolBar.js
... ... @@ -514,11 +514,14 @@ class CommobileToolBar extends Component {
514 514 btnStyle,
515 515 };
516 516  
  517 +
  518 + const isWeiXin = location.host.includes('ebc.km5c.com.cn');
  519 + console.log('weibxin', isWeiXin, commonConfig.isWeiXin);
517 520 return (
518 521 <div style={divStyle}>
519 522 {commonUtils.isEmptyArr(buttonConfig) ? '' :
520 523 buttonConfig.map((item) => {
521   - if (!commonConfig.isWeiXin && item.sControlName.includes('BtnUpdPic')) {
  524 + if (!isWeiXin && item.sControlName.includes('BtnUpdPic')) {
522 525 return (
523 526 <FileManageMobile {...filemanageType} />
524 527 );
... ...
src/mobile/components/FileManageMobile.js
... ... @@ -240,14 +240,14 @@ class FileManageMobile extends React.Component {
240 240 const bPad = location.pathname.toLowerCase()?.indexOf('pad') > -1;
241 241  
242 242 /* 上传照片样式定位 */
243   - let imgDivTop = '500';
  243 + let imgDivTop = '400';
244 244 const mobileBarStyle = document.getElementsByClassName('am-list-view-scrollview-content');
245 245 if (commonUtils.isNotEmptyArr(mobileBarStyle) && mobileBarStyle.length > 0) {
246 246 const obj = mobileBarStyle[0].getBoundingClientRect();
247 247 const objHeight = mobileBarStyle[0].clientHeight;
248 248 if (commonUtils.isEmptyObject(obj)) {
249 249 if (obj.top < dHeight) {
250   - imgDivTop = Math.floor(obj.top + objHeight);
  250 + imgDivTop = Math.floor(obj.top + objHeight - 100);
251 251 }
252 252 }
253 253 }
... ... @@ -286,7 +286,7 @@ class FileManageMobile extends React.Component {
286 286 window.dispatchEvent(event);
287 287 }}
288 288 />
289   - <div className={styles.commonImage} id="imgDiv" key="imgDivKey" style={{ top: imgDivTop, left: bPad ? '20%' : null }} >
  289 + <div className={styles.commonImage} id="imgDiv" key="imgDivKey" style={{ top: '70vh', left: bPad ? '20%' : null }} >
290 290 {
291 291 commonUtils.isNotEmptyArr(files) && files.length > 0 ?
292 292 files.map((child) => {
... ...