Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
biz.qingxiao.com
Commits
2933eacd
Commit
2933eacd
authored
Dec 06, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
0ac1c9e6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
195 deletions
+36
-195
callguide.png
image/guide/callguide.png
+0
-0
UserGuide copy.js
src/components/UserGuide copy.js
+0
-193
UserGuide.js
src/components/UserGuide.js
+33
-0
newregister.js
src/models/newregister.js
+1
-0
QxLogin.js
src/pages/login/QxLogin.js
+1
-1
SjdLogin.js
src/pages/login/SjdLogin.js
+1
-1
No files found.
image/guide/callguide.png
0 → 100644
View file @
2933eacd
6.15 KB
src/components/UserGuide copy.js
deleted
100644 → 0
View file @
0ac1c9e6
import
React
from
'react'
;
import
{
Modal
,
Button
}
from
'antd'
;
import
componentStyle
from
'./UserGuide.less'
;
import
{
audioorigin
}
from
'../utils/index'
;
class
UserGuide
extends
React
.
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
};
}
componentDidMount
()
{
}
componentWillUpdate
()
{
}
cancelCropper
=
()
=>
{
}
sureCropper
=
()
=>
{
}
rotateLeft
=
()
=>
{
}
rotateRight
=
()
=>
{
}
closeImgPreview
=
()
=>
{
}
caculateCirclePosition
=
(
place
,
params
)
=>
{
const
{
width
,
height
,
top
,
left
,
right
,
bottom
,
}
=
params
;
const
position
=
{};
switch
(
place
)
{
case
'top'
:
position
.
top
=
top
-
4
;
position
.
left
=
(
left
+
(
width
/
2
))
-
8
;
position
.
right
=
(
left
+
(
width
/
2
))
+
8
;
position
.
bottom
=
top
+
12
;
// position.top = '';
break
;
case
'right'
:
position
.
top
=
(
top
+
(
height
/
2
))
-
8
;
position
.
left
=
left
+
width
+
4
;
position
.
right
=
left
+
width
+
20
;
position
.
bottom
=
(
top
+
(
height
/
2
))
+
8
;
break
;
case
'bottom'
:
position
.
top
=
top
+
height
+
4
;
position
.
left
=
(
left
+
(
width
/
2
))
-
8
;
position
.
right
=
(
left
+
(
width
/
2
))
+
8
;
position
.
bottom
=
top
+
height
+
20
;
break
;
case
'left'
:
position
.
top
=
(
top
+
(
height
/
2
))
-
8
;
position
.
left
=
left
-
4
;
position
.
right
=
left
+
12
;
position
.
bottom
=
(
top
+
(
height
/
2
))
+
8
;
break
;
default
:
break
;
}
return
position
;
}
render
()
{
const
{
guideShow
,
step
,
continueGuide
,
skipGuide
,
}
=
this
.
props
;
let
menuBtn
=
null
;
let
addCourseBtn
=
null
;
let
addStudentBtn
=
null
;
const
stepPosition
=
{};
switch
(
Number
(
step
))
{
case
1
:
break
;
case
2
:
menuBtn
=
document
.
getElementById
(
'menu_6'
);
if
(
menuBtn
)
{
menuBtn
.
style
.
position
=
'relative'
;
menuBtn
.
style
.
zIndex
=
105
;
stepPosition
.
menuBtn
=
this
.
caculateCirclePosition
(
'right'
,
menuBtn
.
getClientRects
()[
0
]);
}
addCourseBtn
=
document
.
getElementById
(
'course_addcourse'
);
if
(
addCourseBtn
)
{
addCourseBtn
.
style
.
position
=
'relative'
;
addCourseBtn
.
style
.
zIndex
=
105
;
stepPosition
.
addCourseBtn
=
this
.
caculateCirclePosition
(
'bottom'
,
addCourseBtn
.
getClientRects
()[
0
]);
}
break
;
case
3
:
menuBtn
=
document
.
getElementById
(
'menu_5'
);
if
(
menuBtn
)
{
menuBtn
.
style
.
position
=
'relative'
;
menuBtn
.
style
.
zIndex
=
105
;
stepPosition
.
menuBtn
=
this
.
caculateCirclePosition
(
'right'
,
menuBtn
.
getClientRects
()[
0
]);
}
addStudentBtn
=
document
.
getElementById
(
'student_addStudent'
);
if
(
addStudentBtn
)
{
addStudentBtn
.
style
.
position
=
'relative'
;
addStudentBtn
.
style
.
zIndex
=
105
;
stepPosition
.
addStudentBtn
=
this
.
caculateCirclePosition
(
'bottom'
,
addStudentBtn
.
getClientRects
()[
0
]);
}
break
;
default
:
break
;
}
return
(
<
div
>
{
guideShow
&&
<
div
className
=
{
`
${
componentStyle
.
UserGuide
}
UserGuide`
}
>
<
Modal
visible
=
{
step
==
1
}
footer
=
{
null
}
closable
=
{
false
}
wrapClassName
=
"UserGuideModal"
title
=
{
<
div
className
=
{
componentStyle
.
modalHeader
}
><
span
className
=
{
componentStyle
.
title
}
>
页面新人引导
<
/span><span className={componentStyle.skip} onClick={skipGuide}>跳过</
span
><
/div>
}
>
<
img
className
=
{
componentStyle
.
guidecover
}
src
=
{
`
${
__IMGCDN__
}
guide/guidecover.png`
}
alt
=
""
/>
<
div
className
=
{
componentStyle
.
guidedesc
}
>
完成以下引导,更快了解教务系统
<
/div
>
<
div
className
=
{
componentStyle
.
btnbox
}
>
<
Button
type
=
"primary"
onClick
=
{
continueGuide
}
>
开始引导
<
/Button
>
<
/div
>
<
/Modal
>
{
step
==
2
&&
<
div
className
=
{
componentStyle
.
guidemask
}
>
<
div
className
=
{
componentStyle
.
circledot
}
style
=
{
stepPosition
.
menuBtn
}
/
>
<
div
className
=
{
componentStyle
.
circledot
}
style
=
{
stepPosition
.
addCourseBtn
}
/
>
<
div
className
=
{
componentStyle
.
textdesc
}
style
=
{{
top
:
stepPosition
.
menuBtn
.
top
-
8
,
left
:
stepPosition
.
addCourseBtn
.
left
+
38
,
}}
>
创建机构课程
<
/div
>
{
/* 横线 */
}
<
div
className
=
{
componentStyle
.
linetype1
}
style
=
{{
width
:
(
stepPosition
.
addCourseBtn
.
left
-
stepPosition
.
menuBtn
.
right
)
+
6
,
left
:
stepPosition
.
menuBtn
.
right
+
2
,
top
:
stepPosition
.
menuBtn
.
top
+
8
,
}}
/
>
{
/* 竖线 */
}
<
div
className
=
{
componentStyle
.
linetype2
}
style
=
{{
height
:
(
stepPosition
.
menuBtn
.
top
-
stepPosition
.
addCourseBtn
.
bottom
)
+
8
,
left
:
stepPosition
.
addCourseBtn
.
left
+
7
,
top
:
stepPosition
.
addCourseBtn
.
bottom
+
2
,
}}
/
>
<
div
className
=
{
componentStyle
.
nextStep
}
style
=
{{
top
:
stepPosition
.
menuBtn
.
top
+
74
,
left
:
stepPosition
.
addCourseBtn
.
left
+
150
,
}}
onClick
=
{
continueGuide
}
>
下一步
<
/div
>
<
/div
>
}
{
step
==
3
&&
<
div
className
=
{
componentStyle
.
guidemask
}
>
<
div
className
=
{
componentStyle
.
circledot
}
style
=
{
stepPosition
.
menuBtn
}
/
>
<
div
className
=
{
componentStyle
.
circledot
}
style
=
{
stepPosition
.
addStudentBtn
}
/
>
{
/* 横线 */
}
<
div
className
=
{
componentStyle
.
linetype1
}
style
=
{{
width
:
((
stepPosition
.
addStudentBtn
&&
stepPosition
.
addStudentBtn
.
left
)
||
0
-
stepPosition
.
menuBtn
.
right
)
+
6
,
left
:
stepPosition
.
menuBtn
.
right
+
2
,
top
:
stepPosition
.
menuBtn
.
top
+
8
,
}}
/
>
{
/* 竖线 */
}
<
div
className
=
{
componentStyle
.
linetype2
}
style
=
{{
height
:
(
stepPosition
.
menuBtn
.
top
-
(
stepPosition
.
addStudentBtn
&&
stepPosition
.
addStudentBtn
.
bottom
)
||
0
)
+
8
,
left
:
(
stepPosition
.
addStudentBtn
&&
stepPosition
.
addStudentBtn
.
left
)
+
7
,
top
:
(
stepPosition
.
addStudentBtn
&&
stepPosition
.
addStudentBtn
.
bottom
)
+
2
,
}}
/
>
<
/div
>
}
<
/div
>
}
<
/div
>
);
}
}
export
default
UserGuide
;
src/components/UserGuide.js
View file @
2933eacd
...
...
@@ -218,6 +218,15 @@ class UserGuide extends React.Component {
document
.
getElementById
(
'index_paywarn'
).
style
.
position
=
''
;
document
.
getElementById
(
'index_paywarn'
).
style
.
zIndex
=
''
;
}
// dispatch({
// type: 'userguide/updateState',
// payload: {
// guideShow: false, // 引导步骤
// guideStep: 1, // 引导步骤
// },
// });
break
;
case
12
:
dispatch
({
type
:
'userguide/updateState'
,
payload
:
{
...
...
@@ -738,6 +747,30 @@ class UserGuide extends React.Component {
left
:
position
.
paywarnbtn
.
left
-
100
,
}}
onClick
=
{
this
.
continueGuide
}
>
下一步
<
/div
>
<
/div
>
}
{
guideStep
==
12
&&
<
div
className
=
{
componentStyle
.
guidemask
}
>
<
img
src
=
{
`
${
__IMGCDN__
}
guide/callguide.png`
}
className
=
{
componentStyle
.
callguide
}
alt
=
""
style
=
{{
position
:
'absolute'
,
bottom
:
27
,
left
:
400
,
}}
/
>
<
div
className
=
{
componentStyle
.
nextStep
}
style
=
{{
bottom
:
200
,
left
:
1000
,
}}
onClick
=
{
this
.
continueGuide
}
>
完成
<
/div
>
...
...
src/models/newregister.js
View file @
2933eacd
...
...
@@ -24,6 +24,7 @@ export default {
timer
:
null
,
location_address
:
''
,
deployType
:
3
,
// 类型 1-口才 2-美术 3-书法 4-跆拳道 5-通用
schoolId
:
0
,
},
subscriptions
:
{
setup
({
dispatch
,
history
})
{
// eslint-disable-line
...
...
src/pages/login/QxLogin.js
View file @
2933eacd
...
...
@@ -185,7 +185,7 @@ class QxLoginForm extends React.Component {
<
/Form
>
<
div
className
=
{
LoginStyles
.
registerbox
}
>
<
div
className
=
{
LoginStyles
.
noaccount
}
>
还没有账号?
<
/div
>
<
Link
className
=
{
LoginStyles
.
goregister
}
to
=
"/register"
target
=
"_blank"
>
去注册
<
/Link
>
<
Link
className
=
{
LoginStyles
.
goregister
}
to
=
"/register"
>
去注册
<
/Link
>
<
/div
>
<
/div
>
<
/div
>
...
...
src/pages/login/SjdLogin.js
View file @
2933eacd
...
...
@@ -198,7 +198,7 @@ class SjdLoginForm extends React.Component {
<
/Form
>
<
div
className
=
{
LoginStyles
.
registerbox
}
>
<
div
className
=
{
LoginStyles
.
noaccount
}
>
还没有账号?
<
/div
>
<
Link
className
=
{
LoginStyles
.
goregister
}
to
=
"/register"
target
=
"_blank"
>
去注册
<
/Link
>
<
Link
className
=
{
LoginStyles
.
goregister
}
to
=
"/register"
>
去注册
<
/Link
>
<
/div
>
<
/div>
}
<
/div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment