|
@@ -222,6 +222,7 @@
|
|
|
desc: '以上'
|
|
|
},
|
|
|
],
|
|
|
+ userInfo: '',
|
|
|
};
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -229,6 +230,7 @@
|
|
|
this.getExclusive()
|
|
|
this.getClassify()
|
|
|
this.getSwiper()
|
|
|
+ this.getBaseInfo()
|
|
|
},
|
|
|
onShow() {
|
|
|
if(uni.getStorageSync('token')) {
|
|
@@ -467,6 +469,14 @@
|
|
|
url: `/packageGoods/goods/list?name=${ item.name }&categoryId=${ item.categoryId ? item.categoryId : '' }`
|
|
|
})
|
|
|
},
|
|
|
+ getBaseInfo() {
|
|
|
+ $http.post('/api/v1/mp/user/getLoginUserinfo', {}).then(res => {
|
|
|
+ uni.hideLoading();
|
|
|
+ if (res.code == 0) {
|
|
|
+ this.userInfo = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
},
|
|
|
onReachBottom() {
|
|
|
// 判断是否有数据
|
|
@@ -491,7 +501,7 @@
|
|
|
onShareTimeline() {
|
|
|
return {
|
|
|
title: '盲票,玩的就是有趣',
|
|
|
- path: '/pages/index/index'
|
|
|
+ path: `/pages/index/index?userId=${ this.userInfo.userId }&type=1`
|
|
|
}
|
|
|
}
|
|
|
}
|