供应接口修改

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