优化代码

This commit is contained in:
duan
2024-05-27 16:58:04 +08:00
parent d67ab4d9b6
commit 91d22d5e7d
9 changed files with 521 additions and 28 deletions

View File

@@ -49,13 +49,13 @@
}
},
onLoad(e) {
console.log(e,'调试')
console.log(e,'调试2')
if (e.type == 'list') {//从列表进来的
this.paygetShopByMember(e.shopId_id)
}else{
this.paygetShopByMember(e.shopId_id)
}
this.paygetActive() //列表
this.paygetActive(e.shopId_id) //列表
},
methods: {
async paygetShopByMember(w) {
@@ -67,9 +67,9 @@
})
this.userInfo = res.data.list[0]
},
async paygetActive() {
async paygetActive(shopid) {
let res = await this.api.paygetActive({
shopId: uni.cache.get('shopUser'),
shopId:shopid,
page: 1,
pageSize: 10
})