修复提现bug

This commit is contained in:
dragon
2024-04-29 14:47:55 +08:00
parent 6e3bcd5f06
commit ad87ab144a
4 changed files with 5 additions and 8 deletions

View File

@@ -58,4 +58,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/index.js?v=1.1"></script>
<script src="./js/index.js?v=1.2"></script>

View File

@@ -37,7 +37,6 @@ $(function () {
setTimeout(function () {
getQueryWithRoomType();
getUser();
clientInit();
}, 100)
})
})
@@ -77,7 +76,8 @@ function getUser() {
$('.myInfo div p').text(res.data.nick);
$('.myInfo div b').text("ID:" + res.data.erbanNo);
experLevelSeq = res.data.userLevelVo.experLevelSeq
erbanNo = res.data.erbanNo
erbanNo = res.data.erbanNo;
clientInit();
} else if (res.code ? res.code == 1444 : JSON.parse(res).code == 401) {
window.location.href = './login.html'
} else {
@@ -99,10 +99,6 @@ function clientInit() {
url: urlPrefix + '/client/init',
success(res) {
if (res.code === 200) {
console.log(res.data.giveDiamondErbanNoList);
console.log(res.data.giveDiamondExperLevel);
console.log(experLevelSeq);
console.log();
if(experLevelSeq>= res.data.giveDiamondExperLevel || res.data.giveDiamondErbanNoList.indexOf(erbanNo) != -1){
$('.diamond a').show();
}else{

View File

@@ -216,6 +216,7 @@ function showPwd($inputs) {
data: { uid: pubInfo.uid, ticket: pubInfo.h5_token, toUid: urlDate.uid, diamondNum: Number($('.pub .pub_in .gold b').text()), payPwd: password, },
success(res) {
if (res.code === 200) {
queryWithRoomType();
$('.pub').hide();
toastMsg('轉贈成功');
} else {

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"></script>
<script src="./js/shareGive.jsv=1.0"></script>