|
@@ -73,17 +73,27 @@ Page({
|
|
});
|
|
});
|
|
};
|
|
};
|
|
},
|
|
},
|
|
-
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|
|
onLoad: function (options) {
|
|
onLoad: function (options) {
|
|
|
|
+ // wx.showModal({
|
|
|
|
+ // title: '提示',
|
|
|
|
+ // content: 'aaa' + JSON.stringify(options),
|
|
|
|
+ // showCancel: false,
|
|
|
|
+ // success: function (res) {
|
|
|
|
+ // if (res.confirm) {
|
|
|
|
+ // console.log('用户点击确定')
|
|
|
|
+ // } else if (res.cancel) {
|
|
|
|
+ // console.log('用户点击取消')
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
const postsId = options.postId || '';
|
|
const postsId = options.postId || '';
|
|
const shareKey = options.shareKey || '';
|
|
const shareKey = options.shareKey || '';
|
|
- //判断分享过来的参数是否有postId查询单挑显示
|
|
|
|
-
|
|
|
|
- if(postsId) {
|
|
|
|
|
|
+ console.log('shareKey' + options.shareKey)
|
|
|
|
+ //判断分享过来的参数是否有postId查询单挑显示
|
|
|
|
+ if(postsId || shareKey) {
|
|
login.getOpenidSessionKey(res => {
|
|
login.getOpenidSessionKey(res => {
|
|
APIClient.getOneSchedule({
|
|
APIClient.getOneSchedule({
|
|
uid: res.data.data.uid
|
|
uid: res.data.data.uid
|
|
@@ -114,12 +124,12 @@ Page({
|
|
})
|
|
})
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
*/
|
|
*/
|
|
onReady: function () {
|
|
onReady: function () {
|
|
-
|
|
|
|
},
|
|
},
|
|
})
|
|
})
|