|
@@ -158,6 +158,13 @@
|
|
|
};
|
|
|
},
|
|
|
onLoad(opthios) {
|
|
|
+ console.log(opthios);
|
|
|
+ if (opthios.userId) {
|
|
|
+ uni.setStorageSync('shareUid', opthios.userId)
|
|
|
+ }
|
|
|
+ if (opthios.type) {
|
|
|
+ uni.setStorageSync('shareType', opthios.type)
|
|
|
+ }
|
|
|
/**
|
|
|
* 票赢天下小程序分享盲票跳转接受的参数
|
|
|
* shareUid: 用户ID
|
|
@@ -179,13 +186,6 @@
|
|
|
uni.setStorageSync('shareUid', opthios.uid)
|
|
|
uni.setStorageSync('shareType', opthios.t)
|
|
|
}
|
|
|
- if (opthios.userId) {
|
|
|
- uni.setStorageSync('shareUid', opthios.userId)
|
|
|
- }
|
|
|
- if (opthios.type) {
|
|
|
- uni.setStorageSync('shareType', opthios.type)
|
|
|
- }
|
|
|
-
|
|
|
// #ifdef MP-WEIXIN
|
|
|
const res = uni.getMenuButtonBoundingClientRect()
|
|
|
this.statusHeight = res.top //胶囊距离顶部
|
|
@@ -205,7 +205,7 @@
|
|
|
|
|
|
this.getList()
|
|
|
},
|
|
|
- onShow(opthios) {
|
|
|
+ onShow() {
|
|
|
this.loginState = uni.getStorageSync('token') ? true : false
|
|
|
if (this.loginState) {
|
|
|
this.getBaseInfo()
|
|
@@ -537,7 +537,9 @@
|
|
|
onShareTimeline() {
|
|
|
return {
|
|
|
title: '盲票,玩的就是有趣',
|
|
|
- path: `/pages/index/index?userId=${ this.userInfo.userId }&type=1`
|
|
|
+ // query: { userId: this.userInfo.userId,
|
|
|
+ // type: 1, },
|
|
|
+ query: `userId=${ this.userInfo.userId }&type=1`
|
|
|
}
|
|
|
}
|
|
|
}
|