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
10c484bd
Commit
10c484bd
authored
Jan 08, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:处理分享链接
parent
99e754b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/modules/course-manage/components/LiveCourseList.jsx
+2
-2
src/modules/course-manage/video-course/components/VideoCourseList.jsx
+4
-4
No files found.
src/modules/course-manage/components/LiveCourseList.jsx
View file @
10c484bd
...
@@ -76,8 +76,8 @@ class LiveCourseList extends React.Component {
...
@@ -76,8 +76,8 @@ class LiveCourseList extends React.Component {
const
_appId
=
appId
;
const
_appId
=
appId
;
const
{
liveCourseId
}
=
item
;
const
{
liveCourseId
}
=
item
;
const
htmlUrl
=
`
${
LIVE_SHARE
}
store/
${
User
.
getStoreId
()}
/
live_detail/
${
liveCourseId
}
`
;
const
htmlUrl
=
`
${
LIVE_SHARE
}
live_detail/
${
liveCourseId
}
`
;
const
longUrl
=
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=
${
_appId
}
&redirect_uri=
${
encodeURIComponent
(
htmlUrl
)}
&response_type=code&scope=snsapi_base&state=state#wechat_redirect`
;
const
longUrl
=
htmlUrl
console
.
log
(
'htmlUrl'
,
htmlUrl
,
longUrl
);
console
.
log
(
'htmlUrl'
,
htmlUrl
,
longUrl
);
const
shareData
=
{
...
item
,
longUrl
};
const
shareData
=
{
...
item
,
longUrl
};
...
...
src/modules/course-manage/video-course/components/VideoCourseList.jsx
View file @
10c484bd
/*
/*
* @Author: 吴文洁
* @Author: 吴文洁
* @Date: 2020-08-05 10:12:45
* @Date: 2020-08-05 10:12:45
* @LastEditors:
wuf
an
* @LastEditors:
zhangleyu
an
* @LastEditTime: 2021-01-08 1
1:14:00
* @LastEditTime: 2021-01-08 1
7:03:46
* @Description: 视频课-列表模块
* @Description: 视频课-列表模块
* @Copyright: 杭州杰竞科技有限公司 版权所有
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -237,8 +237,8 @@ class VideoCourseList extends React.Component {
...
@@ -237,8 +237,8 @@ class VideoCourseList extends React.Component {
const
{
id
,
scheduleVideoUrl
}
=
record
;
const
{
id
,
scheduleVideoUrl
}
=
record
;
const
_appId
=
appId
;
const
_appId
=
appId
;
const
htmlUrl
=
`
${
LIVE_SHARE
}
store/
${
User
.
getStoreId
()}
/
video_detail/
${
id
}
`
;
const
htmlUrl
=
`
${
LIVE_SHARE
}
video_detail/
${
id
}
`
;
const
longUrl
=
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=
${
_appId
}
&redirect_uri=
${
encodeURIComponent
(
htmlUrl
)}
&response_type=code&scope=snsapi_base&state=state#wechat_redirect`
;
const
longUrl
=
htmlUrl
;
const
{
coverUrl
,
courseName
}
=
record
;
const
{
coverUrl
,
courseName
}
=
record
;
const
shareData
=
{
const
shareData
=
{
longUrl
,
longUrl
,
...
...
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