jump.js 1.99 KB
// pages/jump/jump.js
var app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  },
  shehui(){
    wx.redirectTo({
      url: '../socialUserRegister/socialUserRegister?type=1',
    })
  },
  jigou() {
    wx.redirectTo({
      url: '../socialUserRegister/socialUserRegister?type=2',
    })
  },
  jiaxiao() {
    wx.redirectTo({
      url: '../register/register?type=3',
    })
  },
  jiayuan() {
    wx.redirectTo({
      url: '../register/register?type=4',
    })
  },
  lingdao(){
    wx.redirectTo({
      url: '../leaderRegister/leaderRegister?type=5',
    })
  },
  gaoji(){
    wx.redirectTo({
      url: '../leaderRegister/leaderRegister?type=8',
    })
  },
  shehuiindex(){
    getApp().globalData.showDialog = 1
    wx.switchTab({
      url: '../index/index',
    })
  },
  jigouindex() {
    getApp().globalData.showDialog = 2
    wx.switchTab({
      url: '../index/index',
    })
  },
  jiaxiaoindex() {
    getApp().globalData.showDialog = 3
    wx.switchTab({
      url: '../index/index3',
    })
  },
  jiayuanindex() {
    getApp().globalData.showDialog = 4
    wx.switchTab({
      url: '../index/index',
    })
  },
  lingdaoindex() {
    getApp().globalData.showDialog = 5
    wx.switchTab({
      url: '../index/index',
    })
  },
})