Compare commits

...

34 Commits

Author SHA1 Message Date
dragon
42f4d1398d 修复弹窗样式 2024-11-01 17:31:33 +08:00
dragon
7f45727107 修改规则 2024-11-01 17:19:19 +08:00
dragon
2abaa57102 优化样式 2024-11-01 15:22:04 +08:00
dragon
021647f8b9 优化样式 2024-11-01 15:11:31 +08:00
dragon
a8c6dcc6ce 修复bug 2024-11-01 14:12:54 +08:00
dragon
adb5cbf70d 完成cp活动 2024-10-31 19:17:27 +08:00
dragon
1d7f1bea2a 优化样式 2024-10-31 18:06:49 +08:00
dragon
eaa63702ca 替换阿语区规则 2024-10-31 17:37:07 +08:00
dragon
c32c2202e8 修改周奖励 2024-10-31 17:16:33 +08:00
dragon
4c4d621ee9 修改英语区周奖励数值 2024-10-31 14:17:26 +08:00
dragon
917ae977e9 替换周奖励英语区规则 2024-10-31 11:59:53 +08:00
dragon
ed8ea3e5f0 清除缓存 2024-10-30 21:34:32 +08:00
dragon
5eeab82f5c 修复切换奖励列表异常问题 2024-10-30 18:29:23 +08:00
dragon
1a887dc70d 样式优化 2024-10-30 18:09:47 +08:00
dragon
c445772a67 修复英语区异常 2024-10-30 16:59:19 +08:00
dragon
891121ea4e 修复调用接口异常问题 2024-10-30 14:31:03 +08:00
dragon
08de8efa12 修复状态按钮异常问题 2024-10-30 14:06:50 +08:00
dragon
191e0bbe0d 新增账单,和修复bug 2024-10-30 13:57:05 +08:00
dragon
672e738456 修复bug 2024-10-30 11:09:32 +08:00
dragon
80f7205acb 修复奖励字段异常问题 2024-10-30 10:20:25 +08:00
dragon
7f30c30f92 完成周奖励公会 2024-10-30 10:13:54 +08:00
dragon
739e512bbc 公会奖励暂存 2024-10-30 10:13:53 +08:00
dragon
a363e8d373 修改账单分页逻辑 2024-10-29 19:22:33 +08:00
dragon
58c9e09ea8 切换音符状态 2024-10-28 14:30:17 +08:00
dragon
22468bdfbc 修复自动播放异常问题 2024-10-28 11:08:13 +08:00
dragon
dc7aec7590 新增音乐周星榜 2024-10-28 10:55:49 +08:00
dragon
7f61d08030 万圣节主题周星榜 2024-10-28 10:55:48 +08:00
dragon
a0d2e78cd4 同步寻爱代码 2024-10-25 16:53:46 +08:00
dragon
8390d53cfb 补齐遗漏多语言 2024-10-25 16:53:45 +08:00
dragon
cd279cc869 修复tost不对问题 2024-10-25 16:53:45 +08:00
dragon
898e9a7a07 修改账单 2024-10-25 16:53:45 +08:00
dragon
be65800ed8 新增账单 2024-10-25 16:53:44 +08:00
dragon
4407ed5926 新增土耳其默认为英语 2024-10-25 16:53:44 +08:00
dragon
f63446e4a2 新增公会动图相关逻辑-英语&阿拉伯 2024-10-25 16:53:44 +08:00
182 changed files with 8207 additions and 188 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 777 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 777 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 776 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 327 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 810 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

View File

