123456789101112131415161718192021222324252627 |
- Page({
- data: {
- theme: 'light'
- },
- onShareAppMessage() {
- return {
- title: 'navigatePage',
- path: 'packageComponent/pages/nav/navigator/navigate'
- }
- },
- onLoad(options) {
- this.setData({
- theme: wx.getSystemInfoSync().theme || 'light'
- })
- if (wx.onThemeChange) {
- wx.onThemeChange(({theme}) => {
- this.setData({theme})
- })
- }
- console.log(options)
- this.setData({
- title: options.title
- })
- }
- })
|