Web code updated

This commit is contained in:
Vion
2022-01-28 18:19:40 +08:00
parent 61c365c3fc
commit 6725fb9961
11 changed files with 514 additions and 316 deletions

View File

@@ -513,28 +513,28 @@ export default {
let postData = [];
let tmpCounter=0;
this.goldmedal.forEach((item) => {
let basePoint = (item.basePoint?item.basePoint:0);
let basePoint = (item.basePoint?item.basePoint:0);
let oneProduct = {
basePoint:basePoint,
productName: item.productName,
buyCount: item.buyCount,
productCode: item.productCode,
payAmount: item.productPrice,
memberId: userInfo.data.id,
phoneNumber: userInfo.data.mobile,
// couponId: "NGQ2022P12",
// couponTypeId: "4",
// couponName: "内购券",
// couponAmount: "0.3175",
// couponCode: "0007792402",
orderAddress: {
addressPhoneNumber: orderAddress[0].recipientPhone,
addressUserName: orderAddress[0].recipient,
addressProvinceName: orderAddress[0].provinceName,
addressCityName: orderAddress[0].cityName,
addressCountyName: orderAddress[0].districtName,
addressDetailInfo: orderAddress[0].detailAddress,
},
basePoint:basePoint,
productName: item.productName,
buyCount: item.buyCount,
productCode: item.productCode,
payAmount: item.productPrice,
memberId: userInfo.data.id,
phoneNumber: userInfo.data.mobile,
// couponId: "NGQ2022P12",
// couponTypeId: "4",
// couponName: "内购券",
// couponAmount: "0.3175",
// couponCode: "0007792402",
orderAddress: {
addressPhoneNumber: orderAddress[0].recipientPhone,
addressUserName: orderAddress[0].recipient,
addressProvinceName: orderAddress[0].provinceName,
addressCityName: orderAddress[0].cityName,
addressCountyName: orderAddress[0].districtName,
addressDetailInfo: orderAddress[0].detailAddress,
},
};
if(this.curCoupon.couponId && item.productCode == this.discountedProductCode) {
oneProduct.couponId = this.curCoupon.couponId;
@@ -626,6 +626,18 @@ export default {
this.getAddressList();
this.checkIsLogin();
this.finalAmount = this.sumPrice;
this.goldmedal.forEach((item) => {
_hmt.push([
"_trackCustomEvent",
"placing_order",
{
"product_id_":item.productCode,
"product_name_": item.productName,
"product_quantity_" : item.buyCount,
"product_amount_" : item.buyCount*item.productPrice,
}
])
});
// this.addressstype = this.$route.query.stype;
// this.orderNumber = this.$route.query.orderNumber;
// this.canceldanhao(this.orderNumber);