Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-professional-exam
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Culm
pica-professional-exam
提交
fd4f9c7f
提交
fd4f9c7f
编写于
9月 10, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
不用带returnUrl
上级
ef9eae4a
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
7 行增加
和
14 行删除
+7
-14
cell-list-detail-share.vue
src/components/business/cell-list-detail-share.vue
+1
-1
course-detail.vue
src/views/course-detail.vue
+1
-1
goods-detail.vue
src/views/goods-detail.vue
+0
-7
purchase-rezult.vue
src/views/purchase-rezult.vue
+3
-3
share-merge-detail.vue
src/views/share-merge-detail.vue
+2
-2
未找到文件。
src/components/business/cell-list-detail-share.vue
浏览文件 @
fd4f9c7f
...
...
@@ -250,7 +250,7 @@ export default {
Toast
(
'请前往云鹊医APP学习课程'
);
return
;
}
let
jumpUrl
=
getWebPageUrl
(
`profexam/#/course-detail?courseId=
${
item
.
id
}
&projectId=
${
this
.
projectId
}
&returnUrl=
${
encodeURIComponent
(
location
.
href
)}
`
);
let
jumpUrl
=
getWebPageUrl
(
`profexam/#/course-detail?courseId=
${
item
.
id
}
&projectId=
${
this
.
projectId
}
`
);
window
.
location
.
href
=
jumpUrl
;
},
...
...
src/views/course-detail.vue
浏览文件 @
fd4f9c7f
...
...
@@ -306,7 +306,7 @@ export default {
}
},
btnClick1
()
{
this
.
$router
.
push
({
path
:
'/goods-detail'
,
query
:
{
goodsId
:
this
.
goodsId
,
projectId
:
this
.
projectId
,
returnUrl
:
encodeURIComponent
(
location
.
href
+
'&projectId='
+
this
.
projectId
)
}
})
this
.
$router
.
push
({
path
:
'/goods-detail'
,
query
:
{
goodsId
:
this
.
goodsId
,
projectId
:
this
.
projectId
}
})
},
// 折叠、展开目录
onToggle
(
index
)
{
...
...
src/views/goods-detail.vue
浏览文件 @
fd4f9c7f
...
...
@@ -133,7 +133,6 @@ export default {
mounted
()
{
this
.
projectId
=
this
.
$route
.
query
.
projectId
;
this
.
goodsId
=
this
.
$route
.
query
.
goodsId
||
74
;
// this.returnUrl = encodeURIComponent(this.$route.query.returnUrl);
this
.
getGoodsInfo
();
this
.
getTabW
();
const
{
token
,
info
}
=
this
.
$store
.
state
.
user
;
...
...
@@ -369,9 +368,6 @@ export default {
if
(
that
.
projectId
)
{
query
.
projectId
=
that
.
projectId
}
// if (that.returnUrl) {
// query.returnUrl = that.returnUrl
// }
that
.
$router
.
push
({
path
:
'/prezult'
,
query
});
},
fail
:
function
()
{
...
...
@@ -419,9 +415,6 @@ export default {
if
(
this
.
projectId
)
{
path
+=
`&projectId=
${
this
.
projectId
}
`
}
// if (this.returnUrl) {
// path += `&returnUrl=${this.returnUrl}`
// }
return
getWebPageUrl
(
path
);
},
// 绑定项目和订单的关系
...
...
src/views/purchase-rezult.vue
浏览文件 @
fd4f9c7f
...
...
@@ -57,11 +57,11 @@ export default {
}
},
created
()
{
let
{
projectId
,
orderId
,
returnUrl
}
=
this
.
$route
.
query
;
let
{
projectId
,
orderId
}
=
this
.
$route
.
query
;
this
.
projectId
=
projectId
||
0
;
this
.
orderId
=
orderId
||
0
;
this
.
returnUrl
=
sessionStorage
.
getItem
(
'returnUrl'
)
||
decodeURIComponent
(
returnUrl
);
console
.
log
(
'projectId'
,
'orderId'
,
this
.
projectId
,
this
.
orderId
,
this
.
returnUrl
,
decodeURIComponent
(
this
.
returnUrl
)
);
this
.
returnUrl
=
localStorage
.
getItem
(
'returnUrl'
);
console
.
log
(
'projectId'
,
'orderId'
,
this
.
projectId
,
this
.
orderId
,
this
.
returnUrl
);
// 直接从商品过来的
// if(!this.projectId) {
// this.msgContent = "购买成功";
...
...
src/views/share-merge-detail.vue
浏览文件 @
fd4f9c7f
...
...
@@ -351,7 +351,7 @@ export default {
this
.
shareUrl
=
getWebPageUrl
(
`profexam/#/sharecoop?uuid=
${
this
.
uuid
}
`
);
location
.
replace
(
this
.
shareUrl
);
}
session
Storage
.
setItem
(
'returnUrl'
,
this
.
shareUrl
);
local
Storage
.
setItem
(
'returnUrl'
,
this
.
shareUrl
);
const
{
token
,
info
}
=
this
.
$store
.
state
.
user
;
this
.
token
=
getCookie
(
"token"
)
||
token
;
// 如果有token,但没有用户信息,则获取用户信息
...
...
@@ -560,7 +560,7 @@ export default {
let
jumpUrl
=
getWebPageUrl
(
`profexam/#/goods-detail?goodsId=
${
this
.
cardInfo
.
id
}
&projectId=
${
this
.
projectId
}
&returnUrl=
${
encodeURIComponent
(
this
.
shareUrl
)}
`
}
`
);
window
.
location
.
href
=
jumpUrl
;
});
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录