47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
Page({
|
|
data: {
|
|
generateCount: 0,
|
|
version: '',
|
|
},
|
|
|
|
onLoad() {
|
|
const info = wx.getAccountInfoSync();
|
|
const version = info.miniProgram.version || '开发版';
|
|
this.setData({ version });
|
|
},
|
|
|
|
onGoToDownloads() {
|
|
wx.setStorageSync('favorites_active_tab', 'downloads');
|
|
wx.switchTab({ url: '/pages/favorites/favorites' });
|
|
},
|
|
|
|
onGoToFavorites() {
|
|
wx.setStorageSync('favorites_active_tab', 'favorites');
|
|
wx.switchTab({ url: '/pages/favorites/favorites' });
|
|
},
|
|
|
|
onGoToPrintPlan() {
|
|
wx.showToast({ title: '功能开发中', icon: 'none' });
|
|
},
|
|
|
|
onGoToStats() {
|
|
wx.showToast({ title: '功能开发中', icon: 'none' });
|
|
},
|
|
|
|
onGoToGuide() {
|
|
wx.navigateTo({ url: '/pages/guide/guide' });
|
|
},
|
|
|
|
onGoToPrintSettings() {
|
|
wx.showToast({ title: '功能开发中', icon: 'none' });
|
|
},
|
|
|
|
onGoToFeedback() {
|
|
wx.showToast({ title: '功能开发中', icon: 'none' });
|
|
},
|
|
|
|
onGoToAbout() {
|
|
wx.showToast({ title: '涂鸦丫练习纸', icon: 'none' });
|
|
},
|
|
});
|