From 484d75dda5f2b41b4458a6402bdc9cf520691aec Mon Sep 17 00:00:00 2001 From: chen-xin-zhi <3588068430@qq.com> Date: Wed, 4 Jun 2025 17:13:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BA=86=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E9=82=80=E8=AF=B7=E7=A0=81=E7=9A=84=E7=94=9F=E6=88=90=EF=BC=8C?= =?UTF-8?q?=E9=80=9A=E8=BF=87=E6=89=AB=E6=8F=8F=E5=8F=AF=E5=AE=9E=E7=8E=B0?= =?UTF-8?q?=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/loginModule/register/register.js | 15 +++++++++------ .../InvitationCodePop/InvitationCodePop.wxss | 1 + .../component/InvitationCodePop/images/cha.png | Bin 0 -> 1100 bytes pages/personCenter/mine/mine.js | 11 +++++++---- request.js | 3 +++ 5 files changed, 20 insertions(+), 10 deletions(-) create mode 100644 pages/personCenter/component/InvitationCodePop/images/cha.png diff --git a/pages/loginModule/register/register.js b/pages/loginModule/register/register.js index b7b0aeb..1fe41df 100644 --- a/pages/loginModule/register/register.js +++ b/pages/loginModule/register/register.js @@ -5,6 +5,15 @@ import { validate } from "../../../utils/validate"; // pages/loginModule/register/register.js Page({ + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + const scene = decodeURIComponent(options.scene) + let [key, value] = scene.split('='); + this.setData({inviteCode: value}) + }, + /** * 页面的初始数据 */ @@ -138,12 +147,6 @@ Page({ url: '/pages/loginModule/pwdLogin/pwdLogin', }) }, - /** - * 生命周期函数--监听页面加载 - */ - onLoad(options) { - - }, /** * 生命周期函数--监听页面初次渲染完成 diff --git a/pages/personCenter/component/InvitationCodePop/InvitationCodePop.wxss b/pages/personCenter/component/InvitationCodePop/InvitationCodePop.wxss index ba133bb..973f9e4 100644 --- a/pages/personCenter/component/InvitationCodePop/InvitationCodePop.wxss +++ b/pages/personCenter/component/InvitationCodePop/InvitationCodePop.wxss @@ -69,6 +69,7 @@ width: 300rpx; height: 300rpx; margin: 40rpx auto 0; + border-radius: 50%; border-radius: 16rpx; box-shadow: 0 4rpx 24rpx rgba(255, 111, 0, 0.08); background: #fff; diff --git a/pages/personCenter/component/InvitationCodePop/images/cha.png b/pages/personCenter/component/InvitationCodePop/images/cha.png new file mode 100644 index 0000000000000000000000000000000000000000..f34afe806d381d9d53cd520fcc80066161d01524 GIT binary patch literal 1100 zcmV-S1he~zP)Px#1am@3R0s$N2z&@+hyVZs_DMuRRA_-x`9VfH}D2lCrCO$ z)d@U;vq461I)Sr+oC%yv@cKddtT-SDQjl|(;x3om3B15;6IUSZUB-sfF*!$ z0KNkF0$?#beja{50XS4u^)#0s?nFs00IU(nt#Bq~l}7-70o+$rb#QggLr69xcO;MW zlRe4yqqzZiLvT*%Ka4QR`U(Wy2p8>9l6L@p!?yok033#&7lZ`V4`b`$XZ*KC?g9L& zs_Mn4pC=?2BsYecKa$*%TrngktNmuMzc)s=o{MD4fu7{b39lX|D>b1@54MV$K{EM%B)JyG9Vu09lq1s`9gQW0B-s>6(b@MlVk@h; zR9r@YY75a)vK}NywswMz&85<rPVPvAh}SNC1;ApQ@_r0Q@nkKLPmRaN#A5KXZ%B zu*=PXA+nPrIl_`I3f4F2p)PVrJb#+)>N3ddn5Z7|LSZO4Qq@t*i3fp^h+8m4w4Q=! zBzY1qvbFk@@=f2m6pi|OvR9r>J>p4Hj}^9pLTSN}ECx8CHdb)Od#+0*uM*H)@pzMs zVDB%LVrS8uqB^^*^CV08)$;yKO8J;$+NUKXy~#$#zb|7c*Pxbz_o|en7g@yz@!(x@ zm7?C9TSywowu!O3tO=sLe4|N8nViz2R*Y=PQPJbp;h#IK|gvA ztvOEWQC$sSM}`BuOX)basp!Qn=2{C#EUMj90-nP7_ZK~yBLmvks&-!YZ9+W>HaUi3 zNyfKtpimh93ZGv-GTwpGe-znawe1wY%JPFUb7bf@x|&d5uH~Qh2jkj)C9jmA7`Bqu zXXw(IqRk{ZW3L` { if (res.data.code === 1) { + let result = res.data.data this.setData({ - currentBalance: res.data.data.currentBalance, // 当前余额 - withdrawalingBalance: res.data.data.withdrawalAmount, // 提现中的余额 - withdrawaledAmount: res.data.data.withdrawnAmount, // 已提现的余额 - totalIncome: res.data.data.totalIncome // 累计收入 + currentBalance: result.currentBalance, // 当前余额 + withdrawalingBalance: result.withdrawalAmount, // 提现中的余额 + withdrawaledAmount: result.withdrawnAmount, // 已提现的余额 + totalIncome: result.totalIncome, // 累计收入 + qrcode: globalImgUrl + result.inviteQrCode }) } else { wx.showToast({ diff --git a/request.js b/request.js index 5c288cf..48c3a51 100644 --- a/request.js +++ b/request.js @@ -1,3 +1,6 @@ export const local='http://localhost:3456'; export const ip = 'http://1.94.237.210:3457'; export const baseUrl = local; + + +export const globalImgUrl = baseUrl + '/file/download/' \ No newline at end of file