...
|
...
|
@@ -80,7 +80,8 @@ export default { |
|
|
colorName: get(state.second.info, 'colorName', ''),
|
|
|
sizeName: get(state.second.info, 'sizeName', ''),
|
|
|
goodPrice: get(state.second.info, 'price', ''),
|
|
|
skup: this.skup
|
|
|
skup: this.skup,
|
|
|
type: get(state.second.info, 'sechondHandTypeName', '') === '二手' ? 5 : 6,
|
|
|
};
|
|
|
} else {
|
|
|
return {
|
...
|
...
|
@@ -235,7 +236,7 @@ export default { |
|
|
desc: '金额',
|
|
|
extra: JSON.stringify({
|
|
|
type: UserType.buy,
|
|
|
reportType: 'buy',
|
|
|
reportType: this.getType(this.productDetail.type),
|
|
|
back: {
|
|
|
name: 'buyOrderDetail',
|
|
|
params: {
|
...
|
...
|
@@ -257,6 +258,15 @@ export default { |
|
|
}).show();
|
|
|
|
|
|
//数据埋点
|
|
|
if (this.productDetail.type) {
|
|
|
// 二手
|
|
|
this.reportYas('XY_UFO_RESALE_ORD', {
|
|
|
ORD_NUM: result.data.orderCode,
|
|
|
PRD_ID: this.productId,
|
|
|
PRD_SKU: this.productDetail.skup,
|
|
|
ORD_TYPE: this.productDetail.type
|
|
|
});
|
|
|
} else {
|
|
|
this.reportYas('XY_UFO_SC_ORD', {
|
|
|
ORD_NUM: result.data.orderCode,
|
|
|
PRD_ID: this.productId,
|
...
|
...
|
@@ -265,6 +275,7 @@ export default { |
|
|
ORD_AMOUNT: this.orderDetail.amount,
|
|
|
PRD_PRICE: this.productDetail.goodPrice,
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
onClose(orderCode) {
|
|
|
this.$router.replace({
|
...
|
...
|
@@ -329,6 +340,16 @@ export default { |
|
|
param: params
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
getType(type) {
|
|
|
switch (type) {
|
|
|
case 5:
|
|
|
return 'second';
|
|
|
case 6:
|
|
|
return 'newSecond';
|
|
|
default:
|
|
|
return 'buy';
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
};
|
...
|
...
|
|