小程序生成二维码功能完成
This commit is contained in:
		@@ -32,6 +32,7 @@ Page({
 | 
			
		||||
      wx.redirectTo({
 | 
			
		||||
        url: '/pages/index/login'
 | 
			
		||||
      })
 | 
			
		||||
      return
 | 
			
		||||
    } else {
 | 
			
		||||
      // 用户已登录
 | 
			
		||||
      this.userGroup = getUserGroupByRole(this.userInfo.role)
 | 
			
		||||
@@ -47,16 +48,18 @@ Page({
 | 
			
		||||
          wx.navigateTo({
 | 
			
		||||
            url: "/pages/scan/entrance"
 | 
			
		||||
          })
 | 
			
		||||
          return
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // 开发模式下自动跳转到指定页面,节省开发时间
 | 
			
		||||
    console.log("app.globalData", app.globalData)
 | 
			
		||||
    if (app.globalData.debugMode) {
 | 
			
		||||
      wx.switchTab({
 | 
			
		||||
        url: '/pages/residents/report'
 | 
			
		||||
      })
 | 
			
		||||
      // // 开发模式下自动跳转到指定页面,节省开发时间
 | 
			
		||||
      // console.log("app.globalData", app.globalData)
 | 
			
		||||
      // if (app.globalData.debugMode) {
 | 
			
		||||
      //   wx.switchTab({
 | 
			
		||||
      //     url: '/pages/residents/report'
 | 
			
		||||
      //   })
 | 
			
		||||
      //   return
 | 
			
		||||
      // }
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user