修复转赠页面闪退问题
This commit is contained in:
@@ -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);
|
||||
|
@@ -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>
|
@@ -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 {
|
||||
|
@@ -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)
|
||||
|
||||
|
@@ -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>
|
Reference in New Issue
Block a user