12345678910111213141516171819202122 |
- Page({
- data: {
- theme: 'light',
- },
- onLoad() {
- this.setData({
- theme: wx.getSystemInfoSync().theme || 'light'
- })
- if (wx.onThemeChange) {
- wx.onThemeChange(({theme}) => {
- this.setData({theme})
- })
- }
- },
- onShareAppMessage() {
- return {
- title: '分页展现',
- path: 'packageExtend/pages/adapt/pagination/pagination'
- }
- },
- })
|