解决已知问题
This commit is contained in:
@ -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');
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user