Authored by TaoHuang

fix report args

... ... @@ -127,7 +127,8 @@ export default {
appop: this.appOp().pay,
param: {
ORD_NUM: this.orderCode,
PAY_TYPE: 1
PAY_TYPE: 1,
ORD_TYPE: this.appOp().type
},
},
});
... ... @@ -185,19 +186,29 @@ export default {
case 'sell': {
return {
pay: 'XY_UFO_SALE_PAY',
result: 'XY_UFO_SALE_PAY_RES'
result: 'XY_UFO_SALE_PAY_RES',
type: 1,
};
}
case 'buy': {
return {
pay: 'XY_UFO_SC_PAY',
result: 'XY_UFO_SC_PAY_RES'
pay: 'XY_UFO_SALE_PAY',
result: 'XY_UFO_SALE_PAY_RES',
type: 2,
};
}
case 'qiugou_buy': {
return {
pay: 'XY_UFO_WTBUY_PAY',
result: 'XY_UFO_WTBUY_PAY_RES'
pay: 'XY_UFO_SALE_PAY',
result: 'XY_UFO_SALE_PAY_RES',
type: 3
};
}
case 'bianxian': {
return {
pay: 'XY_UFO_SALE_PAY',
result: 'XY_UFO_SALE_PAY_RES',
type: 4
};
}
default: {
... ...
... ... @@ -186,19 +186,29 @@ export default {
case 'sell': {
return {
pay: 'XY_UFO_SALE_PAY',
result: 'XY_UFO_SALE_PAY_RES'
result: 'XY_UFO_SALE_PAY_RES',
type: 1,
};
}
case 'buy': {
return {
pay: 'XY_UFO_SC_PAY',
result: 'XY_UFO_SC_PAY_RES'
pay: 'XY_UFO_SALE_PAY',
result: 'XY_UFO_SALE_PAY_RES',
type: 2,
};
}
case 'qiugou_buy': {
return {
pay: 'XY_UFO_WTBUY_PAY',
result: 'XY_UFO_WTBUY_PAY_RES'
pay: 'XY_UFO_SALE_PAY',
result: 'XY_UFO_SALE_PAY_RES',
type: 3
};
}
case 'bianxian': {
return {
pay: 'XY_UFO_SALE_PAY',
result: 'XY_UFO_SALE_PAY_RES',
type: 4
};
}
default: {
... ... @@ -220,7 +230,8 @@ export default {
ORD_NUM: this.orderCode,
PAY_TYPE: 1,
PAY_RES: 1,
ORDER_AMOUNT: this.price
ORDER_AMOUNT: this.price,
ORD_TYPE: this.appOp().type
},
},
});
... ... @@ -234,7 +245,8 @@ export default {
ORD_NUM: this.orderCode,
PAY_TYPE: 1, //1支付宝支付,2微信支付
PAY_RES: 0, //0支付失败,1支付成功
ORDER_AMOUNT: this.price
ORDER_AMOUNT: this.price,
ORD_TYPE: this.appOp().type
},
},
});
... ...
... ... @@ -142,7 +142,7 @@ export default {
this.sellerPublish({price: this.price, skup: this.skup, address_id: this.addressInfo.address_id})
.then((res) => {
if (res && res.code && res.code == 200) {
if (res && res.code && res.code === 200) {
this.$createToast({
time: 1000,
type: 'txt',
... ... @@ -169,7 +169,7 @@ export default {
this.sellerPublish({price: this.price, skup: this.skup, address_id: this.addressInfo.address_id})
.then((res) => {
if (res && res.code && res.code == 200) {
if (res && res.code && res.code === 200) {
this.payOrder();
} else {
this.$createToast({
... ... @@ -177,21 +177,21 @@ export default {
type: 'txt',
txt: res.message
}).show();
}
});
}
},
payOrder() {
let vm = this;
this.$createOrderPayType({
price: get(this.computeTip, 'earnestMoney', 0),
desc: '保证金',
orderCode: get(this.publishinfo, 'orderCode', ''),
extra: JSON.stringify({
type: 'sell',
reportType: 'bianxian',
back: {
name: 'ProductDetail',
params: {
... ... @@ -209,6 +209,12 @@ export default {
vm.onClose(get(this.publishinfo, 'orderCode', ''));
}
}).show();
this.reportYas('XY_UFO_CASH_ORD', {
ORD_NUM: get(this.publishinfo, 'orderCode', ''),
PRD_ID: get(this.originProductData, 'productId', ''),
PRD_SKU: this.skup
});
},
showToast() {
... ...
... ... @@ -352,12 +352,6 @@ export default {
return;
}
this.reportYas('XY_UFO_SALE_ORD', {
ORD_NUM: orderResult.data.orderCode,
PRD_ID: this.productDetail.productId,
PRD_SKU: this.productDetail.skup
});
// 从定金中走了钱,不用支付宝
if (orderResult.data.orderCode === 0) {
this.$createToast({
... ... @@ -402,6 +396,12 @@ export default {
vm.onClose(orderResult.data.orderCode);
}
}).show();
this.reportYas('XY_UFO_SALE_ORD', {
ORD_NUM: orderResult.data.orderCode,
PRD_ID: this.productDetail.productId,
PRD_SKU: this.productDetail.skup
});
},
onClose(orderCode) {
this.$router.replace({
... ...