|
|
@@ -16,6 +16,7 @@ import { clearFormState } from '../../../redux/actions/formState'
|
|
|
import { clearScheduleState } from '../../../redux/actions/scheduleState'
|
|
|
import { forceVisible } from 'react-lazyload'
|
|
|
import { clearApprovalHomeState } from '../../../redux/actions/approvalState'
|
|
|
+import introJs from 'intro.js'
|
|
|
|
|
|
/**
|
|
|
* Created by RaoMeng on 2020/11/9
|
|
|
@@ -40,6 +41,46 @@ class HomePage extends Component {
|
|
|
clearApprovalHomeState()
|
|
|
|
|
|
requestUserInfo()
|
|
|
+
|
|
|
+ // introJs('.home-root')
|
|
|
+ // .setOptions({
|
|
|
+ // prevLabel: '上一步',
|
|
|
+ // nextLabel: '下一步',
|
|
|
+ // skipLabel: '跳过',
|
|
|
+ // doneLabel: '结束',
|
|
|
+ // tooltipClass: 'customTooltip',
|
|
|
+ // // showStepNumbers: true,
|
|
|
+ // exitOnOverlayClick: false,
|
|
|
+ // exitOnEsc: false,
|
|
|
+ // // showProgress: true,
|
|
|
+ // scrollToElement: true,
|
|
|
+ // steps: [
|
|
|
+ // {
|
|
|
+ // element: document.querySelectorAll('.am-tab-bar-tab')[0],
|
|
|
+ // title: '首页',
|
|
|
+ // intro: '首页首页首页首页首页首页首页首页首页首页首页首页首页首页首页首页',
|
|
|
+ // position: 'auto',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // element: document.querySelectorAll('.am-tab-bar-tab')[1],
|
|
|
+ // title: '报表',
|
|
|
+ // intro: '报表报表报表报表报表报表报表报表报表报表报表报表报表报表报表',
|
|
|
+ // position: 'auto',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // element: document.querySelectorAll('.am-tab-bar-tab')[2],
|
|
|
+ // title: '应用',
|
|
|
+ // intro: '应用应用应用应用应用应用应用应用应用应用应用应用应用应用应用应用应用应用应用应用应用',
|
|
|
+ // position: 'auto',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // element: document.querySelectorAll('.am-tab-bar-tab')[3],
|
|
|
+ // title: '我的',
|
|
|
+ // intro: '我的我的我的我的我的我的我的我的我的我的我的',
|
|
|
+ // position: 'auto',
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // }).start()
|
|
|
}
|
|
|
|
|
|
componentWillUnmount () {
|