|
@@ -43,35 +43,35 @@
|
|
|
<view class="action-box">
|
|
<view class="action-box">
|
|
|
<!-- 付款 (未包含在Flags中,保留原逻辑: 待付款且未取消) -->
|
|
<!-- 付款 (未包含在Flags中,保留原逻辑: 待付款且未取消) -->
|
|
|
<u-button v-if="order.status == '1' && order.cancelStatus == '0'" size="mini" shape="circle"
|
|
<u-button v-if="order.status == '1' && order.cancelStatus == '0'" size="mini" shape="circle"
|
|
|
- :custom-style="themeBtnStyle" @click.stop="handleAction('pay')">付款</u-button>
|
|
|
|
|
|
|
+ :custom-style="themeBtnStyle" @click.stop="handleAction('pay', order)">付款</u-button>
|
|
|
|
|
|
|
|
<!-- 确认收货 -->
|
|
<!-- 确认收货 -->
|
|
|
<u-button v-if="order.showConfirmShop == 1" size="mini" shape="circle" :custom-style="themeBtnStyle"
|
|
<u-button v-if="order.showConfirmShop == 1" size="mini" shape="circle" :custom-style="themeBtnStyle"
|
|
|
- @click.stop="handleAction('confirm')">确认收货</u-button>
|
|
|
|
|
|
|
+ @click.stop="handleAction('confirm', order)">确认收货</u-button>
|
|
|
|
|
|
|
|
<!-- 加入购物车 -->
|
|
<!-- 加入购物车 -->
|
|
|
<u-button v-if="order.showAddToCart == 1" size="mini" shape="circle" :custom-style="themeBtnStyle"
|
|
<u-button v-if="order.showAddToCart == 1" size="mini" shape="circle" :custom-style="themeBtnStyle"
|
|
|
- @click.stop="handleAction('addToCart')">加入购物车</u-button>
|
|
|
|
|
|
|
+ @click.stop="handleAction('addToCart', order)">加入购物车</u-button>
|
|
|
|
|
|
|
|
<!-- 再来一单 -->
|
|
<!-- 再来一单 -->
|
|
|
<u-button v-if="order.showBuyAgain == 1" size="mini" shape="circle" type="primary" plain
|
|
<u-button v-if="order.showBuyAgain == 1" size="mini" shape="circle" type="primary" plain
|
|
|
- :custom-style="btnStyle" @click.stop="handleAction('rebuy')">再买一单</u-button>
|
|
|
|
|
|
|
+ :custom-style="btnStyle" @click.stop="handleAction('rebuy', order)">再买一单</u-button>
|
|
|
|
|
|
|
|
<!-- 评价 -->
|
|
<!-- 评价 -->
|
|
|
<u-button v-if="order.showEvaluation == 1" size="mini" shape="circle" type="primary" plain
|
|
<u-button v-if="order.showEvaluation == 1" size="mini" shape="circle" type="primary" plain
|
|
|
- :custom-style="btnStyle" @click.stop="handleAction('evaluate')">评价</u-button>
|
|
|
|
|
|
|
+ :custom-style="btnStyle" @click.stop="handleAction('evaluate', order)">评价</u-button>
|
|
|
|
|
|
|
|
<!-- 查看物流 -->
|
|
<!-- 查看物流 -->
|
|
|
- <u-button v-if="order.showCheckExpress == 1 && order.status != '4'" size="mini" shape="circle"
|
|
|
|
|
- type="primary" plain :custom-style="btnStyle" @click.stop="handleAction('logistics')">查看物流</u-button>
|
|
|
|
|
|
|
+ <u-button v-if="order.showCheckExpress == 1" size="mini" shape="circle"
|
|
|
|
|
+ type="primary" plain :custom-style="btnStyle" @click.stop="handleAction('logistics', order)">查看物流</u-button>
|
|
|
|
|
|
|
|
<!-- 延长收货 -->
|
|
<!-- 延长收货 -->
|
|
|
<u-button v-if="order.showExtendReceivingTime == 1" size="mini" shape="circle" plain
|
|
<u-button v-if="order.showExtendReceivingTime == 1" size="mini" shape="circle" plain
|
|
|
- :custom-style="btnStyle" @click.stop="handleAction('extend')">延长收货</u-button>
|
|
|
|
|
|
|
+ :custom-style="btnStyle" @click.stop="handleAction('extend', order)">延长收货</u-button>
|
|
|
|
|
|
|
|
<!-- 催发货 -->
|
|
<!-- 催发货 -->
|
|
|
<u-button v-if="order.showUrge == 1" size="mini" shape="circle" type="warning" plain
|
|
<u-button v-if="order.showUrge == 1" size="mini" shape="circle" type="warning" plain
|
|
|
- :custom-style="btnStyle" @click.stop="handleAction('remind')">催发货</u-button>
|
|
|
|
|
|
|
+ :custom-style="btnStyle" @click.stop="handleAction('remind', order)">催发货</u-button>
|
|
|
|
|
|
|
|
<!-- 更多操作 (仅在已完成状态下显示) -->
|
|
<!-- 更多操作 (仅在已完成状态下显示) -->
|
|
|
<u-button
|
|
<u-button
|
|
@@ -81,35 +81,31 @@
|
|
|
|
|
|
|
|
<!-- 申请售后 -->
|
|
<!-- 申请售后 -->
|
|
|
<u-button v-if="order.showAfterSales == 1 && order.status != '4'" size="mini" shape="circle" type="error"
|
|
<u-button v-if="order.showAfterSales == 1 && order.status != '4'" size="mini" shape="circle" type="error"
|
|
|
- plain :custom-style="btnStyle" @click.stop="handleAction('refund')">申请售后</u-button>
|
|
|
|
|
|
|
+ plain :custom-style="btnStyle" @click.stop="handleAction('refund', order)">申请售后</u-button>
|
|
|
|
|
|
|
|
<!-- 取消订单 (未包含在Flags中,保留原逻辑: 待付款且未取消) -->
|
|
<!-- 取消订单 (未包含在Flags中,保留原逻辑: 待付款且未取消) -->
|
|
|
- <u-button v-if="order.status == '1' && order.cancelStatus == '0'" size="mini" shape="circle" type="error"
|
|
|
|
|
- plain :custom-style="btnStyle" @click.stop="handleAction('cancel')">取消订单</u-button>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 删除订单 (未包含在Flags中,保留原逻辑) -->
|
|
|
|
|
- <u-button v-if="order.cancelStatus == '1'" size="mini" shape="circle" type="error" plain
|
|
|
|
|
- :custom-style="btnStyle" @click.stop="handleAction('delete')">删除订单</u-button>
|
|
|
|
|
|
|
+ <u-button v-if="order.showCancel" size="mini" shape="circle" type="error"
|
|
|
|
|
+ plain :custom-style="btnStyle" @click.stop="handleAction('cancel', order)">取消订单</u-button>
|
|
|
|
|
|
|
|
<!-- 钱款去向 -->
|
|
<!-- 钱款去向 -->
|
|
|
<u-button v-if="order.showMoneyDestination == 1" size="mini" shape="circle" type="primary" plain
|
|
<u-button v-if="order.showMoneyDestination == 1" size="mini" shape="circle" type="primary" plain
|
|
|
- :custom-style="btnStyle" @click.stop="handleAction('moneyWhere')">钱款去向</u-button>
|
|
|
|
|
|
|
+ :custom-style="btnStyle" @click.stop="handleAction('moneyWhere', order)">钱款去向</u-button>
|
|
|
|
|
|
|
|
<!-- 查看详情 -->
|
|
<!-- 查看详情 -->
|
|
|
<u-button v-if="order.showShowDetail == 1" size="mini" shape="circle" plain
|
|
<u-button v-if="order.showShowDetail == 1" size="mini" shape="circle" plain
|
|
|
- :custom-style="btnStyle" @click.stop="handleAction('detail')">查看详情</u-button>
|
|
|
|
|
|
|
+ :custom-style="btnStyle" @click.stop="handleAction('detail', order)">查看详情</u-button>
|
|
|
|
|
|
|
|
<!-- 申请开票 -->
|
|
<!-- 申请开票 -->
|
|
|
<u-button v-if="order.showApplyInvoice == 1 && order.status != '4'" size="mini" shape="circle" plain
|
|
<u-button v-if="order.showApplyInvoice == 1 && order.status != '4'" size="mini" shape="circle" plain
|
|
|
- :custom-style="btnStyle" @click.stop="handleAction('invoice')">申请开票</u-button>
|
|
|
|
|
|
|
+ :custom-style="btnStyle" @click.stop="handleAction('invoice', order)">申请开票</u-button>
|
|
|
|
|
|
|
|
<!-- 投诉 -->
|
|
<!-- 投诉 -->
|
|
|
<u-button v-if="order.showComplaint == 1" size="mini" shape="circle" plain :custom-style="btnStyle"
|
|
<u-button v-if="order.showComplaint == 1" size="mini" shape="circle" plain :custom-style="btnStyle"
|
|
|
- @click.stop="handleAction('complaint')">投诉</u-button>
|
|
|
|
|
|
|
+ @click.stop="handleAction('complaint', order)">投诉</u-button>
|
|
|
|
|
|
|
|
<!-- 修改地址 -->
|
|
<!-- 修改地址 -->
|
|
|
<u-button v-if="order.showModifyAddress == 1" size="mini" shape="circle" plain :custom-style="btnStyle"
|
|
<u-button v-if="order.showModifyAddress == 1" size="mini" shape="circle" plain :custom-style="btnStyle"
|
|
|
- @click.stop="handleAction('address')">修改地址</u-button>
|
|
|
|
|
|
|
+ @click.stop="handleAction('address', order)">修改地址</u-button>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -164,9 +160,9 @@
|
|
|
},
|
|
},
|
|
|
handleAction(type, data) {
|
|
handleAction(type, data) {
|
|
|
if (type === 'complaint') {
|
|
if (type === 'complaint') {
|
|
|
- uni.setStorageSync('tempComplaintOrder', this.order);
|
|
|
|
|
|
|
+ uni.setStorageSync('tempComplaintOrder', data);
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url: `/pages-car/pages/complaint?orderId=${this.order.orderId}`
|
|
|
|
|
|
|
+ url: `/pages-car/pages/complaint?orderId=${data.orderId}`
|
|
|
});
|
|
});
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -178,7 +174,8 @@
|
|
|
});
|
|
});
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- this.$emit('action', { type, order: this.order, data })
|
|
|
|
|
|
|
+ console.log('handleAction', type, data)
|
|
|
|
|
+ this.$emit('action', { type, order: data })
|
|
|
},
|
|
},
|
|
|
handleMoreAction() {
|
|
handleMoreAction() {
|
|
|
// 收集更多按钮下的操作
|
|
// 收集更多按钮下的操作
|