订单评价:接入完成

This commit is contained in:
YunaiV
2023-12-14 22:00:36 +08:00
parent 3efb8ecf27
commit 3497261f26
5 changed files with 63 additions and 120 deletions
+3 -4
View File
@@ -232,7 +232,7 @@
<button
class="ss-reset-button cancel-btn"
v-if="state.orderInfo.buttons?.includes('comment')"
@tap="onComment(state.orderInfo.id, state.orderInfo)"
@tap="onComment(state.orderInfo.id)"
>
评价
</button>
@@ -362,10 +362,9 @@
// #endif
// 评价
function onComment(orderSN, orderId) {
function onComment(id) {
sheep.$router.go('/pages/goods/comment/add', {
orderSN,
orderId,
id
});
}
+4 -4
View File
@@ -55,7 +55,7 @@
取消订单
</button>
<button v-if="order.buttons.includes('comment')" class="tool-btn ss-reset-button"
@tap.stop="onComment(order.order_sn)">
@tap.stop="onComment(order.id)">
评价
</button>
<button v-if="order.buttons.includes('delete')" class="delete-btn ss-reset-button"
@@ -164,10 +164,10 @@
});
}
// 评价 TODO 芋艿:待测试
function onComment(orderSN) {
// 评价
function onComment(id) {
sheep.$router.go('/pages/goods/comment/add', {
orderSN,
id,
});
}