修复bug

This commit is contained in:
dragon
2024-08-23 18:33:48 +08:00
parent a241918253
commit 95a27e7b3b
7 changed files with 36 additions and 100 deletions

View File

@@ -102,6 +102,7 @@ ul li div b {
font-weight: 600;
font-size: 0.48rem;
color: #04D5C6;
white-space: nowrap;
}
ul li div span {

View File

@@ -1,5 +1,5 @@
@function px2rem($px, $rem: 37.5) {
@return $px / $rem + rem;
@return $px / $rem +rem;
}
body,
@@ -86,28 +86,34 @@ ul {
background: #ffffff;
border-radius: px2rem(12);
margin-bottom: px2rem(14);
div {
width: px2rem(325);
padding: px2rem(10) px2rem(9);
display: flex;
align-items: center;
justify-content: space-between;
p {
font-weight: 600;
font-size: px2rem(15);
color: #313131;
}
b {
font-weight: 600;
font-size: px2rem(18);
color: #04D5C6;
white-space: nowrap;
}
span {
font-weight: 400;
font-size: px2rem(13);
color: #7b7b7d;
line-height: px2rem(16);
}
// .time {
// width: 4.4rem;
// }
@@ -123,4 +129,4 @@ ul {
transform: rotate(180deg);
}
}
}
}

View File

