...
|
...
|
@@ -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,14 +258,24 @@ export default { |
|
|
}).show();
|
|
|
|
|
|
//数据埋点
|
|
|
this.reportYas('XY_UFO_SC_ORD', {
|
|
|
ORD_NUM: result.data.orderCode,
|
|
|
PRD_ID: this.productId,
|
|
|
PRD_SKU: this.productDetail.skup,
|
|
|
PRD_SIZE: this.productDetail.sizeName,
|
|
|
ORD_AMOUNT: this.orderDetail.amount,
|
|
|
PRD_PRICE: this.productDetail.goodPrice,
|
|
|
});
|
|
|
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,
|
|
|
PRD_SKU: this.productDetail.skup,
|
|
|
PRD_SIZE: this.productDetail.sizeName,
|
|
|
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';
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
};
|
...
|
...
|
|