litian
2024-03-27 ccf200b60ad213343a13d36c17c5ee5ac5cd7b7a
assets/js/login.js
@@ -1,4 +1,6 @@
import { setSessionGuid } from "./userAction"
import {
  setSessionGuid
} from "./userAction"
export const loginInfo = (app, callback) => {
@@ -28,7 +30,6 @@
                }
                url += "?" + option
              }
              debugger
              console.log(url);
              wx.navigateTo({
                url: "/pages/bindInfo/index?page=" + encodeURIComponent(url),
@@ -85,12 +86,12 @@
      let defaultUser = {};
      let WeChatInfo = res.infoList.find((item) => item.type === "WeChat");
      let phoneNumber = res.secretList.find(i => i.type == 'MobilePhone')
      if (WeChatInfo) {
        defaultUser = {
          nickName: WeChatInfo.name,
          avatarUrl: WeChatInfo.icon,
          weChatId: WeChatInfo.id
          weChatId: WeChatInfo.id,
          userId: res.userId,
        }
      }
      if (phoneNumber) {