You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.5 KiB
58 lines
1.5 KiB
define([
|
|
'text!./index.html',
|
|
'css!./index.css'
|
|
], function (template) {
|
|
|
|
return {
|
|
template,
|
|
name: "order_detail",
|
|
props: {
|
|
orderInfo: {
|
|
type: Object,
|
|
default: {}
|
|
},
|
|
},
|
|
data() {
|
|
return {
|
|
columns1: [
|
|
{
|
|
title: '商品ID',
|
|
slot: 'id',
|
|
maxWidth: 80
|
|
},
|
|
{
|
|
title: '商品名称',
|
|
slot: 'name',
|
|
minWidth: 160
|
|
},
|
|
{
|
|
title: '商品类型',
|
|
slot: 'type_name'
|
|
},
|
|
{
|
|
title: '商品售价',
|
|
slot: 'price'
|
|
},
|
|
{
|
|
title: '商品数量',
|
|
slot: 'total_num'
|
|
}
|
|
],
|
|
statusMap: {
|
|
'-1': '申请退款',
|
|
'-2': "退货成功",
|
|
"0": "待发货 | 正常",
|
|
"1": "待收货",
|
|
"2": "待评价",
|
|
"3": "已完成"
|
|
},
|
|
payTypeMap: {
|
|
"zhifubao": "支付宝",
|
|
"weixin": "微信",
|
|
"yue": "余额"
|
|
}
|
|
}
|
|
}
|
|
};
|
|
|
|
}); |