From 3aad1aae7dea3500d17686dd93aff391cec7f5ac Mon Sep 17 00:00:00 2001 From: dragon <3013557874@qq.com> Date: Fri, 10 May 2024 23:06:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BD=AC=E8=B5=A0=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=97=AA=E9=80=80=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/molistar/common/js/common2.js | 4 ++-- view/molistar/modules/h5Income/give.html | 2 +- view/molistar/modules/h5Income/js/give.js | 2 +- view/molistar/modules/h5Income/js/shareGive.js | 5 ++++- view/molistar/modules/h5Income/shareGive.html | 2 +- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/view/molistar/common/js/common2.js b/view/molistar/common/js/common2.js index 7e1aafa..62c274c 100644 --- a/view/molistar/common/js/common2.js +++ b/view/molistar/common/js/common2.js @@ -1,5 +1,5 @@ -const productUrl = 'https://api.molistar.xyz'; // 正式环境 -const testUrl = 'http://beta.api.molistar.xyz'; // 测试环境 +const testUrl = 'https://api.molistar.xyz'; // 正式环境 +const productUrl = 'http://beta.api.molistar.xyz'; // 测试环境 function render(templateId, templateData, target) { var html = template(templateId, templateData); diff --git a/view/molistar/modules/h5Income/give.html b/view/molistar/modules/h5Income/give.html index 523d90b..ad0f4fe 100644 --- a/view/molistar/modules/h5Income/give.html +++ b/view/molistar/modules/h5Income/give.html @@ -41,4 +41,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/view/molistar/modules/h5Income/js/give.js b/view/molistar/modules/h5Income/js/give.js index 17d5dfe..8266bc1 100644 --- a/view/molistar/modules/h5Income/js/give.js +++ b/view/molistar/modules/h5Income/js/give.js @@ -99,7 +99,7 @@ function searchUser(erbanNo) { data: { erbanNo, uid: pubInfo.uid, }, success(res) { if (res.code === 200) { - window.location.href = `./shareGive.html?uid=${res.data.uid}&erbanNo=${erbanNo}` + window.location.href = `./shareGive.html?uid=${res.data.uid}&erbanNo=${erbanNo}&avatar=${res.data.avatar}&nick=${res.data.nick}&erbanNo=${res.data.erbanNo}` } else if (res.code ? res.code == 1444 : JSON.parse(res).code == 401) { window.location.href = './login.html' } else { diff --git a/view/molistar/modules/h5Income/js/shareGive.js b/view/molistar/modules/h5Income/js/shareGive.js index 31ecd27..10ae57f 100644 --- a/view/molistar/modules/h5Income/js/shareGive.js +++ b/view/molistar/modules/h5Income/js/shareGive.js @@ -41,7 +41,10 @@ $(function () { }) setTimeout(function () { getUser(); - searchUse(); + // searchUse(); + $('.myInfo img').attr('src', urlDate.avatar); + $('.myInfo div p').text(urlDate.nick); + $('.myInfo div b').text("ID:" + urlDate.erbanNo); init(); }, 100) diff --git a/view/molistar/modules/h5Income/shareGive.html b/view/molistar/modules/h5Income/shareGive.html index 897b2f3..3e9277c 100644 --- a/view/molistar/modules/h5Income/shareGive.html +++ b/view/molistar/modules/h5Income/shareGive.html @@ -81,4 +81,4 @@ - \ No newline at end of file + \ No newline at end of file