|
|
@@ -6,7 +6,7 @@
|
|
|
import React, { Component } from 'react'
|
|
|
import './common-func.less'
|
|
|
import { Icon } from 'antd-mobile'
|
|
|
-import { isObjEmpty } from '../../../utils/common/common.util'
|
|
|
+import { isObjEmpty, getOS } from '../../../utils/common/common.util'
|
|
|
import { fetchGet } from '../../../utils/common/fetchRequest'
|
|
|
import { FUNC_TYPE_DOC } from '../../../configs/constans.config'
|
|
|
import { GlobalEvent } from '../../../utils/common/eventbus/eventbus'
|
|
|
@@ -29,6 +29,12 @@ export default class FuncItem extends Component {
|
|
|
if (funcObj.funcType === FUNC_TYPE_DOC) {
|
|
|
GlobalEvent.emit(EVENT_DOC_FUNC_COUNT, this, funcObj)
|
|
|
}
|
|
|
+ }).catch(error => {
|
|
|
+ funcObj.sup = 0
|
|
|
+ this.props.onFuncDataChange && this.props.onFuncDataChange(funcObj)
|
|
|
+ if (funcObj.funcType === FUNC_TYPE_DOC) {
|
|
|
+ GlobalEvent.emit(EVENT_DOC_FUNC_COUNT, this, funcObj)
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
@@ -54,7 +60,12 @@ export default class FuncItem extends Component {
|
|
|
<span className='func-func-text'>{funcObj.name}</span>
|
|
|
{
|
|
|
(sup || funcObj.sup) ?
|
|
|
- <sup className='func-func-sup'>{sup || funcObj.sup}</sup> : ''
|
|
|
+ <sup
|
|
|
+ className='func-func-sup'
|
|
|
+ style={{
|
|
|
+ // paddingTop: getOS() === 'Android' ? '3px' : '0px',
|
|
|
+ }}
|
|
|
+ >{sup || funcObj.sup}</sup> : ''
|
|
|
}
|
|
|
</div>
|
|
|
{
|