@@ -0,0 +1,308 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title class="text1"></title>
<link rel="stylesheet" href="../../common/css/reset.css">
<link rel="stylesheet" href="./css/index.css">
</head>
<body>
<!-- 頂部返回 -->
<div class="back">
<img src="./images/travel/back.png" alt="">
</div>
<!-- 头部 -->
<div class="header">
<!-- 规则Icon -->
<div class="rule_icon text2"></div>
<!-- 摩天轮 -->
<div id="carousel" class="carousel">
<img src="./images/carouselTitle.png" alt="" class="carouselTitle img1">
<img src="./images/waiting.png" alt="" class="waiting img2">
<div class="carousel_in1">
<img src="./images/null.png" alt="" class="tx1">
<img src="./images/null.png" alt="" class="tx2">
</div>
<div class="carousel_in2">
<img src="./images/null.png" alt="" class="tx1">
<img src="./images/null.png" alt="" class="tx2">
</div>
<div class="carousel_in3">
<img src="./images/null.png" alt="" class="tx1">
<img src="./images/null.png" alt="" class="tx2">
</div>
<div class="carousel_in4">
<img src="./images/null.png" alt="" class="tx1">
<img src="./images/null.png" alt="" class="tx2">
</div>
<div class="carousel_in5">
<img src="./images/null.png" alt="" class="tx1">
<img src="./images/null.png" alt="" class="tx2">
</div>
<div class="carousel_in6">
<img src="./images/null.png" alt="" class="tx1">
<img src="./images/null.png" alt="" class="tx2">
</div>
</div>
<!-- 摩天轮底座 -->
<img src="./images/carouselBoom.png" alt="" class="carouselBoom">
<!-- 倒计时 -->
<div class="timeBox">
<div class="day">
<b>00</b>
<span class="text3"></span>
</div>
<div class="hour">
<b>00</b>
<span class="text4"></span>
</div>
<div class="min">
<b>00</b>
<span class="text5"></span>
</div>
<div class="sec">
<b>00</b>
<span class="text6"></span>
</div>
</div>
<!-- 音乐 -->
<div class="music">
<audio autoplay loop id="musics">
<source src="./music/music.mp3" type="audio/mpeg">
</audio>
</div>
<!-- 关闭音乐 -->
<img src="./images/notOpen.png" alt="" class="notOpen">
</div>
<!-- tab -->
<div class="tabBox">
<div class="text7"></div>
<div class="act text8"></div>
<div class="text9"></div>
</div>
<!-- 页面1 -->
<div class="page1">
<div class="top">
<p class="text10"></p>
</div>
<div class="contentBox">
<div class="content">
<img src="./images/TimeTitle.png" alt="" class="timeTitle">
<div class="times">2024.09.09-2024.09.16</div>
<div class="topBox">
<div class="top1">
<img src="./images/ts1.png" alt="" class="tsL">
<img src="./images/ts1.png" alt="" class="tsR">
<img src="./images/null.png" alt="" class="txL">
<img src="./images/null.png" alt="" class="txR">
<div class="nameL">虚位以待</div>
<div class="nameR">虚位以待</div>
<div class="idL">ID:0</div>
<div class="idR">ID:0</div>
<div class="sclore"><img src="./images/love.png" alt="">0K</div>
</div>
<div class="top2">
<img src="./images/ts23.png" alt="" class="tsL">
<img src="./images/ts23.png" alt="" class="tsR">
<img src="./images/null.png" alt="" class="txL">
<img src="./images/null.png" alt="" class="txR">
<div class="nameL">虚位以待</div>
<div class="nameR">虚位以待</div>
<div class="idL">ID:0</div>
<div class="idR">ID:0</div>
<div class="sclore"><img src="./images/love.png" alt="">0K</div>
</div>
<div class="top3">
<img src="./images/ts23.png" alt="" class="tsL">
<img src="./images/ts23.png" alt="" class="tsR">
<img src="./images/null.png" alt="" class="txL">
<img src="./images/null.png" alt="" class="txR">
<div class="nameL">虚位以待</div>
<div class="nameR">虚位以待</div>
<div class="idL">ID:0</div>
<div class="idR">ID:0</div>
<div class="sclore"><img src="./images/love.png" alt="">0K</div>
</div>
</div>
</div>
</div>
<div class="bottom"></div>
</div>
<!-- 页面2 -->
<div class="page2">
<div class="top">
<p class="text11"></p>
</div>
<div class="content">
<div class="topBox">
<div class="top1">
<img src="./images/ts1.png" alt="" class="tsL">
<img src="./images/ts1.png" alt="" class="tsR">
<img src="./images/null.png" alt="" class="txL">
<img src="./images/null.png" alt="" class="txR">
<div class="nameL">虚位以待</div>
<div class="nameR">虚位以待</div>
<div class="idL">ID:0</div>
<div class="idR">ID:0</div>
<div class="sclore"><img src="./images/love.png" alt="">0K</div>
</div>
<div class="top2">
<img src="./images/ts23.png" alt="" class="tsL">
<img src="./images/ts23.png" alt="" class="tsR">
<img src="./images/null.png" alt="" class="txL">
<img src="./images/null.png" alt="" class="txR">
<div class="nameL">虚位以待</div>
<div class="nameR">虚位以待</div>
<div class="idL">ID:0</div>
<div class="idR">ID:0</div>
<div class="sclore"><img src="./images/love.png" alt="">0K</div>
</div>
<div class="top3">
<img src="./images/ts23.png" alt="" class="tsL">
<img src="./images/ts23.png" alt="" class="tsR">
<img src="./images/null.png" alt="" class="txL">
<img src="./images/null.png" alt="" class="txR">
<div class="nameL">虚位以待</div>
<div class="nameR">虚位以待</div>
<div class="idL">ID:0</div>
<div class="idR">ID:0</div>
<div class="sclore"><img src="./images/love.png" alt="">0K</div>
</div>
</div>
<ul>
<li>
<div class="num">4</div>
<div class="txL">
<img src="./images/null.png" alt="">
<p>虚位以待</p>
</div>
<img src="./images/loves.png" alt="" class="loves">
<div class="txR">
<img src="./images/null.png" alt="">
<p>虚位以待</p>
</div>
<div class="scores">
<img src="./images/love.png" alt="">
<span>0K</span>
</div>
</li>
</ul>
<div class="more">More</div>
</div>
<div class="bottom"></div>
<div class="my">
<div class="num">4</div>
<div class="txL">
<img src="./images/null.png" alt="">
<p>虚位以待</p>
</div>
<img src="./images/loves.png" alt="" class="loves">
<div class="txR">
<img src="./images/null.png" alt="">
<p>虚位以待</p>
</div>
<div class="scores">
<img src="./images/love.png" alt="">
<span>0K</span>
</div>
</div>
</div>
<!-- 页面3 -->
<div class="page3">
<div class="top">
<img src="./images/TimeTitle.png" alt="" class="timeTitle">
<div class="title text12"></div>
</div>
<div class="content">
<div class="times text13"></div>
<div class="topBox1">
<img src="./images/bo.png" alt="" class="bo">
<img src="./images/bo.png" alt="" class="bo2">
<div class="ts1" id="ts1"></div>
</div>
<img src="./images/TimeTitle.png" alt="" class="timeTitle">
<div class="title text14"></div>
<div class="times text15"></div>
<div class="topBox2">
<img src="./images/bo.png" alt="" class="bo">
<img src="./images/bo.png" alt="" class="bo2">
<div class="ts2" id="ts2"></div>
</div>
<img src="./images/TimeTitle.png" alt="" class="timeTitle">
<div class="title text16"></div>
<div class="times text17"></div>
<div class="topBox3">
<img src="./images/bo.png" alt="" class="bo">
<img src="./images/bo.png" alt="" class="bo2">
<div class="ts3" id="ts3"></div>
</div>
</div>
<div class="bottom"></div>
</div>
<!-- 规则 -->
<div class="rule">
<div class="ruleIn">
<img src="./images/close.png" alt="" class="close">
<div class="title text18"></div>
<div class="texts text19">
</div>
</div>
</div>
<!-- mp4 -->
<div class="zjvideo1">
<video id="zjvideo1" controls playsinline webkit-playsinline>
<source src="./mp4/zj1.mp4" type="video/mp4">
</video>
<img src="./images/close.png" alt="" class="close">
</div>
<div class="xzvideo1">
<video id="xzvideo1" controls playsinline webkit-playsinline>
<source src="./mp4/xz1.mp4" type="video/mp4">
</video>
<img src="./images/close.png" alt="" class="close">
</div>
<div class="zjvideo2">
<video id="zjvideo2" controls playsinline webkit-playsinline>
<source src="./mp4/zj23.mp4" type="video/mp4">
</video>
<img src="./images/close.png" alt="" class="close">
</div>
<div class="xzvideo2">
<video id="xzvideo2" controls playsinline webkit-playsinline>
<source src="./mp4/xz2.mp4" type="video/mp4">
</video>
<img src="./images/close.png" alt="" class="close">
</div>
<div class="zjvideo3">
<video id="zjvideo3" controls playsinline webkit-playsinline>
<source src="./mp4/zj23.mp4" type="video/mp4">
</video>
<img src="./images/close.png" alt="" class="close">
</div>
<div class="xzvideo3">
<video id="xzvideo3" controls playsinline webkit-playsinline>
<source src="./mp4/xz3.mp4" type="video/mp4">
</video>
<img src="./images/close.png" alt="" class="close">
</div>
</body>
</html>
<script src="../../common/js/flexible.js"></script>
<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="../../common/js/route-constant.js"></script>
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./js/wow.js"></script>
<script src="../../common/js/svga.min.js"></script>
<script src="./js/index.js"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -0,0 +1,454 @@
let urlPrefix = getUrlPrefix()
let browser = checkVersion()
let env = EnvCheck();
if (env == 'test') {
new VConsole();
}
// 封裝layer消息提醒框
let layerIndex
var langReplace;
var localLang;
const showLoading = (content = langReplace(localLang.demoModule.layerIndex1)) => {
layer.open({
type: 2,
shadeClose: false,
content,
success(e) {
layerIndex = $(e).attr('index')
}
})
}
const hideLoading = (index) => {
layer.close(index)
}
const toastMsg = (content = langReplace(localLang.demoModule.layerIndex2), time = 2) => {
layer.open({
content,
time,
skin: 'msg'
})
}
var countupTime;
// var thisWeekCpRankTop3 = []
var thisWeekCpRank = []
var moreIndex = 0;
// 初始化函數
$(function () {
getInfoFromClient();
fuzzyMatchUpdateQueryStringParameterFun(); // 判断语言
setTimeout(function () {
// 頁面全屏
if (browser.app) {
if (browser.android) {
window.androidJsObj.initShowNav(false)
} else {
window.webkit.messageHandlers.initShowNav.postMessage(0)
}
};
// 頂部返回事件
$('.back img').click(() => {
if (browser.android) {
window.androidJsObj.closeWebView()
} else {
window.webkit.messageHandlers.closeWebView.postMessage(null)
}
})
fuzzyMatchUpdateQueryStringParameterFun(); // 判断语言
langReplace = window.lang.replace;
localLang = window.lang;
translateFun()
get();
var audio = document.getElementById("musics");
// 尝试自动播放音频
audio.play().then(function () {
// 如果自动播放成功
$('.header .music').show();
console.log('成功');
}).catch(function (error) {
$('.header .notOpen').show();
console.log('失败');
})
}, 100)
})
function translateFun() {
var langReplace = window.lang.replace;
var localLang = window.lang;
$('.text1').text(langReplace(localLang.demoModule.text1));
$('.text2').text(langReplace(localLang.demoModule.text2));
$('.text3').text(langReplace(localLang.demoModule.text3));
$('.text4').text(langReplace(localLang.demoModule.text4));
$('.text5').text(langReplace(localLang.demoModule.text5));
$('.text6').text(langReplace(localLang.demoModule.text6));
$('.text7').text(langReplace(localLang.demoModule.text7));
$('.text8').text(langReplace(localLang.demoModule.text8));
$('.text9').text(langReplace(localLang.demoModule.text9));
$('.text10').text(langReplace(localLang.demoModule.text10));
$('.text11').text(langReplace(localLang.demoModule.text11));
$('.text12').text(langReplace(localLang.demoModule.text12));
$('.text13').text(langReplace(localLang.demoModule.text13));
$('.text14').text(langReplace(localLang.demoModule.text14));
$('.text15').text(langReplace(localLang.demoModule.text15));
$('.text16').text(langReplace(localLang.demoModule.text16));
$('.text17').text(langReplace(localLang.demoModule.text17));
$('.text18').text(langReplace(localLang.demoModule.text18));
$('.img1').attr('src', langReplace(localLang.demoModule.img1));
$('.img2').attr('src', langReplace(localLang.demoModule.img2));
}
// 处理SVGA
document.addEventListener('DOMContentLoaded', function () {
function loadSVGA(containerId, svgaPath) {
var container = document.getElementById(containerId);
var player = new SVGA.Player(container);
var parser = new SVGA.Parser();
parser.load(svgaPath, function (videoItem) {
player.setVideoItem(videoItem);
player.startAnimation();
});
}
loadSVGA('ts1', './svga/ts1.svga');
loadSVGA('ts2', './svga/ts2.svga');
loadSVGA('ts3', './svga/ts3.svga');
});
// 接口
function get() {
showLoading()
networkRequest({
type: 'get',
url: urlPrefix + '/activity/h5/cp/rank',
success(res) {
if (res.code === 200) {
// 渲染倒计时
countup(res.data.endTime - res.timestamp);
// 判断渲染规则
if (res.data.partitionId == 2) {
$('.text19').html(langReplace(localLang.demoModule.text199));
} else {
$('.text19').html(langReplace(localLang.demoModule.text19));
}
//处理自己榜单
$('.page2 .my .num').text(res.data.myCpRank.rank ? res.data.myCpRank.rank : '-');
$('.page2 .my .txL img').attr('src', res.data.myCpRank.leftAvatar);
$('.page2 .my .txL p').text(res.data.myCpRank.leftNick);
$('.page2 .my .scores').html(`<img src="./images/love.png" alt=""> ${unitProcessingAr(res.data.myCpRank.totalNum, 2)}`)
$('.page2 .my .txR img').attr('src', res.data.myCpRank.rightAvatar ? res.data.myCpRank.rightAvatar : './images/null.png');
$('.page2 .my .txR p').text(res.data.myCpRank.rightNick ? res.data.myCpRank.rightNick : langReplace(localLang.demoModule.text20));
// 处理摩天轮榜单
res.data.topCpList.length <= 0 ? $('.waiting').show() : $('.waiting').hide();
res.data.topCpList.forEach((res, i) => {
$(`.header .carousel .carousel_in${i + 1} .tx1`).attr("src", res.leftAvatar);
$(`.header .carousel .carousel_in${i + 1} .tx2`).attr("src", res.rightAvatar);
})
// 处理第一个tab的榜单
$('.contentBox .content').remove();
var squareCpListStr = '';
if (res.data.squareCpList.length > 0) {
res.data.squareCpList.forEach((res, i) => {
squareCpListStr += `
<div class="content">
<img src="./images/TimeTitle.png" alt="" class="timeTitle">
<div class="times">${dateFormat(res.beginDate, 'yyyy.MM.dd')}-${dateFormat(res.endDate, 'yyyy.MM.dd')}</div>
<div class="topBox">${squareCpListStrFun(res.cpUserVos)}</div>
</div>
`
})
} else {
squareCpListStr += `
<div class="content">
<img src="./images/TimeTitle.png" alt="" class="timeTitle">
<div class="times"></div>
<div class="topBox">
<div class="top1">
<img src="./images/ts1.png" alt="" class="tsL">
<img src="./images/ts1.png" alt="" class="tsR">
<img src="./images/null.png" alt="" class="txL">
<img src="./images/null.png" alt="" class="txR">
<div class="nameL">${langReplace(localLang.demoModule.text20)}</div>
<div class="nameR">${langReplace(localLang.demoModule.text20)}</div>
<div class="idL"></div>
<div class="idR"></div>
<div class="sclore"><img src="./images/love.png" alt="">-</div>
</div>
<div class="top2">
<img src="./images/ts23.png" alt="" class="tsL">
<img src="./images/ts23.png" alt="" class="tsR">
<img src="./images/null.png" alt="" class="txL">
<img src="./images/null.png" alt="" class="txR">
<div class="nameL">${langReplace(localLang.demoModule.text20)}</div>
<div class="nameR">${langReplace(localLang.demoModule.text20)}</div>
<div class="idL"></div>
<div class="idR"></div>
<div class="sclore"><img src="./images/love.png" alt="">-</div>
</div>
<div class="top3">
<img src="./images/ts23.png" alt="" class="tsL">
<img src="./images/ts23.png" alt="" class="tsR">
<img src="./images/null.png" alt="" class="txL">
<img src="./images/null.png" alt="" class="txR">
<div class="nameL">${langReplace(localLang.demoModule.text20)}</div>
<div class="nameR">${langReplace(localLang.demoModule.text20)}</div>
<div class="idL"></div>
<div class="idR"></div>
<div class="sclore"><img src="./images/love.png" alt="">-</div>
</div>
</div>
</div>
`
}
$('.contentBox').append(squareCpListStr);
// 处理第二个榜单
// thisWeekCpRankTop3 = splitArray(res.data.thisWeekCpRank).firstThree;
thisWeekCpRank = splitArray(res.data.thisWeekCpRank).pages;
// 处理前三
var listTo3 = thisWeekCpRank[0] ? thisWeekCpRank[0].slice(0, 3) : [];
if (listTo3.length < 3) {
let arr = new Array(3 - listTo3.length).fill({
leftAvatar: './images/null.png',
rightAvatar: './images/null.png',
leftNick: langReplace(localLang.demoModule.text20),
rightNick: langReplace(localLang.demoModule.text20),
leftErbanNo: "",
rightErbanNo: "",
totalNum: "-"
})
listTo3.push(...arr)
}
listTo3.forEach((res, i) => {
$(`.page2 .content .topBox .top${i + 1} .txL`).attr('src', res.leftAvatar);
$(`.page2 .content .topBox .top${i + 1} .txR`).attr('src', res.rightAvatar);
$(`.page2 .content .topBox .top${i + 1} .nameL`).text(res.leftNick);
$(`.page2 .content .topBox .top${i + 1} .nameR`).text(res.rightNick);
$(`.page2 .content .topBox .top${i + 1} .idL`).text(res.leftErbanNo == "" ? "" : 'ID:' + res.leftErbanNo);
$(`.page2 .content .topBox .top${i + 1} .idR`).text(res.rightErbanNo == "" ? "" : 'ID:' + res.rightErbanNo);
$(`.page2 .content .topBox .top${i + 1} .sclore`).html(`<img src="./images/love.png" alt="">${res.totalNum == '-' ? '-' : unitProcessingAr(res.totalNum, 2)}`)
})
// 非前三
$('.page2 .content ul li').remove();
listFun();
} else {
toastMsg(res.message)
}
hideLoading(layerIndex)
},
error(err) {
hideLoading(layerIndex)
toastMsg(langReplace(localLang.demoModule.layerIndex3))
}
})
}
// 点击加载更多
$('.page2 .content .more').click(function () {
moreIndex = moreIndex + 1;
listFun();
})
// 渲染第二非前三函数
function listFun() {
var str = '';
if (thisWeekCpRank[moreIndex]) {
var arr = moreIndex == 0 ? thisWeekCpRank[moreIndex].slice(3) : thisWeekCpRank[moreIndex];
arr.forEach(res => {
str += `
<li>
<div class="num">${res.rank}</div>
<div class="txL">
<img src="${res.leftAvatar}" alt="">
<p>${res.leftNick}</p>
</div>
<img src="./images/loves.png" alt="" class="loves">
<div class="txR">
<img src="${res.rightAvatar}" alt="">
<p>${res.rightNick}</p>
</div>
<div class="scores">
<img src="./images/love.png" alt="">
<span>${unitProcessingAr(res.totalNum, 2)}</span>
</div>
</li>
`
})
$('.page2 .content ul').append(str);
if (thisWeekCpRank[moreIndex].length < 10) {
$('.page2 .content .more').hide();
}
} else {
$('.page2 .content .more').hide();
}
}
function squareCpListStrFun(arr) {
var str = '';
var listTo3 = arr.slice(0, 3);
if (listTo3.length < 3) {
let arr = new Array(3 - listTo3.length).fill({
leftAvatar: './images/null.png',
rightAvatar: './images/null.png',
leftNick: langReplace(localLang.demoModule.text20),
rightNick: langReplace(localLang.demoModule.text20),
leftErbanNo: "",
rightErbanNo: "",
totalNum: "-"
})
listTo3.push(...arr)
}
listTo3.forEach((res, i) => {
str += `
<div class="top${i + 1}">
<img src="${i + 1 == 1 ? './images/ts1.png' : './images/ts23.png'}" alt="" class="tsL">
<img src="${i + 1 == 1 ? './images/ts1.png' : './images/ts23.png'}" alt="" class="tsR">
<img src="${res.leftAvatar}" alt="" class="txL">
<img src="${res.rightAvatar}" alt="" class="txR">
<div class="nameL">${res.leftNick}</div>
<div class="nameR">${res.rightNick}</div>
<div class="idL">${res.leftErbanNo == "" ? '' : "ID:" + res.leftErbanNo}</div>
<div class="idR">${res.rightErbanNo == "" ? '' : "ID:" + res.rightErbanNo}</div>
<div class="sclore"><img src="./images/love.png" alt="">${res.totalNum == "-" ? '-' : unitProcessingAr(res.totalNum, 2)}</div>
</div>
`})
return str;
}
function splitArray(arr) {
// 获取前三个元素
// const firstThree = arr.slice(0, 3);
// // 剩余的元素
// const remainingElements = arr.slice(3);
const remainingElements = arr;
// 将剩余元素每10个分成一组
const pages = [];
for (let i = 0; i < remainingElements.length; i += 10) {
const chunk = remainingElements.slice(i, i + 10);
pages.push(chunk);
}
// return { firstThree, pages };
return { pages };
}
// 倒計時
function countup(leftTime) {
clearTimeout(countupTime)
//獲取當前時間
// var now = nowTime;
var d = 0;
var h = 0;
var m = 0;
var s = 0;
//定義變數 d,h,m,s保存倒計時的時間
var d, h, m, s;
//遞歸每秒調⽤countTime⽅法顯⽰動態時間效果
if (leftTime > 0) {
d = getzf(Math.floor(leftTime / 1000 / 60 / 60 / 24));
h = getzf(Math.floor(leftTime / 1000 / 60 / 60 % 24));
m = getzf(Math.floor(leftTime / 1000 / 60 % 60));
s = getzf(Math.floor(leftTime / 1000 % 60));
//將倒計時賦值到div中
$('.header .timeBox .day b').text(d);
$('.header .timeBox .hour b').text(h);
$('.header .timeBox .min b').text(m);
$('.header .timeBox .sec b').text(s);
} else {
get();
}
if (leftTime > 0) {
leftTime = leftTime - 1000;
}
countupTime = setTimeout(function () {
countup(leftTime);
}, 1000);
}
//补0操作
function getzf(num) {
if (parseInt(num) < 10) {
num = '0' + num;
}
return num;
}
// 打开音乐
$('.header .music').click(function () {
$('.header .music').hide();
$('.header .notOpen').show();
var audio = document.getElementById("musics");
audio.pause();
})
// 关闭音乐
$('.header .notOpen').click(function () {
$('.header .notOpen').hide();
$('.header .music').show();
var audio = document.getElementById("musics");
audio.play();
})
// tab切换
$('.tabBox div').click(function () {
var i = $(this).index() + 1;
$(this).addClass('act').siblings().removeClass('act')
$('.page1,.page2,.page3').hide();
$(`.page${i}`).show();
})
// 关闭规则
$('.header .rule_icon').click(function () {
$('.rule').show();
bodyScroolFun(true);
})
// 关闭规则
$('.rule .ruleIn .close').click(function () {
$('.rule').hide();
bodyScroolFun(false);
})
// 打开mp4弹窗
$('.page3 .content .topBox1 .bo').click(function () {
var video = document.getElementById('zjvideo1');
video.play();
bodyScroolFun(true);
$('.zjvideo1').show();
})
// 打开mp4弹窗
$('.page3 .content .topBox1 .bo2').click(function () {
var video = document.getElementById('xzvideo1');
video.play();
bodyScroolFun(true);
$('.xzvideo1').show();
})
// 打开mp4弹窗
$('.page3 .content .topBox2 .bo').click(function () {
var video = document.getElementById('zjvideo2');
video.play();
bodyScroolFun(true);
$('.zjvideo2').show();
})
// 打开mp4弹窗
$('.page3 .content .topBox2 .bo2').click(function () {
var video = document.getElementById('xzvideo2');
video.play();
bodyScroolFun(true);
$('.xzvideo2').show();
})
// 打开mp4弹窗
$('.page3 .content .topBox3 .bo').click(function () {
var video = document.getElementById('zjvideo3');
video.play();
bodyScroolFun(true);
$('.zjvideo3').show();
})
// 打开mp4弹窗
$('.page3 .content .topBox3 .bo2').click(function () {
var video = document.getElementById('xzvideo3');
video.play();
bodyScroolFun(true);
$('.xzvideo3').show();
})
// 关闭mp4弹窗
$('.zjvideo1 .close,.xzvideo1 .close,.zjvideo2 .close,.xzvideo2 .close,.zjvideo3 .close,.xzvideo3 .close').click(function () {
var video = document.getElementById('zjvideo1');
var video1 = document.getElementById('xzvideo1');
var video2 = document.getElementById('zjvideo2');
var video3 = document.getElementById('xzvideo2');
var video4 = document.getElementById('zjvideo3');
var video5 = document.getElementById('xzvideo3');
video.pause();
video1.pause();
video2.pause();
video3.pause();
video4.pause();
video5.pause();
bodyScroolFun(false);
$('.zjvideo1,.xzvideo1,.zjvideo2,.xzvideo2,.zjvideo3,.xzvideo3').hide();
})

