提交 3050510f 编写于 作者: guangjun.yang's avatar guangjun.yang

生成分享的url

上级 06e89b5b
...@@ -351,11 +351,25 @@ export default { ...@@ -351,11 +351,25 @@ export default {
// 生成分享的url // 生成分享的url
generateShareUrl() { generateShareUrl() {
let _this = this; let _this = this;
let videoUrl = this.$route.query.videoUrl || '';
let info = "";
if(videoUrl) {
let limitTimes = this.$route.query.limitTimes || 300000;
info = JSON.stringify({
projectId: this.projectId,
videoUrl: videoUrl,
limitTimes: limitTimes
})
} else {
info = JSON.stringify({
projectId: this.projectId,
})
}
let param = { let param = {
channel: 1, // 分享渠道 1:APP channel: 1, // 分享渠道 1:APP
info: `${_this.projectId}`, info: info,
type: 3 // 业务类型 1:教培项目 2:继教项目 3:职称考项目 type: 3 // 业务类型 1:教培项目 2:继教项目 3:职称考项目
}; };
_this.POST("portal/shareParam/save", param).then(res => { _this.POST("portal/shareParam/save", param).then(res => {
if (res.code == "000000") { if (res.code == "000000") {
let url = getWebPageUrl(`profexam/#/sharecoop?uuid=${res.data}`); let url = getWebPageUrl(`profexam/#/sharecoop?uuid=${res.data}`);
......
此差异已折叠。
...@@ -381,7 +381,8 @@ export default { ...@@ -381,7 +381,8 @@ export default {
}; };
this.GET(`portal/shareParam/queryByUuid`, param).then(res => { this.GET(`portal/shareParam/queryByUuid`, param).then(res => {
if (res.code == "000000") { if (res.code == "000000") {
this.projectId = res.data; this.shareParam = JSON.parse(res.data);
this.projectId = this.shareParam.projectId || 797;
this.getProjectInfoById(); this.getProjectInfoById();
console.log('queryByUuid', res); console.log('queryByUuid', res);
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册