评价跳转

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

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

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

Loading…
Cancel
Save