|
@@ -29,6 +29,10 @@
|
|
<span class="label" style="color: #333333;">{{ orderDetail.product_name }}</span>
|
|
<span class="label" style="color: #333333;">{{ orderDetail.product_name }}</span>
|
|
<span class="value"></span>
|
|
<span class="value"></span>
|
|
</p>
|
|
</p>
|
|
|
|
+ <p>
|
|
|
|
+ <span class="label">创建时间:</span>
|
|
|
|
+ <span class="value">{{ orderDetail.created_at }}</span>
|
|
|
|
+ </p>
|
|
<p>
|
|
<p>
|
|
<span class="label">支付时间:</span>
|
|
<span class="label">支付时间:</span>
|
|
<span class="value">{{ orderDetail.order_pay_at }}</span>
|
|
<span class="value">{{ orderDetail.order_pay_at }}</span>
|
|
@@ -48,8 +52,23 @@
|
|
<span class="label">预计收益:</span>
|
|
<span class="label">预计收益:</span>
|
|
<span class="value" style="color: #FA4A4A;">¥{{ orderDetail.order_commission | fen2Yuan }}</span>
|
|
<span class="value" style="color: #FA4A4A;">¥{{ orderDetail.order_commission | fen2Yuan }}</span>
|
|
</p>
|
|
</p>
|
|
- <!--TODO 加字段:订单平台类型-->
|
|
|
|
- <!--TODO 全部退款、部分退款时展示字段:退款时间、退款金额-->
|
|
|
|
|
|
+ <p>
|
|
|
|
+ <span class="label">订单平台类型:</span>
|
|
|
|
+ <span class="value">{{
|
|
|
|
+ ['', '淘宝', '拼多多', '京东', '美团', '返不停'][orderDetail.order_platform_type]
|
|
|
|
+ }}</span>
|
|
|
|
+ </p>
|
|
|
|
+ <template
|
|
|
|
+ v-if="[4, 5].findIndex(item => item === orderDetail.order_status) > -1">
|
|
|
|
+ <p>
|
|
|
|
+ <span class="label">退款时间:</span>
|
|
|
|
+ <span class="value">{{ orderDetail.order_refund_at }}</span>
|
|
|
|
+ </p>
|
|
|
|
+ <p>
|
|
|
|
+ <span class="label">退款金额:</span>
|
|
|
|
+ <span class="value">{{ orderDetail.order_refund_price }}</span>
|
|
|
|
+ </p>
|
|
|
|
+ </template>
|
|
<p class="status">{{ ['未支付', '已支付', '已收获', '已结算', '全部退款或风控', '部分退款', '已取消'][orderDetail.order_status] }}</p>
|
|
<p class="status">{{ ['未支付', '已支付', '已收获', '已结算', '全部退款或风控', '部分退款', '已取消'][orderDetail.order_status] }}</p>
|
|
</div>
|
|
</div>
|
|
</van-popup>
|
|
</van-popup>
|
|
@@ -107,8 +126,10 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
setOrderDetail (obj) {
|
|
setOrderDetail (obj) {
|
|
- this.orderDetail = obj
|
|
|
|
- this.showDetail = true
|
|
|
|
|
|
+ if (Object.prototype.toString.call(obj) === '[object Object]') {
|
|
|
|
+ this.orderDetail = obj
|
|
|
|
+ this.showDetail = true
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|