| | |
| | | //真实用户 |
| | | 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 |
| | | }); |
| | |
| | | }, |
| | | 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(); |
| | | |
| | |
| | | icon: 'loading', |
| | | duration: 1000 |
| | | }) |
| | | |
| | | wx.switchTab({ |
| | | url: '../../workDesktop/index/index', |
| | | }) |
| | | app.onStartAlarm() |
| | | |
| | | // var pages = getCurrentPages(); |
| | | // if (pages.length >= 2) { |
| | |
| | | if (e.detail.userInfo == undefined || e.detail.userInfo == null) { |
| | | wx.showToast({ |
| | | title: '授权失败请重新授权', |
| | | |
| | | }) |
| | | } |
| | | that.loginByReal(jsCode); |
| | |
| | | "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": [ |
| | |
| | | var Constant = require('../../utils/constant.js'); |
| | | var app = getApp(); |
| | | const app = getApp(); |
| | | import Request from "../../utils/api" |
| | | Page({ |
| | | data: { |