@@ -84,12 +84,14 @@
disabled: true
}],
triggerStatus: 0,
+ userInfo: '',
}
},
onLoad(opthios) {
if (opthios.triggerStatus) {
this.triggerStatus = opthios.triggerStatus
+ this.getBaseInfo()
onShow() {
this.pageList()
@@ -143,6 +145,14 @@
this.loading = false
})
+ getBaseInfo() {
+ $http.post('/api/v1/mp/user/getLoginUserinfo', {}).then(res => {
+ uni.hideLoading();
+ if (res.code == 0) {
+ this.userInfo = res.data
+ }
+ })
+ },
//分享好友
@@ -156,7 +166,7 @@
onShareTimeline() {
return {
title: '盲票,玩的就是有趣',
- path: '/pages/index/index'
+ path: `/pages/index/index?userId=${ this.userInfo.userId }&type=1`
@@ -222,6 +222,7 @@
desc: '以上'
],
};
onLoad() {
@@ -229,6 +230,7 @@
this.getExclusive()
this.getClassify()
this.getSwiper()
if(uni.getStorageSync('token')) {
@@ -467,6 +469,14 @@
url: `/packageGoods/goods/list?name=${ item.name }&categoryId=${ item.categoryId ? item.categoryId : '' }`
onReachBottom() {
// 判断是否有数据
@@ -491,7 +501,7 @@
@@ -153,7 +153,8 @@
filterActivityList: [],
activityTime: null,
ticketInfo: {},
- clickLoading: true
+ clickLoading: true,
@@ -194,7 +195,8 @@
let num = Math.round(100 / this.list.length)
this.percentage = num
-
+
this.getList()
onShow(opthios) {
@@ -504,7 +506,16 @@
uni.navigateTo({
url: '/packageOther/rule/index'
- }
onShareAppMessage(res) {
@@ -517,7 +528,7 @@
@@ -358,6 +358,13 @@
path: `/pages/ticketBox/detail?boxId=${ this.info.boxId }&userId=${ this.userInfo.userId }&type=1`,
type: 2,
+ //分享朋友圈
+ onShareTimeline() {
+ return {
+ title: '一起来刮盲票吧',
+ path: `/pages/ticketBox/detail?boxId=${ this.info.boxId }&userId=${ this.userInfo.userId }&type=1`,
</script>
@@ -116,8 +116,13 @@
info: {},
authShow: false,
initData: {},
+ onLoad() {
this.loginState = uni.getStorageSync('token') ? true : false
@@ -226,6 +231,15 @@
// #endif
@@ -238,7 +252,7 @@