This commit is contained in:
parent
cdc3efb281
commit
b97398d075
|
@ -230,7 +230,7 @@
|
||||||
product_attr_unique: this.sku[this.changeSkuKey].unique,
|
product_attr_unique: this.sku[this.changeSkuKey].unique,
|
||||||
product_id: this.datas.product_id,
|
product_id: this.datas.product_id,
|
||||||
product_type: this.datas.product_type,
|
product_type: this.datas.product_type,
|
||||||
source: this.source||200, // 200-供货采购
|
source: this.source||13, // 13-供货采购
|
||||||
spread_id: "",
|
spread_id: "",
|
||||||
}
|
}
|
||||||
let that = this
|
let that = this
|
||||||
|
|
|
@ -380,6 +380,12 @@
|
||||||
type: 2
|
type: 2
|
||||||
})
|
})
|
||||||
this.cloudList = data;
|
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)=>{
|
this.cloudList.forEach((item)=>{
|
||||||
item.children.unshift({
|
item.children.unshift({
|
||||||
cate_name: '全部',
|
cate_name: '全部',
|
||||||
|
@ -716,7 +722,8 @@
|
||||||
order: this.storeParam.order,
|
order: this.storeParam.order,
|
||||||
keyword: this.storeParam.keyword
|
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; // 否则查询二级分类
|
else query.cate_id = this.storeParam.category_id; // 否则查询二级分类
|
||||||
getProductslist(query).then((res)=>{
|
getProductslist(query).then((res)=>{
|
||||||
// console.log(res);
|
// console.log(res);
|
||||||
|
@ -765,7 +772,8 @@
|
||||||
// 购物车信息
|
// 购物车信息
|
||||||
cartFn() {
|
cartFn() {
|
||||||
getCartList({
|
getCartList({
|
||||||
product_type: 98
|
product_type: 98,
|
||||||
|
source: 13
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.totalMoney = 0
|
this.totalMoney = 0
|
||||||
this.cartList = res.data.list
|
this.cartList = res.data.list
|
||||||
|
@ -777,7 +785,8 @@
|
||||||
this.totalMoney = this.totalMoney.toFixed(2)
|
this.totalMoney = this.totalMoney.toFixed(2)
|
||||||
})
|
})
|
||||||
getCartCounts({
|
getCartCounts({
|
||||||
product_type: 98
|
product_type: 98,
|
||||||
|
source: 13
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.goodsNum = res.data[0].count
|
this.goodsNum = res.data[0].count
|
||||||
})
|
})
|
||||||
|
|
|
@ -680,7 +680,7 @@
|
||||||
},
|
},
|
||||||
getCartNum: function() {
|
getCartNum: function() {
|
||||||
let that = this;
|
let that = this;
|
||||||
getCartCounts({ product_type: 98 }).then(res => {
|
getCartCounts({ product_type: 98, source: 13 }).then(res => {
|
||||||
// console.log(res);
|
// console.log(res);
|
||||||
that.cartTotalCount = res.data[0].count || 0;
|
that.cartTotalCount = res.data[0].count || 0;
|
||||||
});
|
});
|
||||||
|
@ -688,7 +688,7 @@
|
||||||
// 购物车列表
|
// 购物车列表
|
||||||
getCartList: function(isChange) {
|
getCartList: function(isChange) {
|
||||||
let that = this;
|
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||[]
|
this.type_id=res.data?.list[0]?.type_id||[]
|
||||||
res.data.list.forEach((item, index) => {
|
res.data.list.forEach((item, index) => {
|
||||||
item.allCheck = true
|
item.allCheck = true
|
||||||
|
|
Loading…
Reference in New Issue