修复转赠页面闪退问题

This commit is contained in:
dragon
2024-05-10 23:06:51 +08:00
parent 03f290f314
commit 3aad1aae7d
5 changed files with 9 additions and 6 deletions

View File

@@ -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);

View File

@@ -41,4 +41,4 @@
<script src="../../common/js/vconsole.min.js"></script>
<script src="../../common/js/route-constant.js"></script>
<script src="../../common/js/svga.min.js"></script>
<script src="./js/give.js?v=1.1"></script>
<script src="./js/give.js?v=1.2"></script>

View File

@@ -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 {

View File

@@ -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)

View File

@@ -81,4 +81,4 @@
<script src="../../common/js/route-constant.js"></script>
<script src="../../common/js/svga.min.js"></script>
<script src="../../common/js/crypto-js.js"></script>
<script src="./js/shareGive.js?v=1.1"></script>
<script src="./js/shareGive.js?v=1.2"></script>