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