陶杰
2024-11-04 15b63899e8afe256715aa9c51674f8fab92a2f00
1.商品评论补充
已修改2个文件
24 ■■■■■ 文件已修改
pages/order/order-detail.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/order/order.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/order/order-detail.vue
@@ -111,7 +111,13 @@
        },
        methods: {
            // 商品评论
            commentButtonClick(){
                // 跳转的到评论列表
                uni.navigateTo({
                    url: '/pages/order/comment/order-comment?orderId='+this.id
                })
            },
            openbrand(item) {
                //也要判断一下是否重复进入
                //判断堆栈,如果是店铺,就直接返回
@@ -312,6 +318,8 @@
                            this.$message.hideLoading()
                            if (code === 0) {
                                this.getDetail()
                                this.$store.dispatch('getCurrentInfo')
                                this.$message.showToast('收货成功')
                            }
                        }
pages/order/order.vue
@@ -166,6 +166,12 @@
                    url: '/pages/order/order-detail?id=' + item.id
                })
            },
            commentButtonClick(item){
                uni.navigateTo({
                    url: '/pages/order/comment/order-comment?id='+item.id
                })
            },
            async copyOrder(item) {
                console.log(item)
@@ -294,6 +300,9 @@
                            this.$message.hideLoading()
                            if (code === 0) {
                                this.refreshList()
                                //刷新积分
                                this.$store.dispatch('getCurrentInfo')
                                this.$message.showToast('收货成功')
                            }
                        }
@@ -579,8 +588,11 @@
                    <!--         <view class="button button-1 m-l-a m-r-15" @click="toDetailSale(dto)"
                        v-if="dto.statusBackend === 'RECEIVE'"> 申请售后
                    </view> -->
                    <view class="button button-0 m-l-a m-r-15" @click="buttonClick(dto,'evaluate')"
                    <!-- <view class="button button-0 m-l-a m-r-15" @click="buttonClick(dto,'evaluate')"
                        v-if="dto.statusBackend === 'EVALUATE'"> 评价
                    </view> -->
                    <view class="button button-0 m-l-a m-r-15" @click="commentButtonClick(dto)"
                            v-if="dto.statusBackend === 'EVALUATE'"> 评价
                    </view>