解决已知问题

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;

View File

@ -54,22 +54,22 @@
</view>
<view class="erweima">
<view class="zuobox">
<view style="padding: 10px;">
<text>{{item.salespersonName}}</text>
<text style="margin-left: 15rpx;">{{item.salespersonPhone}}</text>
<view style="padding: 5px 0 0 10px;">
<text style="font-size: 14px;">{{item.salespersonName}}</text>
<text style="margin-left: 15rpx;font-size: 15px;">{{item.salespersonPhone}}</text>
</view>
<view style="padding: 10px;">
<text>任务名称:{{item.projectName}}</text>
<view style="padding: 5px 0 0 10px;">
<text style="font-size: 12px;color: #a5a5a5;">任务名称:{{item.projectName}}</text>
</view>
<view class="jiexuan">
<view style="background-color: #FC7E09; width: 80px;display: flex;justify-content: center; align-items: center;">
<text style="color: #E33C64;">结算明细</text>
<view style="border-radius: 8rpx; background-color: #f7c79b; width: 80px;display: flex;justify-content: center; align-items: center;margin-top: 10rpx;">
<text style="color: #f02453;font-size: 13px;padding: 5rpx;">结算明细</text>
</view>
</view>
</view>
<view class="youbox" bind:tap="xianshi">
<image class="imagesize1" src="{{item.projectImage}}" mode="aspectFill"/>
<text style="margin-top: 10rpx;">查看推广码</text>
<text style="margin-top: 10rpx;font-size: 12px; color: #a5a5a5;">查看推广码</text>
</view>
</view>
</view>

View File

@ -23,10 +23,10 @@
}
.mabox{
width: 100%;
height: 100%;
display: flex;
align-items: center;
flex-direction: column;
padding-bottom: 100px;
}
.xinxibox{
width: 100%;
@ -106,23 +106,24 @@
}
.messagebox{
width: 90%;
height: 200px;
border-radius: 20px;
border: 1px #a09d9d solid;
margin-top: 20rpx;
height: 150px;
border-radius: 10px;
margin-top: 30rpx;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.title{
width: 100%;
height: 30%;
height: 20%;
background-color: #ff8d1a;
border-radius: 20px 20px 0 0;
border-radius: 20rpx 20rpx 0 0;
display: flex;
align-items: center;
}
.erweima{
width: 100%;
height: 70%;
height: 80%;
display: flex;
border-radius: 0 0 10rpx 0;
}
.zuobox{
width: 60%;
@ -142,8 +143,8 @@
flex-direction: column;
}
.imagesize1{
width: 100px;
height: 100px;
width: 50px;
height: 50px;
}
.renwuma{
width: 90%;
@ -157,7 +158,7 @@
display: flex;
justify-content: center;
align-items: center;
position: absolute;
position: fixed;
top: 0px;
background-color: rgba(138, 135, 135, 0.5);
}
@ -170,6 +171,7 @@
justify-content: center;
align-items: center;
flex-direction: column;
border-radius: 10rpx 10rpx 0 0 ;
}
.imagebox{
width: 100%;
@ -191,6 +193,7 @@
justify-content: center;
align-items: center;
background-color: #ffffff;
border-radius: 0rpx 0rpx 10rpx 10rpx ;
}
.copy{
width: 180px;