View File

@@ -0,0 +1,46 @@
var baba = document.querySelector('body');
baba.addEventListener('click', function (e) {
// $('body,html').css({ "width": "100%", "position": "relative", "overflow": "hidden" });
tianJia(e);
})
var erZi = [];
function tianJia (e) {
var sunZi = document.createElement('div');
sunZi.className = 'rabbit';
// sunZi.innerHTML = '<i class="iconfont icon-tuzi"></i>';
sunZi.innerHTML = '<img src="./images/loveIcon.png" alt="">';
baba.appendChild(sunZi);
erZi.push({
el: sunZi,
top: e.pageY - 30,
left: e.pageX - 20,
opacity: 1,
scale: 1,
color: `rgb(${255 * Math.random()},${255 * Math.random()},${255 * Math.random()})`
});
move();
};
function move () {
for (var i = 0; i < erZi.length; i++) {
if (erZi[i].opacity <= 0) {
baba.removeChild(erZi[i].el);
erZi.splice(i, 1);
return;
}
erZi[i].top--;
erZi[i].opacity = erZi[i].opacity - 0.02;
// erZi[i].scale = erZi[i].scale + 0.0001;
erZi[i].el.style.cssText = `
top: ${erZi[i].top}px;
left: ${erZi[i].left}px;
color: ${erZi[i].color};
opacity: ${erZi[i].opacity};
transform: scale(${erZi[i].scale});
position: absolute;
`
}
window.requestAnimationFrame(move);
// $('body,html').css({ "width": "100%", "position": "relative", "overflow": "auto" });
}

View File

@@ -0,0 +1,44 @@
// 阿拉伯
langAr = {
// 模块
demoModule: {
layerIndex1: `جاري التحميل...`,
layerIndex2: `نجاح`,
layerIndex3: `خطأ في الشبكة`,
text1: `عجلة الحب`,
text2: `القواعد`,
text3: `يوم`,
text4: `ساعة`,
text5: `دقيقة`,
text6: `ثانية`,
text7: `ساحة CP`,
text8: `قائمة CP`,
text9: `جوائز CP`,
text10: `سيتم عرض أفضل ثلاثة مستخدمين في القائمة التاريخية هنا`,
text11: `أرسل هدايا CP وقد تكون أنت وشريكك في القائمة!`,
text12: `TOP1`,
text13: `يمكن للمستخدم الأول في القائمة الأسبوعية الحصول على المكافآت التالية`,
text14: `TOP2`,
text15: `يمكن للمستخدم الثاني في القائمة الأسبوعية الحصول على المكافآت التالية`,
text16: `TOP3`,
text17: `يمكن للمستخدم الثالث في القائمة الأسبوعية الحصول على المكافآت التالية`,
text18: `القواعد`,
text19: `<p>1. وقت الحدث: من الإثنين 0:00 إلى الأحد 23:59 (GMT+8)</p>
<p>2. أرسل هدية CP المحددة لتصبح CP</p>
<img src="./images/rule.png" alt="">
<p>3. أرسل هدية CP بقيمة 1 قطعة نقدية للحصول على 1 قيمة حب. كلما أرسلت هدايا أكثر، حصلت على قيمة حب أكبر.</p>
<p>4. سيحصل أفضل ثلاثة مستخدمين في القائمة الإحصائية الأسبوعية على هدايا سخية.</p>
<p>5. عند إزالة علاقتك بـ CP، لن تظهر بعد الآن في قائمة CP.</p>
<p>6. لا يشارك مستخدمو وكيل الشحن في هذا الحدث.</p>`,
text199: `<p>1. وقت الحدث: من الإثنين 0:00 إلى الأحد 23:59 (GMT+3)</p>
<p>2. أرسل هدية CP المحددة لتصبح CP</p>
<img src="./images/rule.png" alt="">
<p>3. أرسل هدية CP بقيمة 1 قطعة نقدية للحصول على 1 قيمة حب. كلما أرسلت هدايا أكثر، حصلت على قيمة حب أكبر.</p>
<p>4. سيحصل أفضل ثلاثة مستخدمين في القائمة الإحصائية الأسبوعية على هدايا سخية.</p>
<p>5. عند إزالة علاقتك بـ CP، لن تظهر بعد الآن في قائمة CP.</p>
<p>6. لا يشارك مستخدمو وكيل الشحن في هذا الحدث.</p>`,
img1: `./images/carouselTitle-ar.png`,
img2: `./images/waiting-ar.png`,
text20: `شاغر`,
}
}

