lin
2026-06-11 a9951fa980ff914fbfa91095e90ecc260f008a9f
feat:星享购 退款
1 files modified
16 ■■■■ changed files
pages/order/order.vue 16 ●●●● patch | view | raw | blame | history
pages/order/order.vue
@@ -62,7 +62,7 @@
                            </template>
                            <template v-if="item.payment != 1">
                                <text class="payOrder" v-if="item.status == 1" @tap="$util.goPages('/pages/pays/pays?cartsIds=' + item.cartsids)">支付</text>
                                <text class="payback" v-if="item.status == 3" @tap="refundOrder(item)">退款</text>
                                <text class="payback" v-if="item.status == 3 || item.status == 4" @tap="refundOrder(item)">退款</text>
                                <text class="payOrder" v-if="item.status == 4" @tap="receiveOrder(item)">收货</text>
                                <text class="delOrder" v-if="item.status == -1 || item.status == 1 || item.status == 7 || item.status == 8" @tap="delOrder(item, index)">删除</text>
                            </template>
@@ -89,7 +89,7 @@
                </view>
            </view>
        </uni-popup>
        <uni-popup ref="popup2" type="bottom">
            <view class="popup-content">
                <view class="pop-title">还款计划({{planData.length}})</view>
@@ -109,7 +109,7 @@
                </view>
            </view>
        </uni-popup>
        <uni-popup ref="popup3" type="center" style="width: 100%;">
            <view class="popup-content" style="width: 100%;">
                <view class="pop-title" style="">还款方式</view>
@@ -149,7 +149,7 @@
            }
        },
        onLoad(op) {
            this.statusIndex = op.status ? op.status : 0
            this.statusIndex = op.status ? op.status : 0
            this.getOrderList()
        },
        //监听返回直接返回到我的
@@ -260,7 +260,7 @@
                                    setTimeout(() => {
                                        t.orderData.splice(idx, 1)
                                    }, 500)
                                } else {
                                    uni.showToast({
                                        title: res.msg || '操作失败'
@@ -312,7 +312,7 @@
                                        title: res.msg || '操作成功'
                                    })
                                    setTimeout(() => {
                                        t.tabClick(8)
                                        t.tabClick(-3)
                                    }, 1000)
                                } else {
                                    uni.showToast({
@@ -358,7 +358,7 @@
                                }
                            })
                        }
                        if(payment == 3) {
                        if(payment == 3) {
                            uni.showToast({
                                title: res.msg || '还款成功',
                                icon: 'success',
@@ -378,7 +378,7 @@
                        })
                    }
                })
            }
            }
        }
    }
</script>