解决已知问题

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');

View File

@ -6,6 +6,7 @@
align-items: center;
flex-direction: column;
padding-bottom: 200rpx;
background-image: url(https://th.bing.com/th/id/R.6bc30bd02cad5fed25b0b3c3b62a3d24?rik=GBt%2fhbcBgs9Zaw&riu=http%3a%2f%2fpic.616pic.com%2fbg_w1180%2f00%2f00%2f25%2f31Nz2xXsep.jpg!%2ffw%2f880&ehk=iS08XthP%2f40q7lSY3C2FPfJhzClUjjs84SZyLN9Ca3Q%3d&risl=&pid=ImgRaw&r=0);
}
.shangmian{
width: 260px;