hookehuyr

✨ feat(作品详情页相关页面): 详情页只显示留言, 相关页面跳转只跳转到留言页面

...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
8 <div v-if="item.status === 'ENABLE'" class="normal-module"> 8 <div v-if="item.status === 'ENABLE'" class="normal-module">
9 <div class="video-bar"> 9 <div class="video-bar">
10 <van-row> 10 <van-row>
11 - <van-col span="12" @click="goTo"> 11 + <van-col span="12" @click="setComment">
12 <van-image round width="2rem" height="2rem" style="vertical-align: middle;" 12 <van-image round width="2rem" height="2rem" style="vertical-align: middle;"
13 :src="item.avatar ? item.avatar : icon_avatar" />&nbsp;&nbsp; 13 :src="item.avatar ? item.avatar : icon_avatar" />&nbsp;&nbsp;
14 <span style="font-size: 1.05rem;vertical-align: middle;">{{ item.name }}</span> 14 <span style="font-size: 1.05rem;vertical-align: middle;">{{ item.name }}</span>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
4 <div class="normal-module"> 4 <div class="normal-module">
5 <div class="video-bar"> 5 <div class="video-bar">
6 <van-row> 6 <van-row>
7 - <van-col span="12" @click="goTo"> 7 + <van-col span="12" @click="setComment">
8 <van-image round width="2rem" height="2rem" class="avatar" :src="item.avatar ? item.avatar : icon_avatar" /> 8 <van-image round width="2rem" height="2rem" class="avatar" :src="item.avatar ? item.avatar : icon_avatar" />
9 <span class="text">{{ item.name }}</span> 9 <span class="text">{{ item.name }}</span>
10 </van-col> 10 </van-col>
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
16 </span> 16 </span>
17 &nbsp;&nbsp;&nbsp; 17 &nbsp;&nbsp;&nbsp;
18 <span @click="handleAction('like', detail.id)"> 18 <span @click="handleAction('like', detail.id)">
19 - <van-icon :name="!detail.is_like ? icon_dianzan1 : icon_dianzan2" size="1.2rem" style="vertical-align: bottom;" /> 19 + <van-icon :name="!detail.is_like ? icon_dianzan1 : icon_dianzan2" size="1.2rem"
20 + style="vertical-align: bottom;" />
20 {{ detail.like_num }} 21 {{ detail.like_num }}
21 </span> 22 </span>
22 </div> 23 </div>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2022-05-21 09:35:14 3 * @Date: 2022-05-21 09:35:14
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2022-06-15 20:02:37 5 + * @LastEditTime: 2022-06-22 18:34:38
6 * @FilePath: /tswj/src/views/client/bookDetail.vue 6 * @FilePath: /tswj/src/views/client/bookDetail.vue
7 * @Description: 7 * @Description:
8 --> 8 -->
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
75 <template v-for="item in prod_list" :key="item"> 75 <template v-for="item in prod_list" :key="item">
76 <video-card :item="item"> 76 <video-card :item="item">
77 <template #bookDetailSub> 77 <template #bookDetailSub>
78 - <div style="color: #999999; padding: 0px 1rem 0.5rem;" @click="goToDetail(item)"> 78 + <div style="color: #999999; padding: 0px 1rem 0.5rem;" @click="setComment(item)">
79 {{ item.kg_name }} | {{ item.localism_type }} 79 {{ item.kg_name }} | {{ item.localism_type }}
80 </div> 80 </div>
81 </template> 81 </template>
...@@ -331,6 +331,18 @@ const goToDetail = (v) => { // 跳转作品详情页 ...@@ -331,6 +331,18 @@ const goToDetail = (v) => { // 跳转作品详情页
331 } 331 }
332 }); 332 });
333 } 333 }
334 +
335 +const setComment = (v) => {
336 + $router.push({
337 + path: '/client/videoDetail/comment',
338 + query: {
339 + prod_id: v.id,
340 + book_id: v.book_id,
341 + type: v.type, // 特殊标识,判断入口 为keepAlive使用
342 + perf_id: v.perf_id
343 + }
344 + });
345 +}
334 /*****************************************************/ 346 /*****************************************************/
335 347
336 // TAG:微信分享 348 // TAG:微信分享
......
...@@ -22,11 +22,11 @@ ...@@ -22,11 +22,11 @@
22 <van-col span="24" style="padding-top: 0.2rem;"> 22 <van-col span="24" style="padding-top: 0.2rem;">
23 <van-tabs v-model:active="active" sticky :color="styleColor.baseColor" background="#F7F7F7" 23 <van-tabs v-model:active="active" sticky :color="styleColor.baseColor" background="#F7F7F7"
24 title-active-color="#222222" title-inactive-color="#777777" @click-tab="onClickTab"> 24 title-active-color="#222222" title-inactive-color="#777777" @click-tab="onClickTab">
25 - <van-tab title="简介" :title-style="tabClass"> 25 + <!-- <van-tab title="简介" :title-style="tabClass">
26 <div class="intro">{{ videoInfo.note }}</div> 26 <div class="intro">{{ videoInfo.note }}</div>
27 <div style="height: 5rem;" /> 27 <div style="height: 5rem;" />
28 <donate-bar donate-type="C">为TA助力</donate-bar> 28 <donate-bar donate-type="C">为TA助力</donate-bar>
29 - </van-tab> 29 + </van-tab> -->
30 <!-- <van-tab :title="'留言 ' + comment_num" :title-style="tabClass" 30 <!-- <van-tab :title="'留言 ' + comment_num" :title-style="tabClass"
31 :to="'/client/videoDetail/comment?prod_id=' + $route.query.prod_id + '&book_id=' + $route.query.book_id + '&type=' + $route.query.type"> 31 :to="'/client/videoDetail/comment?prod_id=' + $route.query.prod_id + '&book_id=' + $route.query.book_id + '&type=' + $route.query.type">
32 <router-view /> 32 <router-view />
......
...@@ -22,12 +22,12 @@ ...@@ -22,12 +22,12 @@
22 <van-row> 22 <van-row>
23 <van-col> 23 <van-col>
24 <span style="color: #222222;">{{ item.c_action }}<span style="color: #0B3A72;">@{{ item.c_name }}</span>:{{ 24 <span style="color: #222222;">{{ item.c_action }}<span style="color: #0B3A72;">@{{ item.c_name }}</span>:{{
25 - item.note }}</span> 25 + item.note }}</span>
26 </van-col> 26 </van-col>
27 </van-row> 27 </van-row>
28 </div> 28 </div>
29 29
30 - <div style="padding: 1rem; background-color: #F7F7F7;" @click="onClick(item)"> 30 + <div style="padding: 1rem; background-color: #F7F7F7;" @click="openComment(item)">
31 <van-row> 31 <van-row>
32 <van-col span="8" style="position: relative;"> 32 <van-col span="8" style="position: relative;">
33 <van-image width="8rem" height="5rem" fit="cover" :src="item.cover" style="vertical-align: text-bottom;"> 33 <van-image width="8rem" height="5rem" fit="cover" :src="item.cover" style="vertical-align: text-bottom;">
...@@ -171,6 +171,17 @@ const onClick = (item) => { ...@@ -171,6 +171,17 @@ const onClick = (item) => {
171 }); 171 });
172 } 172 }
173 173
174 +const openComment = (item) => {
175 + $router.push({
176 + path: '/client/videoDetail/comment',
177 + query: {
178 + prod_id: item.prod_id,
179 + perf_id: item.perf_id,
180 + book_id: item.book_id
181 + }
182 + });
183 +}
184 +
174 /****************** keepAlive 模块 *******************/ 185 /****************** keepAlive 模块 *******************/
175 186
176 // TAG: keepAlive 缓存页面 187 // TAG: keepAlive 缓存页面
......