Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-06-02 13:19:07 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1f955c35e43d763b6888a32da23df6a03cccc91f
1f955c35
1 parent
8f3cf30d
跳转作品详情页链接新增字段
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
14 deletions
src/components/AuditVideoCard/index.vue
src/components/MuiVideo/methods.js
src/components/VideoCard/index.vue
src/views/client/bookDetail.vue
src/views/me/message.vue
src/components/AuditVideoCard/index.vue
View file @
1f955c3
...
...
@@ -124,7 +124,8 @@ export default {
path: '/client/videoDetail',
query: {
prod_id: this.item.id,
type: this.item.type // 特殊标识,判断入口 为keepAlive使用
type: this.item.type, // 特殊标识,判断入口 为keepAlive使用
perf_id: this.item.perf_id
}
});
},
...
...
src/components/MuiVideo/methods.js
View file @
1f955c3
/*
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-23 14:33:37
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-02 13:14:23
* @FilePath: /tswj/src/components/MuiVideo/methods.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import
{
prodActionAPI
}
from
'@/api/C/prod.js'
import
{
Toast
}
from
'vant'
;
export
const
goToDetail
=
({
id
,
book_id
,
type
},
$router
)
=>
{
export
const
goToDetail
=
({
id
,
book_id
,
type
,
perf_id
},
$router
)
=>
{
$router
.
push
({
path
:
'/client/videoDetail'
,
query
:
{
prod_id
:
id
,
book_id
,
type
// 特殊标识,判断入口 为keepAlive使用
type
,
// 特殊标识,判断入口 为keepAlive使用
perf_id
}
});
}
...
...
src/components/VideoCard/index.vue
View file @
1f955c3
...
...
@@ -111,7 +111,8 @@ const goTo = () => { // 跳转作品详情页
query: {
prod_id: props.item.id,
book_id: props.item.book_id,
type: props.item.type // 特殊标识,判断入口 为keepAlive使用
type: props.item.type, // 特殊标识,判断入口 为keepAlive使用
perf_id: props.item.perf_id
}
});
}
...
...
src/views/client/bookDetail.vue
View file @
1f955c3
...
...
@@ -68,10 +68,7 @@
<template v-for="item in prod_list" :key="item">
<video-card :item="item">
<template #bookDetailSub>
<div
style="color: #999999; padding: 0px 1rem 0.5rem;"
@click="goToDetail(item.id, item.book_id, item.type, item.perf_id)"
>
<div style="color: #999999; padding: 0px 1rem 0.5rem;" @click="goToDetail(item)">
{{ item.kg_name }} | {{ item.localism_type }}
</div>
</template>
...
...
@@ -291,14 +288,14 @@ onBeforeRouteLeave(() => {
})
/****************** 视频组件相关操作 *******************/
const goToDetail = (
prod_id, book_id, type, perf_id
) => { // 跳转作品详情页
const goToDetail = (
v
) => { // 跳转作品详情页
$router.push({
path: '/client/videoDetail',
query: {
prod_id,
book_id,
type, // 特殊标识,判断入口 为keepAlive使用
perf_id
prod_id
: v.id
,
book_id
: v.book_id
,
type
: v.type
, // 特殊标识,判断入口 为keepAlive使用
perf_id
: v.perf_id
}
});
}
...
...
src/views/me/message.vue
View file @
1f955c3
...
...
@@ -121,7 +121,8 @@ const onClick = (item) => { // 跳转作品详情页
$router.push({
path: '/client/videoDetail',
query: {
prod_id: item.prod_id
prod_id: item.prod_id,
perf_id: item.perf_id
}
});
}
...
...
Please
register
or
login
to post a comment