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
dfb9c73a
Commit
dfb9c73a
authored
Dec 08, 2020
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:更改接口的名称
parent
42b977ca
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
35 deletions
+40
-35
src/modules/personalInfo/index.tsx
+7
-4
src/modules/root/Login.jsx
+2
-2
src/modules/store-manege/CourseCatalogPage.tsx
+0
-0
src/modules/store-manege/modal/CatalogAddOrEditModal.tsx
+14
-13
src/modules/store-manege/modal/SecondCatalogAddOrEditModal.tsx
+17
-16
No files found.
src/modules/personalInfo/index.tsx
View file @
dfb9c73a
/*
* @Author: zhangleyuan
* @Date: 2020-11-27 15:06:31
* @LastEditors:
wuf
an
* @LastEditTime: 2020-12-0
7 20:09:22
* @LastEditors:
zhangleyu
an
* @LastEditTime: 2020-12-0
8 11:55:09
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -42,11 +42,14 @@ function PersonalInfoPage() {
storeUserId
:
User
.
getStoreUserId
()
}
BaseService
.
getStoreUser
(
param
).
then
((
res
)
=>
{
const
{
nickName
,
phone
,
roleCodes
,
avatar
}
=
res
.
result
;
const
{
nickName
,
phone
,
roleCodes
}
=
res
.
result
;
setNickName
(
nickName
);
setPhone
(
phone
);
setRoleCodes
(
roleCodes
)
setAvatar
(
avatar
)
if
(
res
.
result
.
avatar
){
setAvatar
(
res
.
result
.
avatar
)
}
});
}
function
_handleUpdateAvatar
(
e
:
any
):
any
{
...
...
src/modules/root/Login.jsx
View file @
dfb9c73a
...
...
@@ -49,7 +49,7 @@ function Login(props) {
scene
:
'nc_login'
,
serverType
:
"CLOUD_CLASS_LOGIN"
,
}
axios
.
post
(
'https://dev-heimdall.xiaomai5.com/hades/anon/
store
/sendLoginAuthCode'
,
params
).
then
((
res
)
=>
{
axios
.
post
(
'https://dev-heimdall.xiaomai5.com/hades/anon/
hades
/sendLoginAuthCode'
,
params
).
then
((
res
)
=>
{
if
(
!
res
.
data
.
success
)
{
setErrorMessage
(
res
.
data
.
message
);
}
else
{
...
...
@@ -84,7 +84,7 @@ function Login(props) {
authCode
:
phoneverify
,
appTermEnum
:
"XIAOMAI_CLOUD_CLASS_PC_WEB"
}
axios
.
post
(
'https://dev-heimdall.xiaomai5.com/hades/anon/
store
/login'
,
params
).
then
((
res
)
=>
{
axios
.
post
(
'https://dev-heimdall.xiaomai5.com/hades/anon/
hades
/login'
,
params
).
then
((
res
)
=>
{
const
data
=
res
.
data
;
if
(
!
data
.
success
)
{
setErrorMessage
(
data
.
message
);
...
...
src/modules/store-manege/CourseCatalogPage.tsx
View file @
dfb9c73a
This diff is collapsed.
Click to expand it.
src/modules/store-manege/modal/CatalogAddOrEditModal.tsx
View file @
dfb9c73a
...
...
@@ -2,7 +2,7 @@
* @Author: wufan
* @Date: 2020-11-27 16:21:49
* @LastEditors: zhangleyuan
* @LastEditTime: 2020-12-0
7 19:05:11
* @LastEditTime: 2020-12-0
8 14:12:20
* @Description: Description
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -36,13 +36,14 @@ function CatalogAddOrEditModal(props: CatalogAddOrEditModalProps) {
categoryName
:
catalogName
}
StoreService
.
addCourseCategory
(
param
).
then
((
res
:
any
)
=>
{
// const data = {
// type:'addCatalog',
// catalogName:catalogName,
// id:res.result
// }
refreshCatalogList
();
onClose
();
const
data
=
{
type
:
'addCatalog'
,
catalogName
:
catalogName
,
id
:
res
.
result
}
refreshCatalogList
(
data
);
});
}
function
editCatalog
():
any
{
...
...
@@ -51,12 +52,12 @@ function CatalogAddOrEditModal(props: CatalogAddOrEditModalProps) {
categoryName
:
catalogName
,
}
StoreService
.
editCourseCategory
(
param
).
then
((
res
:
any
)
=>
{
const
data
=
{
type
:
'editCatalog'
,
catalogName
:
catalogName
,
id
:
choosedItem
.
id
}
refreshCatalogList
(
data
);
//
const data = {
//
type:'editCatalog',
//
catalogName:catalogName,
//
id:choosedItem.id
//
}
refreshCatalogList
();
onClose
();
});
}
...
...
src/modules/store-manege/modal/SecondCatalogAddOrEditModal.tsx
View file @
dfb9c73a
...
...
@@ -2,7 +2,7 @@
* @Author: wufan
* @Date: 2020-11-27 16:21:49
* @LastEditors: zhangleyuan
* @LastEditTime: 2020-12-0
7 19:51:03
* @LastEditTime: 2020-12-0
8 14:11:44
* @Description: Description
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -26,7 +26,7 @@ interface SecondCatalogAddOrEditModalProps {
function
SecondCatalogAddOrEditModal
(
props
:
SecondCatalogAddOrEditModalProps
)
{
const
{
onClose
,
modalType
,
parentId
,
refreshCatalogList
,
choosedItem
}
=
props
;
const
[
secondCatalogName
,
setSecondCatalogName
]
=
useState
(
''
);
const
[
secondCatalogName
,
setSecondCatalogName
]
=
useState
(
choosedItem
.
categoryName
);
const
[
selectParentId
,
setSelectParentId
]
=
useState
(
parentId
);
const
[
optionList
,
setOptionList
]
=
useState
([]);
const
[
query
,
setQuery
]
=
useState
({
...
...
@@ -58,13 +58,13 @@ function SecondCatalogAddOrEditModal(props: SecondCatalogAddOrEditModalProps) {
categoryName
:
secondCatalogName
}
StoreService
.
addCourseCategory
(
param
).
then
((
res
:
any
)
=>
{
const
data
=
{
type
:
'addSecondCatalog'
,
catalogName
:
secondCatalogName
,
parentId
:
selectParentId
,
id
:
res
.
result
}
refreshCatalogList
(
data
);
//
const data = {
//
type:'addSecondCatalog',
//
catalogName:secondCatalogName,
//
parentId:selectParentId,
//
id:res.result
//
}
refreshCatalogList
();
onClose
();
});
}
...
...
@@ -75,13 +75,13 @@ function SecondCatalogAddOrEditModal(props: SecondCatalogAddOrEditModalProps) {
categoryName
:
secondCatalogName
,
}
StoreService
.
editCourseCategory
(
param
).
then
((
res
:
any
)
=>
{
const
data
=
{
type
:
'editSecondCatalog'
,
catalogName
:
secondCatalogName
,
id
:
choosedItem
.
id
,
parentId
:
selectParentId
,
}
refreshCatalogList
(
data
);
//
const data = {
//
type:'editSecondCatalog',
//
catalogName:secondCatalogName,
//
id:choosedItem.id,
//
parentId:selectParentId,
//
}
refreshCatalogList
();
onClose
();
});
}
...
...
@@ -119,6 +119,7 @@ function SecondCatalogAddOrEditModal(props: SecondCatalogAddOrEditModalProps) {
placeholder=
"请输入子分类名称,最多10个字"
maxLength=
{
10
}
style=
{
{
width
:
240
}
}
value=
{
secondCatalogName
}
onChange=
{
(
e
)
=>
{
setSecondCatalogName
(
e
.
target
.
value
);
}
}
...
...
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