View File

@@ -0,0 +1,42 @@
langEn = {
demoModule: {
layerIndex1: `Loading...`,
layerIndex2: `Success`,
layerIndex3: `Network error`,
text1: `Love Ferris wheel`,
text2: `Rules`,
text3: `Day`,
text4: `Hour`,
text5: `Min`,
text6: `Sec`,
text7: `CP Square`,
text8: `CP List`,
text9: `CP Rewards`,
text10: `Top three users on the history list will be displayed here`,
text11: `Send CP gifts and you and your love may be on the list!`,
text12: `TOP1`,
text13: `Top 1 user on the weekly list can get the following rewards`,
text14: `TOP2`,
text15: `Top 2 user on the weekly list can get the following rewards`,
text16: `TOP3`,
text17: `Top 3 user on the weekly list can get the following rewards`,
text18: `Rules`,
text19: `<p>1. Event time: Monday 0:00-Sunday 23:59 (GMT+8)</p>
<p>2. Send the designated CP gift to become CP</p>
<img src="./images/rule.png" alt="">
<p>3. Send 1 coin CP gift to get 1 love value. The more gifts you send, the more love value you get.</p>
<p>4. The top three users on the weekly statistical list will get generous gifts.</p>
<p>5 Remove your CP relationship, you will no longer appear on the CP list.</p>
<p>6. Recharge agent users do not participate in this event.</p>`,
text199: `<p>1. Event time: Monday 0:00-Sunday 23:59 (GMT+3)</p>
<p>2 Send the designated CP gift to become CP</p>
<img src="./images/rule.png" alt="">
<p>3. Send 1 coin CP gift to get 1 love value. The more gifts you send, the more love value you get.</p>
<p>4. The top three users on the weekly statistical list will get generous gifts.</p>
<p>5 Remove your CP relationship, you will no longer appear on the CP list.</p>
<p>6. Recharge agent users do not participate in this event.</p>`,
img1: `./images/carouselTitle.png`,
img2: `./images/waiting.png`,
text20: `Vacant`,
},
}

View File

