会员相关更新、商品列表更新
This commit is contained in:
@@ -40,17 +40,24 @@
|
||||
size: 10, //页容量
|
||||
status: 'loadmore',
|
||||
},
|
||||
userId: uni.cache.get('userInfo').id
|
||||
userId: uni.cache.get('userInfo').id,
|
||||
type: null,
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
console.log(e)
|
||||
if ( e.type ) {
|
||||
this.type = e.type;
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.list = []
|
||||
this.form = {
|
||||
page: 1, //页数
|
||||
size: 10, //页容量
|
||||
status: 'loadmore',
|
||||
},
|
||||
this.paygetShopByMember()
|
||||
page: 1, //页数
|
||||
size: 10, //页容量
|
||||
status: 'loadmore',
|
||||
},
|
||||
this.paygetShopByMember()
|
||||
},
|
||||
onReachBottom() {
|
||||
this.paygetShopByMember()
|
||||
@@ -86,9 +93,21 @@
|
||||
}
|
||||
},
|
||||
eeInfo(item) {
|
||||
uni.pro.navigateTo('member/memberdetails', {
|
||||
shopId_id: item.shopId
|
||||
})
|
||||
if ( this.type && this.type == 'user_payCode') {
|
||||
uni.navigateTo({
|
||||
url: '/pages/pay_code/pay_code?shopInfo=' + JSON.stringify(item)
|
||||
})
|
||||
} else if ( this.type && this.type == 'user_recharge') {
|
||||
uni.pro.navigateTo('member/index', {
|
||||
shopId: item.shopId,
|
||||
type: 'index',
|
||||
})
|
||||
} else {
|
||||
uni.pro.navigateTo('member/memberdetails', {
|
||||
shopId_id: item.shopId
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user