修复ui和bug

This commit is contained in:
dragon
2024-05-24 17:31:01 +08:00
parent bebd0aca0c
commit 22ba0d9bd4
55 changed files with 432 additions and 198 deletions

View File

@@ -116,12 +116,13 @@ ul li .user p {
font-weight: bold; font-weight: bold;
display: inline-block; display: inline-block;
margin-right: 0.10667rem; margin-right: 0.10667rem;
margin-top: 0.74667rem;
margin-bottom: 0.16rem; margin-bottom: 0.16rem;
width: 2.7rem; width: 2.7rem;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
box-sizing: border-box;
padding-top: 0.66667rem;
} }
ul li .user b { ul li .user b {

View File

@@ -117,12 +117,13 @@ ul {
font-weight: bold; font-weight: bold;
display: inline-block; display: inline-block;
margin-right: px2rem(8); margin-right: px2rem(8);
margin-top: px2rem(56);
margin-bottom: px2rem(12); margin-bottom: px2rem(12);
width: 2.7rem; width: 2.7rem;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
box-sizing: border-box;
padding-top: px2rem(50);
} }
b { b {

View File

@@ -95,12 +95,13 @@ ul li .user p {
font-weight: bold; font-weight: bold;
display: inline-block; display: inline-block;
margin-right: 0.10667rem; margin-right: 0.10667rem;
margin-top: 0.74667rem;
margin-bottom: 0.16rem; margin-bottom: 0.16rem;
width: 2.7rem; width: 2.7rem;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
box-sizing: border-box;
padding-top: 0.66667rem;
} }
ul li .user b { ul li .user b {
@@ -153,6 +154,7 @@ ul li .chairman {
left: 0.16rem; left: 0.16rem;
top: 0.94667rem; top: 0.94667rem;
background: linear-gradient(90deg, #FFEB67, #FFFCE7); background: linear-gradient(90deg, #FFEB67, #FFFCE7);
display: none;
} }
ul li .administrator { ul li .administrator {
@@ -168,6 +170,7 @@ ul li .administrator {
left: 0.16rem; left: 0.16rem;
top: 0.94667rem; top: 0.94667rem;
background: linear-gradient(-90deg, #FBE1FF, #F090FF); background: linear-gradient(-90deg, #FBE1FF, #F090FF);
display: none;
} }
ul .null { ul .null {

View File

@@ -96,12 +96,13 @@ ul {
font-weight: bold; font-weight: bold;
display: inline-block; display: inline-block;
margin-right: px2rem(8); margin-right: px2rem(8);
margin-top: px2rem(56);
margin-bottom: px2rem(12); margin-bottom: px2rem(12);
width: 2.7rem; width: 2.7rem;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
box-sizing: border-box;
padding-top: px2rem(50);
} }
b { b {
@@ -155,6 +156,7 @@ ul {
left: px2rem(12); left: px2rem(12);
top: px2rem(71); top: px2rem(71);
background: linear-gradient(90deg, #FFEB67, #FFFCE7); background: linear-gradient(90deg, #FFEB67, #FFFCE7);
display: none;
} }
.administrator { .administrator {
@@ -170,6 +172,7 @@ ul {
left: px2rem(12); left: px2rem(12);
top: px2rem(71); top: px2rem(71);
background: linear-gradient(-90deg, #FBE1FF, #F090FF); background: linear-gradient(-90deg, #FBE1FF, #F090FF);
display: none;
} }
} }

View File

@@ -120,9 +120,10 @@ ul li .user p {
text-overflow: ellipsis; text-overflow: ellipsis;
color: #515665; color: #515665;
font-size: 0.32rem; font-size: 0.32rem;
margin-top: 0.70667rem;
margin-bottom: 0.38667rem; margin-bottom: 0.38667rem;
font-weight: bold; font-weight: bold;
box-sizing: border-box;
padding-top: 0.70667rem;
} }
ul li .user b { ul li .user b {

View File

@@ -121,9 +121,10 @@ ul {
text-overflow: ellipsis; text-overflow: ellipsis;
color: #515665; color: #515665;
font-size: px2rem(24); font-size: px2rem(24);
margin-top: px2rem(53);
margin-bottom: px2rem(29); margin-bottom: px2rem(29);
font-weight: bold; font-weight: bold;
box-sizing: border-box;
padding-top: px2rem(53);
} }
b { b {

View File

@@ -77,6 +77,7 @@ body {
top: 0; top: 0;
left: 2.53333rem; left: 2.53333rem;
z-index: 1; z-index: 1;
border-radius: 0.13333rem;
} }
.bg .upload { .bg .upload {

View File

@@ -80,6 +80,7 @@ body {
top: 0; top: 0;
left: px2rem(190); left: px2rem(190);
z-index: 1; z-index: 1;
border-radius: px2rem(10);
} }
.upload { .upload {

View File

@@ -37,7 +37,7 @@ body {
} }
.header .tx { .header .tx {
width: 2.53333rem; width: 2.64rem;
height: 2.53333rem; height: 2.53333rem;
position: absolute; position: absolute;
left: 50%; left: 50%;
@@ -53,6 +53,7 @@ body {
top: 1.73333rem; top: 1.73333rem;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
z-index: 2;
} }
.header .nick { .header .nick {
@@ -179,7 +180,7 @@ body {
.guildList { .guildList {
width: 9.25333rem; width: 9.25333rem;
height: 9.97333rem; height: 13.33333rem;
border-radius: 0.26667rem; border-radius: 0.26667rem;
margin: -1.66667rem auto 0rem; margin: -1.66667rem auto 0rem;
position: relative; position: relative;
@@ -267,6 +268,8 @@ body {
overflow: hidden; overflow: hidden;
margin-bottom: 0.44rem; margin-bottom: 0.44rem;
position: relative; position: relative;
box-sizing: border-box;
padding-left: 0.13333rem;
} }
.guildList ul li .tx { .guildList ul li .tx {
@@ -290,12 +293,13 @@ body {
font-weight: bold; font-weight: bold;
display: inline-block; display: inline-block;
margin-right: 0.10667rem; margin-right: 0.10667rem;
margin-top: 0.10667rem;
margin-bottom: 0.18667rem; margin-bottom: 0.18667rem;
width: 2.7rem; width: 2.7rem;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
box-sizing: border-box;
padding-top: 0.10667rem;
} }
.guildList ul li .user b { .guildList ul li .user b {
@@ -344,7 +348,7 @@ body {
font-size: 0.29333rem; font-size: 0.29333rem;
font-weight: 400; font-weight: 400;
position: absolute; position: absolute;
left: 0.16rem; left: 0.26667rem;
top: 0.94667rem; top: 0.94667rem;
background: linear-gradient(90deg, #FFEB67, #FFFCE7); background: linear-gradient(90deg, #FFEB67, #FFFCE7);
display: none; display: none;
@@ -360,7 +364,7 @@ body {
font-size: 0.29333rem; font-size: 0.29333rem;
font-weight: 400; font-weight: 400;
position: absolute; position: absolute;
left: 0.16rem; left: 0.26667rem;
top: 0.94667rem; top: 0.94667rem;
background: linear-gradient(-90deg, #FBE1FF, #F090FF); background: linear-gradient(-90deg, #FBE1FF, #F090FF);
display: none; display: none;

View File

@@ -40,7 +40,7 @@ body {
margin: 0 auto px2rem(0); margin: 0 auto px2rem(0);
.tx { .tx {
width: px2rem(190); width: px2rem(198);
height: px2rem(190); height: px2rem(190);
position: absolute; position: absolute;
left: 50%; left: 50%;
@@ -56,6 +56,7 @@ body {
top: px2rem(130); top: px2rem(130);
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
z-index: 2;
} }
.nick { .nick {
@@ -183,7 +184,7 @@ body {
.guildList { .guildList {
width: px2rem(694); width: px2rem(694);
height: px2rem(748); height: px2rem(1000);
border-radius: px2rem(20); border-radius: px2rem(20);
margin: px2rem(-125) auto px2rem(0); margin: px2rem(-125) auto px2rem(0);
position: relative; position: relative;
@@ -198,6 +199,7 @@ body {
line-height: px2rem(30); line-height: px2rem(30);
margin-top: px2rem(31); margin-top: px2rem(31);
position: relative; position: relative;
// margin-left: px2rem(-13);
b { b {
float: left; float: left;
@@ -269,6 +271,8 @@ body {
overflow: hidden; overflow: hidden;
margin-bottom: px2rem(33); margin-bottom: px2rem(33);
position: relative; position: relative;
box-sizing: border-box;
padding-left: px2rem(10);
.tx { .tx {
width: px2rem(80); width: px2rem(80);
@@ -290,12 +294,13 @@ body {
font-weight: bold; font-weight: bold;
display: inline-block; display: inline-block;
margin-right: px2rem(8); margin-right: px2rem(8);
margin-top: px2rem(8);
margin-bottom: px2rem(14); margin-bottom: px2rem(14);
width: 2.7rem; width: 2.7rem;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
box-sizing: border-box;
padding-top: px2rem(8);
} }
b { b {
@@ -345,7 +350,7 @@ body {
font-size: px2rem(22); font-size: px2rem(22);
font-weight: 400; font-weight: 400;
position: absolute; position: absolute;
left: px2rem(12); left: px2rem(20);
top: px2rem(71); top: px2rem(71);
background: linear-gradient(90deg, #FFEB67, #FFFCE7); background: linear-gradient(90deg, #FFEB67, #FFFCE7);
display: none; display: none;
@@ -361,7 +366,7 @@ body {
font-size: px2rem(22); font-size: px2rem(22);
font-weight: 400; font-weight: 400;
position: absolute; position: absolute;
left: px2rem(12); left: px2rem(20);
top: px2rem(71); top: px2rem(71);
background: linear-gradient(-90deg, #FBE1FF, #F090FF); background: linear-gradient(-90deg, #FBE1FF, #F090FF);
display: none; display: none;

View File

@@ -62,7 +62,7 @@ body {
.timeBox .line { .timeBox .line {
width: 0.02667rem; width: 0.02667rem;
height: 1.90667rem; height: 1.90667rem;
background: #A4ABB2; background: #D7DCE6;
position: absolute; position: absolute;
left: 2.92rem; left: 2.92rem;
top: 50%; top: 50%;
@@ -90,18 +90,19 @@ body {
color: #848D9C; color: #848D9C;
font-size: 0.37333rem; font-size: 0.37333rem;
font-weight: bold; font-weight: bold;
text-align: center;
} }
.timeBox .startTime b { .timeBox .startTime b {
margin-right: 0.1rem; margin-right: 0.1rem;
text-indent: 0.45rem;
display: inline-block;
} }
.timeBox .startTime img { .timeBox .startTime img {
width: 0.46667rem; width: 0.32rem;
height: 0.6rem; height: 0.21333rem;
display: inline-block; display: inline-block;
margin-top: -0.1rem; margin-top: 0.1rem;
} }
.timeBox .endTime { .timeBox .endTime {
@@ -112,18 +113,19 @@ body {
color: #848D9C; color: #848D9C;
font-size: 0.37333rem; font-size: 0.37333rem;
font-weight: bold; font-weight: bold;
text-align: center;
} }
.timeBox .endTime b { .timeBox .endTime b {
margin-right: 0.1rem; margin-right: 0.1rem;
text-indent: 0.45rem;
display: inline-block;
} }
.timeBox .endTime img { .timeBox .endTime img {
width: 0.46667rem; width: 0.32rem;
height: 0.6rem; height: 0.21333rem;
display: inline-block; display: inline-block;
margin-top: -0.1rem; margin-top: 0.1rem;
} }
.timeBox .right { .timeBox .right {
@@ -201,7 +203,7 @@ body {
width: 8.76rem; width: 8.76rem;
height: 2.01333rem; height: 2.01333rem;
margin: 0 auto 0; margin: 0 auto 0;
border-bottom: 0.02667rem solid #B0BACD; border-bottom: 0.02667rem solid #D7DCE6;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
@@ -218,6 +220,7 @@ body {
color: #848D9C; color: #848D9C;
font-size: 0.32rem; font-size: 0.32rem;
font-weight: 500; font-weight: 500;
white-space: nowrap;
} }
.list .other div img { .list .other div img {

View File

@@ -65,7 +65,7 @@ body {
.line { .line {
width: px2rem(2); width: px2rem(2);
height: px2rem(143); height: px2rem(143);
background: #A4ABB2; background: #D7DCE6;
position: absolute; position: absolute;
left: px2rem(219); left: px2rem(219);
top: 50%; top: 50%;
@@ -93,17 +93,19 @@ body {
color: #848D9C; color: #848D9C;
font-size: px2rem(28); font-size: px2rem(28);
font-weight: bold; font-weight: bold;
text-align: center; // text-align: center;
b { b {
margin-right: 0.1rem; margin-right: 0.1rem;
text-indent: 0.45rem;
display: inline-block;
} }
img { img {
width: px2rem(35); width: px2rem(24);
height: px2rem(45); height: px2rem(16);
display: inline-block; display: inline-block;
margin-top: -0.1rem; margin-top: 0.1rem;
} }
} }
@@ -115,17 +117,19 @@ body {
color: #848D9C; color: #848D9C;
font-size: px2rem(28); font-size: px2rem(28);
font-weight: bold; font-weight: bold;
text-align: center; // text-align: center;
b { b {
margin-right: 0.1rem; margin-right: 0.1rem;
text-indent: 0.45rem;
display: inline-block;
} }
img { img {
width: px2rem(35); width: px2rem(24);
height: px2rem(45); height: px2rem(16);
display: inline-block; display: inline-block;
margin-top: -0.1rem; margin-top: 0.1rem;
} }
} }
@@ -204,7 +208,7 @@ body {
width: px2rem(657); width: px2rem(657);
height: px2rem(151); height: px2rem(151);
margin: 0 auto 0; margin: 0 auto 0;
border-bottom: px2rem(2) solid #B0BACD; border-bottom: px2rem(2) solid #D7DCE6;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@@ -220,6 +224,7 @@ body {
color: #848D9C; color: #848D9C;
font-size: px2rem(24); font-size: px2rem(24);
font-weight: 500; font-weight: 500;
white-space: nowrap;
img { img {
display: block; display: block;

View File

@@ -62,7 +62,7 @@ body {
.timeBox .line { .timeBox .line {
width: 0.02667rem; width: 0.02667rem;
height: 1.90667rem; height: 1.90667rem;
background: #A4ABB2; background: #D7DCE6;
position: absolute; position: absolute;
left: 2.92rem; left: 2.92rem;
top: 50%; top: 50%;
@@ -90,18 +90,19 @@ body {
color: #848D9C; color: #848D9C;
font-size: 0.37333rem; font-size: 0.37333rem;
font-weight: bold; font-weight: bold;
text-align: center;
} }
.timeBox .startTime b { .timeBox .startTime b {
margin-right: 0.1rem; margin-right: 0.1rem;
text-indent: 0.45rem;
display: inline-block;
} }
.timeBox .startTime img { .timeBox .startTime img {
width: 0.46667rem; width: 0.32rem;
height: 0.6rem; height: 0.21333rem;
display: inline-block; display: inline-block;
margin-top: -0.1rem; margin-top: 0.1rem;
} }
.timeBox .endTime { .timeBox .endTime {
@@ -112,18 +113,19 @@ body {
color: #848D9C; color: #848D9C;
font-size: 0.37333rem; font-size: 0.37333rem;
font-weight: bold; font-weight: bold;
text-align: center;
} }
.timeBox .endTime b { .timeBox .endTime b {
margin-right: 0.1rem; margin-right: 0.1rem;
text-indent: 0.45rem;
display: inline-block;
} }
.timeBox .endTime img { .timeBox .endTime img {
width: 0.46667rem; width: 0.32rem;
height: 0.6rem; height: 0.21333rem;
display: inline-block; display: inline-block;
margin-top: -0.1rem; margin-top: 0.1rem;
} }
.timeBox .right { .timeBox .right {
@@ -140,6 +142,7 @@ body {
width: 50%; width: 50%;
text-align: center; text-align: center;
overflow: hidden; overflow: hidden;
position: relative;
} }
.timeBox .right div p { .timeBox .right div p {
@@ -155,6 +158,10 @@ body {
color: #848D9C; color: #848D9C;
font-size: 0.37333rem; font-size: 0.37333rem;
font-weight: bold; font-weight: bold;
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 0.6rem;
} }
.timeBox .right .goToExchangeGold { .timeBox .right .goToExchangeGold {
@@ -209,7 +216,7 @@ body {
width: 8.76rem; width: 8.76rem;
height: 2.01333rem; height: 2.01333rem;
margin: 0 auto 0; margin: 0 auto 0;
border-bottom: 0.02667rem solid #B0BACD; border-bottom: 0.02667rem solid #D7DCE6;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
@@ -226,6 +233,7 @@ body {
color: #848D9C; color: #848D9C;
font-size: 0.32rem; font-size: 0.32rem;
font-weight: 500; font-weight: 500;
white-space: nowrap;
} }
.list .other div img { .list .other div img {

View File

@@ -67,7 +67,7 @@ body {
.line { .line {
width: px2rem(2); width: px2rem(2);
height: px2rem(143); height: px2rem(143);
background: #A4ABB2; background: #D7DCE6;
position: absolute; position: absolute;
left: px2rem(219); left: px2rem(219);
top: 50%; top: 50%;
@@ -95,17 +95,19 @@ body {
color: #848D9C; color: #848D9C;
font-size: px2rem(28); font-size: px2rem(28);
font-weight: bold; font-weight: bold;
text-align: center; // text-align: center;
b { b {
margin-right: 0.1rem; margin-right: 0.1rem;
text-indent: 0.45rem;
display: inline-block;
} }
img { img {
width: px2rem(35); width: px2rem(24);
height: px2rem(45); height: px2rem(16);
display: inline-block; display: inline-block;
margin-top: -0.1rem; margin-top: 0.1rem;
} }
} }
@@ -117,17 +119,19 @@ body {
color: #848D9C; color: #848D9C;
font-size: px2rem(28); font-size: px2rem(28);
font-weight: bold; font-weight: bold;
text-align: center; // text-align: center;
b { b {
margin-right: 0.1rem; margin-right: 0.1rem;
text-indent: 0.45rem;
display: inline-block;
} }
img { img {
width: px2rem(35); width: px2rem(24);
height: px2rem(45); height: px2rem(16);
display: inline-block; display: inline-block;
margin-top: -0.1rem; margin-top: 0.1rem;
} }
} }
@@ -144,6 +148,7 @@ body {
width: 50%; width: 50%;
text-align: center; text-align: center;
overflow: hidden; overflow: hidden;
position: relative;
p { p {
color: #A4ABB2; color: #A4ABB2;
@@ -158,6 +163,10 @@ body {
color: #848D9C; color: #848D9C;
font-size: px2rem(28); font-size: px2rem(28);
font-weight: bold; font-weight: bold;
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: px2rem(45);
} }
} }
@@ -214,7 +223,7 @@ body {
width: px2rem(657); width: px2rem(657);
height: px2rem(151); height: px2rem(151);
margin: 0 auto 0; margin: 0 auto 0;
border-bottom: px2rem(2) solid #B0BACD; border-bottom: px2rem(2) solid #D7DCE6;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@@ -230,6 +239,7 @@ body {
color: #848D9C; color: #848D9C;
font-size: px2rem(24); font-size: px2rem(24);
font-weight: 500; font-weight: 500;
white-space: nowrap;
img { img {
display: block; display: block;

View File

@@ -116,12 +116,13 @@ ul li .user p {
font-weight: bold; font-weight: bold;
display: inline-block; display: inline-block;
margin-right: 0.10667rem; margin-right: 0.10667rem;
margin-top: 0.74667rem;
margin-bottom: 0.16rem; margin-bottom: 0.16rem;
width: 2.7rem; width: 2.7rem;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
box-sizing: border-box;
padding-top: 0.74667rem;
} }
ul li .user b { ul li .user b {

View File

@@ -117,12 +117,14 @@ ul {
font-weight: bold; font-weight: bold;
display: inline-block; display: inline-block;
margin-right: px2rem(8); margin-right: px2rem(8);
margin-top: px2rem(56); // margin-top: px2rem(56);
margin-bottom: px2rem(12); margin-bottom: px2rem(12);
width: 2.7rem; width: 2.7rem;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
box-sizing: border-box;
padding-top: px2rem(56);
} }
b { b {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -40,7 +40,7 @@ $(function () {
}; };
// 頂部返回事件 // 頂部返回事件
$('.back .backs').click(() => { $('.back .backs').click(() => {
window.history.go(-1); window.location.href = document.referrer;
}) })
}, 100) }, 100)
}) })

View File

@@ -41,7 +41,7 @@ $(function () {
}; };
// 頂部返回事件 // 頂部返回事件
$('.back .backs').click(() => { $('.back .backs').click(() => {
window.history.go(-1); window.location.href = document.referrer;
}) })
}, 100) }, 100)
}) })

View File

@@ -41,7 +41,7 @@ $(function () {
}; };
// 頂部返回事件 // 頂部返回事件
$('.back .backs').click(() => { $('.back .backs').click(() => {
window.history.go(-1); window.location.href = "./index.html";
}) })
listManager(); listManager();
}, 100) }, 100)
@@ -66,8 +66,8 @@ function listManager() {
res.data.forEach(res => { res.data.forEach(res => {
str += ` str += `
<li> <li>
<div class="chairman" ${res.roleType == 3 ? 'style="display:block"' : ''}>الوكيل</div> <div class="chairman" ${res.roleType == 3 ? 'style="display:none"' : ''}>الوكيل</div>
<div class="administrator" ${res.roleType == 2 ? 'style="display:block"' : ''}>المشرف</div> <div class="administrator" ${res.roleType == 2 ? 'style="display:none"' : ''}>المشرف</div>
<img src="${res.avatar}" alt="" class="tx"> <img src="${res.avatar}" alt="" class="tx">
<div class="user"> <div class="user">
<p>${res.nick}</p> <p>${res.nick}</p>

View File

@@ -40,7 +40,7 @@ $(function () {
}; };
// 頂部返回事件 // 頂部返回事件
$('.back img').click(() => { $('.back img').click(() => {
window.history.go(-1); window.location.href = document.referrer;
}) })
pubInfo['Accept-Language'] = 'ar' pubInfo['Accept-Language'] = 'ar'
}, 100) }, 100)

View File

@@ -79,10 +79,6 @@ function guildFun(type) {
else { else {
} }
} }
// 邀请成员按钮
$('.header .inveMember').click(function () {
window.location.href = './invite.html'
})
// 配置接口 // 配置接口
function get() { function get() {
showLoading() showLoading()
@@ -99,10 +95,10 @@ function get() {
$('.header .nick').text(res.data.owner.nick); $('.header .nick').text(res.data.owner.nick);
$('.header .id').text('ID' + res.data.owner.erbanNo); $('.header .id').text('ID' + res.data.owner.erbanNo);
$('.header').css({ "background": `url(${res.data.backgroundUrl}) no-repeat`, "background-size": "100% 100%" }); $('.header').css({ "background": `url(${res.data.backgroundUrl}) no-repeat`, "background-size": "100% 100%" });
$('.header .guildNick').text('نقابة:' + res.data.name); $('.header .guildNick').text('اسم النقابة:' + res.data.name);
// 处理成员 // 处理成员
var str = ''; var str = '';
$('.guildList .top i').text(res.data.members.length); $('.guildList .top i').text(`(${res.data.members.length})`);
$('.guildList ul li').remove(); $('.guildList ul li').remove();
res.data.members.forEach((res, i) => { res.data.members.forEach((res, i) => {
str += ` str += `
@@ -242,5 +238,5 @@ $('.header .memberFlowMy').click(function (params) {
}) })
// 查看成员流水 // 查看成员流水
$('.header .inveMember').click(function (params) { $('.header .inveMember').click(function (params) {
window.location.href = `./Invite.html` window.location.href = `./invite.html`
}) })

View File

@@ -29,6 +29,7 @@ const toastMsg = (content = '操作完成', time = 2) => {
var times = new Date().getTime() - 86400000; var times = new Date().getTime() - 86400000;
var startDates; var startDates;
var endDates; var endDates;
var timestamp;
// 初始化函數 // 初始化函數
$(function () { $(function () {
getInfoFromClient(); getInfoFromClient();
@@ -43,7 +44,7 @@ $(function () {
}; };
// 頂部返回事件 // 頂部返回事件
$('.back .backs').click(() => { $('.back .backs').click(() => {
window.history.go(-1); window.location.href = './index.html';
}) })
//初始化时间插件 //初始化时间插件
this.initTime() this.initTime()
@@ -89,8 +90,8 @@ function memberIncome(startDate, endDate) {
</li> </li>
` `
} else { } else {
$('.timeBox .right div b').text(res.data.totalDiamondRemain); $('.timeBox .right .div1 b').text(res.data.totalGoldIncome);
$('.timeBox .right div b').text(res.data.totalGoldIncome); $('.timeBox .right .div2 b').text(res.data.totalDiamondRemain);
res.data.memberIncomeList.forEach(val => { res.data.memberIncomeList.forEach(val => {
str += ` str += `
<li class="other"> <li class="other">
@@ -99,17 +100,19 @@ function memberIncome(startDate, endDate) {
<p class="nick">${val.member.nick}</p> <p class="nick">${val.member.nick}</p>
<b class="id">ID:${val.member.erbanNo}</b> <b class="id">ID:${val.member.erbanNo}</b>
</div> </div>
<div>${val.micRemainTime}min</div> <div>${val.micRemainTime}</div>
<div>${val.goldIncome}</div> <div>${val.goldIncome}</div>
<div>${val.res.data.diamondRemain}</div> <div>${val.diamondRemain}</div>
<div>${val.sendGiftUserNum}</div> <div>${val.sendGiftUserNum}</div>
</li> </li>
` `
}) })
} }
$('.list').append(str); $('.list').append(str);
timestamp = res.timestamp;
} else { } else {
toastMsg(res.message) toastMsg(res.message)
timestamp = res.timestamp;
} }
hideLoading(layerIndex) hideLoading(layerIndex)
}, },
@@ -121,5 +124,15 @@ function memberIncome(startDate, endDate) {
} }
// 查询按钮 // 查询按钮
$('.back .text').click(function () { $('.back .text').click(function () {
memberIncome(startDates, endDates) if ((Date.parse(endDates)) >= timestamp) {
toastMsg('وقت الانتهاء يجب أن يكون قبل اليوم السابق كحد أقصى.')
} else if (endDates == dateFormat(timestamp, 'yyyy-MM-dd')) {
toastMsg('وقت الانتهاء يجب أن يكون قبل اليوم السابق كحد أقصى.')
} else if (Date.parse(startDates) > Date.parse(endDates)) {
toastMsg(`لا يمكن أن يكون وقت البدء أقل من وقت الانتهاء.`)
} else if ((Date.parse(endDates) - Date.parse(startDates)) > (30 * 24 * 60 * 60 * 1000)) {
toastMsg('المدة الزمنية يجب أن تكون داخل الثلاثين يومًا.')
} else {
memberIncome(startDates, endDates)
}
}) })

View File

@@ -29,6 +29,7 @@ const toastMsg = (content = '操作完成', time = 2) => {
var times = new Date().getTime() - 86400000; var times = new Date().getTime() - 86400000;
var startDates; var startDates;
var endDates; var endDates;
var timestamp;
// 初始化函數 // 初始化函數
$(function () { $(function () {
getInfoFromClient(); getInfoFromClient();
@@ -43,7 +44,7 @@ $(function () {
}; };
// 頂部返回事件 // 頂部返回事件
$('.back .backs').click(() => { $('.back .backs').click(() => {
window.history.go(-1); window.location.href = './index.html';
}) })
//初始化时间插件 //初始化时间插件
this.initTime() this.initTime()
@@ -89,13 +90,13 @@ function memberIncome(startDate, endDate) {
</li> </li>
` `
} else { } else {
$('.timeBox .right div b').text(res.data.totalDiamondRemain); $('.timeBox .right .div1 b').text(res.data.totalGoldIncome);
$('.timeBox .right div b').text(res.data.totalGoldIncome); $('.timeBox .right .div2 b').text(res.data.totalDiamondRemain);
res.data.incomeList.forEach(val => { res.data.incomeList.forEach(val => {
str += ` str += `
<li class="other"> <li class="other">
<div>${dateFormat(val.date, 'yyyy-MM-dd')}</div> <div>${dateFormat(val.date, 'yyyy-MM-dd')}</div>
<div>${val.micRemainTime}min</div> <div>${val.micRemainTime}</div>
<div>${val.goldIncome}</div> <div>${val.goldIncome}</div>
<div>${val.diamondRemain}</div> <div>${val.diamondRemain}</div>
<div>${val.sendGiftUserNum}</div> <div>${val.sendGiftUserNum}</div>
@@ -104,8 +105,10 @@ function memberIncome(startDate, endDate) {
}) })
} }
$('.list').append(str); $('.list').append(str);
timestamp = res.timestamp;
} else { } else {
toastMsg(res.message) toastMsg(res.message)
timestamp = res.timestamp;
} }
hideLoading(layerIndex) hideLoading(layerIndex)
}, },
@@ -118,12 +121,22 @@ function memberIncome(startDate, endDate) {
// 跳转客户端兑换金币页面 // 跳转客户端兑换金币页面
$('.timeBox .right .goToExchangeGold').click(function () { $('.timeBox .right .goToExchangeGold').click(function () {
if (browser.android) { if (browser.android) {
window.androidJsObj.goToExchangeGold(false) window.androidJsObj.goToExchangeGold()
} else { } else {
window.webkit.messageHandlers.goToExchangeGold.postMessage(0) window.webkit.messageHandlers.goToExchangeGold.postMessage(0)
} }
}) })
// 查询按钮 // 查询按钮
$('.back .text').click(function () { $('.back .text').click(function () {
memberIncome(startDates, endDates) if ((Date.parse(endDates)) >= timestamp) {
toastMsg('وقت الانتهاء يجب أن يكون قبل اليوم السابق كحد أقصى.')
} else if (endDates == dateFormat(timestamp, 'yyyy-MM-dd')) {
toastMsg('وقت الانتهاء يجب أن يكون قبل اليوم السابق كحد أقصى.')
} else if (Date.parse(startDates) > Date.parse(endDates)) {
toastMsg(`لا يمكن أن يكون وقت البدء أقل من وقت الانتهاء.`)
} else if ((Date.parse(endDates) - Date.parse(startDates)) > (30 * 24 * 60 * 60 * 1000)) {
toastMsg('المدة الزمنية يجب أن تكون داخل الثلاثين يومًا.')
} else {
memberIncome(startDates, endDates)
}
}) })

View File

@@ -40,19 +40,20 @@ $(function () {
}; };
// 頂部返回事件 // 頂部返回事件
$('.back .backs').click(() => { $('.back .backs').click(() => {
window.history.go(-1); window.location.href = document.referrer;
}) })
}, 100) }, 100)
}) })
// 配置接口 // 配置接口
function searchFamily(erbanNo) { function searchFamily(erbanNo) {
$('ul li').remove();
showLoading() showLoading()
networkRequest({ networkRequest({
type: 'get', type: 'get',
url: urlPrefix + '/family/searchFamily', url: urlPrefix + '/family/searchFamily',
data: { erbanNo }, data: { erbanNo },
success(res) { success(res) {
if (res.code === 200) { if (res.code == 200) {
var str = ''; var str = '';
str += ` str += `
<li> <li>
@@ -64,7 +65,9 @@ function searchFamily(erbanNo) {
<div familyId=${res.data.familyId} class="but">طلب إضافة </div> <div familyId=${res.data.familyId} class="but">طلب إضافة </div>
</li> </li>
` `
$('ul').append(str);
} else if (res.code == 1404) { } else if (res.code == 1404) {
var str = '';
str += ` str += `
<li class="null"> <li class="null">
<img src="./images/null.png" alt=""> <img src="./images/null.png" alt="">

View File

@@ -4,7 +4,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>أجمالي دخل الأعضاء</title> <title>إجمالي دخل الأعضاء</title>
<!-- 成员收入统计 --> <!-- 成员收入统计 -->
<link rel="stylesheet" href="../../common/css/reset.css"> <link rel="stylesheet" href="../../common/css/reset.css">
<link rel="stylesheet" href="./css/mobile.css"> <link rel="stylesheet" href="./css/mobile.css">
@@ -15,7 +15,7 @@
<!-- 顶部 --> <!-- 顶部 -->
<div class="back"> <div class="back">
<img src="./images/travel/backB.png" alt="" class="backs"> <img src="./images/travel/backB.png" alt="" class="backs">
<div class="title">أجمالي دخل الأعضاء</div> <div class="title">إجمالي دخل الأعضاء</div>
<div class="text">استعلام</div> <div class="text">استعلام</div>
</div> </div>
<!-- 时间选择器筛选 --> <!-- 时间选择器筛选 -->
@@ -30,7 +30,7 @@
<p>الدخل الإجمالي للعملات الذهبية</p> <p>الدخل الإجمالي للعملات الذهبية</p>
<b>0</b> <b>0</b>
</div> </div>
<div> <div class="div2">
<!-- 钻石总收入 --> <!-- 钻石总收入 -->
<p>الدخل الإجمالي للماس</p> <p>الدخل الإجمالي للماس</p>
<b>0</b> <b>0</b>
@@ -41,7 +41,7 @@
<ul class="list"> <ul class="list">
<li class="top"> <li class="top">
<!-- 成员信息 --> <!-- 成员信息 -->
<div>رسائل الأعضاء</div> <div>معلومات الأعضاء</div>
<!-- 开播时长 --> <!-- 开播时长 -->
<div>وقت البث</div> <div>وقت البث</div>
<!-- 金币收入 --> <!-- 金币收入 -->

View File

@@ -4,7 +4,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>دخل الشخصي</title> <title>الدخل الشخصي</title>
<!-- 个人收入统计 --> <!-- 个人收入统计 -->
<link rel="stylesheet" href="../../common/css/reset.css"> <link rel="stylesheet" href="../../common/css/reset.css">
<link rel="stylesheet" href="./css/mobile.css"> <link rel="stylesheet" href="./css/mobile.css">
@@ -15,7 +15,7 @@
<!-- 顶部 --> <!-- 顶部 -->
<div class="back"> <div class="back">
<img src="./images/travel/backB.png" alt="" class="backs"> <img src="./images/travel/backB.png" alt="" class="backs">
<div class="title">دخل الشخصي</div> <div class="title">الدخل الشخصي</div>
<div class="text">استعلام</div> <div class="text">استعلام</div>
</div> </div>
<!-- 时间选择器筛选 --> <!-- 时间选择器筛选 -->
@@ -30,19 +30,19 @@
<p>الدخل الإجمالي للعملات الذهبية</p> <p>الدخل الإجمالي للعملات الذهبية</p>
<b>0</b> <b>0</b>
</div> </div>
<div> <div class="div2">
<!-- 钻石总收入 --> <!-- 钻石总收入 -->
<p>الدخل الإجمالي للماس</p> <p>الدخل الإجمالي للماس</p>
<b>0</b> <b>0</b>
</div> </div>
<div class="goToExchangeGold">استبدال </div> <div class="goToExchangeGold">استبدال >></div>
</div> </div>
</div> </div>
<!-- 数据内容 --> <!-- 数据内容 -->
<ul class="list"> <ul class="list">
<li class="top"> <li class="top">
<!-- 日期 --> <!-- 日期 -->
<div>تاريخ</div> <div>التاريخ</div>
<!-- 开播时长 --> <!-- 开播时长 -->
<div>وقت البث</div> <div>وقت البث</div>
<!-- 金币收入 --> <!-- 金币收入 -->

View File

@@ -1,9 +1,11 @@
let locateObj = getQueryString() let locateObj = getQueryString()
let urlPrefix = getUrlPrefix() let urlPrefix = getUrlPrefix()
let luckyBagPoolInfoMaps; let luckyBagPoolInfoMaps;
var langReplace;
var localLang;
// 封装layer消息提醒框 // 封装layer消息提醒框
let layerIndex let layerIndex
const showLoading = (content = '加載中...') => { const showLoading = (content = '(*-*)') => {
layer.open({ layer.open({
type: 2, type: 2,
shadeClose: false, shadeClose: false,
@@ -16,7 +18,7 @@ const showLoading = (content = '加載中...') => {
const hideLoading = (index) => { const hideLoading = (index) => {
layer.close(index) layer.close(index)
} }
const toastMsg = (content = '操作完成', time = 2) => { const toastMsg = (content = '︶︵︶', time = 2) => {
layer.open({ layer.open({
content, content,
time, time,
@@ -38,7 +40,7 @@ const getList = () => {
} }
}, },
error () { error () {
toastMsg('網絡錯誤') toastMsg(langReplace(localLang.demoModule.luckyGiftRuleErr))
} }
}) })
} }
@@ -48,11 +50,22 @@ $(function () {
new VConsole(); new VConsole();
} }
getInfoFromClient() getInfoFromClient()
fuzzyMatchUpdateQueryStringParameterFun(); // 判断语言
setTimeout(function () { setTimeout(function () {
fuzzyMatchUpdateQueryStringParameterFun(); fuzzyMatchUpdateQueryStringParameterFun();
langReplace = window.lang.replace;
localLang = window.lang;
translateFun();
getList() getList()
},50) },50)
}) })
function translateFun() {
var langReplace = window.lang.replace;
var localLang = window.lang;
$('#luckyGiftRuleTitle').text(langReplace(localLang.demoModule.luckyGiftRuleTitle))
$('#luckyGiftRuleText1').text(langReplace(localLang.demoModule.luckyGiftRuleText1))
$('#luckyGiftRuleText2').text(langReplace(localLang.demoModule.luckyGiftRuleText2))
}
function bodyList (id) { function bodyList (id) {
$('.wrap .gift_item_contain li').remove(); $('.wrap .gift_item_contain li').remove();
console.log(luckyBagPoolInfoMaps[id]); console.log(luckyBagPoolInfoMaps[id]);

View File

@@ -1,7 +1,7 @@
// 英文 // 英文
langAr = { langAr = {
// 模块 // 模块
demoModule: { demoModule: {
// ==========================================sdk================================== // ==========================================sdk==================================
sdk_title: `Third-party SDK Directory`, sdk_title: `Third-party SDK Directory`,
@@ -1534,7 +1534,7 @@ langAr = {
</li> </li>
</ul> </ul>
</div>`, </div>`,
// ==========================================平台社区规范================================== // ==========================================平台社区规范==================================
community_title: `MoliStarApp Community Guidelines`, community_title: `MoliStarApp Community Guidelines`,
community_body: ` Principles <br><br> community_body: ` Principles <br><br>
@@ -1769,7 +1769,12 @@ langAr = {
Complaints can be sent to MoliStar666@gmail.com.<br><br>`, Complaints can be sent to MoliStar666@gmail.com.<br><br>`,
//==========================================贵族规则================================== //==========================================贵族规则==================================
introduction_title:`VIP قواعد`, introduction_title: `VIP قواعد`,
introduction_title_img:'./images/patrician-ar.png', introduction_title_img: './images/patrician-ar.png',
// 幸运礼物
luckyGiftRuleTitle: 'قواعد الهدايا الحظ',
luckyGiftRuleErr: 'خطأ في الشبكة',
luckyGiftRuleText1: 'أرسل هدايا حظ مختلفة لفرصة الفوز بجوائز عالية القيمة.',
luckyGiftRuleText2: 'حقيبة الحظ',
} }
} }

View File

@@ -1769,7 +1769,12 @@ langEn = {
Complaints can be sent to MoliStar666@gmail.com.<br><br>`, Complaints can be sent to MoliStar666@gmail.com.<br><br>`,
//==========================================贵族规则================================== //==========================================贵族规则==================================
introduction_title:'VIP rules', introduction_title: 'VIP rules',
introduction_title_img:'./images/patrician-en.png', introduction_title_img: './images/patrician-en.png',
// 幸运礼物
luckyGiftRuleTitle: 'Lucky Gift Rules',
luckyGiftRuleErr: 'Network Error',
luckyGiftRuleText1: 'Send different lucky gifts for a chance to win high-value prizes.',
luckyGiftRuleText2: 'Lucky Bag',
} }
} }

View File

@@ -1771,5 +1771,10 @@ langZh = {
//==========================================贵族规则================================== //==========================================贵族规则==================================
introduction_title: '貴族規則', introduction_title: '貴族規則',
introduction_title_img: './images/patrician.png', introduction_title_img: './images/patrician.png',
// 幸运礼物
luckyGiftRuleTitle:'幸運禮物玩法說明',
luckyGiftRuleErr:'網絡錯誤',
luckyGiftRuleText1:'送出不同的幸運禮物,有機會獲得以下高價禮物',
luckyGiftRuleText2:'幸運福袋',
} }
} }

View File

@@ -6,7 +6,8 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" <meta name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<title>幸运礼物玩法说明</title> <title id="luckyGiftRuleTitle"></title>
<!-- 幸运礼物玩法说明 -->
<link rel="stylesheet" href="../../common/css/reset.css"> <link rel="stylesheet" href="../../common/css/reset.css">
<link rel="stylesheet" href="./style/luckyGiftRule.css"> <link rel="stylesheet" href="./style/luckyGiftRule.css">
<style> <style>
@@ -19,7 +20,7 @@
<body> <body>
<div class="wrap"> <div class="wrap">
<div class="fixed_wrap" style="background: #F4F4FA;"> <div class="fixed_wrap" style="background: #F4F4FA;">
<div class="tip">送出不同的幸运礼物,有机会获得以下高价礼物</div> <div class="tip" id="luckyGiftRuleText1"></div>
<div class="gift_list_contain"> <div class="gift_list_contain">
<ul class="gift_list"> <ul class="gift_list">
<!-- <li class="active" id="1"> <!-- <li class="active" id="1">
@@ -50,7 +51,7 @@
</div> </div>
</div> </div>
<div class="box"> <div class="box">
<p class="select_gift_name">幸运福袋</p> <p class="select_gift_name" id="luckyGiftRuleText2"></p>
<ul class="gift_item_contain" style="background: #fff;margin-top: 0.4rem;height: 5rem;overflow: auto;"> <ul class="gift_item_contain" style="background: #fff;margin-top: 0.4rem;height: 5rem;overflow: auto;">
<!-- <li> <!-- <li>

View File

@@ -6,108 +6,125 @@
width: 100%; width: 100%;
background-color: #fff; background-color: #fff;
} }
.wrap .fixed_wrap .tip { .wrap .fixed_wrap .tip {
text-align: center; text-align: center;
font-size: 0.32rem; font-size: 0.32rem;
color: #666; color: #666;
margin-top: 0.64rem; margin-top: 0.64rem;
margin-bottom: 0.4533333333rem; margin-bottom: 0.45333rem;
} }
.wrap .fixed_wrap .gift_list_contain { .wrap .fixed_wrap .gift_list_contain {
overflow-x: scroll; overflow-x: scroll;
margin-bottom: 0.5333333333rem; margin-bottom: 0.53333rem;
} }
.wrap .fixed_wrap .gift_list_contain .gift_list { .wrap .fixed_wrap .gift_list_contain .gift_list {
width: max-content; width: max-content;
padding: 0 0.3733333333rem; padding: 0 0.37333rem;
box-sizing: border-box; box-sizing: border-box;
} }
.wrap .fixed_wrap .gift_list_contain .gift_list::after { .wrap .fixed_wrap .gift_list_contain .gift_list::after {
content: ""; content: '';
display: block; display: block;
clear: both; clear: both;
} }
.wrap .fixed_wrap .gift_list_contain .gift_list li { .wrap .fixed_wrap .gift_list_contain .gift_list li {
float: left; float: left;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
width: 2.2933333333rem; width: 2.29333rem;
height: 2.88rem; height: 2.88rem;
margin-left: 0.32rem; margin-left: 0.32rem;
font-size: 0.32rem; font-size: 0.32rem;
text-align: center; text-align: center;
background: #fff; background: #fff;
} }
.wrap .fixed_wrap .gift_list_contain .gift_list li img { .wrap .fixed_wrap .gift_list_contain .gift_list li img {
width: 1.6rem; width: 1.6rem;
height: 1.6rem; height: 1.6rem;
margin-top: 0.32rem; margin-top: 0.32rem;
margin-bottom: 0.1333333333rem; margin-bottom: 0.13333rem;
} }
.wrap .fixed_wrap .gift_list_contain .gift_list li.active { .wrap .fixed_wrap .gift_list_contain .gift_list li.active {
background: url("../images/2.png") no-repeat 0 0/100% 100%; background: url("../images/2.png") no-repeat 0 0/100% 100%;
color: #FFB606; color: #FFB606;
width: 2.2933333333rem; width: 2.29333rem;
height: 3.0666666667rem; height: 3.06667rem;
} }
.wrap .box { .wrap .box {
background: #fff; background: #fff;
width: 90%; width: 90%;
box-sizing: border-box; box-sizing: border-box;
padding: 0.2666666667rem; padding: 0.26667rem;
border-radius: 0.2rem; border-radius: 0.2rem;
margin: 5.1rem auto 1.0666666667rem; margin: 5.1rem auto 1.06667rem;
} }
.wrap .select_gift_name { .wrap .select_gift_name {
position: relative; position: relative;
height: 0.5333333333rem; height: 0.53333rem;
line-height: 0.5333333333rem; line-height: 0.53333rem;
font-weight: bold; font-weight: bold;
font-size: 0.3733333333rem; font-size: 0.37333rem;
color: #333; color: #333;
background: #fff; background: #fff;
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.wrap .select_gift_name::after { .wrap .select_gift_name::after {
content: ""; content: '';
position: absolute; position: absolute;
left: -0.3733333333rem; left: -0.37333rem;
height: inherit; height: inherit;
width: 0.1066666667rem; width: 0.10667rem;
background-color: #FFBC51; background-color: #FFBC51;
border-radius: 0.0533333333rem; border-radius: 0.05333rem;
} }
.wrap .gift_item_contain li { .wrap .gift_item_contain li {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 0.4266666667rem; margin-bottom: 0.42667rem;
padding: 0 0.72rem; padding: 0 0.72rem;
box-sizing: border-box; box-sizing: border-box;
} }
.wrap .gift_item_contain li .gift_item_pic { .wrap .gift_item_contain li .gift_item_pic {
width: 1.28rem; width: 1.28rem;
height: 1.28rem; height: 1.28rem;
margin-right: 0.3466666667rem; margin-right: 0.34667rem;
} }
.wrap .gift_item_contain li .gift_item_name { .wrap .gift_item_contain li .gift_item_name {
width: 2.6666666667rem; width: 2.66667rem;
text-align: left; text-align: left;
font-size: 0.3466666667rem; font-size: 0.34667rem;
color: #333; color: #333;
} }
.wrap .gift_item_contain li .gift_item_price { .wrap .gift_item_contain li .gift_item_price {
flex: 1; flex: 1;
} }
.wrap .gift_item_contain li .gift_item_price img { .wrap .gift_item_contain li .gift_item_price img {
width: 0.3466666667rem; width: 0.34667rem;
height: 0.2666666667rem; height: 0.26667rem;
margin-right: 0.08rem; margin-right: 0.08rem;
} }
.wrap .gift_item_contain li .gift_item_price span { .wrap .gift_item_contain li .gift_item_price span {
font-size: 0.32rem; font-size: 0.32rem;
color: #333; color: #333;
} }
.wrap .gift_item_contain li .ratio { .wrap .gift_item_contain li .ratio {
font-size: 0.32rem; font-size: 0.32rem;
color: #666; color: #666;
@@ -117,4 +134,6 @@
display: none; display: none;
} }
/*# sourceMappingURL=luckyGiftRule.css.map */ .arabic .wrap .select_gift_name::after {
right: -0.18rem;
}

View File

@@ -13,19 +13,19 @@
.tip { .tip {
text-align: center; text-align: center;
font-size: px2rem(24, ); font-size: px2rem(24);
color: #666; color: #666;
margin-top: px2rem(48, ); margin-top: px2rem(48);
margin-bottom: px2rem(34, ); margin-bottom: px2rem(34);
} }
.gift_list_contain { .gift_list_contain {
overflow-x: scroll; overflow-x: scroll;
margin-bottom: px2rem(40, ); margin-bottom: px2rem(40);
.gift_list { .gift_list {
width: max-content; width: max-content;
padding: 0 px2rem(28, ); padding: 0 px2rem(28);
box-sizing: border-box; box-sizing: border-box;
&::after { &::after {
@@ -39,25 +39,25 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
width: px2rem(172, ); width: px2rem(172);
height: px2rem(216, ); height: px2rem(216);
margin-left: px2rem(24, ); margin-left: px2rem(24);
font-size: px2rem(24, ); font-size: px2rem(24);
text-align: center; text-align: center;
background: #fff; background: #fff;
img { img {
width: px2rem(120, ); width: px2rem(120);
height: px2rem(120, ); height: px2rem(120);
margin-top: px2rem(24, ); margin-top: px2rem(24);
margin-bottom: px2rem(10, ); margin-bottom: px2rem(10);
} }
&.active { &.active {
background: url('../images/2.png') no-repeat 0 0/100% 100%; background: url('../images/2.png') no-repeat 0 0/100% 100%;
color: #FFB606; color: #FFB606;
width: px2rem(172, ); width: px2rem(172);
height: px2rem(230, ); height: px2rem(230);
} }
} }
} }
@@ -68,17 +68,17 @@
background: #fff; background: #fff;
width: 90%; width: 90%;
box-sizing: border-box; box-sizing: border-box;
padding: px2rem(20, ); padding: px2rem(20);
border-radius: px2rem(15, ); border-radius: px2rem(15);
margin: 5.1rem auto px2rem(80, ); margin: 5.1rem auto px2rem(80);
} }
.select_gift_name { .select_gift_name {
position: relative; position: relative;
height: px2rem(40, ); height: px2rem(40);
line-height: px2rem(40, ); line-height: px2rem(40);
font-weight: bold; font-weight: bold;
font-size: px2rem(28, ); font-size: px2rem(28);
color: #333; color: #333;
background: #fff; background: #fff;
margin-left: 0.5rem; margin-left: 0.5rem;
@@ -86,11 +86,11 @@
&::after { &::after {
content: ''; content: '';
position: absolute; position: absolute;
left: px2rem(-28, ); left: px2rem(-28);
height: inherit; height: inherit;
width: px2rem(8, ); width: px2rem(8);
background-color: #FFBC51; background-color: #FFBC51;
border-radius: px2rem(4, ); border-radius: px2rem(4);
} }
} }
@@ -98,20 +98,20 @@
li { li {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: px2rem(32, ); margin-bottom: px2rem(32);
padding: 0 px2rem(54, ); padding: 0 px2rem(54);
box-sizing: border-box; box-sizing: border-box;
.gift_item_pic { .gift_item_pic {
width: px2rem(96, ); width: px2rem(96);
height: px2rem(96, ); height: px2rem(96);
margin-right: px2rem(26, ); margin-right: px2rem(26);
} }
.gift_item_name { .gift_item_name {
width: px2rem(200, ); width: px2rem(200);
text-align: left; text-align: left;
font-size: px2rem(26, ); font-size: px2rem(26);
color: #333; color: #333;
} }
@@ -119,19 +119,19 @@
flex: 1; flex: 1;
img { img {
width: px2rem(26, ); width: px2rem(26);
height: px2rem(20, ); height: px2rem(20);
margin-right: px2rem(6, ); margin-right: px2rem(6);
} }
span { span {
font-size: px2rem(24, ); font-size: px2rem(24);
color: #333; color: #333;
} }
} }
.ratio { .ratio {
font-size: px2rem(24, ); font-size: px2rem(24);
color: #666; color: #666;
} }
} }
@@ -140,4 +140,9 @@
::-webkit-scrollbar { ::-webkit-scrollbar {
display: none; display: none;
}
.arabic{
.wrap .select_gift_name::after{
right: -0.18rem;
}
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@@ -4,12 +4,14 @@ var info = {};
if (EnvCheck() === 'test') new VConsole if (EnvCheck() === 'test') new VConsole
// 封装layer消息提醒框 // 封装layer消息提醒框
let layerIndex let layerIndex
var langReplace;
var localLang;
const showLoading = (content = '加載中...') => { const showLoading = (content = '加載中...') => {
layer.open({ layer.open({
type: 2, type: 2,
shadeClose: false, shadeClose: false,
content, content,
success (e) { success(e) {
layerIndex = $(e).attr('index') layerIndex = $(e).attr('index')
} }
}) })
@@ -35,12 +37,28 @@ var notTopThree = [];//非前三排名数组
var lock = true; var lock = true;
$(function () { $(function () {
getInfoFromClient() getInfoFromClient()
fuzzyMatchUpdateQueryStringParameterFun();
setTimeout(function () { setTimeout(function () {
fuzzyMatchUpdateQueryStringParameterFun(); fuzzyMatchUpdateQueryStringParameterFun();
langReplace = window.lang.replace;
localLang = window.lang;
translateFun();
getWeekStarAward(rankType, rankTypeWeek); getWeekStarAward(rankType, rankTypeWeek);
}, 50) }, 50)
}) })
function getWeekStarAward (rankType, rankTypeWeek) { function translateFun() {
var langReplace = window.lang.replace;
var localLang = window.lang;
$('#title').html(langReplace(localLang.demoModule.title));
$('#text2').html(langReplace(localLang.demoModule.text2));
$('.header').attr('style', langReplace(localLang.demoModule.img));
$('.header a img').attr('src', langReplace(localLang.demoModule.img2));
$(`.tab1`).attr('style', langReplace(localLang.demoModule.img3));
$(`.tab2`).attr('style', langReplace(localLang.demoModule.img4));
$(`.box .sTab`).attr('style', langReplace(localLang.demoModule.img5));
$(`.box .sTab_active`).attr('style', langReplace(localLang.demoModule.img6));
}
function getWeekStarAward(rankType, rankTypeWeek) {
showLoading(); showLoading();
networkRequest({ networkRequest({
type: 'GET', type: 'GET',
@@ -49,7 +67,7 @@ function getWeekStarAward (rankType, rankTypeWeek) {
rankType, rankType,
uid: pubInfo.uid uid: pubInfo.uid
}, },
success (res) { success(res) {
if (res.code === 200) { if (res.code === 200) {
// 处理倒计时 // 处理倒计时
endTime2 = res.data.endTime; endTime2 = res.data.endTime;
@@ -144,7 +162,7 @@ function getWeekStarAward (rankType, rankTypeWeek) {
toastMsg(res.message); toastMsg(res.message);
} }
}, },
error () { error() {
hideLoading(layerIndex); hideLoading(layerIndex);
toastMsg('網絡錯誤'); toastMsg('網絡錯誤');
} }
@@ -156,10 +174,12 @@ $('.tabAbox div').click(function () {
if (i == 0) { if (i == 0) {
rankTypeWeek = 1; rankTypeWeek = 1;
$('.tabAbox').removeClass('tab2').addClass('tab1'); $('.tabAbox').removeClass('tab2').addClass('tab1');
$('.tabAbox').attr('style', langReplace(localLang.demoModule.img3));
getWeekStarAward(rankType, rankTypeWeek); getWeekStarAward(rankType, rankTypeWeek);
} else { } else {
rankTypeWeek = 2; rankTypeWeek = 2;
$('.tabAbox').removeClass('tab1').addClass('tab2'); $('.tabAbox').removeClass('tab1').addClass('tab2');
$('.tabAbox').attr('style', langReplace(localLang.demoModule.img4));
getWeekStarAward(rankType, rankTypeWeek); getWeekStarAward(rankType, rankTypeWeek);
} }
@@ -170,22 +190,22 @@ $('.sTab div').click(function () {
var i = $(this).index(); var i = $(this).index();
if (i == 0) { if (i == 0) {
rankType = 1; rankType = 1;
$('.sTab').removeClass('sTab_active'); $('.box .sTab').attr('style', langReplace(localLang.demoModule.img5));
getWeekStarAward(rankType, rankTypeWeek); getWeekStarAward(rankType, rankTypeWeek);
} else { } else {
rankType = 2; rankType = 2;
$('.sTab').addClass('sTab_active'); $('.box .sTab').attr('style', langReplace(localLang.demoModule.img6));
getWeekStarAward(rankType, rankTypeWeek); getWeekStarAward(rankType, rankTypeWeek);
} }
}) })
// 处理前三函数 // 处理前三函数
function weekStarRankList (arr, index, type) { function weekStarRankList(arr, index, type) {
var arrs = arr[index].slice(0, 3); var arrs = arr[index].slice(0, 3);
if (arrs.length < 3) { if (arrs.length < 3) {
let arr = new Array(3 - arrs.length).fill({ let arr = new Array(3 - arrs.length).fill({
avatar: './images/newimages/null.png', avatar: './images/newimages/null.png',
nick: '虚位以待', nick: langReplace(localLang.demoModule.text3),
amount: "" amount: ""
}) })
arrs.push(...arr) arrs.push(...arr)
@@ -195,9 +215,9 @@ function weekStarRankList (arr, index, type) {
$(`.box .top_three .No${i + 1} .tx`).attr('uid', res.uid); $(`.box .top_three .No${i + 1} .tx`).attr('uid', res.uid);
$(`.box .top_three .No${i + 1} p`).text(res.nick); $(`.box .top_three .No${i + 1} p`).text(res.nick);
if (type == 1) { if (type == 1) {
$(`.box .top_three .No${i + 1} b`).text(`${res.amount == 0 ? '' : '魅力值:' + formatNumber(res.amount)}`); $(`.box .top_three .No${i + 1} b`).text(`${res.amount == 0 ? '' : langReplace(localLang.demoModule.text4) + formatNumber(res.amount)}`);
} else { } else {
$(`.box .top_three .No${i + 1} b`).text(`${res.amount == 0 ? '' : '豪气值:' + formatNumber(res.amount)}`); $(`.box .top_three .No${i + 1} b`).text(`${res.amount == 0 ? '' : langReplace(localLang.demoModule.text5) + formatNumber(res.amount)}`);
} }
}) })
@@ -219,7 +239,7 @@ $('.top_three .tx').click(function () {
} }
}) })
// 处理前非三函数 // 处理前非三函数
function notWeekStarRankList (arr, index, type) { function notWeekStarRankList(arr, index, type) {
var arrs = arr[index].slice(3); var arrs = arr[index].slice(3);
var str = ``; var str = ``;
arrs.forEach((res, i) => { arrs.forEach((res, i) => {
@@ -228,7 +248,7 @@ function notWeekStarRankList (arr, index, type) {
<span class="ranking">${i + 4}</span> <span class="ranking">${i + 4}</span>
<img src="${res.avatar}" alt=""> <img src="${res.avatar}" alt="">
<span class="nice">${res.nick}</span> <span class="nice">${res.nick}</span>
<span class="num">${type == 1 ? res.amount == 0 ? '' : '魅力值:' + formatNumber(res.amount) : res.amount == 0 ? '' : '豪气值:' + formatNumber(res.amount)}</span> <span class="num">${type == 1 ? res.amount == 0 ? '' : `${langReplace(localLang.demoModule.text4)}` + formatNumber(res.amount) : res.amount == 0 ? '' : `${langReplace(localLang.demoModule.text5)}` + formatNumber(res.amount)}</span>
</li> </li>
` `
}) })
@@ -250,18 +270,18 @@ function notWeekStarRankList (arr, index, type) {
}) })
} }
// 处理自己排名数组 // 处理自己排名数组
function mineRankArrFun (arr, index, type) { function mineRankArrFun(arr, index, type) {
$('.myBox .ranking').text(arr[index].rank < 0 ? '未上榜' : arr[index].rank); $('.myBox .ranking').text(arr[index].rank < 0 ? langReplace(localLang.demoModule.text7) : arr[index].rank);
$('.myBox .nice').text(arr[index].nick); $('.myBox .nice').text(arr[index].nick);
$('.myBox img').attr('src', arr[index].avatar); $('.myBox img').attr('src', arr[index].avatar);
if (type == 1) { if (type == 1) {
$('.myBox .num').text(`魅力值:${formatNumber(arr[index].amount)}`); $('.myBox .num').text(`${langReplace(localLang.demoModule.text4)}${formatNumber(arr[index].amount)}`);
} else { } else {
$('.myBox .num').text(`豪气值:${formatNumber(arr[index].amount)}`); $('.myBox .num').text(`${langReplace(localLang.demoModule.text5)}${formatNumber(arr[index].amount)}`);
} }
} }
// 处理以万为单位 // 处理以万为单位
function formatNumber (num) { function formatNumber(num) {
num = Number(num); num = Number(num);
if (num == 0 || num <= 10000) { if (num == 0 || num <= 10000) {
return num; return num;
@@ -269,10 +289,10 @@ function formatNumber (num) {
if (num > 1 && num < 10000) { if (num > 1 && num < 10000) {
return num + ''; return num + '';
} else { } else {
return (num / 10000).toFixed(2) + '万'; return (num / 10000).toFixed(2) + langReplace(localLang.demoModule.text6);
} }
} }
function countup () { function countup() {
//获取当前时间 //获取当前时间
var date = new Date(); var date = new Date();
var now = date.getTime(); var now = date.getTime();
@@ -292,22 +312,22 @@ function countup () {
m = getzf(Math.floor(leftTime / 1000 / 60 % 60)); m = getzf(Math.floor(leftTime / 1000 / 60 % 60));
s = getzf(Math.floor(leftTime / 1000 % 60)); s = getzf(Math.floor(leftTime / 1000 % 60));
//将倒计时赋值到div中 //将倒计时赋值到div中
$('.time span').text(d + " 天 " + h + " : " + m + " : " + s); $('.time span').text(d + langReplace(localLang.demoModule.text8) + h + " : " + m + " : " + s);
//递归每秒调⽤countTime⽅法显⽰动态时间效果 //递归每秒调⽤countTime⽅法显⽰动态时间效果
} else { } else {
$('.time span').text("00 天 00 : 00 : 00"); $('.time span').text(`00 ${langReplace(localLang.demoModule.text8)} 00 : 00 : 00`);
return return
} }
setTimeout(countup, 1000); setTimeout(countup, 1000);
} }
//补0操作 //补0操作
function getzf (num) { function getzf(num) {
if (parseInt(num) < 10) { if (parseInt(num) < 10) {
num = '0' + num; num = '0' + num;
} }
return num; return num;
} }
function checkTime (i) { function checkTime(i) {
if (i < 10) { if (i < 10) {
i = "0" + i; i = "0" + i;
} }

View File

@@ -0,0 +1,22 @@
let urlPrefix = getUrlPrefix();
var browser = checkVersion();
var info = {};
if (EnvCheck() === 'test') new VConsole
var langReplace;
var localLang;
$(function () {
getInfoFromClient()
fuzzyMatchUpdateQueryStringParameterFun();
setTimeout(function () {
fuzzyMatchUpdateQueryStringParameterFun();
langReplace = window.lang.replace;
localLang = window.lang;
translateFun();
}, 50)
})
function translateFun() {
var langReplace = window.lang.replace;
var localLang = window.lang;
$('#title2').html(langReplace(localLang.demoModule.title2));
$('.rule_content').attr('style', langReplace(localLang.demoModule.img7));
}

View File

@@ -1,5 +1,23 @@
// 阿拉伯 // 阿拉伯
langAr = { langAr = {
// 模块 // 模块
demoModule: {} demoModule: {
title: "ترتيب النجوم",
text2: "العد التنازلي:",
title2: "قواعد النشاط",
text3: "مكان شاغر",
text4: "قيمة السحر:",
text5: "قيمة البطولة:",
text6: "عشرة آلاف",
text7: "غير مصنف",
text8: "أيام",
img: "background: url(./images/newimages/header-ar.png) no-repeat;background-size: 100% 100%;",
img2: "./images/newimages/rule-ar.png",
img3: "background: url(./images/newimages/tab1_A-ar.png) no-repeat;background-size: 100% 100%;",
img4: "background: url(./images/newimages/tab2_B-ar.png) no-repeat;background-size: 100% 100%;",
img5: "background: url(./images/newimages/stab_B-ar.png) no-repeat;background-size: 100% 100%;",
img6: "background: url(./images/newimages/stab_A-ar.png) no-repeat;background-size: 100% 100%;",
img7: "background: url(./images/newimages/rule_content-ar.png) no-repeat;background-size: 100% 100%;"
}
} }

View File

@@ -1,5 +1,23 @@
// 英文 // 英文
langEn = { langEn = {
// 模块 // 模块
demoModule: {} demoModule: {
title: "Star Ranking",
text2: "Countdown:",
title2: "Activity Rules",
text3: "Vacancy",
text4: "Charm Value:",
text5: "Heroic Value:",
text6: "Ten Thousand",
text7: "Not Ranked",
text8: "Days",
img: "background: url(./images/newimages/header-en.png) no-repeat;background-size: 100% 100%;",
img2: "./images/newimages/rule-en.png",
img3: "background: url(./images/newimages/tab1_A-en.png) no-repeat;background-size: 100% 100%;",
img4: "background: url(./images/newimages/tab2_B-en.png) no-repeat;background-size: 100% 100%;",
img5: "background: url(./images/newimages/stab_A-en.png) no-repeat;background-size: 100% 100%;",
img6: "background: url(./images/newimages/stab_B-en.png) no-repeat;background-size: 100% 100%;",
img7: "background: url(./images/newimages/rule_content-en.png) no-repeat;background-size: 100% 100%;"
}
} }

View File

@@ -1,5 +1,22 @@
// 中文 // 中文
langZh = { langZh = {
// 模块 // 模块
demoModule: {} demoModule: {
title: "周星榜",
text2: "倒计时:",
title2: "活動規則",
text3: "虛位以待",
text4: "魅力值:",
text5: "豪氣值:",
text6: "萬",
text7: "未上榜",
text8: "天",
img: `background: url(./images/newimages/header.png) no-repeat;background-size: 100% 100%;`,
img2: `./images/newimages/rule.png`,
img3: `background: url(./images/newimages/tab1_A.png) no-repeat;background-size: 100% 100%;`,
img4: `background: url(./images/newimages/tab2_B.png) no-repeat;background-size: 100% 100%;`,
img5: `background: url(./images/newimages/stab_A.png) no-repeat;background-size: 100% 100%;`,
img6: `background: url(./images/newimages/stab_B.png) no-repeat;background-size: 100% 100%;`,
img7: `background: url(./images/newimages/rule_content.png) no-repeat;background-size: 100% 100%;`,
}
} }

View File

@@ -5,7 +5,8 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>活動規則</title> <title id="title2"></title>
<!-- 活動規則 -->
<link rel="stylesheet" href="../../common/css/reset.css"> <link rel="stylesheet" href="../../common/css/reset.css">
<link rel="stylesheet" href="./css/newWeekStar.css"> <link rel="stylesheet" href="./css/newWeekStar.css">
<script src="../../common/js/flexible.js"></script> <script src="../../common/js/flexible.js"></script>
@@ -15,4 +16,13 @@
<div class="rule_content"></div> <div class="rule_content"></div>
</body> </body>
</html> </html>
<script src="../../common/js/jquery-3.2.1.min.js"></script>
<script src="../../common/js/common2.js"></script>
<script src="../../common/js/layer.js"></script>
<script src="../../common/js/vconsole.min.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./js/newWeekStar2.js"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -5,7 +5,8 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>周星榜</title> <title id="title"></title>
<!-- 周星榜 -->
<link rel="stylesheet" href="../../common/css/reset.css"> <link rel="stylesheet" href="../../common/css/reset.css">
<link rel="stylesheet" href="./css/newWeekStar.css"> <link rel="stylesheet" href="./css/newWeekStar.css">
<script src="../../common/js/flexible.js"></script> <script src="../../common/js/flexible.js"></script>
@@ -25,7 +26,7 @@
<div class="box"> <div class="box">
<!-- 时间 --> <!-- 时间 -->
<div class="time"> <div class="time">
倒计时:<span></span> <b id="text2"></b><span></span>
</div> </div>
<!-- 礼物名称列表 --> <!-- 礼物名称列表 -->
<div class="giftListBox"> <div class="giftListBox">
@@ -94,7 +95,7 @@
<script src="./local/ar.js"></script> <script src="./local/ar.js"></script>
<script src="./local/en.js"></script> <script src="./local/en.js"></script>
<script src="./local/zh.js"></script> <script src="./local/zh.js"></script>
<script src="./js/newWeekStar.js?v=1.0"></script> <script src="./js/newWeekStar.js?v=1.1"></script>
<script src="../../common/local/langHandler.js"></script> <script src="../../common/local/langHandler.js"></script>
</html> </html>