Commit c5dd3e2d by 高淑倩

modify: 取缓存会员id

parent 992f73f7
...@@ -26,8 +26,9 @@ wxService.page({ ...@@ -26,8 +26,9 @@ wxService.page({
*/ */
onShow: function () { onShow: function () {
// const { orderNo } = this.options // const { orderNo } = this.options
const orderNo = '700000000013545' // 取会员id
const {memberId} = wx.getStorageSync('_baseUserInfo')
const orderNo = memberId
if(orderNo){ if(orderNo){
this.initOrderList(this.data.pageNo,this.data.pageSize,orderNo) this.initOrderList(this.data.pageNo,this.data.pageSize,orderNo)
} }
...@@ -36,7 +37,6 @@ wxService.page({ ...@@ -36,7 +37,6 @@ wxService.page({
const { orderNo } = e.currentTarget.dataset const { orderNo } = e.currentTarget.dataset
// pages/consumptionDetails/consumptionDetails // pages/consumptionDetails/consumptionDetails
wxService.router(`/pages/consumptionDetails/consumptionDetails?orderNo=${orderNo}`) wxService.router(`/pages/consumptionDetails/consumptionDetails?orderNo=${orderNo}`)
}, },
//获取消费列表 //获取消费列表
initOrderList(pageNo,pageSize,orderNo){ initOrderList(pageNo,pageSize,orderNo){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment