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
9b034827
Commit
9b034827
authored
Jul 09, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:处理前往学院的码
parent
806f97d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/modules/root/Header.jsx
+5
-4
No files found.
src/modules/root/Header.jsx
View file @
9b034827
/*
* @Author: 吴文洁
* @Date: 2019-09-10 18:26:03
* @LastEditors:
yuananting
* @LastEditTime: 2021-07-0
6 14:37:49
* @LastEditors:
Please set LastEditors
* @LastEditTime: 2021-07-0
9 11:42:46
* @Description:
*/
import
React
,
{
useRef
,
useContext
,
useEffect
,
useState
}
from
'react'
;
...
...
@@ -36,7 +36,7 @@ function Header(props) {
const
[
openDropdown
,
setOpenDropdown
]
=
useState
(
false
);
const
[
instScroll
,
setInstScroll
]
=
useState
(
false
);
const
ctx
=
useContext
(
XMContext
);
const
htmlUrl
=
`
${
LIVE_SHARE
}
store/index?id=
${
User
.
getStoreId
()}
&userId=
${
User
.
getUserId
()}
&from=work_weixin
`
;
const
htmlUrl
=
`
${
LIVE_SHARE
}
store/index?id=
${
User
.
getStoreId
()}
&userId=
${
User
.
getUserId
()}
`
;
const
helpCenterUrl
=
'https://www.yuque.com/wangzhong-zkqw0/qixue'
;
// 帮助中心
const
storeUserId
=
User
.
getStoreUserId
();
const
enterpriseId
=
User
.
getEnterpriseId
();
...
...
@@ -207,8 +207,9 @@ function Header(props) {
}
function
handleConvertShortUrl
()
{
//提供给企业微信下的人员使用的码,用微信方式扫时页时获取企业微信的身份
CourseService
.
getQrcode
({
urls
:
[
htmlUrl
],
urls
:
[
`
${
htmlUrl
}
&source=workWechat`
],
}).
then
((
res
)
=>
{
const
{
result
=
[]
}
=
res
;
const
qrcodeWrapDom
=
document
.
querySelector
(
'#h5-qrcode'
);
...
...
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