完善提现功能
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
Reference in New Issue
Block a user