Commit b00c3de8 by wufan

feat:修改分享

parent bfb03c9d
......@@ -77,7 +77,7 @@ class LiveCourseList extends React.Component {
const { liveCourseId } = item;
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);
const shareData = { ...item, longUrl };
......
/*
* @Author: 吴文洁
* @Date: 2020-08-05 10:12:45
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-01-07 15:38:16
* @LastEditors: wufan
* @LastEditTime: 2021-01-08 11:14:00
* @Description: 视频课-列表模块
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
......@@ -237,10 +237,8 @@ class VideoCourseList extends React.Component {
const { id, scheduleVideoUrl } = record;
const _appId = appId;
const { liveCourseId } = record;
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 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 { coverUrl, courseName } = record;
const shareData = {
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