紧急修复了一些bug

This commit is contained in:
张乐
2020-08-17 15:28:28 +08:00
parent f85cfc7ce6
commit ec489d879d
122 changed files with 1235 additions and 3297 deletions

View File

@@ -221,7 +221,6 @@
} from '@/config/app.js';
import {
getProductDetail,
getProductCode,
collectAdd,
collectDel,
postCartAdd,
@@ -229,8 +228,7 @@
getReplyConfig
} from '@/api/store.js';
import {
getUserInfo,
userShare
getUserInfo
} from '@/api/user.js';
import {
getCoupons
@@ -653,8 +651,8 @@
// #ifdef H5
that.$set(that, 'storeImage', that.storeInfo.image);
if (that.isLogin) {
that.getCartCount();
that.ShareInfo();
};
};
// #endif
if (that.isLogin) {
@@ -762,7 +760,7 @@
for (let i = 0; i < productAttr.length; i++) {
this.$set(productAttr[i], "index", value[i]);
}
//sort();排序函数:数字-英文-汉字;
//sort();排序函数:数字-英文-汉字;
let productSelect = this.productValue[value.join(",")];
if (productSelect && productAttr.length) {
this.$set(
@@ -774,7 +772,7 @@
this.$set(this.attr.productSelect, "price", productSelect.price);
this.$set(this.attr.productSelect, "stock", productSelect.stock);
this.$set(this.attr.productSelect, "unique", productSelect.id);
this.$set(this.attr.productSelect, "cart_num", 1);
this.$set(this.attr.productSelect, "cart_num", 1);
this.$set(this, "attrValue", value.join(","));
this.$set(this, "attrTxt", "已选择");
} else if (!productSelect && productAttr.length) {