@@ -1,7 +1,6 @@
html,
body {
width: 100%;
height: 17.78667rem;
background: #fff;
}
@@ -105,7 +104,6 @@ body {
.headerBox {
width: 10rem;
height: auto;
border-radius: 0.26667rem;
margin: -0.4rem auto 0rem;
position: relative;
@@ -115,7 +113,7 @@ body {
.headerBox .headerBox_in {
width: 9.14667rem;
height: 3.06667rem;
max-height: 3.06667rem;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
@@ -256,9 +254,8 @@ body {
.guildList {
width: 10rem;
height: 6.7rem;
border-radius: 0.26667rem;
margin: 0.26667rem auto 0rem;
margin: 0.26667rem auto 0;
position: relative;
background: #fff;
overflow: hidden;
@@ -417,7 +414,7 @@ body {
border-radius: 0.56rem;
position: absolute;
right: 0.34667rem;
top: 0.09333rem;
top: 0.69rem;
text-align: center;
color: #fff;
line-height: 0.56rem;

View File

@@ -5,7 +5,7 @@
html,
body {
width: 100%;
height: px2rem(1334);
// height: px2rem(1334);
background: #fff;
}
@@ -95,85 +95,6 @@ body {
left: px2rem(220);
}
// .adminSet {
// padding: px2rem(0) px2rem(16);
// box-sizing: border-box;
// height: px2rem(44);
// line-height: px2rem(44);
// color: #fff;
// font-size: px2rem(32);
// font-weight: 400;
// background: linear-gradient(90deg, rgba(82, 59, 85, 0.98), rgba(21, 5, 16, 0.98));
// border-radius: px2rem(44) 0px 0px px2rem(44);
// position: absolute;
// right: 0;
// top: px2rem(184);
// display: none;
// }
// .guildInfoSet {
// padding: px2rem(0) px2rem(16);
// box-sizing: border-box;
// height: px2rem(44);
// line-height: px2rem(44);
// color: #fff;
// font-size: px2rem(32);
// font-weight: 400;
// background: linear-gradient(90deg, rgba(82, 59, 85, 0.7), rgba(21, 5, 16, 0.7));
// border-radius: px2rem(44) 0px 0px px2rem(44);
// position: absolute;
// right: 0;
// top: px2rem(239);
// display: none;
// }
// .memberFlow {
// width: px2rem(208);
// height: px2rem(56);
// line-height: px2rem(56);
// text-align: center;
// color: #fff;
// font-size: px2rem(32);
// font-weight: 400;
// background: linear-gradient(90deg, rgba(128, 146, 255, .6) 0%, rgba(108, 208, 255, .6) 100%);
// border-radius: px2rem(14);
// position: absolute;
// left: px2rem(156);
// top: px2rem(466);
// display: none;
// }
// .memberFlowMy {
// width: px2rem(208);
// height: px2rem(56);
// line-height: px2rem(56);
// text-align: center;
// color: #fff;
// font-size: px2rem(32);
// font-weight: 400;
// background: linear-gradient(90deg, rgba(128, 146, 255, .6) 0%, rgba(108, 208, 255, .6) 100%);
// border-radius: px2rem(14) 0 0 px2rem(14);
// position: absolute;
// right: px2rem(0);
// top: px2rem(218);
// display: none;
// }
// .inveMember {
// width: px2rem(208);
// height: px2rem(56);
// line-height: px2rem(56);
// text-align: center;
// color: #fff;
// font-size: px2rem(32);
// font-weight: 400;
// background: linear-gradient(90deg, rgba(128, 146, 255, .6) 0%, rgba(108, 208, 255, .6) 100%);
// border-radius: px2rem(14);
// position: absolute;
// right: px2rem(156);
// top: px2rem(466);
// display: none;
// }
.guildNick {
width: 100%;
@@ -192,7 +113,6 @@ body {
.headerBox {
width: px2rem(750);
height: auto;
border-radius: px2rem(20);
margin: px2rem(-30) auto px2rem(0);
position: relative;
@@ -201,7 +121,7 @@ body {
.headerBox_in {
width: px2rem(686);
height: px2rem(230);
max-height: px2rem(230);
display: flex;
justify-content: space-between;
flex-wrap: wrap;
@@ -344,9 +264,9 @@ body {
.guildList {
width: px2rem(750);
// height: 11rem;
height: 6.7rem;
// height: 6.7rem;
border-radius: px2rem(20);
margin: px2rem(20) auto px2rem(0);
margin: px2rem(20) auto 0;
position: relative;
background: #fff;
overflow: hidden;
@@ -508,7 +428,7 @@ body {
border-radius: px2rem(42);
position: absolute;
right: px2rem(26);
top: px2rem(7);
top: 0.69rem;
text-align: center;
color: #fff;
line-height: px2rem(42);

View File

@@ -90,7 +90,7 @@ function getData() {
networkRequest({
type: "GET",
url: urlPrefix + "/guild/usd/bill/page",
data: { type, pageNo, pageSize, uid: pubInfo.uid },
data: { type, page:pageNo, pageSize, uid: pubInfo.uid },
success: function (res) {
if (res.code == 200) {
list = res.data
@@ -100,7 +100,7 @@ function getData() {
// if (item.tradeType == 1) {
str += `<li>
<div>
<p>${item.type == 1 ? `${langReplace(localLang.bill.text5)}` : item.type == 2 ? `${langReplace(localLang.bill.text6)}` : item.type == 3 ? `${langReplace(localLang.bill.text7)}` : item.type == 4 ? `ID:${me.erbanNo}${langReplace(localLang.bill.text8)} (ID: ${target.erbanNo})` : `${langReplace(localLang.bill.text9)}`}</p>
<p>${item.type == 1 ? `${langReplace(localLang.bill.text5)}` : item.type == 2 ? `${langReplace(localLang.bill.text6)}` : item.type == 3 ? `${langReplace(localLang.bill.text7)}` : item.type == 4 ? `ID:${item.me.erbanNo} ${langReplace(localLang.bill.text8)} ID: ${item.target.erbanNo}` : `${langReplace(localLang.bill.text9)}`}</p>
<b>${item.operateUsdNum.toLocaleString()} ÜS</b>
</div>
<div>

View File

@@ -142,9 +142,13 @@ function get() {
$('.agencylevel .agencylevelInfo h3 b').text(cycleDiamondWageLevel.curLevel);
$('.agencylevel .agencylevelInfo h4 b').text(cycleDiamondWageLevel.nextLevelGap);
$('.agencylevel .agencylevelInfo .bottom div').eq(0).text(`${cycleDiamondWageLevel.curLevel}(${unitProcessingAr(cycleDiamondWageLevel.curLevelWage, 0)})`);
$('.agencylevel .agencylevelInfo .bottom div').eq(1).text(`${cycleDiamondWageLevel.nextLevel}(${unitProcessingAr(cycleDiamondWageLevel.nextLevelWage, 0)})`);
// $('.agencylevel .agencylevelInfo .line .line_in').css('width', (cycleDiamondWageLevel.nextLevelWage - cycleDiamondWageLevel.nextLevelGap) / cycleDiamondWageLevel.nextLevelWage * 100 + '%')
$('.agencylevel .agencylevelInfo .line .line_in').css('width', (cycleDiamondWageLevel.nextLevelWage - cycleDiamondWageLevel.curLevelWage) / (cycleDiamondWageLevel.nextLevelWage - cycleDiamondWageLevel.curLevelWage) * 100 + '%')
if (cycleDiamondWageLevel.nextLevelWage) {
$('.agencylevel .agencylevelInfo .bottom div').eq(1).text(`${cycleDiamondWageLevel.nextLevel}(${unitProcessingAr(cycleDiamondWageLevel.nextLevelWage, 0)})`);
$('.agencylevel .agencylevelInfo .line .line_in').css('width', (cycleDiamondWageLevel.nextLevelWage - cycleDiamondWageLevel.curLevelWage) / (cycleDiamondWageLevel.nextLevelWage - cycleDiamondWageLevel.curLevelWage) * 100 + '%')
}else{
$('.agencylevel .agencylevelInfo .bottom div').eq(1).hide();
$('.agencylevel .agencylevelInfo .line .line_in').css('width', '100%')
}
res.data.authCodes.forEach((res) => {
console.log(res);
if (res == 'set_info') {
@@ -231,7 +235,7 @@ function searchUser(erbanNo) {
var res = res.data;
var str = `
<li>
<div class="chairman" ${res.roleType == 3 ? 'style="display:block"' : ''}>${langReplace(localLang.demoModule.text12)}</div>
<div class="chairman" ${res.roleType == 1 ? 'style="display:block"' : ''}>${langReplace(localLang.demoModule.text12)}</div>
<div class="administrator" ${res.roleType == 2 ? 'style="display:block"' : ''}>${langReplace(localLang.demoModule.text13)}</div>
<img src="${res.avatar}" uid=${res.uid} alt="" class="tx">
<div class="user">
@@ -241,7 +245,7 @@ function searchUser(erbanNo) {
<img src="${res.userLevelVo.charmUrl}" alt="" class="charm">
<b>ID:${res.erbanNo}</b>
</div>
${roleTypes == 1 ? `<div uid=${res.uid} nick=${res.nick} class="but" style="display:block"}">${langReplace(localLang.demoModule.text14)}</div>` : roleTypes == 2 && res.roleType != 1 && res.roleType != 2 ? `<div uid=${res.uid} nick=${res.nick} class="but" style="display:block"}">${langReplace(localLang.demoModule.text14)}</div>` : `<div uid=${res.uid} nick=${res.nick} class="but" style="display:none"}">${langReplace(localLang.demoModule.text14)}</div>`}
${roleTypes == 1 && res.roleType != 1 ? `<div uid=${res.uid} nick=${res.nick} class="but" style="display:block"}">${langReplace(localLang.demoModule.text14)}</div>` : roleTypes == 2 && res.roleType != 1 && res.roleType != 2 ? `<div uid=${res.uid} nick=${res.nick} class="but" style="display:block"}">${langReplace(localLang.demoModule.text14)}</div>` : `<div uid=${res.uid} nick=${res.nick} class="but" style="display:none"}">${langReplace(localLang.demoModule.text14)}</div>`}
</li>
`
$('.guildList ul').append(str);

View File

@@ -377,6 +377,7 @@ $('.custom_pop .custom_pop_in .btn_wrap .sure').click(function () {
}
than = $(this);
operateValue(than);
$(".custom_pop .ipt input").val('')
$(".custom_pop h2 b").html('0');
$('.custom_pop').hide();
bodyScroolFun(false);
@@ -410,11 +411,18 @@ $(".custom_pop .ipt input").on("input", function () {
$(".custom_pop h2 b").html(gold);
tradeUsb = value
}
$('.custom_pop .sure').attr('guildUsdNum',value);
$('.agent_pop .sure').attr('guildUsdNum',value);
$('.president_pop .sure').attr('guildUsdNum',value);
});
// 自定义金额全部按钮
$('.custom_pop .custom_pop_in .ipt e').click(function () {
$('.custom_pop .custom_pop_in .ipt input').val(usGold);
$(".custom_pop h2 b").html(usGold * ratio);
$('.custom_pop .sure').attr('guildUsdNum',usGold);
$('.agent_pop .sure').attr('guildUsdNum',usGold);
$('.president_pop .sure').attr('guildUsdNum',usGold);
})
// 跳转记录页面
$('.my_salary p').click(function () {