Data tracking / Revision by 0207 ppt

This commit is contained in:
Vion
2022-02-07 18:12:29 +08:00
parent 28c2614ca3
commit 02b361680b
10 changed files with 340 additions and 203 deletions

View File

@@ -376,7 +376,7 @@ export default {
userget(){
let user = this.$store.state.userInfo;
if (user) {
this.userdraw(user.data.mobile);
//this.userdraw(user.data.mobile);
this.dialogInfo1 = true;
} else {
this.$router.push({
@@ -392,7 +392,7 @@ export default {
let valDateFromTime=0;
let valDateToTime=0;
let dateChecked=true;
let avaliableCouponNum = 0;
if (data) {
this.drawlist=[];
for(let itemInCart of this.goldmedal) {
@@ -423,10 +423,14 @@ export default {
if(dateChecked && myCoupon.activityId != 10 && myCoupon.status == 0 && (!myCoupon.productCodes || myCoupon.productCodes.indexOf(itemInCart.productCode)>-1)) {
data.data.splice(tmpIndex,1);
_self.drawlist.push(myCoupon);
avaliableCouponNum++;
}
tmpIndex++;
}
}
if(avaliableCouponNum > 0) {
this.curCoupon.couponName = '有 '+avaliableCouponNum+' 张优惠券可以使用';
}
}
},
pickCoupon(item){
@@ -537,8 +541,6 @@ export default {
addressDetailInfo: orderAddress[0].detailAddress,
},
};
console.log(this.curCoupon,item.productCode,this.discountedProductCode);
debugger;
if(this.curCoupon.couponId && item.productCode == this.discountedProductCode) {
oneProduct.couponId = this.curCoupon.couponId;
oneProduct.couponTypeId = this.curCoupon.couponTypeId;
@@ -634,13 +636,17 @@ export default {
"_trackCustomEvent",
"placing_order",
{
"product_id_":item.productCode,
"product_name_": item.productName,
"product_quantity_" : item.buyCount,
"product_amount_" : item.buyCount*item.productPrice,
"product_id":item.productCode,
"product_name": item.productName,
"product_quantity" : item.buyCount,
"product_amount" : item.buyCount*item.productPrice,
}
])
});
let user = this.$store.state.userInfo;
if(user) {
this.userdraw(user.data.mobile);
}
// this.addressstype = this.$route.query.stype;
// this.orderNumber = this.$route.query.orderNumber;
// this.canceldanhao(this.orderNumber);

View File

@@ -180,7 +180,7 @@ export default {
"payment",
{
"payType" : payType,
"product_amount_" : this.userPayData.userprice,
"product_amount" : this.userPayData.userprice,
}
])
},
@@ -241,7 +241,7 @@ export default {
"payment_finished",
{
"payType" : 'native',
"product_amount_" : this.userPayData.userprice,
"product_amount" : this.userPayData.userprice,
}
])
} else if (res.fail) {