123456789101112131415161718192021222324252627282930313233343536373839 |
- // index.js
- // 获取应用实例
- const app = getApp()
- Page({
- data: {
-
- },
- // 事件处理函数
- bindViewTap() {
- wx.navigateTo({
- url: '../logs/logs'
- })
- },
- //生命周期
- onLoad() {
- if (wx.getUserProfile) {
- this.setData({
- canIUseGetUserProfile: true
- })
- }
- },
- /**
- * 生命周期函数--监听页面显示
- */
- onShow() {
- if (typeof this.getTabBar === 'function' &&
- this.getTabBar()) {
- this.getTabBar().setData({
- //唯一标识(其它设置不同的整数)
- selected: 0
- })
- }
- },
- })
|