Commit 10c484bd by zhangleyuan

feat:处理分享链接

parent 99e754b2
...@@ -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 };
......
/* /*
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2020-08-05 10:12:45 * @Date: 2020-08-05 10:12:45
* @LastEditors: wufan * @LastEditors: zhangleyuan
* @LastEditTime: 2021-01-08 11:14:00 * @LastEditTime: 2021-01-08 17: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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment