优化代码
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user