完善vip页面遗留问题
This commit is contained in:
@@ -285,7 +285,7 @@ body {
|
||||
text-align: center;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
margin-left: 0.1066666667rem;
|
||||
margin: 0 0.1066666667rem;
|
||||
}
|
||||
.bottom_renew .wrap .renew_btn {
|
||||
background: url(../images/renew_btn.png) no-repeat;
|
||||
|
||||
@@ -339,7 +339,7 @@ body {
|
||||
text-align: center;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
margin-left: px2rem(8);
|
||||
margin:0 px2rem(8);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
<div class="selectAccount">
|
||||
<div class="selectAccount_in">
|
||||
<div class="name">
|
||||
Privileges
|
||||
<span>Privileges</span>
|
||||
<img src="./images/travel/back.png" alt="" />
|
||||
</div>
|
||||
<div class="descPic">
|
||||
|
||||
@@ -152,9 +152,10 @@ function renderPermission(actIndex) {
|
||||
$('.permission .box_warp').append(str);
|
||||
})
|
||||
// 专有权列表渲染
|
||||
$('.exclusive_discounts .title_name .num').text(`(${vipInfos[actIndex].ownAuthTypes.length}/${vipAuthInfos.length})`)
|
||||
// $('.exclusive_discounts .title_name .num').text(`(${vipInfos[actIndex].ownAuthTypes.length}/${vipAuthInfos.length})`)
|
||||
|
||||
$('.exclusive_discounts .box_warp').empty()
|
||||
let actIndexNum = vipAuthInfos.length
|
||||
vipAuthInfos.forEach((item, index) => {
|
||||
var str = `
|
||||
<div class="content_box" obj='${JSON.stringify(item)}'>
|
||||
@@ -165,13 +166,16 @@ function renderPermission(actIndex) {
|
||||
var $contentBox = $(str);
|
||||
if (!vipInfos[actIndex].ownAuthTypes.includes(item.authType)) {
|
||||
$contentBox.addClass('noactive')
|
||||
actIndexNum -= 1;
|
||||
}
|
||||
$('.exclusive_discounts .title_name .num').text(`(${actIndexNum}/${vipAuthInfos.length})`)
|
||||
|
||||
$('.exclusive_discounts .box_warp').append($contentBox);
|
||||
})
|
||||
// 购买弹窗
|
||||
if (vipInfos[actIndex].buyAmount != 0) {
|
||||
$('.payPopup .payPopup_warp .buyAmount .num').text(vipInfos[actIndex].buyAmount)
|
||||
$('.bottom_renew .wrap .left .buyAmount').text(`${vipInfos[actIndex].buyAmount}/30`)
|
||||
$('.bottom_renew .wrap .left .buyAmount').text(`${vipInfos[actIndex].buyAmount} / 30${langReplace(localLang.demoModule.Days)}`)
|
||||
$('.payPopup .payPopup_warp .pay_btn').attr('vipLevel', vipInfos[actIndex].vipLevel)
|
||||
$('.bottom_renew .wrap').show()
|
||||
$('.bottom_renew .wrap_txt').hide()
|
||||
@@ -191,8 +195,8 @@ $('.payPopup .payPopup_warp .pay_btn').click(function () {
|
||||
url: urlPrefix + "/vip/openWithDiamond",
|
||||
contentType: 'application/json;charset=UTF-8',
|
||||
data: {
|
||||
// roomUid:pubInfo.uid,
|
||||
roomUid:3203,
|
||||
roomUid:pubInfo.uid,
|
||||
// roomUid:3203,
|
||||
vipLevel
|
||||
},
|
||||
success: function (res) {
|
||||
@@ -243,6 +247,7 @@ $('.exclusive_discounts .box_warp').on('click', '.content_box', function () {
|
||||
let obj = JSON.parse($(this).attr("obj"))
|
||||
$('.selectAccount .selectAccount_in .descPic img').attr('src', obj.descPic)
|
||||
$('.selectAccount .selectAccount_in .authIntro').text(obj.authIntro)
|
||||
$('.selectAccount .selectAccount_in .name span').text(obj.authName)
|
||||
$('.selectAccount').show()
|
||||
})
|
||||
// 关闭详情弹窗
|
||||
|
||||
@@ -22,6 +22,7 @@ langAr = {
|
||||
},
|
||||
Confirm_Purchase:'تأكيد الشراء',
|
||||
VIP_Center:'مركز كبار الشخصيات',
|
||||
Days:'أيام',
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ langEn = {
|
||||
},
|
||||
Confirm_Purchase:'Confirm Purchase',
|
||||
VIP_Center:'VIP Center',
|
||||
Days:'Days',
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ langTr = {
|
||||
},
|
||||
Confirm_Purchase:'Satın Alımı Onayla',
|
||||
VIP_Center:'VIP Merkezi',
|
||||
Days:'Günler',
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ langZh = {
|
||||
},
|
||||
Confirm_Purchase:'確認購買',
|
||||
VIP_Center:'VIP中心',
|
||||
Days:'天數',
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user