This commit is contained in:
weipengfei 2023-12-15 19:52:52 +08:00
parent cdc3efb281
commit b97398d075
3 changed files with 15 additions and 6 deletions

View File

@ -230,7 +230,7 @@
product_attr_unique: this.sku[this.changeSkuKey].unique,
product_id: this.datas.product_id,
product_type: this.datas.product_type,
source: this.source||200, // 200-
source: this.source||13, // 13-
spread_id: "",
}
let that = this

View File

@ -380,6 +380,12 @@
type: 2
})
this.cloudList = data;
this.cloudList.unshift({
cate_name: '全部',
children: [],
pic: "https://lihai001.oss-cn-chengdu.aliyuncs.com/def/de2be202312151001024597.png",
store_category_id: -1
})
this.cloudList.forEach((item)=>{
item.children.unshift({
cate_name: '全部',
@ -716,7 +722,8 @@
order: this.storeParam.order,
keyword: this.storeParam.keyword
};
if(!this.merchantTow.pid) query.cate_pid = this.storeParam.category_id; // pid
if(this.storeParam.category_id==-1) null;
else if(!this.merchantTow.pid) query.cate_pid = this.storeParam.category_id; // pid
else query.cate_id = this.storeParam.category_id; //
getProductslist(query).then((res)=>{
// console.log(res);
@ -765,7 +772,8 @@
//
cartFn() {
getCartList({
product_type: 98
product_type: 98,
source: 13
}).then(res => {
this.totalMoney = 0
this.cartList = res.data.list
@ -777,7 +785,8 @@
this.totalMoney = this.totalMoney.toFixed(2)
})
getCartCounts({
product_type: 98
product_type: 98,
source: 13
}).then(res => {
this.goodsNum = res.data[0].count
})

View File

@ -680,7 +680,7 @@
},
getCartNum: function() {
let that = this;
getCartCounts({ product_type: 98 }).then(res => {
getCartCounts({ product_type: 98, source: 13 }).then(res => {
// console.log(res);
that.cartTotalCount = res.data[0].count || 0;
});
@ -688,7 +688,7 @@
//
getCartList: function(isChange) {
let that = this;
getCartList({ product_type: 98 }).then(res => {
getCartList({ product_type: 98, source: 13 }).then(res => {
this.type_id=res.data?.list[0]?.type_id||[]
res.data.list.forEach((item, index) => {
item.allCheck = true