解决已知问题

This commit is contained in:
Ling53666
2025-05-16 19:45:14 +08:00
parent bac2777196
commit c10a348001
4 changed files with 51 additions and 20 deletions

View File

@ -1,4 +1,4 @@
// pages/tuiguangma/tuiguangma.js
import {url} from '../../request'
Page({
/**
@ -26,6 +26,33 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {
const that = this
wx.getStorage({
key: "logmessage",
success(res) {
const userinfo = res.data.Authorization
wx.request({
url: url + '/userInfo/get/main/jwt',
method: 'GET',
data: {
},
header: {
'content-type': 'application/json',
'Authorization': userinfo
},
success(res) {
console.log('查询成功', res);
that.setData({
picture:res.data.inviteQrCode
})
},
fail(err) {
console.error('请求失败', err);
}
});
}
})
console.log("页面展示 onShow");
try {
const userInfo = wx.getStorageSync('usermessage');