1234567891011121314151617181920212223242526272829303132333435 |
- const { default: api } = require("../../js/api");
- Page({
- data: {
- isLoggedIn: true,
- userInfo: null,
- scanTitle:'扫码加油',
- scanTip:'请扫描加油机键盘上的二维码'
- },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad(options) {
- var wxChatID = wx.getStorageSync("WachatID")
- console.log("wxchatid",wxChatID);
- if(wxChatID) {
- api.request_GetSiteInfo().then(res => {
- console.log(res)
- })
- // this.setData({
- // isLoggedIn: true,
- // userInfo: null,
- // scanTitle:'扫码加油',
- // scanTip:'请扫码加油机键盘上的二维码'
- // })
- }
- },
- handleGetUserInfo: function(e) {
- wx.redirectTo({
- url: '../login/login'
- })
- }
- });
|