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
9ca2b60c
Commit
9ca2b60c
authored
Sep 16, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
c8557c2c
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
75 additions
and
4 deletions
+75
-4
coursechart.js
src/models/coursechart.js
+6
-1
schoollist.js
src/models/schoollist.js
+3
-0
webapp.js
src/models/webapp.js
+7
-0
OuterPage.js
src/pages/OuterPage.js
+1
-1
SjdIndex.js
src/pages/SjdIndex.js
+22
-0
clockitem.js
src/pages/clockmgt/clockitem.js
+1
-1
index.js
src/pages/schoollist/index.js
+32
-1
index.less
src/pages/schoollist/index.less
+3
-0
No files found.
src/models/coursechart.js
View file @
9ca2b60c
...
...
@@ -176,7 +176,12 @@ export default {
},
});
}
else
{
message
.
error
(
'课表加载失败!'
,
1
);
yield
put
({
type
:
'webapp/errorrequestresolve'
,
payload
:
{
data
:
queryScheduleListData
,
},
});
}
},
*
changeDate
({
payload
},
{
call
,
put
,
select
})
{
...
...
src/models/schoollist.js
View file @
9ca2b60c
...
...
@@ -20,6 +20,7 @@ export default {
inviateHoldList
:
[],
inviateTeacherList
:
[],
stronghold
:
null
,
datetime
:
''
,
},
subscriptions
:
{
setup
({
dispatch
,
history
})
{
// eslint-disable-line
...
...
@@ -36,6 +37,7 @@ export default {
yield
put
({
type
:
'updateState'
,
payload
:
{
datetime
:
schoolListData
.
datetime
,
schoolList
:
[...
schoolListData
.
data
.
list
],
inviateHoldList
:
[...
schoolListData
.
data
.
inviate_hold
],
inviateTeacherList
:
[...
schoolListData
.
data
.
inviate_teacher
],
...
...
@@ -46,6 +48,7 @@ export default {
yield
put
({
type
:
'webapp/errorrequestresolve'
,
payload
:
{
datetime
:
schoolListData
.
datetime
,
data
:
schoolListData
,
},
});
...
...
src/models/webapp.js
View file @
9ca2b60c
...
...
@@ -724,6 +724,13 @@ export default {
},
});
}
else
if
(
data
.
code
===
100001
)
{
// 接口少了token
}
else
if
(
data
.
code
===
40202
)
{
yield
put
({
type
:
'updateState'
,
payload
:
{
globalErrorType
:
4
,
// 校区到期
},
});
}
else
{
message
.
error
(
data
.
msg
||
'未知错误'
,
1
);
}
...
...
src/pages/OuterPage.js
View file @
9ca2b60c
...
...
@@ -51,7 +51,7 @@ function mapStateToProps(state) {
}
=
state
.
webapp
;
return
{
locationPathname
,
globalErrorType
,
// : -1, // 1: 401token失效 2 40200无权限 3 40201账号已关闭
globalErrorType
,
// : -1, // 1: 401token失效 2 40200无权限 3 40201账号已关闭
4 校区套餐到期
};
}
export
default
connect
(
mapStateToProps
)(
OuterPage
);
src/pages/SjdIndex.js
View file @
9ca2b60c
...
...
@@ -41,6 +41,9 @@ class SjdIndex extends React.Component {
type
:
'webapp/goSchoollist'
,
});
}
gorecharge
=
()
=>
{
window
.
open
(
'http://website.clock.wp53.cn/?page=7'
);
}
render
()
{
const
{
collapsed
,
locationPathname
,
screenIsBig
,
globalErrorType
,
...
...
@@ -131,6 +134,25 @@ class SjdIndex extends React.Component {
<
span
>
账号已关闭
<
/span
>
<
/div
>
<
/Modal
>
<
Modal
title
=
""
style
=
{{
top
:
20
}}
visible
=
{
globalErrorType
==
4
}
maskStyle
=
{{
zIndex
:
1003
}}
zIndex
=
{
1004
}
closable
=
{
false
}
centered
footer
=
{
<
div
><
Button
onClick
=
{
this
.
goSchoollist
}
type
=
"primary"
>
校区列表
<
/Button><Button onClick={this.gorecharge} type="danger">充 值</
Button
><
/div>
}
>
<
div
style
=
{{
display
:
'flex'
,
alignItems
:
'center'
,
marginBottom
:
'10px'
}}
>
<
Icon
type
=
"info-circle"
style
=
{{
color
:
'red'
,
fontSize
:
'24px'
,
marginRight
:
'10px'
}}
/
>
<
span
style
=
{{
fontSize
:
'16px'
,
fontWeight
:
700
,
color
:
'#000'
}}
>
您的账户已到期
<
/span
>
<
/div
>
<
div
style
=
{{
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
Icon
type
=
"info-circle"
style
=
{{
fontSize
:
'24px'
,
opacity
:
0
,
marginRight
:
'10px'
}}
/
>
<
span
style
=
{{
fontSize
:
'14px'
,
color
:
'rgba(0,0,0,0.65)'
}}
>
请尽快联系客服充值
<
/span
>
<
/div
>
<
/Modal
>
<
/div
>
);
const
redirectLogin
=
(
<
Redirect
to
=
{{
pathname
:
'/login'
}}
/>
)
;
...
...
src/pages/clockmgt/clockitem.js
View file @
9ca2b60c
...
...
@@ -37,7 +37,7 @@ class ClockItem extends React.Component {
<
img
alt
=
""
className
=
{
pageStyle
.
bestFlag
}
src
=
"https://cdn.img.shangjiadao.cn/source/images/dakav4/2b/common/jinx.png"
/>
}
<
div
className
=
{
pageStyle
.
userinfobox
}
>
<
img
className
=
{
pageStyle
.
useravatar
}
src
=
{
imagify
(
clock
.
school_student
.
avatar
,
'image/resize,w_160/format,jpg'
)}
alt
=
{
clock
.
school_student
.
nickname
}
/
>
<
img
className
=
{
pageStyle
.
useravatar
}
src
=
{
imagify
(
clock
.
school_student
.
avatar
)}
alt
=
{
clock
.
school_student
.
nickname
}
/
>
<
div
className
=
{
pageStyle
.
usernamebox
}
>
<
div
className
=
{
pageStyle
.
nickname
}
>
{
clock
.
school_student
.
nickname
}
...
...
src/pages/schoollist/index.js
View file @
9ca2b60c
...
...
@@ -25,7 +25,32 @@ class JoinSchoolAddForm extends React.Component {
});
}
goSchoolSystem
=
(
school
)
=>
{
const
{
dispatch
}
=
this
.
props
;
const
{
dispatch
,
datetime
}
=
this
.
props
;
if
(
new
Date
(
datetime
.
replace
(
/
\-
/g
,
'/'
)).
getTime
()
>=
new
Date
(
school
.
expire_time
.
replace
(
/
\-
/g
,
'/'
)).
getTime
())
{
Modal
.
error
({
title
:
'您的账户已到期'
,
content
:
'请尽快联系客服充值'
,
okText
:
'确 定'
,
closable
:
false
,
maskClosable
:
false
,
centered
:
true
,
okButtonProps
:
{
type
:
'danger'
,
style
:
{
color
:
'#fff'
,
backgroundColor
:
'#ff4d4f'
,
borderColor
:
'#ff4d4f'
,
},
},
icon
:
<
Icon
type
=
"exclamation-circle"
style
=
{{
color
:
'red'
}}
/>
,
onOk
:
()
=>
{
window
.
open
(
'http://website.clock.wp53.cn/?page=7'
);
},
onCancel
:
()
=>
{
},
});
return
;
}
dispatch
({
type
:
'schoollist/goSchoolSystem'
,
payload
:
{
...
...
@@ -153,6 +178,10 @@ class JoinSchoolAddForm extends React.Component {
}
<
/Col
>
<
/Row
>
<
Row
className
=
{
`
${
pageStyles
.
logintimebox
}
${
pageStyles
.
expiretimebox
}
`
}
type
=
"flex"
justify
=
"space-between"
align
=
"middle"
>
<
Col
span
=
{
12
}
className
=
{
pageStyles
.
timetitle
}
>
套餐到期时间
:
<
/Col
>
<
Col
span
=
{
12
}
className
=
{
pageStyles
.
time
}
>
{
ele
.
expire_time
}
<
/Col
>
<
/Row
>
{
ele
.
school_teacher
&&
ele
.
school_teacher
.
last_login_time
&&
<
Row
className
=
{
pageStyles
.
logintimebox
}
type
=
"flex"
justify
=
"space-between"
align
=
"middle"
>
<
Col
span
=
{
12
}
className
=
{
pageStyles
.
timetitle
}
>
上次登录时间
:
<
/Col
>
...
...
@@ -264,6 +293,7 @@ function mapStateToProps(state) {
inviateHoldList
,
inviateTeacherList
,
stronghold
,
datetime
,
}
=
state
.
schoollist
;
const
{
userInfo
,
...
...
@@ -276,6 +306,7 @@ function mapStateToProps(state) {
userInfo
,
stronghold
,
globalErrorType
,
datetime
,
};
}
export
default
connect
(
mapStateToProps
)(
JoinSchoolAdd
);
src/pages/schoollist/index.less
View file @
9ca2b60c
...
...
@@ -112,6 +112,9 @@
left: 0;
bottom: 45px;
width: 100%;
&.expiretimebox {
bottom: 20px;
}
}
.timetitle {
color: rgba(0,0,0,0.45);
...
...
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