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
3994dbd0
Commit
3994dbd0
authored
Mar 09, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:处理店铺信息的展示
parent
86f01b13
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
15 deletions
+28
-15
src/modules/plan-manage/AddPlan.jsx
+8
-6
src/modules/plan-manage/components/BasicInfo.jsx
+7
-5
src/modules/root/App.tsx
+3
-2
src/modules/root/Header.jsx
+7
-2
src/modules/store-manage/StoreInfo.jsx
+3
-0
No files found.
src/modules/plan-manage/AddPlan.jsx
View file @
3994dbd0
...
...
@@ -2,7 +2,7 @@
* @Author: zhangleyuan
* @Date: 2021-02-20 16:13:39
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-03-09 1
6:54:56
* @LastEditTime: 2021-03-09 1
8:02:17
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -84,11 +84,13 @@ function AddPlan() {
return
item
;
})
let
_selectOperatorList
=
[];
_selectOperatorList
=
operateIds
.
map
((
item
,
index
)
=>
{
let
_item
=
{};
_item
.
id
=
item
;
return
_item
})
if
(
operateIds
){
_selectOperatorList
=
operateIds
.
map
((
item
,
index
)
=>
{
let
_item
=
{};
_item
.
id
=
item
;
return
_item
})
}
setBasicData
({
planName
,
coverUrl
:
coverUrl
||
defaultCover
,
...
...
src/modules/plan-manage/components/BasicInfo.jsx
View file @
3994dbd0
...
...
@@ -2,7 +2,7 @@
* @Author: zhangleyuan
* @Date: 2021-02-20 16:45:51
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-03-09 1
7:09:39
* @LastEditTime: 2021-03-09 1
8:04:58
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -281,10 +281,12 @@ class BasicInfo extends React.Component{
</
Col
>
</
Row
>
</
Radio
.
Group
>
<
div
className=
"choose-business"
>
<
Button
onClick=
{
()
=>
{
this
.
handleShowSelectOperatorModal
()}
}
>
选择运营师
</
Button
>
<
span
>
已选择
<
span
>
{
selectOperatorList
.
length
}
</
span
>
名运营师
</
span
>
</
div
>
{
operateType
===
"Assign_Operate"
&&
<
div
className=
"choose-business"
>
<
Button
onClick=
{
()
=>
{
this
.
handleShowSelectOperatorModal
()}
}
>
选择运营师
</
Button
>
<
span
>
已选择
<
span
>
{
selectOperatorList
.
length
}
</
span
>
名运营师
</
span
>
</
div
>
}
</
div
>
</
div
>
<
div
className=
"done-standard"
>
...
...
src/modules/root/App.tsx
View file @
3994dbd0
...
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2019-07-10 10:30:49
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-0
2-02 16:42:04
* @LastEditTime: 2021-0
3-09 18:23:29
* @Description:
*/
import
React
,
{
useContext
,
useEffect
,
useState
}
from
'react'
;
...
...
@@ -16,6 +16,7 @@ import User from '@/common/js/user';
import
BaseService
from
"@/domains/basic-domain/baseService"
;
import
{
XMContext
}
from
'@/store/context'
;
import
{
setStoreGroupPermission
,
setStorePermission
,
setStoreGroupList
,
setStoreList
}
from
'@/store/actions/index'
;
import
Bus
from
'@/core/tbus'
;
declare
var
window
:
any
;
const
App
:
React
.
FC
=
(
props
:
any
)
=>
{
...
...
@@ -47,9 +48,9 @@ const App: React.FC = (props: any) => {
User
.
setStoreId
(
id
);
User
.
setStoreUserId
(
storeUserId
);
User
.
setStoreName
(
storeName
);
Bus
.
trigger
(
'storeNameChange'
,
storeName
);
User
.
setUserRole
(
userRole
);
User
.
setStoreType
(
storeType
);
ctx
.
dispatch
(
setStoreGroupList
(
storeGroupVOS
))
ctx
.
dispatch
(
setStoreList
(
storeVOS
));
serStoreUserId
(
storeUserId
)
...
...
src/modules/root/Header.jsx
View file @
3994dbd0
...
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2019-09-10 18:26:03
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-0
1-28 15:24:43
* @LastEditTime: 2021-0
3-09 19:05:49
* @Description:
*/
import
React
,
{
useContext
,
useEffect
,
useState
}
from
"react"
;
...
...
@@ -15,17 +15,22 @@ import { XMContext } from "@/store/context";
import
logoImg
from
"@/common/images/logo.png"
;
import
CourseService
from
"@/domains/course-domain/CourseService"
;
import
qrcode
from
"@/libs/qrcode/qrcode.js"
;
import
Bus
from
'@/core/tbus'
;
const
baseImg
=
"https://image.xiaomaiketang.com/xm/rJeQaZxtc7.png"
;
const
{
confirm
}
=
Modal
;
function
Header
(
props
)
{
const
{
menuType
,
handleMenuType
}
=
props
;
const
[
storeName
,
setStoreName
]
=
useState
(
User
.
getStoreName
())
const
ctx
=
useContext
(
XMContext
);
const
htmlUrl
=
`
${
LIVE_SHARE
}
store/index?id=
${
User
.
getStoreId
()}
&userId=
${
User
.
getUserId
()}
&from=work_weixin`
;
useEffect
(()
=>
{
htmlUrl
&&
handleConvertShortUrl
();
Bus
.
bind
(
'storeNameChange'
,
(
value
)
=>
{
setStoreName
(
value
);
});
},
[]);
function
userMenu
()
{
...
...
@@ -135,7 +140,7 @@ function Header(props) {
)
}
<
div
className=
"message-help"
>
<
div
className=
"store-related"
>
<
div
className=
"store-name"
>
{
User
.
getStoreName
()
}
</
div
>
<
div
className=
"store-name"
>
{
storeName
}
</
div
>
<
div
className=
"line"
></
div
>
<
div
className=
"link-to-store"
>
<
div
className=
"link"
>
...
...
src/modules/store-manage/StoreInfo.jsx
View file @
3994dbd0
...
...
@@ -7,6 +7,7 @@ import Upload from '@/core/upload';
import
PhotoClip
from
'photoclip'
;
import
StoreService
from
"@/domains/store-domain/storeService"
;
import
User
from
"@/common/js/user"
;
import
Bus
from
'@/core/tbus'
;
import
"./StoreInfo.less"
;
let
cutFlag
=
false
;
class
StoreInfo
extends
React
.
Component
{
...
...
@@ -209,6 +210,8 @@ class StoreInfo extends React.Component {
storeId
:
User
.
getStoreId
()
}
StoreService
.
updateStoreMessage
(
params
).
then
((
res
)
=>
{
User
.
setStoreName
(
storeName
);
Bus
.
trigger
(
'storeNameChange'
,
storeName
);
message
.
success
(
'保存成功'
);
});
}
...
...
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