From c10a34800162cde7057ad523e616cb9e5af0ed74 Mon Sep 17 00:00:00 2001 From: Ling53666 <14656070+ling53666@user.noreply.gitee.com> Date: Fri, 16 May 2025 19:45:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=B7=B2=E7=9F=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tuiguangma/tuiguangma.js | 29 ++++++++++++++++++++++++++++- pages/tuiguangma/tuiguangma.wxss | 1 + pages/xiangqing/xiangqing.wxml | 16 ++++++++-------- pages/xiangqing/xiangqing.wxss | 25 ++++++++++++++----------- 4 files changed, 51 insertions(+), 20 deletions(-) diff --git a/pages/tuiguangma/tuiguangma.js b/pages/tuiguangma/tuiguangma.js index 12ad952..fbb4ae4 100644 --- a/pages/tuiguangma/tuiguangma.js +++ b/pages/tuiguangma/tuiguangma.js @@ -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'); diff --git a/pages/tuiguangma/tuiguangma.wxss b/pages/tuiguangma/tuiguangma.wxss index ff3f782..81c8b62 100644 --- a/pages/tuiguangma/tuiguangma.wxss +++ b/pages/tuiguangma/tuiguangma.wxss @@ -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; diff --git a/pages/xiangqing/xiangqing.wxml b/pages/xiangqing/xiangqing.wxml index 90b2642..36a3af0 100644 --- a/pages/xiangqing/xiangqing.wxml +++ b/pages/xiangqing/xiangqing.wxml @@ -54,22 +54,22 @@ - - {{item.salespersonName}} - {{item.salespersonPhone}} + + {{item.salespersonName}} + {{item.salespersonPhone}} - - 任务名称:{{item.projectName}} + + 任务名称:{{item.projectName}} - - 结算明细 + + 结算明细 - 查看推广码 + 查看推广码 diff --git a/pages/xiangqing/xiangqing.wxss b/pages/xiangqing/xiangqing.wxss index c6add20..eedc58d 100644 --- a/pages/xiangqing/xiangqing.wxss +++ b/pages/xiangqing/xiangqing.wxss @@ -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;