供应接口修改

This commit is contained in:
jia 2023-09-04 15:01:08 +08:00
parent 01f7f0460c
commit 3d2739cad8

View File

@ -280,7 +280,7 @@ this.list()
onReachBottom() {
if (this.status == 'nomore') return;
this.status = 'loading';
t
this.where.page = ++this.where.page;
this.list()
},
@ -325,15 +325,20 @@ this.list()
// #endif
methods: {
list() {
getProductHot(1,10).then(res => {
// console.log(res)
this.cateGoods = res.data.list
})
// spuInfo('510502106', this.where1).then(res => {
// // console.log(res)
// this.cateGoods = res.data.list
// })
list(id) {
if(id){
spuInfo(id, this.where1).then(res => {
// console.log(res)
this.cateGoods = res.data.list
})
}else{
getProductHot(1,10).then(res => {
// console.log(res)
this.cateGoods = res.data.list
})
}
},
scrolling() {
//
@ -508,7 +513,7 @@ this.list()
uni.$emit('add', this.street + ',' + this.street_id)
// uni.setStorageSync('ADRESS_LOCATION',
// this.town + ',' + this.street_id)
// this.list()
this.list(this.street_id)
}).catch(err => {
uni.showToast({
title: err,