增加微信小程序版

This commit is contained in:
uiiang
2021-09-08 16:04:03 +08:00
parent e420fdf8fd
commit 1c29c3a737
207 changed files with 5936 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
// miniprogram/pages/liferestart/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
wx.showShareMenu({
withShareTicket: true,
menus: ['shareAppMessage', 'shareTimeline']
})
},
toRanking(e) {
wx.navigateTo({
url: 'ranking'
})
},
toTalents(e) {
wx.navigateTo({
url: 'talents'
})
},
onShareTimeline(e) {
return {
title: "人生重开模拟器",
imageUrl: "../../../images/liferestart_cover.jpg",
}
},
onShareAppMessage: function () {
return {
title: '人生重开模拟器',
imageUrl: '../../../images/liferestart_cover.jpg',
path: '/pages/index/index',
}
},
})