Commit 07786f89 authored by wangxuelai's avatar wangxuelai

''

parent 36437109
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
......@@ -29,9 +29,9 @@ class UserGuide extends React.Component {
let plancoursebtn = null;
let classdetailTab3 = null;
// let callwarnbtn = null;
let planwarnbtn = null;
let birthwarnbtn = null;
let paywarnbtn = null;
// let planwarnbtn = null;
// let birthwarnbtn = null;
// let paywarnbtn = null;
switch (Number(guideStep)) {
case 1:
dispatch(routerRedux.push({
......@@ -140,6 +140,15 @@ class UserGuide extends React.Component {
document.getElementById('menu_3').style.position = '';
document.getElementById('menu_3').style.zIndex = '';
}
document.body.style.maxHeight = 'initial';
document.body.style.overflowY = 'initial';
dispatch({
type: 'userguide/updateState',
payload: {
guideShow: false, // 引导步骤
guideStep: 1, // 引导步骤
},
});
dispatch(routerRedux.push({
pathname: '/sjd/indexstaic',
}));
......@@ -162,75 +171,75 @@ class UserGuide extends React.Component {
// });
// }
// break;
// case 7:
// console.log(document.getElementById('index_callwarn'), 'adasdsadas');
// if (document.getElementById('index_callwarn')) {
// document.getElementById('index_callwarn').style.position = '';
// document.getElementById('index_callwarn').style.zIndex = '';
// }
// planwarnbtn = document.getElementById('index_planwarn');
// if (planwarnbtn) {
// dispatch({
// type: 'userguide/getposition',
// payload: {
// page: 'indexstatic3',
// doms: {
// planwarnbtn,
// },
// },
// });
// }
// break;
// case 8:
// if (document.getElementById('index_planwarn')) {
// document.getElementById('index_planwarn').style.position = '';
// document.getElementById('index_planwarn').style.zIndex = '';
// }
// birthwarnbtn = document.getElementById('index_birthwarn');
// if (birthwarnbtn) {
// dispatch({
// type: 'userguide/getposition',
// payload: {
// page: 'indexstatic4',
// doms: {
// birthwarnbtn,
// },
// },
// });
// }
// break;
// case 9:
// if (document.getElementById('index_birthwarn')) {
// document.getElementById('index_birthwarn').style.position = '';
// document.getElementById('index_birthwarn').style.zIndex = '';
// }
// paywarnbtn = document.getElementById('index_paywarn');
// if (paywarnbtn) {
// dispatch({
// type: 'userguide/getposition',
// payload: {
// page: 'indexstatic5',
// doms: {
// paywarnbtn,
// },
// },
// });
// }
// break;
// case 10:
// if (document.getElementById('index_paywarn')) {
// document.getElementById('index_paywarn').style.position = '';
// document.getElementById('index_paywarn').style.zIndex = '';
// }
// // dispatch({
// // type: 'userguide/updateState',
// // payload: {
// // guideShow: false, // 引导步骤
// // guideStep: 1, // 引导步骤
// // },
// // });
// break;
case 7:
console.log(document.getElementById('index_callwarn'), 'adasdsadas');
if (document.getElementById('index_callwarn')) {
document.getElementById('index_callwarn').style.position = '';
document.getElementById('index_callwarn').style.zIndex = '';
}
planwarnbtn = document.getElementById('index_planwarn');
if (planwarnbtn) {
dispatch({
type: 'userguide/getposition',
payload: {
page: 'indexstatic3',
doms: {
planwarnbtn,
},
},
});
}
break;
case 8:
if (document.getElementById('index_planwarn')) {
document.getElementById('index_planwarn').style.position = '';
document.getElementById('index_planwarn').style.zIndex = '';
}
birthwarnbtn = document.getElementById('index_birthwarn');
if (birthwarnbtn) {
dispatch({
type: 'userguide/getposition',
payload: {
page: 'indexstatic4',
doms: {
birthwarnbtn,
},
},
});
}
break;
case 9:
if (document.getElementById('index_birthwarn')) {
document.getElementById('index_birthwarn').style.position = '';
document.getElementById('index_birthwarn').style.zIndex = '';
}
paywarnbtn = document.getElementById('index_paywarn');
if (paywarnbtn) {
dispatch({
type: 'userguide/getposition',
payload: {
page: 'indexstatic5',
doms: {
paywarnbtn,
},
},
});
}
break;
case 10:
if (document.getElementById('index_paywarn')) {
document.getElementById('index_paywarn').style.position = '';
document.getElementById('index_paywarn').style.zIndex = '';
}
// dispatch({
// type: 'userguide/updateState',
// payload: {
// guideShow: false, // 引导步骤
// guideStep: 1, // 引导步骤
// },
// });
break;
case 11:
document.body.style.maxHeight = 'initial';
document.body.style.overflowY = 'initial';
dispatch({
......@@ -575,7 +584,7 @@ class UserGuide extends React.Component {
}}
onClick={this.continueGuide}
>
下一步
完成
</div>
</div>
}
......
......@@ -135,54 +135,54 @@ export default {
// },
// });
// break;
case 'indexstatic2':
doms.callwarnbtn.style.position = 'relative';
doms.callwarnbtn.style.zIndex = 105;
yield put({
type: 'updateState',
payload: {
position: {
callwarnbtn: caculateCirclePosition('bottom', doms.callwarnbtn.getClientRects()[0]),
},
},
});
break;
case 'indexstatic3':
doms.planwarnbtn.style.position = 'relative';
doms.planwarnbtn.style.zIndex = 105;
yield put({
type: 'updateState',
payload: {
position: {
planwarnbtn: caculateCirclePosition('bottom', doms.planwarnbtn.getClientRects()[0]),
},
},
});
break;
case 'indexstatic4':
doms.birthwarnbtn.style.position = 'relative';
doms.birthwarnbtn.style.zIndex = 105;
yield put({
type: 'updateState',
payload: {
position: {
birthwarnbtn: caculateCirclePosition('bottom', doms.birthwarnbtn.getClientRects()[0]),
},
},
});
break;
case 'indexstatic5':
doms.paywarnbtn.style.position = 'relative';
doms.paywarnbtn.style.zIndex = 105;
yield put({
type: 'updateState',
payload: {
position: {
paywarnbtn: caculateCirclePosition('bottom', doms.paywarnbtn.getClientRects()[0]),
},
},
});
break;
// case 'indexstatic2':
// doms.callwarnbtn.style.position = 'relative';
// doms.callwarnbtn.style.zIndex = 105;
// yield put({
// type: 'updateState',
// payload: {
// position: {
// callwarnbtn: caculateCirclePosition('bottom', doms.callwarnbtn.getClientRects()[0]),
// },
// },
// });
// break;
// case 'indexstatic3':
// doms.planwarnbtn.style.position = 'relative';
// doms.planwarnbtn.style.zIndex = 105;
// yield put({
// type: 'updateState',
// payload: {
// position: {
// planwarnbtn: caculateCirclePosition('bottom', doms.planwarnbtn.getClientRects()[0]),
// },
// },
// });
// break;
// case 'indexstatic4':
// doms.birthwarnbtn.style.position = 'relative';
// doms.birthwarnbtn.style.zIndex = 105;
// yield put({
// type: 'updateState',
// payload: {
// position: {
// birthwarnbtn: caculateCirclePosition('bottom', doms.birthwarnbtn.getClientRects()[0]),
// },
// },
// });
// break;
// case 'indexstatic5':
// doms.paywarnbtn.style.position = 'relative';
// doms.paywarnbtn.style.zIndex = 105;
// yield put({
// type: 'updateState',
// payload: {
// position: {
// paywarnbtn: caculateCirclePosition('bottom', doms.paywarnbtn.getClientRects()[0]),
// },
// },
// });
// break;
default:
break;
}
......
......@@ -79,19 +79,19 @@ class StaticCenter extends React.Component {
}
componentDidMount() { // 挂载
pageIn('轻校-概况');
const callwarnbtn = document.getElementById('index_callwarn');
const { dispatch } = this.props;
if (callwarnbtn) {
dispatch({
type: 'userguide/getposition',
payload: {
page: 'indexstatic2',
doms: {
callwarnbtn,
},
},
});
}
// const callwarnbtn = document.getElementById('index_callwarn');
// const { dispatch } = this.props;
// if (callwarnbtn) {
// dispatch({
// type: 'userguide/getposition',
// payload: {
// page: 'indexstatic2',
// doms: {
// callwarnbtn,
// },
// },
// });
// }
}
componentDidUpdate() {
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment