From 31439c6034c5ed3da07aeb98a68d3ccf92855c1a Mon Sep 17 00:00:00 2001 From: chenruiye <862859104@qq.com> Date: Tue, 11 Mar 2025 16:19:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E4=BA=AB=E8=90=BD=E5=9C=B0=E9=A1=B5in?= =?UTF-8?q?stall?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../index.scssc | Bin 0 -> 2682 bytes .../molistar/activity/shortLink/css/index.css | 6 + .../activity/shortLink/css/index.scss | 9 + view/molistar/activity/shortLink/index.html | 38 ++ view/molistar/activity/shortLink/js/index.js | 493 ++++++++++++++++++ view/molistar/activity/shortLink/local/ar.js | 58 +++ view/molistar/activity/shortLink/local/en.js | 55 ++ view/molistar/activity/shortLink/local/tr.js | 56 ++ view/molistar/activity/shortLink/local/zh.js | 59 +++ 9 files changed, 774 insertions(+) create mode 100644 view/molistar/activity/shortLink/css/.sass-cache/1ba79c304c731985f563dc80f33d178b19fc9404/index.scssc create mode 100644 view/molistar/activity/shortLink/css/index.css create mode 100644 view/molistar/activity/shortLink/css/index.scss create mode 100644 view/molistar/activity/shortLink/index.html create mode 100644 view/molistar/activity/shortLink/js/index.js create mode 100644 view/molistar/activity/shortLink/local/ar.js create mode 100644 view/molistar/activity/shortLink/local/en.js create mode 100644 view/molistar/activity/shortLink/local/tr.js create mode 100644 view/molistar/activity/shortLink/local/zh.js diff --git a/view/molistar/activity/shortLink/css/.sass-cache/1ba79c304c731985f563dc80f33d178b19fc9404/index.scssc b/view/molistar/activity/shortLink/css/.sass-cache/1ba79c304c731985f563dc80f33d178b19fc9404/index.scssc new file mode 100644 index 0000000000000000000000000000000000000000..cdcb5ba7a0d1a9ec00a1f128f28380ec832c791a GIT binary patch literal 2682 zcmb_e-EP}96!yg++p-fUY0_j(I;c(p?5BDPfz;|+iqN(JB`Lw z|KgI?*~=@tP8-ywb*Dj3>u2=p?5b~mRuJg(7F7zNwqy*UpM(hC3Wt@^I_V9$>qzEz z@&Y}bH@X@5y^srE8?Gah_|#*~YAG0>O6D2Jc-@9gDhH}#Xy0d3-&RlZAWRN=PbH_e z%SyP=tmcEUfs1YQn2dafN!1gQIo)a4p!N}&C$$*oXa=by)G5U)%`zpq%xchMSQz7x6N&FCZE;!mKKK6jzO3Wwyz zC#t7ZlfD9S}-4L<~D2YJBr#|NDs6WG?kLN9!$A@H*@t_ob5X9zB*WP#r0@w&j3BHj?wcIBa68~D-O>Ji>1n|Oz8 z;RE>plQ~@Gu^+*>{jBmnBxEsnx-v)oYh| z(6XY|1LV$Gi0Mi_AiiW^fQuOCGZmi?}JqQCyplGuH&5~n2ss% zrA|HHtQw|1RN!x?N#d(%HVJMRrEa*6zgu;tmVsIC^y=Z6NiF+C#W-~{x5~V%n3;Gb zSd~&Pz(`PA@f=VPZo14>dMibsiLikSngixNcfw&bOUKYAd{lq|#LuHCD>mx&nNGC&R==;2&aeDmLwX7)Sxv{|bZ-ZQFi`(Aok*Yku7jS{A$t^kr+ohE=mJ&#iAPP;P8~GR>LxM3xZ^ hk);`j!EpvWvNXopCBhk=MoF4+{~l_hk=E8|{|nL4&b9ym literal 0 HcmV?d00001 diff --git a/view/molistar/activity/shortLink/css/index.css b/view/molistar/activity/shortLink/css/index.css new file mode 100644 index 00000000..40da3843 --- /dev/null +++ b/view/molistar/activity/shortLink/css/index.css @@ -0,0 +1,6 @@ +html, +body { + width: 100%; + background: #bbb; } + +/*# sourceMappingURL=index.css.map */ diff --git a/view/molistar/activity/shortLink/css/index.scss b/view/molistar/activity/shortLink/css/index.scss new file mode 100644 index 00000000..a8911d20 --- /dev/null +++ b/view/molistar/activity/shortLink/css/index.scss @@ -0,0 +1,9 @@ +@function px2rem($px) { + @return $px / 75 + rem; +} + +html, +body { + width: 100%; + background: #bbb; +} diff --git a/view/molistar/activity/shortLink/index.html b/view/molistar/activity/shortLink/index.html new file mode 100644 index 00000000..f8e77200 --- /dev/null +++ b/view/molistar/activity/shortLink/index.html @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + +
+ 测试 +
+ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/view/molistar/activity/shortLink/js/index.js b/view/molistar/activity/shortLink/js/index.js new file mode 100644 index 00000000..64f71114 --- /dev/null +++ b/view/molistar/activity/shortLink/js/index.js @@ -0,0 +1,493 @@ +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 loadedCount = 0; // 已加載的數據數量 +var pageSize = 7; // 每次加載的數據數量 +var listTo3 = []; +var notListTo3 = []; // 每次加載的數據數量 +// 初始化函數 +$(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(); + getInit(); + getHisRank() + // render() + }, 100) + +}) + +function translateFun() { + var langReplace = window.lang.replace; + var localLang = window.lang; + $('.header .receive').html(langReplace(localLang.demoModule.receive)); + $('.coins_pop .btn').html(langReplace(localLang.demoModule.receive)); + $('.text1').html(langReplace(localLang.demoModule.text1)); + $('.text2').html(langReplace(localLang.demoModule.text2)); + $('.text3').html(langReplace(localLang.demoModule.text3)); + $('.text4').html(langReplace(localLang.demoModule.text4)); + $('.text5').html(langReplace(localLang.demoModule.text5)); + $('.text55').html(langReplace(localLang.demoModule.text55)); + $('.text6').html(langReplace(localLang.demoModule.text6)); + $('.text7').html(langReplace(localLang.demoModule.text7)); + $('.text8').html(langReplace(localLang.demoModule.text8)); + $('.text9').html(langReplace(localLang.demoModule.text9)); + $('.text10').html(langReplace(localLang.demoModule.text10)); + $('.text11').html(langReplace(localLang.demoModule.text11)); + $('.text12').html(langReplace(localLang.demoModule.text12)); + // $('.text13').html(langReplace(localLang.demoModule.text13)); + // $('.text14').html(langReplace(localLang.demoModule.text14)); + $('.text15').html(langReplace(localLang.demoModule.text15)); + $('.text16').html(langReplace(localLang.demoModule.text16)); + $('.text17').html(langReplace(localLang.demoModule.text17)); + $('.text18').html(langReplace(localLang.demoModule.text18)); + $('.text19').html(langReplace(localLang.demoModule.text19)); + $('.text20').html(langReplace(localLang.demoModule.text20)); + $('.more').html(langReplace(localLang.demoModule.more)); + $('.gift').attr('src', langReplace(localLang.demoModule.gift)); + if (browser.ios) { + $('.bottomText').text(langReplace(localLang.demoModule.text12)) + } else { + $('.bottomText').text(langReplace(localLang.demoModule.text122)) + } +} + +var jackpotNum = null // 可领取奖金 0不能领取 大于0可领取 小于0已领取 +var jackpotPool = 0 //奖池金币数 +var countdownSecond = 0 //本周倒计时秒数 +function getInit() { + showLoading() + networkRequest({ + type: 'get', + url: urlPrefix + '/miniGame/weekJackpotRank/getRank', + success(res) { + if (res.code === 200) { + // 处理倒计时 + countdownSecond = res.data.countdownSecond; + countTime(); + // 处理奖金 + jackpotNum = res.data.jackpot || 0; + $('.coins_pop .text b').html(Math.abs(jackpotNum).toLocaleString()); + if (jackpotNum <= 0) { + $('.header .receive').html(langReplace(localLang.demoModule.done)); + $('.header .receive').addClass('done'); + $('.coins_pop .btn').html(langReplace(localLang.demoModule.done)); + $('.coins_pop .btn').addClass('done'); + } + if (jackpotNum !== 0) { + $('.header .coin_bg').show() + $('.header .receive').show() + } + jackpotPool = res.data.jackpotPool.toLocaleString(); + $(window).scroll(function () { + if (($("#dataNums").offset().top - $(window).scrollTop()) < $(window).height()) { + $("#dataNums").rollNum({ + deVal: jackpotPool + }); + }; + }); + // 处理榜单 + let rankList = res.data.rankList; + listTo3 = rankList.slice(0, 3); + notListTo3 = rankList.slice(3); + // 处理前三 + if (listTo3.length < 3) { + let arr = new Array(3 - listTo3.length).fill({ + avatar: './images/null.png', + nick: langReplace(localLang.demoModule.waiting), + erbanNo: null, + score: null + }) + listTo3.push(...arr) + } + let prevScore = null; // 记录上一名的score + listTo3.forEach((res, i) => { + $(`.page1 .top .top${i + 1} .tx`).attr('src', res.avatar); + $(`.page1 .top .top${i + 1} .name`).html(res.nick); + $(`.page1 .top .top${i + 1} .icon`).attr('src', res.vipLevel ? `./images/vip/${res.vipLevel}.png` : ''); + $(`.page1 .top .top${i + 1} .id`).html('ID:' + res.erbanNo); + // 计算当前与上一名的差值 + let diff = prevScore !== null ? prevScore - res.score : 0; // 计算差值 + prevScore = res.score; // 更新上一名的分数 + $(`.page1 .top .top${i + 1} .score b`).html(langReplace(localLang.demoModule.Behind) + unitProcessingAr((diff), 2)); + if (res.erbanNo == null) { + $(`.page1 .top .top${i + 1} .icon`).hide(); + $(`.page1 .top .top${i + 1} .id`).hide(); + $(`.page1 .top .top${i + 1} .score`).hide(); + } + if (res.vipLevel == 0) { + $(`.page1 .top .top${i + 1} .icon`).hide() + } + }) + // 非前三 + loadMore(); + // 处理自己榜单数据 + var my = res.data.meRank; + $('.page1 .my .tx').attr("src", my.avatar); + $('.page1 .my .num').text(my.ranking == 0 ? '30+' : my.ranking); + $('.page1 .my .info p').text(my.nick); + $('.page1 .my .icon').attr('src', `./images/vip/${my.vipLevel}.png`); + $('.page1 .my .info span').text(`ID:${my.erbanNo}`); + if (my.ranking == 0) { + let lastScore = rankList[rankList.length - 1].score; + $('.page1 .my .score b').text(langReplace(localLang.demoModule.Behind) + unitProcessingAr(lastScore - my.score, 2)); + } else if(my.ranking == 1){ + $('.page1 .my .score').hide(); + }else { + let lastScore = rankList[my.ranking - 2].score; + console.log('lastScore', lastScore); + $('.page1 .my .score b').text(langReplace(localLang.demoModule.Behind) + unitProcessingAr((lastScore - my.score), 2)); + } + if (my.vipLevel == 0) { + $('.page1 .my .icon').hide(); + } + + } else { + toastMsg(res.message) + } + hideLoading(layerIndex) + }, + error(err) { + hideLoading(layerIndex) + toastMsg(langReplace(localLang.demoModule.layerIndex3)) + } + }) +} + +// 加載數據函數 +function loadMore() { + // 計算加載範圍 + pageSize = loadedCount == 0 ? 7 : 10; + const nextItems = notListTo3.slice(loadedCount, loadedCount + pageSize); + let str = ''; + // 拼接 HTML + let prevScore = loadedCount == 0 ? listTo3[2].score : notListTo3[loadedCount - 1].score; + nextItems.forEach((res, i) => { + // 计算当前与上一名的差值 + let diff = prevScore - res.score; + prevScore = res.score; + str += ` +
  • +
    ${res.ranking}
    + + +
    +

    ${res.nick}

    + ID:${res.erbanNo} +
    +
    + ${langReplace(localLang.demoModule.Behind) + unitProcessingAr(diff, 2)} + +
    +
  • + ` + }) + // 將數據插入到列表中 + $('.page1 .content ul').append(str); + // 更新已加載的數據數量 + loadedCount += nextItems.length; + // 如果數據全部加載完成,隱藏按鈕 + console.log(loadedCount >= notListTo3.length); + console.log(notListTo3.length); + if (loadedCount >= notListTo3.length) { + $('.page1 .content .more').hide(); + } +} +// 綁定按鈕點擊事件 +$('.page1 .content .more').click(function () { + loadMore(); +}) + +// 获取历史排行榜 +function getHisRank() { + showLoading() + networkRequest({ + type: 'get', + url: urlPrefix + '/miniGame/weekJackpotRank/listHistory', + success(res) { + if (res.code === 200) { + // 处理榜单 + let hisRank = res.data; + if (hisRank.length == 0) { + $(".page2 .content .box").append(``); + } else { + hisRank.forEach(function (weekData) { + var historyHtml = ` +
    +
    + + ${weekData.startDate} - ${weekData.endDate} + +
    +
      + `; + + // 遍历 rankList 生成排名列表 + weekData.rankList.forEach(user => { + historyHtml += ` +
    • + + +

      ${user.nick}

      +

      ID: ${user.erbanNo}

      +
      + ${langReplace(localLang.demoModule.win)} ${unitProcessingAr(user.jackpot,2)} + +
      +
    • + `; + }) + + historyHtml += ` +
    +
    + `; + + // 添加到容器 + $(".page2 .content .box").append(historyHtml); + }); + + } + + } else { + toastMsg(res.message) + } + hideLoading(layerIndex) + }, + error(err) { + hideLoading(layerIndex) + toastMsg(langReplace(localLang.demoModule.layerIndex3)) + } + }) +} +var hisRank = [ + { + endDate: "03/01/2024", + partitionId: 1, + rankList: [ + { + avatar: "./images/null.png", + erbanNo: "12345", + gender: "male", + jackpot: 5000, + nick: "User1", + rank: 1, + uid: "UID123", + vipLevel: 0 + }, + { + avatar: "./images/null.png", + erbanNo: "67890", + gender: "female", + jackpot: 4000, + nick: "User2", + rank: 2, + uid: "UID456", + vipLevel: 0 + } + ], + startDate: "01/01/2024" + }, + { + endDate: "10/01/2024", + partitionId: 2, + rankList: [ + { + avatar: "./images/null.png", + erbanNo: "54321", + gender: "male", + jackpot: 7000, + nick: "User3", + rank: 1, + uid: "UID789", + vipLevel: 0 + } + ], + startDate: "08/01/2024" + } +]; + +// 领取金币 +function getJackpot() { + showLoading() + networkRequest({ + type: 'post', + url: urlPrefix + '/miniGame/weekJackpotRank/getJackpot', + success(res) { + if (res.code === 200) { + $('.header .receive').html(langReplace(localLang.demoModule.done)); + $('.header .receive').addClass('done'); + $('.coins_pop .btn').html(langReplace(localLang.demoModule.done)); + $('.coins_pop .btn').addClass('done'); + $(`.coins_pop .fadein`).show() + $(`.coins_pop .fadein`).addClass('animate__bounceInRight') + setTimeout(() => { + svgaFun() + }, 1000); + jackpotNum = -Math.abs(jackpotNum) + } else { + toastMsg(res.message) + } + hideLoading(layerIndex) + }, + error(err) { + hideLoading(layerIndex) + toastMsg(langReplace(localLang.demoModule.layerIndex3)) + } + }) +} + +// tab切换 +$('.tab div').click(function () { + var i = $(this).index() + 1; + $('.page1,.page2').hide(); + $(`.page${i}`).show(); + $(this).addClass('act'); + $(this).siblings().removeClass('act'); + if (i == 1) { + $('.bottomText').css('margin', '0.66667rem auto 2.4rem'); + } else { + $('.bottomText').css('margin', '0.66667rem auto 0.66667rem'); + } +}) +// 打开规则 +$('.rule').click(function () { + $('.text13').html(langReplace(localLang.demoModule.text13)); + $('.text14').html(langReplace(localLang.demoModule.text14)); + $('.rules').show(); + bodyScroolFun(true); +}) +// 关闭规则 +$('.rules .rule_in .close').click(function () { + $('.rules').hide(); + bodyScroolFun(false); +}) + +$(".coins_pop .close").click(function () { + $('.coins_pop').hide(); + $(`.coins_pop .fadein`).hide() + $(`.coins_pop .fadein`).removeClass('animate__bounceInRight'); + bodyScroolFun(false); +}) +$(".header .receive").click(function () { + bodyScroolFun(false); + $('.coins_pop').show(); + +}) +$(".coins_pop .btn").click(function () { + if (jackpotNum != 0) { + getJackpot() + } + +}) + +// 查看奖励 +$(".page1 .rewards").click(function () { + $('.text13').html(langReplace(localLang.demoModule.rewards)); + $('.text14').html(langReplace(localLang.demoModule.text144)); + $('.rules').show(); + bodyScroolFun(false); +}) + +// 播放svga +function svgaFun() { + // $(`.svga`).hide(); + let player1 = new SVGA.Player(`.svga .svga_in`); + let parser1 = new SVGA.Parser(`.svga .svga_in`); + parser1.load(`./images/coins.svga`, function (videoItem) { + player1.loops = 1; + player1.clearsAfterStop = false; + player1.setVideoItem(videoItem); + player1.startAnimation(); + player1.setContentMode('AspectFill') + // player1.onFrame((frame) => { + // if (frame == 1) { + // draw() + // } + // }) + player1.onFinished(() => { + // $(`.svga`).hide(); + }) + }) +} + +// 倒计时函数 +let time = null; +function countTime() { + clearTimeout(time); + + if (countdownSecond <= 0) { + console.log("倒计时结束"); + clearTimeout(time); + return; + } + + // 计算 d, h, m, s + let d = Math.floor(countdownSecond / 86400); // 1天 = 86400秒 + let h = Math.floor((countdownSecond % 86400) / 3600); + let m = Math.floor((countdownSecond % 3600) / 60); + let s = countdownSecond % 60; + + // 更新页面元素 + $(".page1 .timeBox .days span").html(d < 10 ? "0" + d : d); + $(".page1 .timeBox .hours span").html(h < 10 ? "0" + h : h); + $(".page1 .timeBox .mins span").html(m < 10 ? "0" + m : m); + $(".page1 .timeBox .secs span").html(s < 10 ? "0" + s : s); + + // 递减秒数 + countdownSecond--; + + // 递归调用 + time = setTimeout(countTime, 1000); +} + +// 启动倒计时 +countTime(); diff --git a/view/molistar/activity/shortLink/local/ar.js b/view/molistar/activity/shortLink/local/ar.js new file mode 100644 index 00000000..999839b7 --- /dev/null +++ b/view/molistar/activity/shortLink/local/ar.js @@ -0,0 +1,58 @@ +// 阿拉伯 +langAr = { + // 模块 + demoModule: { + layerIndex1: "جارٍ التحميل...", + layerIndex2: "نجاح", + layerIndex3: "خطأ في الشبكة", + text1: "تحدي اللعبة الفائق", + text2: "مرحبًا بك في \"تحدي اللعبة الفائق\"! خلال الحدث، يجمع المشاركون النقاط من خلال المشاركة في الألعاب. كلما زادت نقاطك، زاد استثمارك، وزادت المكافآت التي تحصل عليها. سيحصل أولئك الذين يؤدون أداءً جيدًا على ترتيب شرفي، ويتمتعون بمكانة مرموقة، ويحصلون على فرصة للفوز بجائزة رائعة!", + text3: "القواعد", + text4: "مخزون العملات", + text5: "يتم التحديث كل 5 دقائق", + text55: "يجب المطالبة بالعملات خلال 7 أيام، وإلا ستصبح غير صالحة.", + text6: "أيام", + text7: "ساعات", + text8: "دقائق", + text9: "ثوانٍ", + text10: "الترتيب", + text11: "السجل", + text12: "هذا الحدث ليس له أي علاقة بشركة Apple.", + text122: "هذا الحدث ليس له أي علاقة بشركة Google.", + text13: "القواعد", + text14: `1. مدة الحدث +

    الفترة: يبدأ كل يوم اثنين الساعة 00:00 وينتهي يوم الأحد الساعة 23:59.

    +

    الوصف: فقط الذين يشاركون في ألعاب الحدث خلال الفترة المحددة يمكنهم كسب النقاط والعملات وإضافتها إلى مخزون العملات.

    + 2. المشاركة في الألعاب وآلية المكافآت +

    اكتساب النقاط: يتم الحصول على نقطة واحدة مقابل كل عملة واحدة يتم استثمارها في اللعبة.

    +

    استثمار العملات ومخزون العملات: عند استثمار 1000 عملة، يقوم النظام بسحب عشوائي بين 1 إلى 10 عملات وإضافتها إلى مخزون العملات لهذا الأسبوع. مما يعني أنه كلما زاد استثمار اللاعبين، زاد حجم المخزون.

    + 3. ترتيب النقاط +

    أساس الترتيب: يعتمد الترتيب على النقاط التي يجمعها اللاعبون خلال الحدث.

    +

    أهلية المكافأة: في نهاية الحدث، يكون المستخدمون العشرة الأوائل في الترتيب مؤهلين لتقاسم العملات في المخزون.

    +

    تكرار التحديث: يتم تحديث الترتيب يوميًا، ويمكن للاعبين التحقق من ترتيبهم في أي وقت.

    + 4. آلية توزيع مخزون العملات +

    مبدأ التوزيع: يتم توزيع العملات في المخزون على أفضل 10 مستخدمين بناءً على نسبة استثماراتهم خلال الحدث. أي أنه كلما زاد استثمارك، زادت حصتك من المكافأة.

    +

    وقت التسوية: يتم تسوية العملات الخاصة بالأسبوع السابق في الساعة 00:30 من يوم الاثنين. يجب المطالبة بالعملات خلال 7 أيام وإلا ستعتبر غير صالحة.

    + 5. ملاحظات +

    جميع حقوق تفسير هذا الحدث تعود إلى المنصة، وليس له أي علاقة بـ Google/Apple.

    `, + text144: ``, + rewards: "المكافآت", + receive: "استلام", + done: "تم", + Behind: "خلف", + win: `الفوز`, + more: "المزيد", + month: "شهر", + day: "يوم", + waiting: "في الانتظار", + text15: `يعرض الترتيب فقط أفضل 10 مستخدمين في السجل.
    + (بغض النظر عما إذا كانوا قد حصلوا على العملات أم لا)`, + text16: "تم إرسال العملات إلى محفظتك!", + text17: "تهانينا", + text18: "تهانينا! لقد حصلت على", + text19: "يجب المطالبة بالعملات خلال 7 أيام، وإلا ستصبح غير صالحة.", + text20: "عرض جميع المكافآت", + gift: "./images/gift-ar.png", + } + +} \ No newline at end of file diff --git a/view/molistar/activity/shortLink/local/en.js b/view/molistar/activity/shortLink/local/en.js new file mode 100644 index 00000000..13b0f2c4 --- /dev/null +++ b/view/molistar/activity/shortLink/local/en.js @@ -0,0 +1,55 @@ +langEn = { + demoModule: { + layerIndex1: `Loading...`, + layerIndex2: `Success`, + layerIndex3: `Network error`, + text1: `Super game challenge`, + text2: `Welcome to the "Super Game Challenge"! During the event, participants accumulate points by participating in games.The more points you have, the more you invest, and the more rewards you get. Those who perform well will also be on the honor ranking, enjoy a distinguished ranking, and have the opportunity to win an enviable prize!`, + text3: `Rule`, + text4: `Coins Pool`, + text5: `Update every 5 minutes`, + text55: `The coins must be claimed within 7 days. Otherwise, they will be invalid.`, + text6: `Days`, + text7: `Hours`, + text8: `Mins`, + text9: `Secs`, + text10: `Ranking`, + text11: `History`, + text12: `Event has nothing to do with Apple.`, + text122: `Event has nothing to do with Google.`, + text13: `Rules`, + text14: `1. Activity Time +

    Period: Every Monday 00:00 starts and ends at Sunday 23:59.

    +

    Description: Only those who participate in the games of the activity within the specified time period can get points and coins to enter the coins pool.

    + 2. Game Participation and Reward Mechanism +

    Points Acquisition: 1 point can be obtained for every 1 coin invested in the game.

    +

    Coin investment and coins pool: Each time you invest 1,000 coins, the system will randomly draw 1 to 10 coins and add them to the coins pool for this week. This means that the more players invest, the more the bonus pool will accumulate.

    + 3. Points ranking +

    Ranking basis: Ranking based on the points accumulated by players during the event.

    +

    Reward qualification: At the end of the actibity, the top 10 users on the points ranking are eligible to share the coins in the coins pool.

    +

    Update frequency: The ranking is updated daily, and players can check their ranking at any time.

    + 4. Coins pool division logic +

    Distribution principle: The coins in the coins pool will be distributed to the Top 10 users according to the total investment ratio of the top 10 players during the activity. That is, the more you invest, the greater the proportion, and thus you can share more bonuses.

    +

    Settlement time: 00:30 on Monday to settle the coins of the previous week. Coins must be claimed within 7 days, otherwise they will be deemed invalid.

    + 5. Notes +

    All interpretation rights of this activity belong to the platform and have nothing to do with Google/Apple

    `, + text144: ``, + rewards: `Rewards`, + receive: `Receive`, + done: `Done`, + Behind: `Behind`, + win: `Win`, + more: 'More', + month: 'Month', + day: 'Day', + waiting: 'Waiting', + text15: `Ranking only shows theTop10 users in the history.
    + (Regardless of whether they have received coins)`, + text16: `Coins have been sent to your wallet!`, + text17: `Congratulations`, + text18: `Congratulations on Getting`, + text19: `The coins must be claimed within 7 days. Otherwise, they will be invalid.`, + text20: `View all Rewards`, + gift: "./images/gift.png", + }, +} diff --git a/view/molistar/activity/shortLink/local/tr.js b/view/molistar/activity/shortLink/local/tr.js new file mode 100644 index 00000000..ba514623 --- /dev/null +++ b/view/molistar/activity/shortLink/local/tr.js @@ -0,0 +1,56 @@ +langTr = { + demoModule: { + layerIndex1: "Yükleniyor...", + layerIndex2: "Başarılı", + layerIndex3: "Ağ hatası", + text1: "Süper Oyun Mücadelesi", + text2: "\"Süper Oyun Mücadelesi\"ne hoş geldiniz! Etkinlik süresince katılımcılar oyunlara katılarak puan toplar. Ne kadar çok puanınız olursa, o kadar çok yatırım yaparsınız ve daha fazla ödül kazanırsınız. İyi performans gösterenler onur sıralamasında yer alacak, prestijli bir konuma sahip olacak ve kıskanılacak ödülleri kazanma şansı elde edecek!", + text3: "Kurallar", + text4: "Jeton Havuzu", + text5: "Her 5 dakikada bir güncellenir", + text55: "Jetonlar 7 gün içinde talep edilmelidir, aksi takdirde geçersiz hale gelir.", + text6: "Gün", + text7: "Saat", + text8: "Dakika", + text9: "Saniye", + text10: "Sıralama", + text11: "Geçmiş", + text12: "Etkinliğin Apple ile hiçbir ilgisi yoktur.", + text122: "Etkinliğin Google ile hiçbir ilgisi yoktur.", + text13: "Kurallar", + text14: `1. Etkinlik Süresi +

    Dönem: Her Pazartesi 00:00'da başlar ve Pazar 23:59'da sona erer.

    +

    Açıklama: Belirtilen süre içinde etkinlik oyunlarına katılanlar puan ve jeton kazanarak jeton havuzuna ekleyebilir.

    + 2. Oyun Katılımı ve Ödül Mekanizması +

    Puan Kazanımı: Oyunda yatırılan her 1 jeton için 1 puan kazanılır.

    +

    Jeton yatırımı ve jeton havuzu: Her 1.000 jeton yatırıldığında, sistem rastgele 1 ila 10 jeton çeker ve o haftanın jeton havuzuna ekler. Bu, oyuncuların yatırımı arttıkça ödül havuzunun büyüyeceği anlamına gelir.

    + 3. Puan Sıralaması +

    Sıralama Kriteri: Etkinlik boyunca oyuncuların topladığı puanlara göre sıralama yapılır.

    +

    Ödül Hakkı: Etkinlik sonunda, puan sıralamasındaki ilk 10 kullanıcı jeton havuzundaki jetonları paylaşmaya hak kazanır.

    +

    Güncelleme Sıklığı: Sıralama günlük olarak güncellenir ve oyuncular sıralamalarını istedikleri zaman kontrol edebilirler.

    + 4. Jeton Havuzu Dağıtım Mantığı +

    Dağıtım İlkesi: Jeton havuzundaki jetonlar, etkinlik süresince en çok yatırım yapan ilk 10 oyuncunun toplam yatırım oranına göre dağıtılır. Yani, ne kadar çok yatırım yaparsanız, o kadar büyük bir pay alırsınız.

    +

    Ödeme Zamanı: Önceki haftanın jetonları Pazartesi günü saat 00:30'da ödenir. Jetonlar 7 gün içinde talep edilmelidir, aksi takdirde geçersiz sayılır.

    + 5. Notlar +

    Bu etkinliğin tüm yorumlama hakları platforma aittir ve Google/Apple ile ilgisi yoktur.

    `, + text144: ``, + rewards: "Ödüller", + receive: "Al", + done: "Tamamlandı", + Behind: "Geride", + win: `Kazan`, + more: "Daha fazla", + month: "Ay", + day: "Gün", + waiting: "Bekleniyor", + text15: `Sıralama yalnızca geçmişteki en iyi 10 kullanıcıyı gösterir.
    + (Jeton alıp almadıklarına bakılmaksızın)`, + text16: "Jetonlar cüzdanınıza gönderildi!", + text17: "Tebrikler", + text18: "Şunu Kazandınız", + text19: "Jetonlar 7 gün içinde talep edilmelidir, aksi takdirde geçersiz hale gelir.", + text20: "Tüm Ödülleri Görüntüle", + gift: "./images/gift-tr.png", + } + +} \ No newline at end of file diff --git a/view/molistar/activity/shortLink/local/zh.js b/view/molistar/activity/shortLink/local/zh.js new file mode 100644 index 00000000..7c3dd93d --- /dev/null +++ b/view/molistar/activity/shortLink/local/zh.js @@ -0,0 +1,59 @@ +// 中文 +langZh = { + // 模塊 + demoModule: { + layerIndex1: "加载中...", + layerIndex2: "成功", + layerIndex3: "网络错误", + text1: "超级游戏挑战", + text2: "欢迎来到“超级游戏挑战”!在活动期间,参与者通过参加游戏累积积分。积分越多,投入越多,获得的奖励就越多。表现优秀的玩家还将登上荣誉排行榜,享受尊贵排名,并有机会赢得令人羡慕的奖品!", + text3: "规则", + text4: "金币池", + text5: "每5分钟更新一次", + text55: "金币需在7天内领取,否则将失效。", + text6: "天", + text7: "小时", + text8: "分钟", + text9: "秒", + text10: "排行榜", + text11: "历史记录", + text12: "活动与 Apple 无关。", + text122: "活动与 Google 无关。", + text13: "活动规则", + text14: `1. 活动时间 +

    周期: 每周一00:00开始,周日23:59结束。

    +

    说明: 只有在规定时间内参与活动游戏的用户,才能获得积分和金币,并将其计入金币池。

    + 2. 游戏参与与奖励机制 +

    积分获取: 每投入1枚金币可获得1点积分。

    +

    金币投入与金币池: 每投入1000枚金币,系统将随机抽取1到10枚金币,并加入本周的金币池。这意味着玩家投入越多,奖金池累积越多。

    + 3. 积分排行榜 +

    排名依据: 根据玩家在活动期间累积的积分进行排名。

    +

    奖励资格: 活动结束后,排行榜前10名的用户有资格瓜分金币池中的金币。

    +

    更新频率: 排行榜每日更新,玩家可随时查看自己的排名。

    + 4. 金币池分配规则 +

    分配原则: 金币池中的金币将根据前10名玩家的总投入比例进行分配。投入越多,所占比例越大,因此可获得的奖金也越多。

    +

    结算时间: 每周一00:30结算上一周的金币。金币需在7天内领取,否则将视为无效。

    + 5. 备注 +

    本活动的最终解释权归平台所有,与 Google/Apple 无关。

    `, + text144: ``, + rewards: "奖励", + receive: "领取", + done: "完成", + Behind: "落后", + win: `赢得`, + more: "更多", + month: "月", + day: "日", + waiting: "等待中", + text15: `排行榜仅显示历史前10名用户。
    + (无论是否领取金币)`, + text16: "金币已发放至您的钱包!", + text17: "恭喜", + text18: "恭喜获得", + text19: "金币需在7天内领取,否则将失效。", + text20: "查看所有奖励", + gift: "./images/gift.png", + + } + +} \ No newline at end of file