33 lines
656 B
JavaScript
33 lines
656 B
JavaScript
let app = getApp()
|
|
Page({
|
|
data: {
|
|
canLogin: true,
|
|
},
|
|
/** 生命周期函数--监听页面加载 */
|
|
onLoad: function (options) {
|
|
|
|
wx.showLoading({ title: '加载中' })
|
|
},
|
|
/** 生命周期函数--监听页面显示 */
|
|
onShow: function () {
|
|
// 判断有没有授权
|
|
if (!app.globalData.user_info.mobile) {
|
|
wx.redirectTo({
|
|
url: '/pages/authorizationPage/index'
|
|
})
|
|
return
|
|
}
|
|
// 获取数据
|
|
this.getData();
|
|
},
|
|
// 获取数据
|
|
getData() {
|
|
|
|
},
|
|
/** 用户点击右上角分享 */
|
|
onShareAppMessage: function () {
|
|
return { path: "pages/firstpage/firstpage?from=share" }
|
|
},
|
|
|
|
|
|
}) |