Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

glsx-business / eims-mini-program

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • eims-mini-program
  • pages
  • route
  • to.js
  • 张杰's avatar
    初始化源码 · 99a08d34
    张杰 committed Feb 17, 2022
    99a08d34
to.js 635 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Page({
    data: {},
    onLoad: function(n) {
        var o = n.rt;
        if (o) wx.redirectTo({
            url: o
        }); else {
            var t = n.st;
            if (t) wx.switchTab({
                url: t,
                success: function(n) {
                    wx.hideTabBar();
                }
            }); else {
                var e = n.nt;
                e && wx.navigateTo({
                    url: e
                });
            }
        }
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {}
});