Banner update

This commit is contained in:
Vion
2022-03-02 19:06:41 +08:00
parent 63e6b94656
commit 6c60d6296d
7 changed files with 52 additions and 18 deletions

View File

@@ -424,7 +424,7 @@ export default {
if(myCoupon.udf2!='H5') {
dateChecked=false;
}
//TODO add more checking
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);
@@ -635,21 +635,25 @@ export default {
this.goldmedal = JSON.parse(this.$route.query.list);
this.getAddressList();
this.checkIsLogin();
let user = this.$store.state.userInfo;
let memberId = '';
if(user)
memberId = user.data.id;
this.finalAmount = this.sumPrice;
this.goldmedal.forEach((item) => {
_hmt.push([
"_trackCustomEvent",
"placing_order",
{
//TODO order id add here
"product_id":item.productCode,
"member_id": memberId,
"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);
}