@@ -0,0 +1,44 @@
// 中文
langZh = {
// 模塊
demoModule: {
layerIndex1: `加载中...`,
layerIndex2: `成功`,
layerIndex3: `网络错误`,
text1: `愛情摩天輪`,
text2: `規則`,
text3: ``,
text4: `小時`,
text5: `分鐘`,
text6: ``,
text7: `CP廣場`,
text8: `CP榜單`,
text9: `CP獎勵`,
text10: `排行榜前三的用戶將顯示在這裡`,
text11: `送CP禮物你和你的愛人可能會上榜哦`,
text12: `TOP1`,
text13: `周榜第1名的用戶可獲得以下獎勵`,
text14: `TOP2`,
text15: `周榜第2名的用戶可獲得以下獎勵`,
text16: `TOP3`,
text17: `周榜第3名的用戶可獲得以下獎勵`,
text18: `規則`,
text19: `<p>1. 活動時間:星期一 0:00-星期日 23:59GMT+8</p>
<p>2. 發送指定的CP禮物以成為CP</p>
<img src="./images/rule.png" alt="">
<p>3. 發送1枚金幣CP禮物可獲得1個愛值。發送的禮物越多獲得的愛值也越多。</p>
<p>4. 每週統計名單的前三名用戶將獲得豐厚的獎品。</p>
<p>5. 移除您的CP關係後您將不再出現在CP名單上。</p>
<p>6. 充值代理用戶不參加此活動。</p>`,
text199: `<p>1. 活動時間:星期一 0:00-星期日 23:59GMT+3</p>
<p>2. 發送指定的CP禮物以成為CP</p>
<img src="./images/rule.png" alt="">
<p>3. 發送1枚金幣CP禮物可獲得1個愛值。發送的禮物越多獲得的愛值也越多。</p>
<p>4. 每週統計名單的前三名用戶將獲得豐厚的獎品。</p>
<p>5. 移除您的CP關係後您將不再出現在CP名單上。</p>
<p>6. 充值代理用戶不參加此活動。</p>`,
img1: `./images/carouselTitle-zh.png`,
img2: `./images/waiting-zh.png`,
text20: `虛位以待`,
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -840,7 +840,9 @@ function langCodeFun(langCode) {
} else if (langCode == "en") {
document.body.classList.add('english');
}else if(langCode == "zh"){
} else if (langCode == "tr") {
document.body.classList.add('Turkiye');
} else if (langCode == "zh") {
document.body.classList.add('china');
}
// if (window.location.href.match(/guildAr/)) {

View File

@@ -35,9 +35,13 @@ function initLocalLang () {
window.lang.defaults = false
}else if (lang === 'tr' || window.location.href.match('=tr')) {
// 土耳其
console.log("langHandler" + '土耳其')
window.lang = langTr
window.lang.code = 'tr'
// console.log("langHandler" + '土耳其')
// window.lang = langTr
// window.lang.code = 'tr'
// window.lang.defaults = false
console.log("langHandler" + '英语/土耳其')
window.lang = langEn
window.lang.code = 'en'
window.lang.defaults = false
} else {
console.log("langHandler" + '默认英语')

View File

@@ -91,8 +91,8 @@ ul li .num {
}
ul li .ts {
width: 1.70667rem;
height: 1.37333rem;
width: 1.54667rem;
height: 1.54667rem;
position: absolute;
z-index: 2;
left: 1.09333rem;
@@ -100,12 +100,12 @@ ul li .ts {
}
ul li .tx {
width: 1.33333rem;
height: 1.33333rem;
width: 1.4rem;
height: 1.45rem;
position: absolute;
left: 1.28rem;
top: 0.52rem;
border-radius: 50%;
left: 1.2rem;
top: 0.46rem;
border-radius: 0.1rem;
}
ul li .user {

View File

@@ -94,8 +94,8 @@ ul {
}
.ts {
width: px2rem(128);
height: px2rem(103);
width: px2rem(116);
height: px2rem(116);
position: absolute;
z-index: 2;
left: px2rem(82);
@@ -103,12 +103,12 @@ ul {
}
.tx {
width: px2rem(100);
height: px2rem(100);
width: 1.4rem;
height: 1.45rem;
position: absolute;
left: px2rem(96);
top: px2rem(39);
border-radius: 50%;
left: 1.2rem;
top: 0.46rem;
border-radius: 0.1rem;
}
.user {

View File

@@ -2,6 +2,7 @@ html,
body {
width: 100%;
background: #fff;
overflow-x: hidden;
}
.back {
@@ -32,6 +33,7 @@ body {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: none;
}
.header {
@@ -49,7 +51,7 @@ body {
position: absolute;
left: 0.45333rem;
top: 2.88rem;
border-radius: 50%;
border-radius: 0.21333rem;
border: 0.02667rem solid #FFE8A9;
}
@@ -64,6 +66,23 @@ body {
display: none;
}
.header .audit {
width: 1.41333rem;
height: 0.45333rem;
line-height: 0.45333rem;
text-align: center;
position: absolute;
border-radius: 0.45333rem;
top: 4.74667rem;
left: 0.74667rem;
color: #fff;
font-size: 0.29333rem;
font-weight: 500;
background: #D42E00;
display: none;
white-space: nowrap;
}
.header .nick {
width: 55%;
overflow: hidden;
@@ -112,7 +131,7 @@ body {
color: #fff;
font-size: 0.37333rem;
position: absolute;
top: 3.54667rem;
top: 3.81333rem;
right: 0.42667rem;
z-index: 5;
padding: 0 0.13333rem;
@@ -183,6 +202,227 @@ body {
background: #FFEFE5;
}
.weeklyRewards {
width: 10rem;
height: 4.8rem;
margin: 0.34667rem auto 0;
}
.weeklyRewards .top {
width: 100%;
box-sizing: border-box;
padding: 0 0.33333rem;
height: 0.66667rem;
line-height: 0.66667rem;
margin-top: 0.41333rem;
position: relative;
}
.weeklyRewards .top span {
float: left;
width: 0.10667rem;
height: 0.45333rem;
background: #04D5C6;
border-radius: 9.22667rem;
margin: 0.10667rem 0.13333rem 0;
display: block;
}
.weeklyRewards .top b {
float: left;
font-size: 0.48rem;
color: #313131;
font-weight: bold;
display: block;
margin-right: 0.09333rem;
}
.weeklyRewards .top i {
display: block;
font-size: 0.48rem;
color: #313131;
float: left;
font-style: normal;
}
.weeklyRewards .top img {
display: block;
float: right;
width: 0.56rem;
height: 0.56rem;
margin-top: 0.05333rem;
}
.weeklyRewards .weeklyRewards_in {
width: 9.14667rem;
height: 4.05333rem;
background: linear-gradient(180deg, #FFA13C 0%, #FF563D 100%);
border-radius: 0.42667rem;
margin: 0.26667rem auto 0.26667rem;
position: relative;
overflow: hidden;
}
.weeklyRewards .weeklyRewards_in .topImg {
width: 9.14667rem;
height: 1.01333rem;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 0;
}
.weeklyRewards .weeklyRewards_in .title {
width: 9.14667rem;
height: 1.01333rem;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 0;
line-height: 1.01333rem;
text-align: center;
color: #FFFFFF;
font-size: 0.37333rem;
font-weight: 600;
}
.weeklyRewards .weeklyRewards_in .box {
width: 8.66667rem;
height: 2.16rem;
background: #fff;
margin: 1.01333rem auto 0.21333rem;
border-radius: 0.42667rem;
box-sizing: border-box;
padding: 0 0.24rem;
}
.weeklyRewards .weeklyRewards_in .box .left {
float: left;
width: 1.68rem;
}
.weeklyRewards .weeklyRewards_in .box .left .gold {
width: 0.58667rem;
height: 0.58667rem;
margin-top: 0.64rem;
display: block;
margin: 0.24rem auto 0.02667rem;
}
.weeklyRewards .weeklyRewards_in .box .left span {
display: block;
width: 100%;
text-align: center;
color: #313131;
font-size: 0.34667rem;
font-weight: 600;
height: 0.48rem;
line-height: 0.48rem;
margin: 0 auto 0.08rem;
}
.weeklyRewards .weeklyRewards_in .box .left .get {
width: 1.38667rem;
height: 0.50667rem;
line-height: 0.50667rem;
text-align: center;
color: #AFB1B3;
font-size: 0.32rem;
font-weight: 500;
border-radius: 0.50667rem;
border: 0.02667rem solid #AFB1B3;
margin: 0 auto;
}
.weeklyRewards .weeklyRewards_in .box .left .getAct {
background: linear-gradient(270deg, #E29030 0%, #FCC074 100%);
border: none;
color: #fff;
}
.weeklyRewards .weeklyRewards_in .box .left .getOut {
background: #CDCED6;
border: none;
color: #fff;
}
.weeklyRewards .weeklyRewards_in .box .right {
float: right;
width: 6.21333rem;
margin-top: 0.4rem;
}
.weeklyRewards .weeklyRewards_in .box .right .textTop {
width: 100%;
height: 0.45333rem;
line-height: 0.45333rem;
display: flex;
justify-content: space-between;
margin: 0 auto 0.21333rem;
}
.weeklyRewards .weeklyRewards_in .box .right .textTop .l {
color: #313131;
font-size: 0.34667rem;
font-weight: 500;
}
.weeklyRewards .weeklyRewards_in .box .right .textTop .r {
color: #7B7B7D;
font-size: 0.32rem;
font-weight: 400;
}
.weeklyRewards .weeklyRewards_in .box .right .textTop .r img {
display: inline-block;
width: 0.45333rem;
height: 0.45333rem;
margin: 0 0.05333rem;
}
.weeklyRewards .weeklyRewards_in .box .right .line {
width: 100%;
height: 0.21333rem;
position: relative;
background: #FCD7B3;
border-radius: 0.21333rem;
position: relative;
overflow: hidden;
}
.weeklyRewards .weeklyRewards_in .box .right .line .line_in {
width: 0%;
height: 100%;
background: #FF8C00;
position: absolute;
left: 0;
top: 0;
}
.weeklyRewards .weeklyRewards_in .box .right .speedOfProgress {
width: 100%;
display: flex;
justify-content: space-between;
margin-top: 0.08rem;
height: 0.45333rem;
line-height: 0.45333rem;
}
.weeklyRewards .weeklyRewards_in .box .right .speedOfProgress span, .weeklyRewards .weeklyRewards_in .box .right .speedOfProgress b {
color: #7B7B7D;
font-size: 0.32rem;
font-weight: 400;
}
.weeklyRewards .weeklyRewards_in .bottom {
width: 100%;
box-sizing: border-box;
padding: 0 0.24rem;
color: #FFFFFF;
font-weight: 400;
font-size: 0.32rem;
}
.agencylevel {
width: 10rem;
height: 3.62667rem;
@@ -270,7 +510,7 @@ body {
position: absolute;
top: 0;
left: 0;
width: 10%;
width: 0%;
background: #04D5C6;
height: 100%;
}
@@ -543,6 +783,19 @@ body {
color: #fff;
}
.arabic .weeklyRewards .weeklyRewards_in .box .left {
float: right;
}
.arabic .weeklyRewards .weeklyRewards_in .box .right {
float: left;
}
.arabic .weeklyRewards .weeklyRewards_in .box .right .line .line_in {
left: auto;
right: 0;
}
.arabic .back img {
left: auto;
right: 0.24rem;
@@ -637,6 +890,12 @@ body {
font-size: 0.29333rem;
}
.arabic .audit {
left: auto;
right: 0.57333rem;
width: 1.86667rem;
}
.arabic .guildList .top b {
float: right;
}

View File

@@ -7,6 +7,7 @@ body {
width: 100%;
// height: px2rem(1334);
background: #fff;
overflow-x: hidden;
}
.back {
@@ -36,6 +37,7 @@ body {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: none;
}
}
@@ -54,7 +56,7 @@ body {
position: absolute;
left: px2rem(34);
top: px2rem(216);
border-radius: 50%;
border-radius: px2rem(16);
border: px2rem(2) solid #FFE8A9;
}
@@ -69,6 +71,23 @@ body {
display: none;
}
.audit {
width: px2rem(106);
height: px2rem(34);
line-height: px2rem(34);
text-align: center;
position: absolute;
border-radius: px2rem(34);
top: px2rem(356);
left: px2rem(56);
color: #fff;
font-size: px2rem(22);
font-weight: 500;
background: #D42E00;
display: none;
white-space: nowrap;
}
.nick {
width: 55%;
overflow: hidden;
@@ -118,7 +137,7 @@ body {
color: #fff;
font-size: px2rem(28);
position: absolute;
top: px2rem(266);
top: px2rem(286);
right: px2rem(32);
z-index: 5;
padding: 0 px2rem(10);
@@ -190,6 +209,227 @@ body {
}
}
.weeklyRewards {
width: px2rem(750);
height: px2rem(360);
margin: px2rem(26) auto 0;
.top {
width: 100%;
box-sizing: border-box;
padding: 0 px2rem(25);
height: px2rem(50);
line-height: px2rem(50);
margin-top: px2rem(31);
position: relative;
span {
float: left;
width: px2rem(8);
height: px2rem(34);
background: #04D5C6;
border-radius: px2rem(692);
margin: px2rem(8) px2rem(10) 0;
display: block;
}
b {
float: left;
font-size: px2rem(36);
color: #313131;
font-weight: bold;
display: block;
margin-right: px2rem(7);
}
i {
display: block;
font-size: px2rem(36);
color: #313131;
float: left;
font-style: normal;
}
img {
display: block;
float: right;
width: px2rem(42);
height: px2rem(42);
margin-top: px2rem(4);
}
}
.weeklyRewards_in {
width: px2rem(686);
height: px2rem(304);
background: linear-gradient(180deg, #FFA13C 0%, #FF563D 100%);
border-radius: px2rem(32);
margin: px2rem(20) auto px2rem(20);
position: relative;
overflow: hidden;
.topImg {
width: px2rem(686);
height: px2rem(76);
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 0;
}
.title {
width: px2rem(686);
height: px2rem(76);
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 0;
line-height: px2rem(76);
text-align: center;
color: #FFFFFF;
font-size: px2rem(28);
font-weight: 600;
}
.box {
width: px2rem(650);
height: px2rem(162);
background: #fff;
margin: px2rem(76) auto px2rem(16);
border-radius: px2rem(32);
box-sizing: border-box;
padding: 0 px2rem(18);
.left {
float: left;
width: px2rem(126);
.gold {
width: px2rem(44);
height: px2rem(44);
margin-top: px2rem(48);
display: block;
margin: px2rem(18) auto px2rem(2);
}
span {
display: block;
width: 100%;
text-align: center;
color: #313131;
font-size: px2rem(26);
font-weight: 600;
height: px2rem(36);
line-height: px2rem(36);
margin: 0 auto px2rem(6);
}
.get {
width: px2rem(104);
height: px2rem(38);
line-height: px2rem(38);
text-align: center;
color: #AFB1B3;
font-size: px2rem(24);
font-weight: 500;
border-radius: px2rem(38);
border: px2rem(2) solid #AFB1B3;
margin: 0 auto;
}
.getAct {
background: linear-gradient(270deg, #E29030 0%, #FCC074 100%);
border: none;
color: #fff;
}
.getOut {
background: #CDCED6;
border: none;
color: #fff;
}
}
.right {
float: right;
width: px2rem(466);
margin-top: px2rem(30);
.textTop {
width: 100%;
height: px2rem(34);
line-height: px2rem(34);
display: flex;
justify-content: space-between;
margin: 0 auto px2rem(16);
.l {
color: #313131;
font-size: px2rem(26);
font-weight: 500;
}
.r {
color: #7B7B7D;
font-size: px2rem(24);
font-weight: 400;
img {
display: inline-block;
width: px2rem(34);
height: px2rem(34);
margin: 0 px2rem(4);
}
}
}
.line {
width: 100%;
height: px2rem(16);
position: relative;
background: #FCD7B3;
border-radius: px2rem(16);
position: relative;
overflow: hidden;
.line_in {
width: 0%;
height: 100%;
background: #FF8C00;
position: absolute;
left: 0;
top: 0;
}
}
.speedOfProgress {
width: 100%;
display: flex;
justify-content: space-between;
margin-top: px2rem(6);
height: px2rem(34);
line-height: px2rem(34);
span,b {
color: #7B7B7D;
font-size: px2rem(24);
font-weight: 400;
}
}
}
}
.bottom {
width: 100%;
box-sizing: border-box;
padding: 0 px2rem(18);
color: #FFFFFF;
font-weight: 400;
font-size: px2rem(24);
}
}
}
.agencylevel {
width: px2rem(750);
height: px2rem(272);
@@ -274,7 +514,7 @@ body {
position: absolute;
top: 0;
left: 0;
width: 10%;
width: 0%;
background: #04D5C6;
height: 100%;
}
@@ -560,6 +800,19 @@ body {
.arabic {
.weeklyRewards .weeklyRewards_in .box .left {
float: right;
}
.weeklyRewards .weeklyRewards_in .box .right {
float: left;
}
.weeklyRewards .weeklyRewards_in .box .right .line .line_in {
left: auto;
right: 0;
}
.back img {
left: auto;
right: 0.24rem;
@@ -647,7 +900,8 @@ body {
right: auto;
left: px2rem(32);
}
.headerBox .headerBox_in div{
.headerBox .headerBox_in div {
text-align: right;
}
@@ -663,6 +917,12 @@ body {
}
}
.audit {
left: auto;
right: px2rem(43);
width: px2rem(140);
}
.guildList .top b {
float: right;
}

View File

@@ -0,0 +1,257 @@
html,
body {
width: 100%;
background: #fff;
}
.back {
width: 100%;
height: 2.34667rem;
background: #fff;
position: fixed;
left: 0;
top: 0;
z-index: 2;
}
.back .backIcon {
width: 0.58667rem;
height: 0.58667rem;
position: absolute;
left: 0.42667rem;
top: 1.46667rem;
z-index: 2;
}
.back b {
width: 100%;
height: 0.58667rem;
line-height: 0.58667rem;
text-align: center;
position: absolute;
top: 1.46667rem;
left: 50%;
transform: translateX(-50%);
color: #313131;
font-size: 0.48rem;
font-weight: 600;
}
.back .why {
width: 0.58667rem;
height: 0.58667rem;
position: absolute;
right: 0.42667rem;
top: 1.46667rem;
z-index: 2;
}
.tab {
width: 9.14667rem;
height: 0.58667rem;
line-height: 0.58667rem;
margin: 2.64rem auto 0.29333rem;
display: flex;
justify-content: space-around;
}
.tab div {
color: #7B7B7D;
font-size: 0.37333rem;
font-weight: 400;
}
.tab .act {
color: #FF8C03;
font-size: 0.42667rem;
}
.box {
width: 9.14667rem;
background: linear-gradient(180deg, #FFA13C 0%, #FF563D 100%);
border-radius: 0.42667rem;
box-sizing: border-box;
padding: 1.01333rem 0.24rem 0.24rem;
position: relative;
margin: 0 auto;
}
.box .topImg {
width: 9.14667rem;
height: 1.01333rem;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 0;
}
.box .title {
width: 9.14667rem;
height: 1.01333rem;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 0;
line-height: 1.01333rem;
text-align: center;
color: #FFFFFF;
font-size: 0.37333rem;
font-weight: 600;
}
.box ul {
width: 8.66667rem;
margin: 0 auto;
}
.box ul li {
width: 100%;
height: 2.16rem;
background: #fff;
margin: 0rem auto 0.24rem;
border-radius: 0.42667rem;
box-sizing: border-box;
padding: 0 0.24rem;
}
.box ul li .left {
float: left;
width: 1.68rem;
}
.box ul li .left .gold {
width: 0.58667rem;
height: 0.58667rem;
margin-top: 0.64rem;
display: block;
margin: 0.24rem auto 0.02667rem;
}
.box ul li .left span {
display: block;
width: 100%;
text-align: center;
color: #313131;
font-size: 0.34667rem;
font-weight: 600;
height: 0.48rem;
line-height: 0.48rem;
margin: 0 auto 0.08rem;
}
.box ul li .left .get {
width: 1.38667rem;
height: 0.50667rem;
line-height: 0.50667rem;
text-align: center;
color: #AFB1B3;
font-size: 0.32rem;
font-weight: 500;
border-radius: 0.50667rem;
border: 0.02667rem solid #AFB1B3;
margin: 0 auto;
}
.box ul li .left .getAct {
background: linear-gradient(270deg, #E29030 0%, #FCC074 100%);
border: none;
color: #fff;
}
.box ul li .left .getOut {
background: #CDCED6;
border: none;
color: #fff;
}
.box ul li .right {
float: right;
width: 6.21333rem;
margin-top: 0.4rem;
}
.box ul li .right .textTop {
width: 100%;
height: 0.45333rem;
line-height: 0.45333rem;
display: flex;
justify-content: space-between;
margin: 0 auto 0.21333rem;
}
.box ul li .right .textTop .l {
color: #313131;
font-size: 0.34667rem;
font-weight: 500;
}
.box ul li .right .textTop .r {
color: #7B7B7D;
font-size: 0.32rem;
font-weight: 400;
}
.box ul li .right .textTop .r img {
display: inline-block;
width: 0.45333rem;
height: 0.45333rem;
margin: 0 0.05333rem;
}
.box ul li .right .line {
width: 100%;
height: 0.21333rem;
position: relative;
background: #FCD7B3;
border-radius: 0.21333rem;
position: relative;
overflow: hidden;
}
.box ul li .right .line .line_in {
width: 10%;
height: 100%;
background: #FF8C00;
position: absolute;
left: 0;
top: 0;
}
.box ul li .right .speedOfProgress {
width: 100%;
display: flex;
justify-content: space-between;
margin-top: 0.08rem;
height: 0.45333rem;
line-height: 0.45333rem;
}
.box ul li .right .speedOfProgress span, .box ul li .right .speedOfProgress b {
color: #7B7B7D;
font-size: 0.32rem;
font-weight: 400;
}
.arabic .back .backIcon {
left: auto;
right: 0.42667rem;
transform: rotate(180deg);
}
.arabic .back .why {
right: auto;
left: 0.42667rem;
}
.arabic .box ul li .left {
float: right;
}
.arabic .box ul li .right {
float: left;
}
.arabic .box ul li .right .line .line_in {
left: auto;
right: 0;
}

View File

@@ -0,0 +1,261 @@
@function px2rem($px) {
@return $px / 75+rem;
}
html,
body {
width: 100%;
// height: px2rem(1334);
background: #fff;
}
.back {
width: 100%;
height: px2rem(176);
background: #fff;
position: fixed;
left: 0;
top: 0;
z-index: 2;
.backIcon {
width: px2rem(44);
height: px2rem(44);
position: absolute;
left: px2rem(32);
top: px2rem(110);
z-index: 2;
}
b {
width: 100%;
height: px2rem(44);
line-height: px2rem(44);
text-align: center;
position: absolute;
top: px2rem(110);
left: 50%;
transform: translateX(-50%);
color: #313131;
font-size: px2rem(36);
font-weight: 600;
}
.why {
width: px2rem(44);
height: px2rem(44);
position: absolute;
right: px2rem(32);
top: px2rem(110);
z-index: 2;
}
}
.tab {
width: px2rem(686);
height: px2rem(44);
line-height: px2rem(44);
margin: px2rem(198) auto px2rem(22);
display: flex;
justify-content: space-around;
div {
// margin-right: px2rem(50);
color: #7B7B7D;
font-size: px2rem(28);
font-weight: 400;
}
.act {
color: #FF8C03;
font-size: px2rem(32);
}
}
.box {
width: px2rem(686);
background: linear-gradient(180deg, #FFA13C 0%, #FF563D 100%);
border-radius: px2rem(32);
box-sizing: border-box;
padding: px2rem(76) px2rem(18) px2rem(18);
position: relative;
margin: 0 auto;
.topImg {
width: px2rem(686);
height: px2rem(76);
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 0;
}
.title {
width: px2rem(686);
height: px2rem(76);
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 0;
line-height: px2rem(76);
text-align: center;
color: #FFFFFF;
font-size: px2rem(28);
font-weight: 600;
}
ul {
width: px2rem(650);
margin: 0 auto;
li {
width: 100%;
height: px2rem(162);
background: #fff;
margin: px2rem(0) auto px2rem(18);
border-radius: px2rem(32);
box-sizing: border-box;
padding: 0 px2rem(18);
.left {
float: left;
width: px2rem(126);
.gold {
width: px2rem(44);
height: px2rem(44);
margin-top: px2rem(48);
display: block;
margin: px2rem(18) auto px2rem(2);
}
span {
display: block;
width: 100%;
text-align: center;
color: #313131;
font-size: px2rem(26);
font-weight: 600;
height: px2rem(36);
line-height: px2rem(36);
margin: 0 auto px2rem(6);
}
.get {
width: px2rem(104);
height: px2rem(38);
line-height: px2rem(38);
text-align: center;
color: #AFB1B3;
font-size: px2rem(24);
font-weight: 500;
border-radius: px2rem(38);
border: px2rem(2) solid #AFB1B3;
margin: 0 auto;
}
.getAct {
background: linear-gradient(270deg, #E29030 0%, #FCC074 100%);
border: none;
color: #fff;
}
.getOut {
background: #CDCED6;
border: none;
color: #fff;
}
}
.right {
float: right;
width: px2rem(466);
margin-top: px2rem(30);
.textTop {
width: 100%;
height: px2rem(34);
line-height: px2rem(34);
display: flex;
justify-content: space-between;
margin: 0 auto px2rem(16);
.l {
color: #313131;
font-size: px2rem(26);
font-weight: 500;
}
.r {
color: #7B7B7D;
font-size: px2rem(24);
font-weight: 400;
img {
display: inline-block;
width: px2rem(34);
height: px2rem(34);
margin: 0 px2rem(4);
}
}
}
.line {
width: 100%;
height: px2rem(16);
position: relative;
background: #FCD7B3;
border-radius: px2rem(16);
position: relative;
overflow: hidden;
.line_in {
width: 10%;
height: 100%;
background: #FF8C00;
position: absolute;
left: 0;
top: 0;
}
}
.speedOfProgress {
width: 100%;
display: flex;
justify-content: space-between;
margin-top: px2rem(6);
height: px2rem(34);
line-height: px2rem(34);
span,b {
color: #7B7B7D;
font-size: px2rem(24);
font-weight: 400;
}
}
}
}
}
}
.arabic {
.back .backIcon {
left: auto;
right: px2rem(32);
transform: rotate(180deg);
}
.back .why {
right: auto;
left: px2rem(32);
}
.box ul li .left{
float: right;
}
.box ul li .right{
float: left;
}
.box ul li .right .line .line_in{
left: auto;
right: 0;
}
}

View File

@@ -0,0 +1,53 @@
html,
body {
width: 100%;
background: #fff;
}
.back {
width: 100%;
height: 2.34667rem;
background: #fff;
position: fixed;
left: 0;
top: 0;
z-index: 2;
}
.back .backIcon {
width: 0.58667rem;
height: 0.58667rem;
position: absolute;
left: 0.42667rem;
top: 1.46667rem;
z-index: 2;
}
.back b {
width: 100%;
height: 0.58667rem;
line-height: 0.58667rem;
text-align: center;
position: absolute;
top: 1.46667rem;
left: 50%;
transform: translateX(-50%);
color: #313131;
font-size: 0.48rem;
font-weight: 600;
}
.text {
width: 9.14667rem;
margin: 2.61333rem auto 0.32rem;
color: #313131;
font-size: 0.37333rem;
font-weight: 500;
line-height: 0.53333rem;
}
img {
display: block;
width: 9.14667rem;
margin: 0 auto 0.4rem;
}

View File

@@ -0,0 +1,58 @@
@function px2rem($px) {
@return $px / 75+rem;
}
html,
body {
width: 100%;
// height: px2rem(1334);
background: #fff;
}
.back {
width: 100%;
height: px2rem(176);
background: #fff;
position: fixed;
left: 0;
top: 0;
z-index: 2;
.backIcon {
width: px2rem(44);
height: px2rem(44);
position: absolute;
left: px2rem(32);
top: px2rem(110);
z-index: 2;
}
b {
width: 100%;
height: px2rem(44);
line-height: px2rem(44);
text-align: center;
position: absolute;
top: px2rem(110);
left: 50%;
transform: translateX(-50%);
color: #313131;
font-size: px2rem(36);
font-weight: 600;
}
}
.text {
width: px2rem(686);
margin: px2rem(196) auto px2rem(24);
color: #313131;
font-size: px2rem(28);
font-weight: 500;
line-height: px2rem(40);
}
img {
display: block;
width: px2rem(686);
margin: 0 auto px2rem(30);
}

View File

@@ -22,9 +22,16 @@
<input disabled="true" type="text" placeholder="">
<span class="textConte2">修改</span>
</div>
<!-- 公会背景图 -->
<!-- 公会头像 -->
<h3 class="text55">公会头像</h3>
<div class="background backgrounds2">
<img src="./images/logo.png" alt="" class="">
<span class="textConte2">修改</span>
<input type="file" id="backImageUpload2" accept="image/*" onchange="fileChangeF2(event)" class="upload"
style="opacity: 0;">
</div>
<h3 class="text5">公会背景图</h3>
<div class="background">
<div class="background backgrounds">
<img src="./images/logo.png" alt="" class="">
<span class="textConte2">修改</span>
<input type="file" id="backImageUpload" accept="image/*" onchange="fileChangeF(event)" class="upload"
@@ -56,9 +63,10 @@
<script src="../../common/js/layer.js"></script>
<script src="../../common/js/vconsole.min.js"></script>
<script src="../../common/js/route-constant.js"></script>
<script src="./js/qiniu.min.js"></script>
<!-- <script src="./js/qiniu.min.js"></script> -->
<script src="./js/cos-js-sdk-v5.min.js"></script>
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./js/guildInfoSet.js?v=1.3"></script>
<script src="./js/guildInfoSet.js"></script>
<script src="../../common/local/langHandler.js"></script>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 B

View File

@@ -7,7 +7,7 @@
<title class="text1"></title>
<!-- 公会首页 -->
<link rel="stylesheet" href="../../common/css/reset.css">
<link rel="stylesheet" href="./css/index.css?v1.0">
<link rel="stylesheet" href="./css/index.css?v1.11">
</head>
<body>
@@ -20,6 +20,7 @@
<div class="header">
<img src="./images/header_ts.png" alt="" class="ts">
<img src="./images/logo.png" alt="" class="tx">
<div class="audit"></div>
<!-- 工会长昵称 -->
<div class="nick"></div>
<div class="id"></div>
@@ -87,6 +88,41 @@
</div>
</div>
</div>
<!-- weekly rewards -->
<div class="weeklyRewards">
<div class="top">
<span></span>
<b class="weeklyRewardsText1"></b>
<a href="./weeklyRewards.html"><img src="./images/youjiantou.png" alt=""></a>
</div>
<div class="weeklyRewards_in">
<img src="./images/rewardsTbg.png" alt="" class="topImg">
<div class="title weeklyRewardsText2"></div>
<div class="box">
<div class="left">
<img src="./images/coin.png" alt="" class="gold">
<span>0K</span>
<div class="get weeklyRewardsText3"></div>
</div>
<div class="right">
<div class="textTop">
<div class="l"><strong class="weeklyRewardsText4"></strong><b>1</b></div>
<div class="r">
<b class="b1">0</b>/<b class="b2">0</b><img src="./images/diamondss.png" alt="">
</div>
</div>
<div class="line">
<div class="line_in"></div>
</div>
<div class="speedOfProgress">
<span>0</span>
<b>0</b>
</div>
</div>
</div>
<div class="bottom weeklyRewardsText5"></div>
</div>
</div>
<!-- Agency level -->
<div class="agencylevel">
<div class="top">
@@ -152,5 +188,5 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./js/index.js?v=1.3"></script>
<script src="./js/index.js?v=1.11"></script>
<script src="../../common/local/langHandler.js"></script>

File diff suppressed because one or more lines are too long

View File

@@ -84,11 +84,11 @@ function listRank() {
var arr = generateUniqueRandomNumbers(6, 0, res.data.length - 1);
var currArr = res.data;
console.log(arr);
arr.forEach((val,i) => {
arr.forEach((val, i) => {
str += `
<li>
<div class="num">${i > 2 ? i + 1 : ''}</div>
${i <= 2 ? `<img src="./images/ts${i + 1}.png" class="ts">` : ''}
<img src="${currArr[val].owner.avatar}" alt="" class="tx">
<div class="user">
<p>${currArr[val].guildName}</p>
@@ -103,7 +103,7 @@ function listRank() {
str += `
<li>
<div class="num">${i > 2 ? i + 1 : ''}</div>
<img src="${i <= 2 ? `./images/ts${i + 1}.png` : './images/txK.png'}" alt="" class="ts">
${i <= 2 ? `<img src="./images/ts${i + 1}.png" class="ts">` : ''}
<img src="${res.owner.avatar}" alt="" class="tx">
<div class="user">
<p>${res.guildName}</p>

View File

@@ -84,6 +84,7 @@ function translateFun() {
$('.text3').text(langReplace(localLang.guildInfoSet.text3));
$('.text4').attr('placeholder', langReplace(localLang.guildInfoSet.text4));
$('.text5').text(langReplace(localLang.guildInfoSet.text5));
$('.text55').text(langReplace(localLang.guildInfoSet.text55));
$('.text6').text(langReplace(localLang.guildInfoSet.text6));
$('.text7').text(langReplace(localLang.guildInfoSet.text7));
$('.textConte2').text(langReplace(localLang.guildInfoSet.textConte2));
@@ -93,12 +94,64 @@ function translateFun() {
}
// 上傳图片接口
function getToken(file, type) {
showLoading()
networkRequest({
type: 'GET',
url: urlPrefix + '/tencent/cos/getToken',
success(res) {
if (res.code === 200) {
let cos = new COS({
SecretId: res.data.secretId,
SecretKey: res.data.secretKey,
SecurityToken: res.data.sessionToken,
StartTime: res.data.startTime,
ExpiredTime: res.data.expireTime,
});
console.log(cos);
var customDomain = res.data.customDomain;
cos.uploadFile({
Bucket: res.data.bucket, /* 填写自己的 bucket必须字段 */
Region: res.data.region, /* 存储桶所在地域,必须字段 */
Key: file.name, /* 存储在桶里的对象键(例如:1.jpga/b/test.txt图片.jpg支持中文必须字段 */
Body: file, // 上传文件对象
SliceSize: 1024 * 1024 * 5, /* 触发分块上传的阈值超过5MB使用分块上传小于5MB使用简单上传。可自行设置非必须 */
onProgress: function (progressData) {
console.log(JSON.stringify(progressData));
}
}).then(res => {
console.log('上传成功');
console.log(res);
if (type == 1) {//背景
setInfo(null, `${customDomain}/${file.name}`, function () { }, null);
$('.backgrounds img').attr('src', `${customDomain}/${file.name}`);
} else {
setInfo(null, null, function () { }, `${customDomain}/${file.name}`);
$('.backgrounds2 img').attr('src', `${customDomain}/${file.name}`);
}
}).catch(err => {
console.log('上传失败', err);
hideLoading(layerIndex)
toastMsg(err.message);
});
} else {
toastMsg(res.message)
}
// hideLoading(layerIndex)
},
error(err) {
hideLoading(layerIndex)
toastMsg(langReplace(localLang.demoModule.layerIndex3))
}
})
}
// 上傳图片接口
function getUploadToken() {
const backImage = document.getElementById('backImageUpload').files[0];
showLoading()
networkRequest({
type: 'GET',
url: urlPrefix + '/qiniu/upload/getUploadToken',
url: urlPrefiw,
success(res) {
if (res.code === 200) {
var frontImageKey = res.data.key;
@@ -128,21 +181,44 @@ function getUploadToken() {
}
})
}
function fileChangeF(e) {
var filesList = document.querySelector('#backImageUpload').files;
if (filesList.length == 0) {
// 上传公会头像
function fileChangeF2(e) {
var file = document.querySelector('#backImageUpload2').files[0];
console.log(1,file);
if (file.length == 0) {
return;
}
getUploadToken(2)
var fileType = file.type;
// 判断是否是动图
if (fileType == 'image/gif' || file.name.includes('.gif')) {
toastMsg(langReplace(localLang.guildInfoSet.toastMsgText1))
console.log(11);
} else {
getToken(file, 2)
}
}
// 上传公会背景
function fileChangeF(e) {
var file = document.querySelector('#backImageUpload').files[0];
console.log(file);
if (file.length == 0) {
return;
}
var fileType = file.type;
// 判断是否是动图
if (fileType == 'image/gif' || file.name.includes('.gif')) {
toastMsg(langReplace(localLang.guildInfoSet.toastMsgText1))
} else {
getToken(file, 1)
}
}
// 保存接口
function setInfo(name, backgroundUrl, fun) {
function setInfo(name, backgroundUrl, fun, avatar) {
showLoading()
networkRequest({
type: 'post',
url: urlPrefix + '/guild/setInfo',
data: { name, backgroundUrl },
data: { name, backgroundUrl, avatar },
success(res) {
if (res.code === 200) {
fun();

View File

@@ -90,6 +90,12 @@ function translateFun() {
$('.newtext5').text(langReplace(localLang.demoModule.newtext5));
$('.newtext6').text(langReplace(localLang.demoModule.newtext6));
$('.newtext7').text(langReplace(localLang.demoModule.newtext7));
$('.audit').text(langReplace(localLang.demoModule.audit));
$('.weeklyRewardsText1').text(langReplace(localLang.demoModule.weeklyRewardsText1));
$('.weeklyRewardsText2').text(langReplace(localLang.demoModule.weeklyRewardsText2));
$('.weeklyRewardsText3').text(langReplace(localLang.demoModule.weeklyRewardsText3));
$('.weeklyRewardsText4').text(langReplace(localLang.demoModule.weeklyRewardsText4));
$('.weeklyRewardsText5').text(langReplace(localLang.demoModule.weeklyRewardsText5));
}
// 判断公会身份函数
function guildFun(type) {
@@ -131,6 +137,9 @@ function get() {
if (res.code === 200) {
// 判断身份
roleTypes = res.data.roleType;
if (roleTypes == 1 && res.data.isReview == true) {
$('.audit').show();
}
guildFun(roleTypes);
if (res.data.wageEnable == false) {
$('.hmemberFlow2').hide()
@@ -165,8 +174,8 @@ function get() {
}
})
// 渲染基本信息
$('.header .tx').attr('src', res.data.me.avatar);
$('.header .nick').text(res.data.me.nick);
$('.header .tx').attr('src', res.data.avatar);
$('.header .nick').text(res.data.name);
guildNick = res.data.name;
backgroundUrl = res.data.backgroundUrl;
if (res.data.payAccount) {
@@ -175,7 +184,7 @@ function get() {
payPal = res.data.payAccount.payPal;
}
familyMemberId = res.data.familyMemberId;
$('.header .id').text('ID' + res.data.me.erbanNo);
$('.header .id').text('ID' + res.data.owner.erbanNo);
$('.header').css({ "background": `url(${res.data.backgroundUrl}) no-repeat`, "background-size": "cover" });
$('.header .guildNick').text(langReplace(localLang.demoModule.text11) + res.data.name);
// 处理成员
@@ -201,6 +210,58 @@ function get() {
`
});
$('.guildList ul').append(str);
// 渲染周奖励
if (res.data.weekLevelReward.dateRange && res.data.weekLevelReward.itemList[0]) {
$('.weeklyRewards .weeklyRewards_in .box .left span').text(unitProcessingAr(res.data.weekLevelReward.itemList[0].rewardNum, 2));
$('.weeklyRewards .weeklyRewards_in .box .right .textTop .l b').text(res.data.weekLevelReward.itemList[0].level);
$('.weeklyRewards .weeklyRewards_in .box .right .textTop .r .b1').text(res.data.weekLevelReward.itemList[0].processNum + res.data.weekLevelReward.itemList[0].preMaxNum);
$('.weeklyRewards .weeklyRewards_in .box .right .textTop .r .b2').text(res.data.weekLevelReward.itemList[0].maxNum);
$('.weeklyRewards .weeklyRewards_in .box .right .speedOfProgress span').text(res.data.weekLevelReward.itemList[0].preMaxNum);
$('.weeklyRewards .weeklyRewards_in .box .right .speedOfProgress b').text(res.data.weekLevelReward.itemList[0].maxNum);
var widthVal = ((res.data.weekLevelReward.itemList[0].processNum + res.data.weekLevelReward.itemList[0].preMaxNum) - (res.data.weekLevelReward.itemList[0].preMaxNum)) / (res.data.weekLevelReward.itemList[0].maxNum - res.data.weekLevelReward.itemList[0].preMaxNum) * 100
$('.weeklyRewards .weeklyRewards_in .box .right .line .line_in').css('width', `${widthVal}%`);
$('.weeklyRewards .weeklyRewards_in .box .left .get').attr('id', res.data.weekLevelReward.itemList[0].id);
if (res.data.weekLevelReward.itemList[0].status == 1) {
$('.weeklyRewards .weeklyRewards_in .box .left .get').addClass('getAct');
$('.weeklyRewards .weeklyRewards_in .box .left .get').attr('status', res.data.weekLevelReward.itemList[0].status);
}
if (res.data.weekLevelReward.itemList[0].status == 2) {
$('.weeklyRewards .weeklyRewards_in .box .left .get').addClass('getOut');
$('.weeklyRewards .weeklyRewards_in .box .left .get').text(langReplace(localLang.weeklyRewards.text5))
}
} else {
$('.weeklyRewards').hide();
}
} else {
toastMsg(res.message)
}
hideLoading(layerIndex)
},
error(err) {
hideLoading(layerIndex)
toastMsg(langReplace(localLang.demoModule.layerIndex3))
}
})
}
// 领取按钮
$('.weeklyRewards .weeklyRewards_in .box .left .get').click(function () {
var status = $(this).attr('status');
var id = $(this).attr('id');
if (status == 1) {
getReward(id);
}
})
function getReward(id) {
showLoading()
networkRequest({
type: 'post',
url: urlPrefix + '/guildMemberWeekLevelReward/getReward',
data: {
id,
},
success(res) {
if (res.code === 200) {
get();
} else {
toastMsg(res.message)
}

View File

@@ -0,0 +1,168 @@
let urlPrefix = getUrlPrefix()
let browser = checkVersion()
let env = EnvCheck();
if (env == 'test') {
new VConsole();
}
// 封裝layer消息提醒框
let layerIndex
var langReplace;
var localLang;
const showLoading = (content = langReplace(localLang.demoModule.layerIndex1)) => {
layer.open({
type: 2,
shadeClose: false,
content,
success(e) {
layerIndex = $(e).attr('index')
}
})
}
const hideLoading = (index) => {
layer.close(index)
}
const toastMsg = (content = langReplace(localLang.demoModule.layerIndex2), time = 2) => {
layer.open({
content,
time,
skin: 'msg'
})
}
var countupTime;//倒计时容器
var page = 0;
var maxPage = 0;
var arr = [];
var music = true;
var data;
var totalReward;
// 初始化函數
$(function () {
getInfoFromClient();
fuzzyMatchUpdateQueryStringParameterFun(); // 判断语言
setTimeout(function () {
// 頁面全屏
if (browser.app) {
if (browser.android) {
window.androidJsObj.initShowNav(false)
} else {
window.webkit.messageHandlers.initShowNav.postMessage(0)
}
};
// 頂部返回事件
$('.back .backIcon').click(() => {
window.history.back()
})
fuzzyMatchUpdateQueryStringParameterFun(); // 判断语言
langReplace = window.lang.replace;
localLang = window.lang;
translateFun();
getConfig();
}, 100)
})
function translateFun() {
var langReplace = window.lang.replace;
var localLang = window.lang;
$('.text1').text(langReplace(localLang.weeklyRewards.text1));
$('.text2').html(langReplace(localLang.weeklyRewards.text2));
$('.text3').text(langReplace(localLang.weeklyRewards.text3));
$('.text4').text(langReplace(localLang.weeklyRewards.text4));
$('.text5').text(langReplace(localLang.weeklyRewards.text5));
}
// 配置接口
function getConfig() {
$('.box ul li').remove();
$('.tab div').remove();
showLoading()
networkRequest({
type: 'get',
url: urlPrefix + '/guildMemberWeekLevelReward/get',
success(res) {
if (res.code === 200) {
data = res.data;
totalReward = res.data[0].totalReward;
var tabStr = '';
data.forEach(((res, i) => {
tabStr += `
<div class="${i == 0 ? 'act' : ''}">${res.dateRange}</div>
`
}))
$('.tab').append(tabStr);
ulFun(0);
// tab切换
$('.tab div').click(function () {
var i = $(this).index();
$(this).addClass('act').siblings().removeClass('act');
ulFun(i)
})
} else {
toastMsg(res.message)
}
hideLoading(layerIndex)
},
error(err) {
hideLoading(layerIndex)
toastMsg(langReplace(localLang.demoModule.layerIndex3))
}
})
}
function ulFun(index) {
$('.box ul li').remove();
var str = '';
data[index].itemList.forEach((res, i) => {
str += `
<li>
<div class="left">
<img src="./images/coin.png" alt="" class="gold">
<span>${unitProcessingAr(res.rewardNum, 2)}</span>
<div class="get ${res.status == 1 ? 'getAct' : res.status == 2 ? 'getOut' : ''}" id=${res.id} status=${res.status}>${res.status == 2 ? langReplace(localLang.weeklyRewards.text5) : langReplace(localLang.weeklyRewards.text3)}</div>
</div>
<div class="right">
<div class="textTop">
<div class="l">${langReplace(localLang.weeklyRewards.text4)}<b>${res.level}</b></div>
<div class="r">
<b class="b1">${res.processNum + res.preMaxNum}</b>/<b class="b2">${res.maxNum}</b><img src="./images/diamondss.png" alt="">
</div>
</div>
<div class="line">
<div class="line_in" style="width:${((res.processNum + res.preMaxNum) - (res.preMaxNum)) / (res.maxNum - res.preMaxNum) * 100}%"></div>
</div>
<div class="speedOfProgress">
<span>${res.preMaxNum}</span>
<b>${res.maxNum}</b>
</div>
</div>
</li>
`
})
$('.box ul').append(str);
}
function getReward(id) {
showLoading()
networkRequest({
type: 'post',
url: urlPrefix + '/guildMemberWeekLevelReward/getReward',
data: {
id,
},
success(res) {
if (res.code === 200) {
getConfig();
} else {
toastMsg(res.message)
}
hideLoading(layerIndex)
},
error(err) {
hideLoading(layerIndex)
toastMsg(langReplace(localLang.demoModule.layerIndex3))
}
})
}
// 领取按钮
$('.box ul').on('click', ' li .left .get', function () {
var status = $(this).attr('status');
var id = $(this).attr('id');
if (status == 1) {
getReward(id);
}
})

View File

@@ -0,0 +1,65 @@
let urlPrefix = getUrlPrefix()
let browser = checkVersion()
let env = EnvCheck();
if (env == 'test') {
new VConsole();
}
// 封裝layer消息提醒框
let layerIndex
var langReplace;
var localLang;
const showLoading = (content = langReplace(localLang.demoModule.layerIndex1)) => {
layer.open({
type: 2,
shadeClose: false,
content,
success(e) {
layerIndex = $(e).attr('index')
}
})
}
const hideLoading = (index) => {
layer.close(index)
}
const toastMsg = (content = langReplace(localLang.demoModule.layerIndex2), time = 2) => {
layer.open({
content,
time,
skin: 'msg'
})
}
var countupTime;//倒计时容器
var page = 0;
var maxPage = 0;
var arr = [];
var music = true;
// 初始化函數
$(function () {
getInfoFromClient();
fuzzyMatchUpdateQueryStringParameterFun(); // 判断语言
setTimeout(function () {
// 頁面全屏
if (browser.app) {
if (browser.android) {
window.androidJsObj.initShowNav(false)
} else {
window.webkit.messageHandlers.initShowNav.postMessage(0)
}
};
// 頂部返回事件
$('.back .backIcon').click(() => {
window.history.back()
})
fuzzyMatchUpdateQueryStringParameterFun(); // 判断语言
langReplace = window.lang.replace;
localLang = window.lang;
translateFun();
}, 100)
})
function translateFun() {
var langReplace = window.lang.replace;
var localLang = window.lang;
$('.text1').text(langReplace(localLang.weeklyRewardsRule.text1));
$('.text2').html(langReplace(localLang.weeklyRewardsRule.text2));
$('.text3').attr('src', langReplace(localLang.weeklyRewardsRule.text3));
}

View File

@@ -34,7 +34,14 @@ langAr = {
newtext6: "المستوى الحالي للنقابة:",
newtext7: "الترقية المطلوبة:",
coins: "عملات",
transfer_salary: "تحويل الراتب:"
transfer_salary: "تحويل الراتب:",
audit: 'قيد المراجعة',
weeklyRewardsText1: 'مكافآت المضيف الأسبوعية',
weeklyRewardsText2: 'يمكنك الحصول على 2240000 عملة بالمجموع.',
weeklyRewardsText3: 'احصل على',
weeklyRewardsText33: `تم الاستلام`,
weeklyRewardsText4: 'مستوى المضيف',
weeklyRewardsText5: 'وقت إعادة التعيين: الاثنين 0:00 (GMT+3)',
},
adminSet: {
text1: `إعدادات المشرف`,
@@ -82,6 +89,8 @@ langAr = {
textConte2: `تعديل `,
textConte3: `إضافة`,
textConte4: `حساب أستلام الراتب `,
text55: `صورة النقابة`,
toastMsgText1: `الرسوم المتحركة غير مدعومة للتحميل حاليًا`,
},
invitation: {
text1: `البحث`,
@@ -311,6 +320,20 @@ langAr = {
p4: `رمز SWIFT (أدخل الإنجليزية فقط)`,
p5: `اسم المستلم (أدخل الإنجليزية فقط)`,
p6: `العنوان (أدخل الإنجليزية فقط)`,
p7: `حساب المستلم (صيغة البريد الإلكتروني)`,
}
p7: `حساب المستلم (صيغة البريد الإلكتروني)`,
},
weeklyRewards: {
text1: `مكافآت المضيف الأسبوعية`,
text2: `يمكنك الحصول على <b>2240000</b> عملة بالمجموع.`,
text3: `احصل على`,
text4: `مستوى المضيف`,
text5: `تم الاستلام`,
},
weeklyRewardsRule: {
text1: `القواعد`,
text2: `<p>1 وقت النشاط: 0:00-23:59 (GMT+3) كل أسبوع.</p>
<p>2 مكافآت العملات: يتم حساب دخل المستخدم من الألماس أسبوعيًا، ويمكنك الحصول على العملات عند الوصول إلى مستوى معين.</p>
<p>3 تدرج مكافآت العملات</p>`,
text3: `./images/weeklyRewardsRule2-ar.png`,
},
}

Some files were not shown because too many files have changed in this diff Show More