完善提现功能

This commit is contained in:
Dragon
2023-07-12 17:00:34 +08:00
parent 733ab19c71
commit f9886b9089
29 changed files with 1066 additions and 192 deletions

View File

@@ -4,7 +4,7 @@ let env = EnvCheck();
if (env == 'test') {
new VConsole();
}
// 封layer消息提醒框
// 封layer消息提醒框
let layerIndex
const showLoading = (content = '加載中...') => {
layer.open({
@@ -39,7 +39,7 @@ $(function () {
}, 100)
})
})
// 石金接口
// 石金接口
function getQueryWithRoomType () {
showLoading()
networkRequest({
@@ -49,6 +49,8 @@ function getQueryWithRoomType () {
if (res.code === 200) {
$('.diamond p').text(res.data.diamonds);
$('.gold p').text(res.data.golds);
} else if (res.code ? res.code == 401 : JSON.parse(res).code == 401) {
window.location.href = './login.html'
} else {
toastMsg(res.message)
}
@@ -72,6 +74,8 @@ function getUser () {
$('.myInfo img').attr('src', res.data.avatar);
$('.myInfo div p').text(res.data.nick);
$('.myInfo div b').text("ID:" + res.data.erbanNo);
} else if (res.code ? res.code == 401 : JSON.parse(res).code == 401) {
window.location.href = './login.html'
} else {
toastMsg(res.message)
}
@@ -83,7 +87,7 @@ function getUser () {
}
})
}
// 返回按
// 返回按
$('.back').click(function () {
window.history.go(-1)
})