评价跳转

feature/comment-0624-ch
ch 2 years ago
parent e96d372369
commit 264a108a33

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-06-27 11:46:34 * @Date: 2022-06-27 11:46:34
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-06-27 18:54:51 * @LastEditTime: 2022-06-28 10:23:51
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -64,6 +64,9 @@ export default {
} }
this.list = result; this.list = result;
}, },
/**
* 按评论查询追评时用
*/
async getCommentDetail(){ async getCommentDetail(){
this.loading = true; this.loading = true;
const {error, result} = await ApiGetCommentDetail({ const {error, result} = await ApiGetCommentDetail({

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-05-08 01:11:33 * @Date: 2022-05-08 01:11:33
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-06-28 10:07:13 * @LastEditTime: 2022-06-28 10:39:35
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -19,8 +19,9 @@
<li v-for="(item, idx) in goodsList" :key="idx"> <li v-for="(item, idx) in goodsList" :key="idx">
<img :src="item.productPicture"/> <img :src="item.productPicture"/>
<p>{{item.productName}}</p> <p>{{item.productName}}</p>
<UiButton type="grey" v-if="item.commentStatus == 1"></UiButton> <UiButton type="grey" @click="$router.replace(`/account/comment?orderId=${item.orderId}`)" >
<UiButton type="grey" v-if="item.commentStatus == 2"></UiButton> {{item.commentStatus == 1 ? '立即评价' : '立即追评'}}
</UiButton>
</li> </li>
</ul> </ul>
</div> </div>
@ -55,7 +56,8 @@ export default {
return { return {
productPicture : item.productImageUrl, productPicture : item.productImageUrl,
productName : item.productName, productName : item.productName,
commentStatus : item.commentStatus commentStatus : item.commentStatus,
orderId : item.orderId
} }
}); });
} }

Loading…
Cancel
Save