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