Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
843b8102
Commit
843b8102
authored
Jan 28, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style:修改UI样式
parent
7ce64130
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
43 additions
and
22 deletions
+43
-22
src/core/antd.less
+5
-0
src/domains/basic-domain/constants.ts
+2
-2
src/domains/course-domain/constants.ts
+1
-1
src/modules/common/DateRangePicker.jsx
+1
-1
src/modules/course-manage/components/AddLiveBasic.jsx
+1
-0
src/modules/course-manage/components/AddLiveClass.jsx
+5
-1
src/modules/course-manage/components/LiveCourseFilter.jsx
+1
-0
src/modules/course-manage/components/LiveCourseList.jsx
+2
-1
src/modules/course-manage/components/liveCourseOpt.less
+2
-1
src/modules/course-manage/video-course/components/VideoCourseFilter.jsx
+2
-1
src/modules/course-manage/video-course/components/VideoCourseList.jsx
+2
-2
src/modules/root/Header.jsx
+3
-4
src/modules/root/Login.jsx
+2
-2
src/modules/root/Login.less
+6
-5
src/modules/root/Menu.less
+7
-0
src/modules/root/WechatLogin.tsx
+1
-1
No files found.
src/core/antd.less
View file @
843b8102
...
...
@@ -636,6 +636,11 @@ mr0 {
.ant-select-dropdown .rc-virtual-list-scrollbar .rc-virtual-list-scrollbar-thumb{
background: #D6D6D6 !important;
width:6px !important;
height:80px !important;
}
.ant-select-dropdown .rc-virtual-list-scrollbar .rc-virtual-list-scrollbar-thumb:hover{
background: #ADADAD !important;
}
.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > thead > tr > .ant-table-cell-fix-right-first::after,
.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tbody > tr > .ant-table-cell-fix-right-first::after
...
...
src/domains/basic-domain/constants.ts
View file @
843b8102
/*
* @Author: 陈剑宇
* @Date: 2020-05-07 14:43:01
* @LastEditTime: 2021-01-2
7 19:52:5
8
* @LastEditTime: 2021-01-2
8 16:28:0
8
* @LastEditors: zhangleyuan
* @Description:
* @FilePath: /wheat-web-demo/src/domains/basic-domain/constants.ts
...
...
@@ -9,7 +9,7 @@
import
{
MapInterface
}
from
'@/domains/basic-domain/interface'
// 默认是 dev 环境
const
ENV
:
string
=
process
.
env
.
DEPLOY_ENV
||
'
prod
'
;
const
ENV
:
string
=
process
.
env
.
DEPLOY_ENV
||
'
dev
'
;
console
.
log
(
"process.env.DEPLOY_ENV"
,
process
)
const
BASIC_HOST_MAP
:
MapInterface
=
{
dev
:
'https://dev-heimdall.xiaomai5.com/'
,
...
...
src/domains/course-domain/constants.ts
View file @
843b8102
...
...
@@ -7,7 +7,7 @@
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
import
{
MapInterface
}
from
'@/domains/basic-domain/interface'
const
ENV
:
string
=
process
.
env
.
DEPLOY_ENV
||
'
prod
'
;
const
ENV
:
string
=
process
.
env
.
DEPLOY_ENV
||
'
dev
'
;
const
appIdMap
:
MapInterface
=
{
dev
:
'wx3ea60e78ddfa277e'
,
...
...
src/modules/common/DateRangePicker.jsx
View file @
843b8102
...
...
@@ -27,7 +27,7 @@ class DateRangePicker extends React.Component {
this
.
props
.
onChange
(
date
)
}
}
{
...
showTime
}
suffixIcon=
{
<
span
class=
"icon iconfont"
>

</
span
>
}
suffixIcon=
{
<
span
class
Name
=
"icon iconfont"
>

</
span
>
}
/>
)
}
...
...
src/modules/course-manage/components/AddLiveBasic.jsx
View file @
843b8102
...
...
@@ -306,6 +306,7 @@ class AddLiveBasic extends React.Component {
onCancel=
{
()
=>
{
this
.
setState
({
visible
:
false
});
}
}
zIndex=
{
10001
}
footer=
{
[
<
Button
key=
"back"
...
...
src/modules/course-manage/components/AddLiveClass.jsx
View file @
843b8102
...
...
@@ -103,13 +103,15 @@ class AddLiveClass extends React.Component {
handleScrollTeacherList
=
(
e
)
=>
{
const
{
hasNext
}
=
this
.
state
;
const
container
=
e
.
target
;
//判定元素是否滚动到底部
const
scrollToBottom
=
container
&&
container
.
scrollHeight
<=
container
.
clientHeight
+
container
.
scrollTop
;
if
(
scrollToBottom
&&
hasNext
)
{
const
{
teacherQuery
}
=
this
.
state
;
let
_teacherQuery
=
teacherQuery
;
_teacherQuery
.
current
=
_teacherQuery
.
current
+
1
this
.
setState
({
assistant
Query
:{...
_teacherQuery
}
teacher
Query
:{...
_teacherQuery
}
},()
=>
{
this
.
getTeacherList
(
_teacherQuery
.
current
)})
}
}
...
...
@@ -118,6 +120,8 @@ class AddLiveClass extends React.Component {
handleScrollAssistantList
=
(
e
)
=>
{
const
{
assistantHasNext
}
=
this
.
state
;
const
container
=
e
.
target
;
//判定元素是否滚动到底部
const
scrollToBottom
=
container
&&
container
.
scrollHeight
<=
container
.
clientHeight
+
container
.
scrollTop
;
if
(
scrollToBottom
&&
assistantHasNext
)
{
const
{
assistantQuery
}
=
this
.
state
;
...
...
src/modules/course-manage/components/LiveCourseFilter.jsx
View file @
843b8102
...
...
@@ -187,6 +187,7 @@ class LiveCourseFilter extends React.Component {
allowClear
filterOption=
{
(
input
,
option
)
=>
option
}
onPopupScroll=
{
this
.
handleScrollTeacherList
}
suffixIcon=
{
<
span
className=
"icon iconfont"
style=
{
{
fontSize
:
'12px'
,
color
:
'#BFBFBF'
}
}
>

</
span
>
}
value=
{
teacherId
}
onChange=
{
(
value
)
=>
{
this
.
handleChangeQuery
(
'teacherId'
,
value
);
...
...
src/modules/course-manage/components/LiveCourseList.jsx
View file @
843b8102
...
...
@@ -262,7 +262,8 @@ class LiveCourseList extends React.Component {
<
Tooltip
title=
{
<
div
>
开启后,用户可在店铺内查看到此课程。若课程“未成功开课”,则系统会自动“关闭”店铺展示。
<
br
/>
关闭后,店铺内不再展示此课程,但用户仍可通过分享的海报/链接查看此课程。
</
div
>
}
><
i
className=
"icon iconfont"
style=
{
{
marginLeft
:
'5px'
,
cursor
:
'pointer'
,
color
:
'#bfbfbf'
,
fontSize
:
'14px'
}
}
>

</
i
></
Tooltip
>
</
span
>,
width
:
"9%"
,
dataIndex
:
"courseware"
,
key
:
"shelfState"
,
dataIndex
:
"shelfState"
,
render
:
(
val
,
item
,
index
)
=>
{
return
(
<
Switch
defaultChecked=
{
item
.
shelfState
===
"YES"
?
true
:
false
}
onChange=
{
()
=>
this
.
changeShelfState
(
item
)
}
/>
...
...
src/modules/course-manage/components/liveCourseOpt.less
View file @
843b8102
...
...
@@ -10,6 +10,6 @@
}
.ant-btn {
margin-right:
12
px;
margin-right:
8
px;
}
}
\ No newline at end of file
src/modules/course-manage/video-course/components/VideoCourseFilter.jsx
View file @
843b8102
...
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2020-08-05 10:11:57
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-01-
15 13:52:10
* @LastEditTime: 2021-01-
28 18:06:34
* @Description: 视频课-搜索模块
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -154,6 +154,7 @@ class VideoCourseFilter extends React.Component {
allowClear
filterOption=
{
(
input
,
option
)
=>
option
}
onPopupScroll=
{
this
.
handleScrollTeacherList
}
suffixIcon=
{
<
span
className=
"icon iconfont"
style=
{
{
fontSize
:
'12px'
,
color
:
'#BFBFBF'
}
}
>

</
span
>
}
value=
{
operatorId
}
onChange=
{
(
value
)
=>
{
this
.
handleChangeQuery
(
'operatorId'
,
value
)
...
...
src/modules/course-manage/video-course/components/VideoCourseList.jsx
View file @
843b8102
...
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2020-08-05 10:12:45
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-01-2
7 19:53:30
* @LastEditTime: 2021-01-2
8 16:28:24
* @Description: 视频课-列表模块
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -23,7 +23,7 @@ import User from '@/common/js/user'
import
'./VideoCourseList.less'
;
const
ENV
=
process
.
env
.
DEPLOY_ENV
||
'
prod
'
;
const
ENV
=
process
.
env
.
DEPLOY_ENV
||
'
dev
'
;
class
VideoCourseList
extends
React
.
Component
{
...
...
src/modules/root/Header.jsx
View file @
843b8102
/*
* @Author: 吴文洁
* @Date: 2019-09-10 18:26:03
* @LastEditors:
wuf
an
* @LastEditTime: 2021-01-2
5 20:40:5
3
* @LastEditors:
zhangleyu
an
* @LastEditTime: 2021-01-2
8 15:24:4
3
* @Description:
*/
import
React
,
{
useContext
,
useEffect
,
useState
}
from
"react"
;
...
...
@@ -116,8 +116,7 @@ function Header(props) {
<
div
id=
"top-container"
className=
"top-container"
>
<
div
className=
"top top-nav"
>
<
div
>
<
img
src=
{
logoImg
}
className=
"logo"
alt=
""
/>
{
menuType
&&
<
span
className=
"logo-name"
>
小麦企培
</
span
>
}
{
menuType
?
<
img
src=
'https://image.xiaomaiketang.com/xm/4swGidkYR6.png'
className=
"logo"
alt=
""
/>:<
img
src=
{
logoImg
}
className=
"logo"
alt=
""
/>
}
</
div
>
{
menuType
?
(
<
span
...
...
src/modules/root/Login.jsx
View file @
843b8102
...
...
@@ -3,7 +3,7 @@ import {
withRouter
}
from
'react-router-dom'
;
import
'./Login.less'
;
import
{
Input
,
Popover
,
message
,
Tabs
}
from
'antd'
;
import
{
Input
,
Popover
,
message
,
Tabs
,
Button
}
from
'antd'
;
import
CheckBeforeSendCode
from
'../../components/CheckBeforeSendCode'
;
import
User
from
'@/common/js/user'
;
import
WechatLogin
from
'./WechatLogin'
...
...
@@ -194,7 +194,7 @@ function Login(props) {
</
div
>
<
div
className=
"submit"
>
<
div
className=
"btn"
>
<
button
id=
'loginIn'
onClick=
{
()
=>
{
handleSubmit
()
}
}
>
登录
</
butto
n
>
<
span
id=
'loginIn'
onClick=
{
()
=>
{
handleSubmit
()
}
}
>
登录
</
spa
n
>
</
div
>
</
div
>
</
div
>
...
...
src/modules/root/Login.less
View file @
843b8102
...
...
@@ -98,8 +98,8 @@
display: none;
}
.ant-tabs-tab {
width: 105px;
text-align: center;
margin:0;
}
.ant-tabs > .ant-tabs-nav .ant-tabs-nav-list {
margin: 0 auto;
...
...
@@ -167,7 +167,7 @@
flex: 1;
-webkit-flex: 1;
height: 100%;
padding:
30
px;
padding:
24
px;
box-sizing: border-box;
position: relative;
&.show-qrcode {
...
...
@@ -433,14 +433,14 @@
}
}
.btn {
butto
n {
#loginI
n {
display: block;
width: 100%;
background: @primary;
color: #fff;
font-size: 14px;
font-weight: 400;
line-height: 40px;
font-weight: 400
!important
;
line-height: 40px
!important
;
border-radius: 4px;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
...
...
@@ -449,6 +449,7 @@
transition: all 0.3s;
cursor: pointer;
border: none;
text-align:center;
&:hover {
opacity: 0.7;
background: linear-gradient(90deg, #ffb714 0%, #ffad34 100%);
...
...
src/modules/root/Menu.less
View file @
843b8102
...
...
@@ -101,6 +101,13 @@
padding-left: 22px;
padding-right: 0;
width: 117px;
margin-bottom:0 !important;
&:first-child{
margin-top:8px !important;
}
&:last-child{
margin-bottom:8px !important;
}
}
.listType {
...
...
src/modules/root/WechatLogin.tsx
View file @
843b8102
...
...
@@ -26,7 +26,7 @@ export default function WechatLogin(props: any) {
if
(
status
===
0
)
{
Service
.
Hades
(
"anon/hades/getTicket"
,
{}).
then
((
res
:
any
)
=>
{
setTicket
(
res
.
result
)
const
redirect
=
`
${
location
.
origin
+
location
.
pathname
.
replace
(
'index.html'
,
''
)
+
'h5.html'
}
?ticket=
${
res
.
result
}
&appTermEnum=XIAOMAI_CLOUD_CLASS_PC_WEB_ADMIN&env=
${
process
.
env
.
DEPLOY_ENV
||
'
prod
'
}
`
const
redirect
=
`
${
location
.
origin
+
location
.
pathname
.
replace
(
'index.html'
,
''
)
+
'h5.html'
}
?ticket=
${
res
.
result
}
&appTermEnum=XIAOMAI_CLOUD_CLASS_PC_WEB_ADMIN&env=
${
process
.
env
.
DEPLOY_ENV
||
'
dev
'
}
`
// console.log(redirect)
// const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww409ccf9c6e31f19e&redirect_uri=${encodeURIComponent(redirect)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`
// console.log(url)
...
...
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