Authored by lea guo

订单列表

... ... @@ -144,4 +144,9 @@ export const orderActionsMap = {
name: 'MODIFY_ADDRESS',
text: '修改地址',
},
CHANGE_BID_PRICE: {
code: 'change_bid_price',
name: 'CHANGE_BID_PRICE',
text: '调价',
},
};
... ...
... ... @@ -113,11 +113,15 @@ export default {
break;
}
case orderActionsMap.CANCEL_ORDER.name: {
const confirmInfo = await this.cancelTradeConfirmInfo({
let confirmInfo = await this.cancelTradeConfirmInfo({
orderCode,
owner,
});
if (Array.isArray(confirmInfo)) {
confirmInfo = { confirmDesc: '确定取消求购' };
}
this.$createConfirmDialog(
{
confirmBtn: { text: '取消订单', style: { color: '#D0021B' } },
... ...
... ... @@ -43,11 +43,14 @@ export default {
break;
case orderActionsMap.CANCEL_ORDER.name: {
const confirmInfo = await this.cancelTradeConfirmInfo({
let confirmInfo = await this.cancelTradeConfirmInfo({
orderCode,
owner,
});
if (Array.isArray(confirmInfo)) {
confirmInfo = { confirmDesc: '确定取消求购' };
}
this.$createConfirmDialog(
{
confirmBtn: { text: '取消订单', style: { color: '#D0021B' } },
... ...
... ... @@ -88,7 +88,6 @@ export default {
this.fetchOrderList(this.$route.params);
}
},
watch: {}
};
</script>
<style lang="scss" scoped>
... ...