tanghaolin
2024-07-04 cc461d250428674b40f5916412ffa514be421c38
修改登录异常问题
已修改3个文件
20 ■■■■■ 文件已修改
login/login/index.js 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
project.private.config.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
workDesktop/index/index.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
login/login/index.js
@@ -106,12 +106,11 @@
  //真实用户
  loginByReal: function (jsCode) {
    let that = this;
    var userInfo = this.data.userInfo;
    var sysInfo = app.globalData.sysInfo;
    // console.log('打印userInfo', userInfo)
    wx.showToast({
      title: '登陆中',
      title: '登录中',
      icon: "loading",
      duration: 3000
    });
@@ -157,14 +156,6 @@
      },
      success: function (res) {
        //  console.log(res,123)
        wx.showToast({
          title: JSON.stringify(res),
        })
        wx.showModal({
          content: JSON.stringify(res),
          showCancel: false,
          confirmColor: "#39b5de"
        });
        wx.hideToast();
@@ -245,9 +236,11 @@
      icon: 'loading',
      duration: 1000
    })
    wx.switchTab({
      url: '../../workDesktop/index/index',
    })
    app.onStartAlarm()
    // var pages = getCurrentPages();
    // if (pages.length >= 2) {
@@ -320,7 +313,6 @@
            if (e.detail.userInfo == undefined || e.detail.userInfo == null) {
              wx.showToast({
                title: '授权失败请重新授权',
              })
            }
            that.loginByReal(jsCode);
project.private.config.json
@@ -2,10 +2,10 @@
  "projectname": "Wechart.V1.0",
  "setting": {
    "compileHotReLoad": false,
    "urlCheck": false
    "urlCheck": true
  },
  "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
  "libVersion": "3.3.3",
  "libVersion": "3.4.9",
  "condition": {
    "miniprogram": {
      "list": [
workDesktop/index/index.js
@@ -1,5 +1,5 @@
var Constant = require('../../utils/constant.js');
var app = getApp();
const app = getApp();
import Request from "../../utils/api"
Page({
  data: {