-
+
- 钻石榜
- 今日歐皇榜
+ 今日礼物榜
+ 今日欧皇榜
-
+
-
+
-
+
-
+
-
![]()
+
@@ -161,12 +162,12 @@
-
钻石不足
+
碎片不足

-
當前钻石不足
+
当前碎片不足,购买头像框获取碎片
@@ -178,7 +179,7 @@
-
+
\ No newline at end of file
diff --git a/view/peko/activity/act-ocean/js/index.js b/view/peko/activity/act-ocean/js/index.js
index bab74e3..881aba4 100644
--- a/view/peko/activity/act-ocean/js/index.js
+++ b/view/peko/activity/act-ocean/js/index.js
@@ -6,17 +6,17 @@ if (env == 'test') {
new VConsole();
}
-let lock = false //防止用户暴力点击加的锁
+let lock = false //防止用戶暴力點擊加的鎖
-// 封装layer消息提醒框
+// 封裝layer消息提醒框
let layerIndex
-const showLoading = (content = '加载中...') => {
+const showLoading = (content = '加載中...') => {
layer.open({
type: 2,
shadeClose: false,
content,
- success (e) {
+ success(e) {
layerIndex = $(e).attr('index')
}
})
@@ -32,99 +32,80 @@ const toastMsg = (content = '操作完成', time = 2) => {
})
}
-if (!browser.app) {//
+if(!browser.app){
toastMsg('請在app內打開!');
-} else {
+}else{
$('.wrap').removeClass('no-in-app')
- if (browser.ios) {window.webkit.messageHandlers.getChannel.postMessage(null);}
}
-// 获取用户相关信息
+// 獲取用戶相關信息
let myFragment
const getUserInfo = (param) => {
networkRequest({
type: 'GET',
url: urlPrefix + '/act/luckySea/getUserActInfo',
- success (res) {
- if (res.code === 200) {
+ success(res){
+ if(res.code === 200){
$('.info-bottom').find('.avatar img').attr('src', res.data.avatar)
-
- if (res.data.todayReward.toString().length >= 5) {
- res.data.todayReward = (res.data.todayReward / 10000).toFixed(2) + 'W'
+
+ if(res.data.todayReward.toString().length >= 5) {
+ res.data.todayReward = (res.data.todayReward/10000).toFixed(2) + 'w'
}
- $('.info-bottom').find('.award span').html(res.data.todayReward + '钻石')
- $('.info-bottom').find('.fragment').html(res.data.nick)
- myFragment = res.data.diamonds
- $('.info-bottom .activeBalance span').text(res.data.diamonds);
- } else {
+ $('.info-bottom').find('.award span').html(res.data.todayReward)
+ $('.info-bottom').find('.fragment span').html(res.data.pieceNum)
+ myFragment = res.data.pieceNum
+ }else{
return toastMsg(res.message)
}
},
- error (err) {
+ error(err){
toastMsg('網絡錯誤,請退出重進')
}
})
}
-function numberFormat (value) {
- var param = {};
- var k = 10000,
- sizes = ['', 'W', '亿', '万亿'],
- i;
- if (value < k) {
- param.value = value
- param.unit = ''
- } else {
- i = Math.floor(Math.log(value) / Math.log(k));
-
- param.value = ((value / Math.pow(k, i))).toFixed(2);
- param.unit = sizes[i];
- }
- console.log(param)
- return param;
-}
-// 获取用户碎片信息
+// 獲取用戶碎片信息
const getUserPieceNum = () => {
networkRequest({
type: 'GET',
url: urlPrefix + '/act/luckySea/getUserActInfo',
- success (res) {
- if (res.code === 200) {
- $('.info-bottom').find('.fragment span').html(res.data.diamonds)
- myFragment = res.data.diamonds
- } else {
+ success(res){
+ if(res.code === 200){
+ $('.info-bottom').find('.fragment span').html(res.data.pieceNum)
+ myFragment = res.data.pieceNum
+ }else{
return toastMsg(res.message)
}
lock = !lock
},
- error (err) {
+ error(err){
toastMsg('網絡錯誤,請退出重進')
}
})
}
-// 获取游戏模式 1普通模式 2礼物模式
+// 獲取遊戲模式 1普通模式 2禮物模式
let modelType
const getGameMode = () => {
networkRequest({
type: 'GET',
url: urlPrefix + '/act/luckySea/getTimeConfig',
- success (res) {
- if (res.code === 200) {
+ success(res){
+ if(res.code === 200){
modelType = res.data.modelType
getNewestAct()
- } else {
+ }else{
return toastMsg(res.message)
}
},
- error (err) {
+ error(err){
toastMsg('網絡錯誤,請退出重進')
}
})
}
-let userComeinTime //用户进入游戏界面时间,后端返回的timestamp
-let startTime, drawStageStartTime, showResultStageStartTime, endTime //4个时间戳判断落于哪个界面
+let userComeinTime //用戶進入遊戲界面時間,後端返回的timestamp
+let startTime, drawStageStartTime, showResultStageStartTime, endTime //4個時間戳判斷落於哪個界面
let timer2
let roundId
let roundIdArr = []
@@ -134,32 +115,32 @@ const getNewestAct = () => {
networkRequest({
type: 'GET',
url: urlPrefix + '/act/luckySea/getNewestAct',
- success (res) {
- if (res.code === 200) {
- if ($.isEmptyObject(res.data) || res.data.status === 4) {
- return showLoading('服务器正在维护中...')
- } else {
- console.log(res.timestamp > res.data.endTime);
- if (res.timestamp >= res.data.endTime) { //请求的还是上一轮的数据,重新请求
- console.log('请求的还是上一轮的数据,必须重新请求');
+ success(res){
+ if(res.code === 200){
+ if($.isEmptyObject(res.data) || res.data.status === 4 ) {
+ return showLoading('服務器正在維護中...')
+ }else{
+ console.log(res.timestamp>res.data.endTime);
+ if(res.timestamp >= res.data.endTime){ //請求的還是上一輪的數據,重新請求
+ console.log('請求的還是上一輪的數據,必須重新請求');
showLoading()
timer2 = setTimeout(() => {
getNewestAct()
}, 600);
- } else {
+ }else{
clearTimeout(timer2)
hideLoading(layerIndex)
roundId = res.data.roundId
getListItem(roundId, modelType)
- // 进行下一轮时,arrTime重新置为空数组,不然在下一轮开始的时候也会执行location.reload()
- if (roundIdArr.length < 2) {
+ // 進行下一輪時,arrTime重新置為空數組,不然在下一輪開始的時候也會執行location.reload()
+ if(roundIdArr.length < 2){
roundIdArr = [roundId, roundId]
- } else {
+ }else{
roundIdArr[0] = roundIdArr[1]
roundIdArr[1] = roundId
- if (roundIdArr[0] != roundIdArr[1]) {
+ if(roundIdArr[0] != roundIdArr[1]){
arrTime = []
arrTime2 = []
arrTime3 = []
@@ -168,32 +149,32 @@ const getNewestAct = () => {
userComeinTime = res.timestamp
-
+
startTime = res.data.startTime
drawStageStartTime = res.data.drawStageStartTime
showResultStageStartTime = res.data.showResultStageStartTime
endTime = res.data.endTime
- console.log('获取5个时间戳的值-----', 'timestamp:', userComeinTime, 'startTime:', startTime, 'drawStageStartTime:', drawStageStartTime, 'showResultStageStartTime:', showResultStageStartTime, 'endTime:', endTime);
+ console.log('獲取5個時間戳的值-----','timestamp:',userComeinTime, 'startTime:', startTime, 'drawStageStartTime:', drawStageStartTime, 'showResultStageStartTime:', showResultStageStartTime, 'endTime:', endTime);
showView()
}
}
- } else {
+ }else{
return toastMsg(res.message)
}
},
- error (err) {
+ error(err){
toastMsg('網絡錯誤,請退出重進')
}
})
}
-//不为3继续请求 为3拿数据 为4弹窗
-let status
-
-// 显示哪个界面
+//不為3繼續請求 為3拿數據 為4彈窗
+let status
+
+// 顯示哪個界面
let $countDown
-//区分倒计时到0时的区别处理的字段,处于第二阶段时isStatus2为真,处于第三阶段时isStatus3为真
+//區分倒計時到0時的區別處理的字段,處於第二階段時isStatus2為真,處於第三階段時isStatus3為真
let isStatus2
let isStatus3
@@ -203,20 +184,19 @@ let fragmentNum
let reg = /^[0-9]*$/
const showView = () => {
- if (startTime <= userComeinTime && userComeinTime < drawStageStartTime) {
- // 第一阶段
- console.log('进入第一阶段');
- $('.previous-result').show();
+ if( startTime <= userComeinTime && userComeinTime < drawStageStartTime ){
+ // 第一階段
+ console.log('進入第一階段');
isSelectTab = false
$('.select-time').show().siblings().hide()
$countDown = $('.select-time .count-down .count-down-num')
- mySelect = sessionStorage.getItem("mySelect")
- if (reg.test(mySelect)) {
+ mySelect = sessionStorage.getItem("mySelect")
+ if(reg.test(mySelect)){
$('.btn-wrap div').eq(mySelect).addClass('active').siblings().removeClass('active')
fragmentNum = parseInt($('.btn-wrap div').eq(mySelect).html())
isSelectTab = true
- } else {
+ }else{
$('.btn-wrap div').eq(0).addClass('active').siblings().removeClass('active')
fragmentNum = parseInt($('.btn-wrap div').eq(0).html())
isSelectTab = true
@@ -225,138 +205,134 @@ const showView = () => {
$('.award-wrap').html('').show()
$('.award-info .desc').html('')
- getPreviousResults(6, roundId)
+ getPreviousResults(11, roundId)
showCountDown(userComeinTime, startTime, drawStageStartTime)
getUserInfo()
- } else if (drawStageStartTime <= userComeinTime && userComeinTime < showResultStageStartTime) {
- // 第二阶段
- console.log('进入第二阶段');
+ }else if( drawStageStartTime <= userComeinTime && userComeinTime < showResultStageStartTime ){
+ // 第二階段
+ console.log('進入第二階段');
+
sessionStorage.removeItem("mySelect")
$('.wait-time').show().siblings().hide()
$countDown = $('.wait-time .count-down .count-down-num')
- clearTimeout(timer2s) //清除第一阶段的2s气泡定时器
+ clearTimeout(timer2s) //清除第一階段的2s氣泡定時器
time2sIndex = 0
- isStatus2 = true //处于第二阶段的标识
+ isStatus2 = true //處於第二階段的標識
console.log('isStatus2的值------------', isStatus2);
// $('.btn-wrap').find('div').removeClass('active')
- getPreviousResults(6, roundId)
+ getPreviousResults(11, roundId)
showCountDown(userComeinTime, drawStageStartTime, showResultStageStartTime)
judgeStatus()
getUserInfo()
- // 播放5s动画
+ // 播放5s動畫
let player = new SVGA.Player('.wait-time');
let parser = new SVGA.Parser('.wait-time');
- parser.load('./images/wait.svga', function (videoItem) {
- // player.loops = 2;
- player.clearsAfterStop = false;
- player.setVideoItem(videoItem);
- player.startAnimation();
- $('.previous-result').hide();
- $('.current-tip').hide();
- })
+ parser.load('./images/wait.svga', function(videoItem){
+ // player.loops = 2;
+ player.clearsAfterStop = false;
+ player.setVideoItem(videoItem);
+ player.startAnimation();
+ })
- } else if (showResultStageStartTime <= userComeinTime && userComeinTime < endTime) {
- // 第三阶段
- console.log('进入第三阶段');
+ }else if( showResultStageStartTime <= userComeinTime && userComeinTime < endTime ){
+ // 第三階段
+ console.log('進入第三階段');
$('.draw-time').show().siblings().hide()
$countDown = $('.draw-time .count-down .count-down-num')
- isStatus3 = true //处于第三阶段的标识
+ isStatus3 = true //處於第三階段的標識
console.log('isStatus3的值------------', isStatus3);
showCountDown(userComeinTime, showResultStageStartTime, endTime)
judgeStatus()
getUserInfo()
- // getPreviousResults(6, roundId)
- $('.previous-result').hide();
- $('.current-tip').hide();
- $('.current-tip').hide();
+ // getPreviousResults(11, roundId)
}
}
-// 显示倒计时
+// 顯示倒計時
let countDownTime
let deltaT
let timer
let delayTime
let interval
const showCountDown = (timestamp, startTime, endTime) => {
- deltaT = ((endTime - startTime) - (timestamp - startTime)) / 1000 //12.361
- if (deltaT >= 1) {
+ deltaT = ( (endTime - startTime) - (timestamp - startTime) )/1000 //12.361
+ if( deltaT >= 1 ){
interval = 1
- } else {
+ }else{
interval = 0
}
- console.log('deltaT----------', deltaT);
- countDownTime = Math.floor(deltaT) //12.361 => 12
- delayTime = deltaT - countDownTime //请求接口的延迟时间
+ console.log('deltaT----------',deltaT);
+ countDownTime = Math.floor( deltaT ) //12.361 => 12
+ delayTime = deltaT - countDownTime //請求接口的延遲時間
$countDown.html(countDownTime)
timer = setInterval(() => {
- if (browser.ios) {
- if (!isStatus3 && !isStatus2) {
- // 处理第一阶段
- if (arrTime.length < 2) {
+ if(browser.ios){
+ if(!isStatus3 && !isStatus2){
+ // 處理第一階段
+ if(arrTime.length < 2){
arrTime = [new Date().getTime(), new Date().getTime()]
- } else {
+ }else{
arrTime[0] = arrTime[1]
arrTime[1] = new Date().getTime()
- if ((arrTime[1] - arrTime[0]) / 1000 > 1.5) {
+ if((arrTime[1] - arrTime[0])/1000 > 1.5){
window.location.reload()
}
}
- } else if (isStatus2) {
- // 第二阶段也要处理
- if (arrTime2.length < 2) {
+ }else if(isStatus2){
+ // 第二階段也要處理
+ if(arrTime2.length < 2){
arrTime2 = [new Date().getTime(), new Date().getTime()]
- } else {
+ }else{
arrTime2[0] = arrTime2[1]
arrTime2[1] = new Date().getTime()
- if ((arrTime2[1] - arrTime2[0]) / 1000 > 1.5) {
+ if((arrTime2[1] - arrTime2[0])/1000 > 1.5){
window.location.reload()
}
}
- } else if (isStatus3) {
- // 第三阶段也要处理
- if (arrTime3.length < 2) {
+ }else if(isStatus3){
+ // 第三階段也要處理
+ if(arrTime3.length < 2){
arrTime3 = [new Date().getTime(), new Date().getTime()]
- } else {
+ }else{
arrTime3[0] = arrTime3[1]
arrTime3[1] = new Date().getTime()
- if ((arrTime3[1] - arrTime3[0]) / 1000 > 1.5) {
+ if((arrTime3[1] - arrTime3[0])/1000 > 1.5){
window.location.reload()
}
}
}
}
countDownTime--
- if (countDownTime <= 0) {
- $countDown.html(0)
+ if(countDownTime <= 0){
+ $countDown.html( 0 )
clearInterval(timer)
- if (isStatus2) { // 倒计时为0时,处于第二阶段的处理
- if (status) {
+ if(isStatus2){ // 倒計時為0時,處於第二階段的處理
+ if(status){
// hideLoading(layerIndex)
setTimeout(() => {
getNewestAct()
}, delayTime * 1000)
isStatus2 = false
- } else {
+ }else{
showLoading()
- // toastMsg('服务器繁忙,请稍等')
- console.log('status的值-----------', status);
+ // toastMsg('服務器繁忙,請稍等')
+ console.log('status的值-----------',status);
judgeStatus()
}
- } else if (isStatus3) { //倒计时为0时,处于第三阶段的处理
+ }else if(isStatus3){ //倒計時為0時,處於第三階段的處理
setTimeout(() => {
getNewestAct()
// getListItem(roundId)
@@ -364,12 +340,12 @@ const showCountDown = (timestamp, startTime, endTime) => {
// getNewestAct()
// getListItem()
isStatus3 = false
- } else {
+ }else{
setTimeout(() => {
getNewestAct()
}, delayTime * 1000)
}
-
+
// else {
// setTimeout(() => {
@@ -377,120 +353,103 @@ const showCountDown = (timestamp, startTime, endTime) => {
// }, delayTime * 1000)
// }
- } else {
+ }else{
$countDown.html(countDownTime)
}
}, interval * 1000)
}
-//判断status的状态
+//判斷status的狀態
let timer4
let drawInfo
-let img //第三阶段的中奖动物img
+let img //第三階段的中獎動物img
const judgeStatus = () => {
- console.log('进入二阶段时轮询查看结果是否已经出了');
+ console.log('進入二階段時輪詢查看結果是否已經出了');
networkRequest({
type: 'GET',
url: urlPrefix + '/act/luckySea/getNewestAct',
- success (res) {
- if (res.code === 200) {
- console.log('res.data的值------------', res.data);
- if ($.isEmptyObject(res.data) || res.data.status === 4) {
+ success(res){
+ if(res.code === 200){
+ console.log('res.data的值------------',res.data);
+ if($.isEmptyObject(res.data) || res.data.status === 4){
console.log('程序崩了!!!');
- return showLoading('服务器正在维护中...')
- } else if (res.data.status === 3) {
+ return showLoading('服務器正在維護中...')
+ }else if(res.data.status === 3){
clearTimeout(timer4)
status = true
- if (isStatus2 && countDownTime <= 0) {
+ if(isStatus2 && countDownTime <= 0){
showCountDown(userComeinTime, drawStageStartTime, showResultStageStartTime)
}
// hideLoading(layerIndex)
- console.log('status为3时返回的数据--------------', res.data);
+ console.log('status為3時返回的數據--------------',res.data);
drawInfo = res.data
img = res.data.drawImageUrl
- if (isStatus3) {
- getPreviousResults(6, roundId)
+ if(isStatus3){
+ getPreviousResults(11, roundId)
}
renderDrawInfo()
- if (res.data.rankUserList.length != 0) {
- if (res.data.rankUserList[0] != undefined) {
- $('.top_three .img1').css({ "background": `url(${res.data.rankUserList[0]}) no-repeat`, "background-size": '100% 100%' });
- $('.top_three .img1').text('');
- };
- if (res.data.rankUserList[1] != undefined) {
- $('.top_three .img2').css({ "background": `url(${res.data.rankUserList[1]}) no-repeat`, "background-size": '100% 100%' })
- $('.top_three .img2').text('');
- };
- if (res.data.rankUserList[2] != undefined) {
- $('.top_three .img3').css({ "background": `url(${res.data.rankUserList[2]}) no-repeat`, "background-size": '100% 100%' })
- $('.top_three .img3').text('');
- };
- $('.top_three').show();
- } else {
- $('.top_three').hide();
- }
- } else {
-
- timer4 = setTimeout(() => {
- judgeStatus()
- }, 1000)
-
+ }else{
+
+ timer4 = setTimeout(() => {
+ judgeStatus()
+ }, 1000)
+
}
- } else {
+ }else{
toastMsg(res.message)
}
},
- error (err) {
+ error(err){
toastMsg('網絡錯誤,請退出重進')
}
})
}
-// 渲染开奖信息
+// 渲染開獎信息
let topThreeArr = []
const renderDrawInfo = () => {
$('.draw-time .current-tip .current-result').html(drawInfo.drawName)
$('.draw-pic img').attr('src', drawInfo.drawImageUrl)
- // if (isStatus3) {
- // if (drawInfo.userDrawResult.drawStatus === 1) {
- // $('.award-info .desc').html('恭喜你,猜中了!')
- // if (modelType === 1) {
- // $('.award-wrap').html(`获得
${drawInfo.userDrawResult.prizeDiamonds} 鉆石`)
- // } else {
- // $('.award-wrap').html(`获得
${drawInfo.userDrawResult.prizeName} (
${drawInfo.userDrawResult.prizePrice}钻)*
${drawInfo.userDrawResult.prizeCount}个 累计
${drawInfo.userDrawResult.prizeDiamonds}鉆石`)
- // }
- // } else if (drawInfo.userDrawResult.drawStatus === 2) {
- // $('.award-info .desc').html('很遗憾,本轮未猜中')
- // $('.award-wrap').hide()
- // } else if (drawInfo.userDrawResult.drawStatus === 3) {
- // $('.award-info .desc').html('本轮未参与')
- // $('.award-wrap').hide()
- // }
- // }
+ if(isStatus3){
+ if(drawInfo.userDrawResult.drawStatus === 1){
+ $('.award-info .desc').html('恭喜你,猜中了!')
+ if(modelType === 1){
+ $('.award-wrap').html(`獲得
${drawInfo.userDrawResult.prizeDiamonds} 鉆石`)
+ }else{
+ $('.award-wrap').html(`獲得
${drawInfo.userDrawResult.prizeName} (
${drawInfo.userDrawResult.prizePrice}鉆)*
${drawInfo.userDrawResult.prizeCount}個 累計
${drawInfo.userDrawResult.prizeDiamonds}鉆石`)
+ }
+ }else if(drawInfo.userDrawResult.drawStatus === 2){
+ $('.award-info .desc').html('很遺憾,本輪未猜中')
+ $('.award-wrap').hide()
+ }else if(drawInfo.userDrawResult.drawStatus === 3){
+ $('.award-info .desc').html('本輪未參與')
+ $('.award-wrap').hide()
+ }
+ }
// 渲染前三名
topThreeArr = drawInfo.rankUserList
let str = ''
- if (topThreeArr.length === 0) {
+ if(topThreeArr.length === 0){
$('.topthree-desc').html('本輪無人猜中')
$('.top-three-list p img').attr('src', './images/default-hui.png')
- } else {
- $('.topthree-desc').html('')
- topThreeArr.map((item, index) => {
+ }else{
+ $('.topthree-desc').html('本輪前三名')
+ topThreeArr.map((item, index) => {
$('.top-three-list p img').eq(index).attr('src', item)
})
- if (topThreeArr.length === 1) {
+ if(topThreeArr.length === 1){
$('.top-three-list p img').eq(1).attr('src', './images/default-hui.png')
$('.top-three-list p img').eq(2).attr('src', './images/default-hui.png')
- } else if (topThreeArr.length === 2) {
+ }else if(topThreeArr.length === 2){
$('.top-three-list p img').eq(2).attr('src', './images/default-hui.png')
}
}
}
-// 获取每一轮抽奖的相关配置
+// 獲取每一輪抽獎的相關配置
let listItem = []
const getListItem = (roundId, type) => {
networkRequest({
@@ -500,41 +459,41 @@ const getListItem = (roundId, type) => {
roundId,
type
},
- success (res) {
- if (res.code === 200) {
+ success(res){
+ if(res.code === 200){
listItem = res.data
renderListItem()
- } else {
+ }else{
toastMsg(res.message)
}
},
- error (err) {
+ error(err){
toastMsg('網絡錯誤,請退出重進')
}
})
}
-// 2s气泡定时器
+// 2s氣泡定時器
let timer2s
-let time2sIndex = 0
+let time2sIndex = 0
const setTimeout2s = () => {
- clearTimeout(timer2s)
+ clearTimeout(timer2s)
$('.bubble-2s').eq(time2sIndex).fadeIn(50)
- timer2s = setTimeout(function () {
+ timer2s = setTimeout(function(){
$('.bubble-2s').eq(time2sIndex).fadeOut(50)
- if (time2sIndex >= listItem.length - 1) {
+ if(time2sIndex >= listItem.length-1){
time2sIndex = 0
- } else {
+ }else{
time2sIndex++;
}
setTimeout2s()
}, 2000)
}
-// 渲染每一轮抽奖的选项
+// 渲染每一輪抽獎的選項
const renderListItem = () => {
let str = ''
- if (modelType === 1) {
+ if(modelType === 1){
listItem.map((item) => {
str += `
@@ -542,23 +501,23 @@ const renderListItem = () => {
x${item.multiple}
${item.name}
-
收獲
-
${item.multiple} 倍獎勵
+
點擊選取
+
賺 ${item.multiple} 倍獎勵
${item.costPieceNum === 0 ? '' : '+ ' + item.costPieceNum}
`
})
- } else {
+ }else{
listItem.map((item) => {
str += `
x${item.multiple}
- ${item.name}
${item.price ? `(${item.price}鉆石)` : ''}
+ ${item.name}
${item.price ? `(${item.price}鉆石)` : '' }
-
收獲
-
${item.multiple} 倍獎勵
+
點擊選取
+
賺 ${item.multiple} 倍獎勵
${item.costPieceNum === 0 ? '' : '+ ' + item.costPieceNum}
@@ -569,46 +528,46 @@ const renderListItem = () => {
setTimeout2s()
}
-// 获取往轮游戏结果
+// 獲取往輪遊戲結果
let previousResults = []
const getPreviousResults = (count, roundId) => {
networkRequest({
type: 'GET',
url: urlPrefix + '/act/luckySea/listLuckySeaActInfo',
- data: {
+ data:{
count,
roundId
},
- success (res) {
- if (res.code === 200) {
+ success(res){
+ if(res.code === 200){
previousResults = res.data
renderPreviousResults()
}
},
- error (err) {
+ error(err){
toastMsg('網絡錯誤,請退出重進')
}
})
}
-// 渲染往轮游戏结果
+// 渲染往輪遊戲結果
const renderPreviousResults = () => {
-
+
let str = ''
- if (previousResults.length < 5) {
+ if(previousResults.length < 5){
let len = 5 - previousResults.length
let arr = new Array(len).fill(1)
previousResults.push(...arr)
}
- if (isStatus3) {
- if (img) {
+ if(isStatus3){
+ if(img){
previousResults.pop()
previousResults.unshift({
drawImageUrl: img
})
console.log(previousResults);
}
-
+
}
previousResults.map((item) => {
str += `
@@ -618,7 +577,7 @@ const renderPreviousResults = () => {
$('.result-list').html(str)
}
-// 发送用户抽奖数量
+// 發送用戶抽獎數量
const sendUserDrawInfo = (itemId, num) => {
networkRequest({
type: 'POST',
@@ -628,36 +587,36 @@ const sendUserDrawInfo = (itemId, num) => {
"itemId":${itemId},
"num":${num}
}]`,
- success (res) {
- if (res.code === 200) {
+ success(res){
+ if(res.code === 200){
- } else {
+ }else{
toastMsg(res.message)
}
},
- error (err) {
+ error(err){
toastMsg('網絡錯誤,請退出重進')
}
})
}
-/******************************************** 今日排名相关 ********************************************/
+/******************************************** 今日排名相關 ********************************************/
-// 榜单类型,1是鉆石榜,2是欧皇榜
+// 榜單類型,1是鉆石榜,2是歐皇榜
let type = 1
let pageSize = 10
-// 鉆石榜单
+// 鉆石榜單
let pageD = 1
let myInfoD = []
let rankListD = []
-// 欧皇榜单
+// 歐皇榜單
let pageN = 1
let myInfoN = []
let rankListN = []
-let clickTabCanNetworkN = true
+let clickTabCanNetworkN = true
let isLockD = true
let isLockN = true
@@ -666,24 +625,24 @@ let isLock = true
let canRequsetNextPageD = true
let canRequsetNextPageN = true
-const getListRank = (type, page) => {
+const getListRank = (type, page) => {
networkRequest({
type: 'GET',
url: urlPrefix + '/act/luckySea/listRank',
- data: {
+ data:{
type,
page,
pageSize
},
- success (res) {
- if (res.code === 200) {
- if (type === 1) {
- // 鉆石榜单
- if (res.data.rankList.length === pageSize) {
- // 可以请求下一页
+ success(res){
+ if(res.code === 200){
+ if(type === 1){
+ // 鉆石榜單
+ if(res.data.rankList.length === pageSize){
+ // 可以請求下一頁
canRequsetNextPageD = true
- } else {
- // 不再请求下一页
+ }else{
+ // 不再請求下一頁
canRequsetNextPageD = false
}
rankListD.push(...res.data.rankList)
@@ -691,12 +650,12 @@ const getListRank = (type, page) => {
renderMyInfo()
renderRankList()
isLockD = true
- } else {
- if (res.data.rankList.length === pageSize) {
- // 可以请求下一页
+ }else{
+ if(res.data.rankList.length === pageSize){
+ // 可以請求下一頁
canRequsetNextPageN = true
- } else {
- // 不再请求下一页
+ }else{
+ // 不再請求下一頁
canRequsetNextPageN = false
}
rankListN.push(...res.data.rankList)
@@ -705,58 +664,58 @@ const getListRank = (type, page) => {
renderRankList()
isLockN = true
}
- } else {
+ }else{
toastMsg(res.message)
}
},
- error (err) {
+ error(err){
toastMsg('網絡錯誤')
}
})
}
-// 渲染底部个人信息
+// 渲染底部個人信息
const renderMyInfo = () => {
- if (type === 1) {
- // 鉆石榜单
+ if(type === 1){
+ // 鉆石榜單
let erbanNo = myInfoD.erbanNo
let myIndex = rankListD.findIndex((item, index) => {
return item.erbanNo === erbanNo
})
- if (myIndex === -1) {
+ if(myIndex === -1){
$('.mine-rank').html('未上榜')
- } else {
+ }else{
$('.mine-rank').html(myIndex + 1)
}
$('.mine-info').find('img').attr('src', myInfoD.avatar)
- if (myInfoD.nick) {
+ if(myInfoD.nick){
myInfoD.nick.length > 5 ? myInfoD.nick.slice(0, 5) + '...' : myInfoD.nick
- } else {
+ }else{
myInfoD.nick = '未知'
}
$('.mine-info').find('.mine-nick').html(myInfoD.nick)
let tostr = myInfoD.num.toString()
let num
- if (tostr.length >= 5) {
- num = (myInfoD.num / 10000).toFixed(2) + 'w'
- } else {
+ if(tostr.length >= 5) {
+ num = (myInfoD.num/10000).toFixed(2) + 'w'
+ }else{
num = myInfoD.num
}
$('.mine-diamond-num').html('今日獎勵' + num)
- } else {
+ }else{
let erbanNo = myInfoN.erbanNo
let myIndex = rankListN.findIndex((item, index) => {
return item.erbanNo === erbanNo
})
- if (myIndex === -1) {
+ if(myIndex === -1){
$('.mine-rank').html('未上榜')
- } else {
+ }else{
$('.mine-rank').html(myIndex + 1)
}
$('.mine-info').find('img').attr('src', myInfoN.avatar)
- if (myInfoN.nick) {
+ if(myInfoN.nick){
myInfoN.nick.length > 5 ? myInfoN.nick.slice(0, 5) + '...' : myInfoN.nick
- } else {
+ }else{
myInfoN.nick = '未知'
}
$('.mine-info').find('.mine-nick').html(myInfoN.nick)
@@ -764,13 +723,13 @@ const renderMyInfo = () => {
}
}
-// 渲染榜单信息
+// 渲染榜單信息
const renderRankList = () => {
- if (type === 1) {
- // 鉆石榜单
+ if(type === 1){
+ // 鉆石榜單
// 渲染前3
let topThreeArr = rankListD.slice(0, 1)
- if (rankListD.length === 0) {
+ if(rankListD.length === 0){
let len = 1 - rankListD.length
let arr = new Array(len).fill({
nick: '虛位以待',
@@ -783,12 +742,12 @@ const renderRankList = () => {
topThreeArr.map((item) => {
let tostr = item.num.toString()
let num
- if (tostr.length >= 5) {
- num = (item.num / 10000).toFixed(2) + 'w'
- } else {
+ if(tostr.length >= 5) {
+ num = (item.num/10000).toFixed(2) + 'w'
+ }else{
num = item.num
}
-
+
topThreeStr = `
@@ -796,12 +755,12 @@ const renderRankList = () => {
${num}
-
${item.nick.length > 5 ? item.nick.slice(0, 5) + '...' : item.nick}
+
${item.nick.length > 5 ? item.nick.slice(0,5) + '...' : item.nick}
`
})
$('.topthree-wrap').html(topThreeStr)
-
+
// 渲染非前3
let othersArr = rankListD.slice(1)
@@ -809,28 +768,28 @@ const renderRankList = () => {
othersArr.map((item, index) => {
let tostr = item.num.toString()
let num
- if (tostr.length >= 5) {
- num = (item.num / 10000).toFixed(2) + 'w'
- } else {
+ if(tostr.length >= 5) {
+ num = (item.num/10000).toFixed(2) + 'w'
+ }else{
num = item.num
}
others += `
- ${index + 2}
+ ${index+2}

-
${item.nick.length > 5 ? item.nick.slice(0, 5) + '...' : item.nick}
+
${item.nick.length > 5 ? item.nick.slice(0,5) + '...' : item.nick}
距離上一名${num}
`
})
$('.other-rank').html(others)
- } else {
- // 欧皇榜单
+ }else{
+ // 歐皇榜單
// 渲染前3
let topThreeArr = rankListN.slice(0, 1)
- if (rankListN.length === 0) {
+ if(rankListN.length === 0){
let len = 1 - rankListN.length
let arr = new Array(len).fill({
nick: '虛位以待',
@@ -841,8 +800,8 @@ const renderRankList = () => {
let topThreeStr = ''
topThreeArr.map((item) => {
let num = ''
- if (item.erbanNo) {
- num = '猜中' + item.num + '次'
+ if(item.erbanNo){
+ num = '猜中'+item.num + '次'
}
topThreeStr = `
@@ -851,7 +810,7 @@ const renderRankList = () => {
${num}
-
${item.nick.length > 5 ? item.nick.slice(0, 5) + '...' : item.nick}
+
${item.nick.length > 5 ? item.nick.slice(0,5) + '...' : item.nick}
`
})
@@ -863,15 +822,15 @@ const renderRankList = () => {
let others = ''
othersArr.map((item, index) => {
let num
- if (item.erbanNo) {
- num = '' + item.num + '次'
+ if(item.erbanNo){
+ num = '猜中'+item.num + '次'
}
others += `
- ${index + 2}
+ ${index+2}

-
${item.nick.length > 5 ? item.nick.slice(0, 5) + '...' : item.nick}
+
${item.nick.length > 5 ? item.nick.slice(0,5) + '...' : item.nick}
${num}
@@ -879,84 +838,79 @@ const renderRankList = () => {
})
$('.other-rank').html(others)
}
-
+
}
-$(function () {
+$(function(){
getInfoFromClient()
- setTimeout(function () {
+ setTimeout(function(){
// getUserInfo()
getGameMode()
// getNewestAct()
// getListItem()
}, 50)
- // 监听按钮点击事件
+ // 監聽按鈕點擊事件
// let fragmentNum
// let isSelectTab = false
- $('.btn-wrap').on('click', 'div', function () {
+ $('.btn-wrap').on('click', 'div', function(){
$(this).addClass('active').siblings().removeClass('active')
fragmentNum = parseInt($(this).html())
- console.log(fragmentNum)
isSelectTab = true
sessionStorage.setItem("mySelect", $(this).index())
})
- // 监听规则按钮点击事件
- $('.rule').on('click', function () {
+ // 監聽規則按鈕點擊事件
+ $('.rule').on('click', function(){
$('.shade-mask').show()
})
- // 关闭规则弹窗
- $('.shade-mask').on('click', function () {
+ // 關閉規則彈窗
+ $('.shade-mask').on('click', function(){
$(this).hide()
})
- $('.shade-content-close').on('click', function () {
- $('.shade-mask').hide()
- })
- $('.shade-content').on('click', function (e) {
+ $('.shade-content').on('click', function(e){
e.stopPropagation()
})
- // 跳转特权商城
- $('.mall').on('click', function () {
+ // 跳轉特權商城
+ $('.mall').on('click', function(){
window.location.href = './mall.html'
})
- $('.add').on('click', function () {
+ $('.add').on('click', function(){
window.location.href = './mall.html'
})
- // 监听游戏记录按钮点击事件
- $('.record').on('click', function () {
+ // 監聽遊戲記錄按鈕點擊事件
+ $('.record').on('click', function(){
window.location.href = './record.html'
})
- // 监听今日排名按钮点击事件
- $('.rank').on('click', function () {
- // getListRank(type, pageD)
- // $('.shade-mask-rank').show()
- window.location.href = './rank.html'
+ // 監聽今日排名按鈕點擊事件
+ $('.rank').on('click', function(){
+ getListRank(type, pageD)
+ $('.shade-mask-rank').show()
})
- // 监听今日排名tab
- $('.tab-wrap').on('click', 'span', function () {
+ // 監聽今日排名tab
+ $('.tab-wrap').on('click', 'span', function(){
$(this).addClass('active').siblings().removeClass('active')
- if (type === $(this).index() + 1) return
+ if(type === $(this).index() + 1) return
type = $(this).index() + 1
$('.other-rank').scrollTop(0)
- if (type === 1) {
+ if(type === 1){
renderRankList()
renderMyInfo()
- } else {
- if (clickTabCanNetworkN) {
+ }else{
+ if(clickTabCanNetworkN){
getListRank(type, pageN)
- } else {
+ }else{
renderRankList()
renderMyInfo()
}
clickTabCanNetworkN = false
}
})
- // 关闭排名弹窗
- $('.shade-mask-rank').on('click', function () {
+ // 關閉排名彈窗
+ $('.shade-mask-rank').on('click', function(){
$(this).hide()
type = 1
pageD = 1
@@ -969,169 +923,137 @@ $(function () {
$('.diamond-rank').addClass('active').siblings('.num-rank').removeClass('active')
$('.other-rank').html('')
})
- $('.shade-content-rank').on('click', function (e) {
+ $('.shade-content-rank').on('click', function(e){
e.stopPropagation()
})
- // 监听滚动
- $('.other-rank').on('scroll', function () {
- let scrollTop = $(this).scrollTop();//这是已经卷进去滚动条的的高度
- let scrollHeight = $('.other-rank')[0].scrollHeight;//这个是other-rank包含滚动条的总高度
- let ulHeight = $(this).innerHeight();//这个是other-rank的高度
-
- //这样距离到底还有一段距离就请求,但是会导致重复请求,所以要加锁限制
- if (scrollTop + ulHeight + 100 >= scrollHeight) {
- if (type === 1) {
- if (isLockD) {
+ // 監聽滾動
+ $('.other-rank').on('scroll', function(){
+ let scrollTop = $(this).scrollTop();//這是已經卷進去滾動條的的高度
+ let scrollHeight = $('.other-rank')[0].scrollHeight;//這個是other-rank包含滾動條的總高度
+ let ulHeight = $(this).innerHeight();//這個是other-rank的高度
+
+ //這樣距離到底還有一段距離就請求,但是會導致重復請求,所以要加鎖限製
+ if(scrollTop + ulHeight + 100 >= scrollHeight){
+ if(type === 1){
+ if(isLockD){
isLockD = false
pageD++
- if (pageSize * pageD > 30) {
- toastMsg('没有更多数据啦~')
- } else {
- if (canRequsetNextPageD) {
- getListRank(type, pageD);
- } else {
- toastMsg('没有更多数据啦~')
+ if(pageSize * pageD > 30){
+ toastMsg('沒有更多數據啦~')
+ }else{
+ if(canRequsetNextPageD){
+ getListRank(type,pageD);
+ }else{
+ toastMsg('沒有更多數據啦~')
}
}
- } else {
- if (scrollTop + ulHeight >= scrollHeight) {
- if (pageSize * pageD > 30) {
- toastMsg('没有更多数据啦~')
+ }else{
+ if(scrollTop + ulHeight >= scrollHeight){
+ if(pageSize * pageD > 30){
+ toastMsg('沒有更多數據啦~')
}
}
}
- } else {
- if (isLockN) {
+ }else{
+ if(isLockN){
isLockN = false
pageN++
- if (pageSize * pageN > 30) {
- toastMsg('没有更多数据啦~')
- } else {
- if (canRequsetNextPageN) {
- getListRank(type, pageN);
- } else {
- toastMsg('没有更多数据啦')
+ if(pageSize * pageN > 30){
+ toastMsg('沒有更多數據啦~')
+ }else{
+ if(canRequsetNextPageN){
+ getListRank(type,pageN);
+ }else{
+ toastMsg('沒有更多數據啦')
}
}
- } else {
- if (scrollTop + ulHeight >= scrollHeight) {
- if (pageSize * pageN > 30) {
- toastMsg('没有更多数据啦~')
+ }else{
+ if(scrollTop + ulHeight >= scrollHeight){
+ if(pageSize * pageN > 30){
+ toastMsg('沒有更多數據啦~')
}
}
}
}
}
})
-
- // 播放3s动画
+
+ // 播放3s動畫
let player1 = new SVGA.Player('.draw-time');
let parser1 = new SVGA.Parser('.draw-time');
- parser1.load('./images/draw.svga', function (videoItem) {
+ parser1.load('./images/draw.svga', function(videoItem){
// player.loops = 2;
player1.clearsAfterStop = false;
player1.setVideoItem(videoItem);
player1.startAnimation();
})
- // 关闭碎片不足提示弹窗
- $('.cancel-btn').on('click', function () {
+ // 關閉碎片不足提示彈窗
+ $('.cancel-btn').on('click', function(){
$('.shade-mask-fragmentNum').hide()
})
- $('.shade-mask-fragmentNum').on('click', function () {
+ $('.shade-mask-fragmentNum').on('click', function(){
$(this).hide()
})
- $('.shade-content-fragmentNum').on('click', function (e) {
+ $('.shade-content-fragmentNum').on('click', function(e){
e.stopPropagation()
})
- $('.confirm-btn').on('click', function () {
- if (browser.ios) {//ios
- console.log(pubInfo.channel)
- if (pubInfo.channel == 'appstore') {
- window.webkit.messageHandlers.openChargePage.postMessage(null);
- } else {
- window.location.href = '../../modules/payApp/index.html';
- }
- } else if (browser.android) {//android
- let getChannel = window.androidJsObj.getChannel();
- if (getChannel == 'google') {
- var jsonObj = '{"routerType":"5"}';
- window.androidJsObj.jumpAppointPage(jsonObj)
- } else {
- window.location.href = '../../modules/payApp/index.html';
- }
- }
+ $('.confirm-btn').on('click', function(){
+ window.location.href = './mall.html'
$('.shade-mask-fragmentNum').hide()
})
- $('.activeBalance b').click(function () {
- if (browser.ios) {//ios
- console.log(pubInfo.channel)
- if (pubInfo.channel == 'appstore') {
- window.webkit.messageHandlers.openChargePage.postMessage(null);
- } else {
- window.location.href = '../../modules/payApp/index.html';
- }
- } else if (browser.android) {//android
- let getChannel = window.androidJsObj.getChannel();
- if (getChannel == 'google') {
- var jsonObj = '{"routerType":"5"}';
- window.androidJsObj.jumpAppointPage(jsonObj)
- } else {
- window.location.href = '../../modules/payApp/index.html';
- }
+ // 點擊海鮮動物的動畫以及發送請求
+ $('.select-time ul').on('click', 'li', function(){
+ if(!isSelectTab){
+ return toastMsg('請先選擇碎片數量')
}
- })
- // 点击海鲜动物的动画以及发送请求
- $('.select-time ul').on('click', 'li', function () {
- if (!isSelectTab) {
- return toastMsg('请先选择碎片数量')
- }
- if (myFragment < fragmentNum) {
+ if(myFragment < fragmentNum){
$('.shade-mask-fragmentNum').show()
return
}
- if (!lock) {
+
+ if(!lock){
lock = !lock
console.log($(this).data('total-num'));
console.log($(this).data('total-num').number);
console.log(fragmentNum);
$(this).data('total-num').number = parseInt($(this).data('total-num').number) + fragmentNum
$(this)
- .stop(true, true)
- .animate({ scale: 1.1 }, 200)
- .animate({ scale: 1 }, 200, function () {
- if (lock) {
- $(this).find('.select-num').html('+' + $(this).data('total-num').number).hide().fadeIn(200)
- }
- setTimeout(() => {
- // getUserInfo()
- getUserPieceNum()
- // getListItem(roundId)
- },100)
- })
- sendUserDrawInfo($(this).data('total-num').id, fragmentNum)
+ .stop(true,true)
+ .animate({scale: 1.1}, 200)
+ .animate({scale: 1}, 200, function(){
+ if(lock){
+ $(this).find('.select-num').html('+' + $(this).data('total-num').number).hide().fadeIn(200)
+ }
+ setTimeout(() => {
+ // getUserInfo()
+ getUserPieceNum()
+ // getListItem(roundId)
+ },100)
+ })
+ sendUserDrawInfo($(this).data('total-num').id , fragmentNum)
}
})
-
- // ios去到后台或者锁屏后再回来倒计时不准确
+
+ // ios去到後臺或者鎖屏後再回來倒計時不準確
let leftTime, deltaTime, startTime, endTime
- document.addEventListener('visibilitychange', function () {
- if (document.visibilityState == 'hidden') {
+ document.addEventListener('visibilitychange',function(){
+ if(document.visibilityState == 'hidden'){
leftTime = countDownTime
startTime = new Date().getTime()
- } else if (document.visibilityState == 'visible') {
+ }else if(document.visibilityState == 'visible'){
endTime = new Date().getTime()
- deltaTime = Math.floor((endTime - startTime) / 1000) //出去了多久
- if (deltaTime > 300) {
+ deltaTime = Math.floor( ( endTime - startTime )/1000 ) //出去了多久
+ if(deltaTime > 300){
window.location.reload()
}
countDownTime = leftTime - deltaTime
- if (countDownTime < 0) {
+ if(countDownTime < 0){
countDownTime = 0
}
$countDown.html(countDownTime)
}
})
-})
\ No newline at end of file
+})
\ No newline at end of file
diff --git a/view/peko/activity/act-ocean/js/mall.js b/view/peko/activity/act-ocean/js/mall.js
index 8432c25..c178fd3 100644
--- a/view/peko/activity/act-ocean/js/mall.js
+++ b/view/peko/activity/act-ocean/js/mall.js
@@ -5,14 +5,14 @@ if (env == 'test') {
new VConsole();
}
-// 封装layer消息提醒框
+// 封裝layer消息提醒框
let layerIndex
const showLoading = () => {
layer.open({
type: 2,
shadeClose: false,
- content: '加载中...',
- success(e) {
+ content: '加載中...',
+ success (e) {
layerIndex = $(e).attr('index')
}
})
@@ -27,51 +27,51 @@ const toastMsg = (content = '操作完成', time = 2) => {
skin: 'msg'
})
}
-// 获取用户相关信息
+// 獲取用戶相關信息
const getUserInfo = (param) => {
networkRequest({
type: 'GET',
url: urlPrefix + '/act/luckySea/getUserActInfo',
- success(res){
- if(res.code === 200){
+ success (res) {
+ if (res.code === 200) {
// console.log(res.data);
$('.bottom').find('.avatar img').attr('src', res.data.avatar)
- if(res.data.nick.length > 10){
- res.data.nick = res.data.nick.slice(0,10) + '...'
+ if (res.data.nick.length > 10) {
+ res.data.nick = res.data.nick.slice(0, 10) + '...'
}
$('.bottom').find('.nick').html(res.data.nick)
$('.bottom').find('.diamond-num span').html(res.data.diamonds)
- if(param){
- $('.bottom').find('.fragment-num span')[0].innerHTML = parseInt($('.bottom').find('.fragment-num span')[0].innerHTML) + param
- } else{
+ if (param) {
+ $('.bottom').find('.fragment-num span')[0].innerHTML = parseInt($('.bottom').find('.fragment-num span')[0].innerHTML) + param
+ } else {
$('.bottom').find('.fragment-num span').html(res.data.pieceNum)
}
}
},
- error(err){
- toastMsg('网络错误')
+ error (err) {
+ toastMsg('網絡錯誤')
}
})
}
-// 获取头饰礼包信息
+// 獲取頭飾禮包信息
let listPack = []
const getListPack = () => {
networkRequest({
type: 'GET',
url: urlPrefix + '/act/luckySea/listPack',
- success(res){
- if(res.code === 200){
+ success (res) {
+ if (res.code === 200) {
// console.log(res.data);
listPack = res.data
renderList()
}
},
- error(err){
- toastMsg('网络错误')
+ error (err) {
+ toastMsg('網絡錯誤')
}
})
}
-// 渲染礼包
+// 渲染禮包
const renderList = () => {
listPack.map((item, index) => {
let $li = $('ul.buy-area li').eq(index)
@@ -89,19 +89,19 @@ const renderList = () => {
})
}
-$(function(){
+$(function () {
getInfoFromClient()
- setTimeout(function(){
+ setTimeout(function () {
getUserInfo()
getListPack()
}, 50)
- // 监听购买按钮点击事件
- $('ul.buy-area').on('click', '.buy-btn', function(){
+ // 監聽購買按鈕點擊事件
+ $('ul.buy-area').on('click', '.buy-btn', function () {
console.log($(this).data());
if (!$(this).data('name') || !$(this).data('day') || !$(this).data('gold') || !$(this).data('giftId')) {
- toastMsg('礼包信息不完整')
+ toastMsg('禮包信息不完整')
return
}
@@ -113,67 +113,67 @@ $(function(){
giftObj['num'] = 1
giftObj['ticketNum'] = $(this).data('ticketNum')
-
+
$('.shade-mask-buy').find('.title span').html(giftObj['name'])
$('.shade-mask-buy').find('.buy-day span').html(giftObj['day'])
$('.shade-mask-buy').find('.buy-price span').html(giftObj['gold'])
$('.shade-mask-buy').find('.inputNum').val(giftObj['num'])
$('.shade-mask-buy').fadeIn(50)
})
- // 关闭购买弹窗
- $('.cancel').on('click', function(){
+ // 關閉購買彈窗
+ $('.cancel').on('click', function () {
$('.shade-mask-buy').fadeOut(50)
})
- $('.shade-mask-buy').on('click', function(){
+ $('.shade-mask-buy').on('click', function () {
$('.shade-mask-buy').fadeOut(50)
})
- $('.shade-content-buy').on('click', function(e){
+ $('.shade-content-buy').on('click', function (e) {
e.stopPropagation()
})
- // 关闭余额不足弹窗
- $('.shade-mask-no-money').on('click', function(){
+ // 關閉余額不足彈窗
+ $('.shade-mask-no-money').on('click', function () {
$('.shade-mask-no-money').fadeOut(50)
})
- $('.shade-content-no-money').on('click', function(e){
+ $('.shade-content-no-money').on('click', function (e) {
e.stopPropagation()
})
- // 增加购买数量
- $('.increase').on('click', function(){
- if(giftObj['num']<9999){
+ // 增加購買數量
+ $('.increase').on('click', function () {
+ if (giftObj['num'] < 9999) {
giftObj['num']++;
giftObj['day']++;
let allPrice = giftObj['num'] * giftObj['gold'];
$('.inputNum').val(giftObj['num'])
$('.buy-day span').html(giftObj['day'])
$('.buy-price span').html(allPrice)
- }else{
- toastMsg('单次购买数量最多为9999')
+ } else {
+ toastMsg('單次購買數量最多為9999')
}
})
- // 减少购买数量
- $('.decrease').on('click', function(){
- if($('.inputNum').val()>0){
+ // 減少購買數量
+ $('.decrease').on('click', function () {
+ if ($('.inputNum').val() > 0) {
giftObj['num']--;
giftObj['day']--;
let allPrice = giftObj['num'] * giftObj['gold'];
$('.inputNum').val(giftObj['num'])
$('.buy-day span').html(giftObj['day'])
$('.buy-price span').html(allPrice)
- }else{
- toastMsg('最少购买数量为1')
+ } else {
+ toastMsg('最少購買數量為1')
}
})
- // 手动输入购买数量
- $('.inputNum').on('input', function(){
+ // 手動輸入購買數量
+ $('.inputNum').on('input', function () {
let exp = /^[0-9]+$/
if (!exp.test($(this).val())) {
- toastMsg('请输入数字')
+ toastMsg('請輸入數字')
// $(this).val(1)
return
}
- if($(this).val() > 9999){
+ if ($(this).val() > 9999) {
giftObj['num'] = 9999
- }else{
+ } else {
giftObj['num'] = $(this).val()
}
giftObj['day'] = giftObj['num'];
@@ -182,19 +182,19 @@ $(function(){
$('.buy-day span').html(giftObj['day'])
$('.buy-price span').html(allPrice)
})
- // 确认购买
+ // 確認購買
let lock = false
- $('.confirm').on('click', function(){
+ $('.confirm').on('click', function () {
let exp = /^[0-9]+$/
- if(!exp.test($('.inputNum').val())){
- toastMsg('请输入数字')
+ if (!exp.test($('.inputNum').val())) {
+ toastMsg('請輸入數字')
$('.inputNum').val(1)
return
}
- if($('.inputNum').val() == 0){
- return toastMsg('最少购买数量为1')
+ if ($('.inputNum').val() == 0) {
+ return toastMsg('最少購買數量為1')
}
- if(!lock){
+ if (!lock) {
lock = true
networkRequest({
type: 'POST',
@@ -205,51 +205,51 @@ $(function(){
packNum: giftObj.num,
ticket: pubInfo.ticket
},
- success(res){
- if(res.code === 200){
+ success (res) {
+ if (res.code === 200) {
$('.shade-mask-buy').hide()
- toastMsg('购买成功!')
+ toastMsg('購買成功!')
getUserInfo(res.data)
- }else if(res.code === 2103){
+ } else if (res.code === 2103) {
$('.shade-mask-buy').hide()
$('.shade-mask-no-money').show()
- }else{
+ } else {
toastMsg(res.message)
}
lock = false
},
- error(err){
- toastMsg('网络错误')
+ error (err) {
+ toastMsg('網絡錯誤')
}
})
}
-
+
})
- // 跳转充值
+ // 跳轉充值
$('.recharge, .no-money-recharge').on('click', function () {
- if(browser.app){
- if(browser.android){
+ if (browser.app) {
+ if (browser.android) {
// window.androidJsObj.openChargePage()
tools.nativeUtils.jumpAppointPage('RECHARGE_PAGE')
- }else if(browser.ios){
+ } else if (browser.ios) {
window.webkit.messageHandlers.openChargePage.postMessage(null)
}
- }else{
- toastMsg('请在app内打开')
+ } else {
+ toastMsg('請在app內打開')
}
})
- //返回页面 重新请求接口
+ //返回頁面 重新請求接口
var hiddenProperty = 'hidden' in document ? 'hidden' :
- 'webkitHidden' in document ? 'webkitHidden' :
- 'mozHidden' in document ? 'mozHidden' : null;
+ 'webkitHidden' in document ? 'webkitHidden' :
+ 'mozHidden' in document ? 'mozHidden' : null;
var visibilityChangeEvent = hiddenProperty.replace(/hidden/i, 'visibilitychange');
var onVisibilityChange = function () {
- if(!document[hiddenProperty]){
+ if (!document[hiddenProperty]) {
$('.shade-mask-no-money').hide()
getUserInfo()
- }
+ }
}
document.addEventListener(visibilityChangeEvent, onVisibilityChange);
})
\ No newline at end of file
diff --git a/view/peko/activity/act-ocean/js/rank.js b/view/peko/activity/act-ocean/js/rank.js
deleted file mode 100644
index 499142e..0000000
--- a/view/peko/activity/act-ocean/js/rank.js
+++ /dev/null
@@ -1,369 +0,0 @@
-let urlPrefix = getUrlPrefix()
-let browser = checkVersion()
-let env = EnvCheck();
-if (env == 'test') {
- new VConsole();
-}
-
-// 封装layer消息提醒框
-let layerIndex
-const showLoading = () => {
- layer.open({
- type: 2,
- shadeClose: false,
- content: '加載中...',
- success(e) {
- layerIndex = $(e).attr('index')
- }
- })
-}
-const hideLoading = (index) => {
- layer.close(index)
-}
-const toastMsg = (content = '操作完成', time = 2) => {
- layer.open({
- content,
- time,
- skin: 'msg'
- })
-}
-
-if(!browser.app){
- toastMsg('请在app内打开!');
-}else{
- $('body').removeClass('no-in-app')
-}
-
-// 榜单类型,1是钻石榜,2是欧皇榜
-let type = 1
-
-let pageSize = 20
-
-// 钻石榜单
-let pageD = 1
-let myInfoD = []
-let rankListD = []
-// 欧皇榜单
-let pageN = 1
-let myInfoN = []
-let rankListN = []
-let clickTabCanNetworkN = true
-
-let isLockD = true
-let isLockN = true
-let isLock = true
-
-let canRequsetNextPageD = true
-let canRequsetNextPageN = true
-
-const getListRank = (type, page) => {
- networkRequest({
- type: 'GET',
- url: urlPrefix + '/act/luckySea/listRank',
- data:{
- type,
- page,
- pageSize
- },
- success(res){
- if(res.code === 200){
- if(type === 1){
- // 钻石榜单
- if(res.data.rankList.length === pageSize){
- // 可以请求下一页
- canRequsetNextPageD = true
- }else{
- // 不再请求下一页
- canRequsetNextPageD = false
- }
- rankListD.push(...res.data.rankList)
- // 底部个人信息只渲染一次 x
- // if(pageD === 1){
- // }
- myInfoD = res.data.myRankInfo
- renderMyInfo()
- renderRankList()
- isLockD = true
- }else{
- if(res.data.rankList.length === pageSize){
- // 可以请求下一页
- console.log('gekk');
- canRequsetNextPageN = true
- }else{
- // 不再请求下一页
- canRequsetNextPageN = false
- }
- rankListN.push(...res.data.rankList)
- // 底部个人信息只渲染一次 x
- // if(pageN === 1){
- // }
- myInfoN = res.data.myRankInfo
- renderMyInfo()
- // renderMyInfo()
- renderRankList()
- isLockN = true
- }
- // isLock = true
- }else{
- toastMsg(res.message)
- }
- },
- error(err){
- toastMsg('網絡錯誤')
- }
- })
-}
-
-// 渲染底部个人信息
-const renderMyInfo = () => {
- if(type === 1){
- // 钻石榜单
- let erbanNo = myInfoD.erbanNo
- let myIndex = rankListD.findIndex((item, index) => {
- return item.erbanNo === erbanNo
- })
- if(myIndex === -1){
- $('.mine-rank').html('未上榜')
- }else{
- $('.mine-rank').html(myIndex + 1)
- }
- $('.mine-info').find('img').attr('src', myInfoD.avatar)
- $('.mine-info').find('.mine-nick').html(myInfoD.nick)
- // if(myInfoD.num.toString().length >= 5) {
- // myInfoD.num = (myInfoD.num/10000).toFixed(2) + 'w'
- // }
- let tostr = myInfoD.num.toString()
- let num
- if(tostr.length >= 5) {
- num = (myInfoD.num/10000).toFixed(2) + 'w'
- }else{
- num = myInfoD.num
- }
- $('.mine-diamond-num').html(num)
- }else{
- let erbanNo = myInfoN.erbanNo
- let myIndex = rankListN.findIndex((item, index) => {
- return item.erbanNo === erbanNo
- })
- if(myIndex === -1){
- $('.mine-rank').html('未上榜')
- }else{
- $('.mine-rank').html(myIndex + 1)
- }
- $('.mine-info').find('img').attr('src', myInfoN.avatar)
- $('.mine-info').find('.mine-nick').html(myInfoN.nick)
- $('.mine-diamond-num').html('猜對' + myInfoN.num + '次')
- }
-}
-
-// 渲染榜单信息
-const renderRankList = () => {
- if(type === 1){
- // 钻石榜单
- // 渲染前3
- let topThreeArr = rankListD.slice(0, 3)
- console.log(topThreeArr);
- if(rankListD.length < 3){
- let len = 3 - rankListD.length
- let arr = new Array(len).fill({
- nick: '虛位以待',
- avatar: './images/default.png',
- num: ''
- })
- topThreeArr.push(...arr)
- }
- let topThreeStr = ''
- topThreeArr.map((item) => {
- let tostr = item.num.toString()
- let num
- if(tostr.length >= 5) {
- num = (item.num/10000).toFixed(2) + 'w'
- }else{
- num = item.num
- }
-
- topThreeStr += `
-
-
-
-

-
-
${item.nick.length > 5 ? item.nick.slice(0,5) + '...' : item.nick}
-
${num}
-
- `
- })
- $('.topthree-wrap').html(topThreeStr)
-
-
- // 渲染非前3
- let othersArr = rankListD.slice(3)
- console.log(othersArr);
- let others = ''
- othersArr.map((item, index) => {
- let tostr = item.num.toString()
- let num
- if(tostr.length >= 5) {
- num = (item.num/10000).toFixed(2) + 'w'
- }else{
- num = item.num
- }
- others += `
-
- ${index+4}
-
-

-
${item.nick}
-
- ${num}
-
- `
- })
- $('.other-rank').html(others)
- }else{
- // 欧皇榜单
- // 渲染前3
- let topThreeArr = rankListN.slice(0, 3)
- console.log(topThreeArr);
- if(rankListN.length < 3){
- let len = 3 - rankListN.length
- let arr = new Array(len).fill({
- nick: '虛位以待',
- avatar: './images/default.png'
- })
- topThreeArr.push(...arr)
- }
- let topThreeStr = ''
- topThreeArr.map((item) => {
- let num = ''
- if(item.erbanNo){
- num = '猜對'+item.num + '次'
- }
- topThreeStr += `
-
-
-
-

-
-
${item.nick.length > 5 ? item.nick.slice(0,5) + '...' : item.nick}
-
${num}
-
- `
- })
- $('.topthree-wrap').html(topThreeStr)
-
- // 渲染非前3
- let othersArr = rankListN.slice(3)
- console.log(othersArr);
- let others = ''
- othersArr.map((item, index) => {
- let num
- if(item.erbanNo){
- num = '猜對'+item.num + '次'
- }
- others += `
-
- ${index+4}
-
-

-
${item.nick}
-
- ${num}
-
- `
- })
- $('.other-rank').html(others)
- }
-
-}
-
-$(function(){
- getInfoFromClient()
- setTimeout(function(){
- getListRank(type, pageD)
- }, 50)
-
- $('.other-rank').height($(window).innerHeight() - $('.rank-top').height());
-
- $('.tab-wrap').on('click', 'span', function(){
- $(this).addClass('active').siblings().removeClass('active')
- if(type === $(this).index() + 1) return
- type = $(this).index() + 1
-
-
- $('.other-rank').scrollTop(0)
- if(type === 1){
- renderRankList()
- renderMyInfo()
- // getListRank(type, pageD)
- }else{
- if(clickTabCanNetworkN){
- getListRank(type, pageN)
- }else{
- renderRankList()
- renderMyInfo()
- }
- clickTabCanNetworkN = false
- }
- })
-
- // 监听滚动
- $('.other-rank').scroll(function(){
-
- let scrollTop = $(this).scrollTop();//这是已经卷进去滚动条的的高度
- let scrollHeight = $('.other-rank')[0].scrollHeight;//这个是other-rank包含滚动条的总高度
- let ulHeight = $(this).innerHeight();//这个是other-rank的高度
- console.log(ulHeight,scrollTop, scrollHeight);
-
- // 安卓可以只触发一次(安卓机型太多,不确定是否所有安卓都能触发一次),ios会触发多次,ios要加锁, pc端触发不了
-
-
- //这样距离到底还有一段距离就请求,但是会导致重复请求,所以要加锁限制
- if(scrollTop + ulHeight + 100 >= scrollHeight){
- console.log('到底了');
- if(type === 1){
- if(isLockD){
- isLockD = false
- pageD++
- if(pageSize * pageD > 100){
- toastMsg('沒有更多數據啦~')
- }else{
- if(canRequsetNextPageD){
- getListRank(type,pageD);
- }else{
- toastMsg('沒有更多數據啦~')
- }
- }
- }else{
- if(scrollTop + ulHeight >= scrollHeight){
- if(pageSize * pageD > 100){
- toastMsg('沒有更多數據啦~')
- }
- }
- }
-
- }else{
- // getListRank(type,++pageN);
- if(isLockN){
- isLockN = false
- pageN++
- if(pageSize * pageN > 100){
- toastMsg('沒有更多數據啦~')
- }else{
- if(canRequsetNextPageN){
- getListRank(type,pageN);
- }else{
- toastMsg('没有更多数据啦')
- }
- }
- }else{
- if(scrollTop + ulHeight >= scrollHeight){
- if(pageSize * pageN > 100){
- toastMsg('沒有更多數據啦~')
- }
- }
- }
- }
- }
- })
-})
\ No newline at end of file
diff --git a/view/peko/activity/act-ocean/js/record.js b/view/peko/activity/act-ocean/js/record.js
index 541ce99..4930091 100644
--- a/view/peko/activity/act-ocean/js/record.js
+++ b/view/peko/activity/act-ocean/js/record.js
@@ -2,13 +2,13 @@ let urlPrefix = getUrlPrefix()
let browser = checkVersion()
if (EnvCheck() === 'test') new VConsole
-// 封装layer消息提醒框
+// 封裝layer消息提醒框
let layerIndex
const showLoading = () => {
layer.open({
type: 2,
shadeClose: false,
- content: '加载中...',
+ content: '加載中...',
success (e) {
layerIndex = $(e).attr('index')
}
@@ -26,7 +26,7 @@ const toastMsg = (content = '操作完成', time = 2) => {
}
-// 获取用户的游戏记录
+// 獲取用戶的遊戲記錄
let recordList = []
let page = 1
let pageSize = 10
@@ -43,58 +43,107 @@ const getUserRecord = () => {
success (res) {
if (res.code === 200) {
if (res.data.length === pageSize) {
- // 能够继续请求下一页
+ // 能夠繼續請求下一頁
canNext = true
} else {
canNext = false
}
recordList.push(...res.data)
- renderRecord(res)
+ renderRecord()
isLock = true
} else {
toastMsg(res.message)
}
},
error (err) {
- toastMsg('网络错误')
+ toastMsg('網絡錯誤')
}
})
}
-// 渲染游戏记录
-const renderRecord = (res) => {
+// 渲染遊戲記錄
+const renderRecord = () => {
if (recordList.length === 0) {
- $('.record-list').hide();
- $('.img').show();
+ $('.record-list').html('
暫無遊戲記錄')
} else {
- $('.record-list').show();
- $('.img').hide();
- var str = '';
- let str2 = '';
- let drawId = [];;
- var results = [];
- console.log(res.data)
- res.data.forEach((res, index) => {
- drawId.push(res.drawId);
- str += `
-
- ${dateFormat(res.drawTime, 'yy-MM-dd hh:mm:ss')}
-
- 遊戲獎勵:
- ${res.reward}钻石
-
-
- 哎呀~猜錯了o(╥﹏╥)o
- 厲害~猜對了୧(๑•̀◡•́๑)૭
-
- `
- results.push(res.results);
- });
- $('.record-list').append(str)
- results.forEach((res, index) => {
- res.forEach(val => {
- $('.record-list li').eq(index).children('.marine_organism').append(`
+${val.costPiece}`)
+ let str = ''
+ recordList.map((item, index) => {
+ let drawId = item.drawId
+ let itemType = item.itemType
+ // 渲染li裏面的ul
+ let str1 = ''
+ let userCostPiece = '' //用戶投註情況
+ let userReward = '' //用戶獎勵情況
+ item.results.map((item1, index) => {
+ if (itemType === 1) {
+ userCostPiece = '+' + item1.costPiece
+ } else {
+ userCostPiece = item1.multiple * 10 + '*' + item1.costPiece
+ }
+
+ str1 += `
+
+
+ ${userCostPiece}
+
+ `
+
+ if (item1.itemId === drawId) {
+ $('.none').html(str1)
+ $('.none').find('li').eq(index).addClass('active')
+ str1 = $('.none').html()
+ }
})
- });
+
+ if (itemType === 1) {
+ if (item.reward) {
+ userReward = `
+
${item.reward}
+

+ `
+ } else {
+ userReward = `
+
未猜中
+ `
+ }
+ } else {
+ if (item.reward) {
+ userReward = `
+
+ ${item.itemName} (${item.price}
) *${item.reward / item.price}個 (共計${item.reward}
)
+
+ `
+
+ } else {
+ userReward = `
+
未猜中
+ `
+ }
+ }
+
+ // 渲染li
+ let text = ''
+ if (item.drawStatus === 1) {
+ text = '厲害~猜對了(*^▽^*)'
+ } else {
+ text = '哎呀~猜錯了o(╥﹏╥)o'
+ }
+ str += `
+
+ ${dateFormat(item.drawTime, "yyyy-MM-dd hh:mm:ss")}
+
+
遊戲獎勵:
+
+ ${userReward}
+
+
+
+ ${text}
+
+ `
+ })
+ $('.record-list').html(str)
}
}
@@ -103,14 +152,14 @@ $(function () {
setTimeout(function () {
getUserRecord()
}, 50)
- // 监听滚动
+ // 監聽滾動
$('ul').scroll(function () {
let scrollTop = $(this).scrollTop()
let scrollHeight = $('ul')[0].scrollHeight
let ulHeight = $(this).innerHeight()
if (scrollTop + ulHeight + 100 >= scrollHeight) {
if (isLock) {
- // 请求下一页
+ // 請求下一頁
if (canNext) {
getUserRecord(page++)
isLock = false
diff --git a/view/peko/activity/act-ocean/rank.html b/view/peko/activity/act-ocean/rank.html
deleted file mode 100644
index 8dfbc8f..0000000
--- a/view/peko/activity/act-ocean/rank.html
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
- 今日排名
-
-
-
-
-
-
-
-
-
- 钻石榜
- 欧皇榜
-
-
-
-
-
-
-
-
-
-
-
-
-
![]()
-
-
-
0
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/view/peko/activity/act-ocean/record.html b/view/peko/activity/act-ocean/record.html
index 5eeae20..a48c1c1 100644
--- a/view/peko/activity/act-ocean/record.html
+++ b/view/peko/activity/act-ocean/record.html
@@ -1,44 +1,26 @@
-
- 遊戲記錄
+ 游戏记录
-
+
-
-
-
+
+
-
+
\ No newline at end of file
diff --git a/view/peko/modules/game/css/index.css b/view/peko/modules/game/css/index.css
index 8da7be0..18801af 100644
--- a/view/peko/modules/game/css/index.css
+++ b/view/peko/modules/game/css/index.css
@@ -1,34 +1,30 @@
@font-face {
- font-family: 'pingfang-medium';
+ font-family: "pingfang-medium";
src: url("../../../common/fonts/PingFang-Medium.ttf");
src: url("../../../common/fonts/PingFang-Medium.ttf") format("woff"), url("../../../common/fonts/PingFang-Medium.ttf") format("truetype"), url("../../../common/fonts/PingFang-Medium.ttf") format("svg");
}
-
@font-face {
- font-family: 'pingfang-bold';
+ font-family: "pingfang-bold";
src: url("../../../common/fonts/PingFang Bold.ttf");
src: url("../../../common/fonts/PingFang Bold.ttf") format("woff"), url("../../../common/fonts/PingFang Bold.ttf") format("truetype"), url("../../../common/fonts/PingFang Bold.ttf") format("svg");
}
-
@font-face {
- font-family: 'pingfang-regular';
+ font-family: "pingfang-regular";
src: url("../../../common/fonts/PingFang-Regular.ttf");
src: url("../../../common/fonts/PingFang-Regular.ttf") format("woff"), url("../../../common/fonts/PingFang-Regular.ttf") format("truetype"), url("../../../common/fonts/PingFang-Regular.ttf") format("svg");
}
-
body {
display: none;
- background-color: #11111D;
+ background-color: #DFF7F3;
position: relative;
- font-family: 'pingfang-medium';
+ font-family: "pingfang-medium";
}
.banner {
width: 10rem;
- height: 11.46667rem;
+ height: 5.7733333333rem;
margin: auto;
}
-
.banner img {
width: 100%;
height: 100%;
@@ -36,75 +32,68 @@ body {
.personal-info-wrap {
position: absolute;
- top: 8.32rem;
+ top: 4.0933333333rem;
left: 50%;
transform: translateX(-50%);
- width: 10rem;
- height: 3.02667rem;
+ width: 9.0666666667rem;
+ height: 2.4rem;
background: url("../images/info-bg.png") no-repeat 0 0/100% 100%;
}
-
.personal-info-wrap .personal-info-content {
width: 100%;
height: 2.4rem;
display: flex;
align-items: center;
}
-
.personal-info-wrap .personal-info-content .avatar {
- width: 1.33333rem;
- height: 1.33333rem;
- margin-left: 0.86667rem;
- margin-right: 0.26667rem;
+ width: 1.3333333333rem;
+ height: 1.3333333333rem;
+ margin-left: 0.8666666667rem;
+ margin-right: 0.2666666667rem;
}
-
.personal-info-wrap .personal-info-content .avatar img {
width: 100%;
height: 100%;
border-radius: 50%;
}
-
.personal-info-wrap .personal-info-content .personal-info {
flex: 1;
- font-size: 0.26667rem;
- color: white;
+ font-size: 0.2666666667rem;
+ color: #141949;
}
-
.personal-info-wrap .personal-info-content .personal-info .nickname {
font-size: 0.4rem;
font-weight: 600;
margin-bottom: 0.24rem;
}
-
-.personal-info-wrap .personal-info-content .personal-info .platform-code, .personal-info-wrap .personal-info-content .personal-info .invite-code {
- font-family: 'pingfang-regular';
- margin-bottom: 0.10667rem;
+.personal-info-wrap .personal-info-content .personal-info .platform-code,
+.personal-info-wrap .personal-info-content .personal-info .invite-code {
+ font-family: "pingfang-regular";
+ margin-bottom: 0.1066666667rem;
}
-
.personal-info-wrap .personal-info-content .qr {
- width: 1.42667rem;
- height: 1.42667rem;
- margin-right: 0.93333rem;
+ width: 1.4266666667rem;
+ height: 1.4266666667rem;
+ margin-right: 0.9333333333rem;
}
-
.personal-info-wrap .personal-info-content .qr .active {
width: 100%;
height: 100%;
box-sizing: border-box;
border-radius: 0.16rem;
- border: 0.13333rem solid white;
+ border: 0.1333333333rem solid white;
}
.share-btn {
position: absolute;
- top: 10.44rem;
+ top: 6.2rem;
left: 50%;
transform: translateX(-50%);
width: 4.52rem;
- height: 0.92rem;
- line-height: 0.92rem;
+ height: 0.9466666667rem;
+ line-height: 0.9466666667rem;
background: url("../images/share-btn.png") no-repeat 0 0/100% 100%;
- font-family: 'pingfang-bold';
+ font-family: "pingfang-bold";
font-size: 0.4rem;
font-weight: bold;
color: #DB98FF;
@@ -112,86 +101,96 @@ body {
}
.rule-wrap {
- width: 9.13333rem;
+ width: 9.1333333333rem;
height: 2.8rem;
- background: url("../images/rule-bg.png") no-repeat 0 0/100% 100%;
- margin: 0.56rem auto 0.66667rem;
- padding: 0.96rem 0.4rem 0 0.4rem;
+ background: url("../images/ruleBg.png") no-repeat 0 0/100% 100%;
+ margin: 2.2rem auto 0.6666666667rem;
+ padding: 0.96rem 0.3333333333rem 0 0.4rem;
box-sizing: border-box;
- font-size: 0.34667rem;
- color: white;
- line-height: 1.5;
+ position: relative;
}
-
-.rule-wrap.rule-wrap-big {
- height: 3.89333rem;
- background: url("../images/rule-bg-big.png") no-repeat 0 0/100% 100%;
+.rule-wrap P {
+ color: #141949;
+ font-size: 0.3466666667rem;
+ margin-bottom: 0.2rem;
+ font-weight: bold;
+}
+.rule-wrap div {
+ position: absolute;
+ top: 0.2133333333rem;
+ left: 0.24rem;
+ color: #141949;
+ font-size: 0.32rem;
+ font-weight: bold;
}
.invite-record-wrap {
- width: 9.13333rem;
- height: 4.25333rem;
+ width: 9.1333333333rem;
+ height: 4.7066666667rem;
background: url("../images/record-bg.png") no-repeat 0 0/100% 100%;
margin: auto;
- padding-top: 1.05333rem;
+ padding-top: 1.0533333333rem;
box-sizing: border-box;
+ position: relative;
+}
+.invite-record-wrap .text {
+ color: #141949;
+ font-size: 0.32rem;
+ position: absolute;
+ font-weight: bold;
+ top: 0.2266666667rem;
+ left: 0.2533333333rem;
}
-
.invite-record-wrap::after {
- content: '';
- border: 0.53333rem solid transparent;
+ content: "";
+ border: 0.5333333333rem solid transparent;
}
-
.invite-record-wrap li {
position: relative;
display: flex;
align-items: center;
- margin-bottom: 0.53333rem;
+ margin-bottom: 0.5333333333rem;
}
-
.invite-record-wrap li .item-avatar {
- width: 1.33333rem;
- height: 1.33333rem;
- margin-left: 0.42667rem;
- margin-right: 0.25333rem;
+ width: 1.3333333333rem;
+ height: 1.3333333333rem;
+ margin-left: 0.4266666667rem;
+ margin-right: 0.2533333333rem;
}
-
.invite-record-wrap li .item-avatar img {
width: 100%;
height: 100%;
border-radius: 50%;
}
-
.invite-record-wrap li .item-info {
flex: 1;
}
-
.invite-record-wrap li .item-info .item-nickname {
font-size: 0.4rem;
font-weight: 600;
- color: #E1E1E2;
- margin-bottom: 0.45333rem;
+ color: #141949;
+ margin-bottom: 0.4533333333rem;
}
-
.invite-record-wrap li .item-info .item-nickname img {
width: 0.4rem;
height: 0.4rem;
}
-
.invite-record-wrap li .item-info .item-date {
- font-size: 0.26667rem;
- color: #7A767C;
+ font-size: 0.2666666667rem;
+ color: #141949;
+ font-weight: bold;
}
-
.invite-record-wrap li .isActive {
position: absolute;
- right: 0.29333rem;
+ right: 0.2933333333rem;
bottom: 0.08rem;
- font-family: 'pingfang-regular';
+ font-family: "pingfang-regular";
font-size: 0.32rem;
- color: #E1E1E2;
+ color: #141949;
+ font-weight: bold;
+}
+.invite-record-wrap li .isActive.inactive {
+ color: #FF6BEF;
}
-.invite-record-wrap li .isActive.inactive {
- color: #4A7DFF;
-}
+/*# sourceMappingURL=index.css.map */
diff --git a/view/peko/modules/game/css/index.scss b/view/peko/modules/game/css/index.scss
index 1a3b5c7..ca47eb6 100644
--- a/view/peko/modules/game/css/index.scss
+++ b/view/peko/modules/game/css/index.scss
@@ -1,8 +1,8 @@
-@function px2rem($px, $rem:75){
+@function px2rem($px, $rem:75) {
@return $px/$rem+rem;
}
-@font-face{
+@font-face {
font-family: 'pingfang-medium';
src: url('../../../common/fonts/PingFang-Medium.ttf');
src: url('../../../common/fonts/PingFang-Medium.ttf') format('woff'),
@@ -10,7 +10,7 @@
url('../../../common/fonts/PingFang-Medium.ttf') format('svg');
}
-@font-face{
+@font-face {
font-family: 'pingfang-bold';
src: url('../../../common/fonts/PingFang\ Bold.ttf');
src: url('../../../common/fonts/PingFang\ Bold.ttf') format('woff'),
@@ -18,7 +18,7 @@
url('../../../common/fonts/PingFang\ Bold.ttf') format('svg');
}
-@font-face{
+@font-face {
font-family: 'pingfang-regular';
src: url('../../../common/fonts/PingFang-Regular.ttf');
src: url('../../../common/fonts/PingFang-Regular.ttf') format('woff'),
@@ -26,66 +26,76 @@
url('../../../common/fonts/PingFang-Regular.ttf') format('svg');
}
-body{
+body {
display: none;
- background-color: #11111D;
+ background-color: #DFF7F3;
position: relative;
font-family: 'pingfang-medium';
}
-.banner{
+.banner {
width: px2rem(750);
- height: px2rem(860);
+ height: px2rem(433);
margin: auto;
- img{
+
+ img {
width: 100%;
height: 100%;
}
}
-.personal-info-wrap{
+.personal-info-wrap {
position: absolute;
- top: px2rem(624);
+ top: px2rem(307);
left: 50%;
transform: translateX(-50%);
- width: px2rem(750);
- height: px2rem(227);
+ width: px2rem(680);
+ height: px2rem(180);
background: url('../images/info-bg.png') no-repeat 0 0/100% 100%;
- .personal-info-content{
+
+ .personal-info-content {
width: 100%;
height: px2rem(180);
display: flex;
align-items: center;
- .avatar{
+
+ .avatar {
width: px2rem(100);
height: px2rem(100);
margin-left: px2rem(65);
margin-right: px2rem(20);
- img{
+
+ img {
width: 100%;
height: 100%;
border-radius: 50%;
}
}
- .personal-info{
+
+ .personal-info {
flex: 1;
font-size: px2rem(20);
- color: white;
- .nickname{
+ color: #141949;
+
+ .nickname {
font-size: px2rem(30);
font-weight: 600;
margin-bottom: px2rem(18);
}
- .platform-code, .invite-code{
+
+ .platform-code,
+ .invite-code {
font-family: 'pingfang-regular';
margin-bottom: px2rem(8);
}
}
- .qr{
+
+ .qr {
width: px2rem(107);
height: px2rem(107);
margin-right: px2rem(70);
- .active{
+
+ .active {
width: 100%;
height: 100%;
box-sizing: border-box;
@@ -96,14 +106,14 @@ body{
}
}
-.share-btn{
+.share-btn {
position: absolute;
- top: px2rem(783);
+ top: px2rem(465);
left: 50%;
transform: translateX(-50%);
width: px2rem(339);
- height: px2rem(69);
- line-height: px2rem(69);
+ height: px2rem(71);
+ line-height: px2rem(71);
background: url('../images/share-btn.png') no-repeat 0 0/100% 100%;
font-family: 'pingfang-bold';
font-size: px2rem(30);
@@ -112,76 +122,108 @@ body{
text-align: center;
}
-.rule-wrap{
+.rule-wrap {
width: px2rem(685);
height: px2rem(210);
- background: url('../images/rule-bg.png') no-repeat 0 0/100% 100%;
- margin: px2rem(42) auto px2rem(50);
- padding: px2rem(72) px2rem(30) 0 px2rem(30);
+ background: url('../images/ruleBg.png') no-repeat 0 0/100% 100%;
+ margin: 2.2rem auto px2rem(50);
+ padding: px2rem(72) px2rem(25) 0 px2rem(30);
box-sizing: border-box;
- font-size: px2rem(26);
- color: white;
- line-height: 1.5;
- &.rule-wrap-big{
- height: px2rem(292);
- background: url('../images/rule-bg-big.png') no-repeat 0 0/100% 100%;
+ position: relative;
+
+ P {
+ color: #141949;
+ font-size: px2rem(26, );
+ margin-bottom: px2rem(15, );
+ font-weight: bold;
+ }
+
+ div {
+ position: absolute;
+ top: px2rem(16, );
+ left: px2rem(18, );
+ color: #141949;
+ font-size: px2rem(24, );
+ font-weight: bold;
}
}
-.invite-record-wrap{
+.invite-record-wrap {
width: px2rem(685);
- height: px2rem(319);
+ height: px2rem(353);
background: url('../images/record-bg.png') no-repeat 0 0/100% 100%;
margin: auto;
padding-top: px2rem(79);
box-sizing: border-box;
- &::after{
+ position: relative;
+
+ .text {
+ color: #141949;
+ font-size: px2rem(24, );
+ position: absolute;
+ font-weight: bold;
+ top: px2rem(17, );
+ left: px2rem(19, );
+ }
+
+ &::after {
content: '';
border: px2rem(40) solid transparent;
}
- li{
+
+ li {
position: relative;
display: flex;
align-items: center;
margin-bottom: px2rem(40);
- .item-avatar{
+
+ .item-avatar {
width: px2rem(100);
height: px2rem(100);
margin-left: px2rem(32);
margin-right: px2rem(19);
- img{
+
+ img {
width: 100%;
height: 100%;
border-radius: 50%;
}
}
- .item-info{
+
+ .item-info {
flex: 1;
- .item-nickname{
+
+ .item-nickname {
font-size: px2rem(30);
font-weight: 600;
- color: #E1E1E2;
+ color: #141949;
margin-bottom: px2rem(34);
- img{
+
+ img {
width: px2rem(30);
height: px2rem(30);
}
}
- .item-date{
+
+ .item-date {
font-size: px2rem(20);
- color: #7A767C;
+ color: #141949;
+ font-weight: bold;
}
}
- .isActive{
+
+ .isActive {
position: absolute;
right: px2rem(22);
bottom: px2rem(6);
font-family: 'pingfang-regular';
font-size: px2rem(24);
- color: #E1E1E2;
- &.inactive{
- color: #4A7DFF;
+ color: #141949;
+ font-weight: bold;
+
+ &.inactive {
+ color: #FF6BEF;
}
}
}
-}
+}
\ No newline at end of file
diff --git a/view/peko/modules/game/css/register.css b/view/peko/modules/game/css/register.css
index f816fe0..3a81471 100644
--- a/view/peko/modules/game/css/register.css
+++ b/view/peko/modules/game/css/register.css
@@ -1,27 +1,29 @@
@font-face {
- font-family: 'pingfang-medium';
+ font-family: "pingfang-medium";
src: url("../../../common/fonts/PingFang-Medium.ttf");
src: url("../../../common/fonts/PingFang-Medium.ttf") format("woff"), url("../../../common/fonts/PingFang-Medium.ttf") format("truetype"), url("../../../common/fonts/PingFang-Medium.ttf") format("svg");
}
+html {
+ background: #E7F5F8;
+}
body {
display: none;
- font-family: 'pingfang-medium';
+ font-family: "pingfang-medium";
width: 100%;
- height: 17.78667rem;
- background: url("../images/register.png") #080709 no-repeat 0 0/100% 100%;
+ height: 17.7866666667rem;
+ background: url("../images/register.png") #E7F5F8 no-repeat 0 0/100% 100%;
position: relative;
}
.avatar {
position: absolute;
- top: 6.05333rem;
- left: 50%;
+ top: 5.3rem;
+ left: 49.6%;
transform: translateX(-50%);
- width: 2.13333rem;
- height: 2.13333rem;
+ width: 2.2rem;
+ height: 2.2rem;
}
-
.avatar img {
width: 100%;
height: 100%;
@@ -30,7 +32,7 @@ body {
.tip {
position: absolute;
- top: 10.05333rem;
+ top: 10.0533333333rem;
left: 50%;
transform: translateX(-50%);
font-size: 0.4rem;
@@ -38,80 +40,79 @@ body {
color: white;
width: 100%;
text-align: center;
+ display: none;
}
.form-wrap {
position: absolute;
- top: 10.93333rem;
+ top: 8.933333rem;
left: 50%;
transform: translateX(-50%);
}
-
-.form-wrap .mobile-number, .form-wrap .verify-ipt {
- width: 8.4rem;
- height: 0.93333rem;
+.form-wrap .mobile-number,
+.form-wrap .verify-ipt {
+ width: 8.28rem;
+ height: 1.2266666667rem;
outline: none;
- border-radius: 0.4rem;
+ border-radius: 1.2266666667rem;
padding-left: 0.4rem;
- background-color: rgba(255, 255, 255, 0.1);
+ background: #fff;
margin-bottom: 0.4rem;
font-size: 0.4rem;
- color: white;
+ color: #141949;
+ border: 1px solid #C8C9FF;
+ box-sizing: border-box;
+ font-weight: bold;
}
-
-.form-wrap .mobile-number::placeholder, .form-wrap .verify-ipt::placeholder {
- color: white;
- font-weight: 200;
+.form-wrap .mobile-number::placeholder,
+.form-wrap .verify-ipt::placeholder {
+ color: #141949;
+ font-weight: bold;
}
-
.form-wrap .verify-wrap {
position: relative;
- height: 0.93333rem;
+ height: 0.9333333333rem;
}
-
.form-wrap .verify-wrap .verify-btn {
position: absolute;
- right: 0;
- top: 0;
- width: 1.84rem;
- height: 0.93333rem;
- background-image: linear-gradient(to right, #256DC2, #5E2AB0);
- border-radius: 0.46667rem;
+ right: 0.32rem;
+ top: 0.2533333333rem;
+ width: 1.8666666667rem;
+ height: 0.7333333333rem;
+ background: #FF6BEF;
+ border-radius: 0.7333333333rem;
color: white;
font-size: 0.4rem;
text-align: center;
- line-height: 0.93333rem;
+ line-height: 0.7333333333rem;
}
-
.form-wrap .verify-wrap .invite-code {
position: absolute;
- top: 50%;
+ top: 63%;
left: 50%;
transform: translate(-50%, -50%);
- color: white;
+ color: #141949;
font-size: 0.48rem;
font-weight: bold;
}
-
.form-wrap .register-btn {
display: block;
- height: 0.93333rem;
- background-image: linear-gradient(to right, #218EFF, #7727E4);
- border-radius: 0.46667rem;
+ width: 8.28rem;
+ height: 1.2266666667rem;
+ background: linear-gradient(-90deg, #BBFFFF 0%, #A9AAFF 52%, #ECD0FF 100%);
+ border-radius: 1.2266666667rem;
margin: 0.8rem auto 0;
- color: white;
+ color: #141949;
font-size: 0.48rem;
font-weight: bold;
text-align: center;
- line-height: 0.93333rem;
+ line-height: 1.2266666667rem;
}
-
.form-wrap .form-tip {
color: #999;
- font-size: 0.34667rem;
+ font-size: 0.3466666667rem;
text-align: center;
}
-
.form-wrap .form-tip a {
color: white;
text-decoration: underline;
@@ -125,34 +126,33 @@ body {
z-index: 999;
width: 10rem;
height: 1.68rem;
- background-color: rgba(101, 61, 233, 0.4);
+ background: linear-gradient(-90deg, #A493FC 0%, #40D3F8 100%);
display: inline-flex;
align-items: center;
}
-
.bottom img {
- width: 1.14667rem;
- height: 1.14667rem;
- border-radius: 0.21333rem;
- margin-left: 0.26667rem;
- margin-right: 0.13333rem;
+ width: 1.1466666667rem;
+ height: 1.1466666667rem;
+ border-radius: 0.2133333333rem;
+ margin-left: 0.2666666667rem;
+ margin-right: 0.1333333333rem;
}
-
.bottom p {
flex: 1;
font-size: 0.4rem;
color: white;
}
-
.bottom a {
- width: 2.13333rem;
- height: 0.69333rem;
- line-height: 0.69333rem;
- border-radius: 0.34667rem;
+ width: 2.1333333333rem;
+ height: 0.6933333333rem;
+ line-height: 0.6933333333rem;
+ border-radius: 0.3466666667rem;
background: white;
- margin-right: 0.26667rem;
+ margin-right: 0.2666666667rem;
text-align: center;
- font-size: 0.34667rem;
+ font-size: 0.3733333333rem;
font-weight: bold;
- color: #752AE4;
+ color: #141949;
}
+
+/*# sourceMappingURL=register.css.map */
diff --git a/view/peko/modules/game/css/register.scss b/view/peko/modules/game/css/register.scss
index 22b89be..ef14a96 100644
--- a/view/peko/modules/game/css/register.scss
+++ b/view/peko/modules/game/css/register.scss
@@ -1,8 +1,8 @@
-@function px2rem($px, $rem:75){
+@function px2rem($px, $rem:75) {
@return $px/$rem+rem;
}
-@font-face{
+@font-face {
font-family: 'pingfang-medium';
src: url('../../../common/fonts/PingFang-Medium.ttf');
src: url('../../../common/fonts/PingFang-Medium.ttf') format('woff'),
@@ -10,30 +10,35 @@
url('../../../common/fonts/PingFang-Medium.ttf') format('svg');
}
-body{
+html {
+ background: #E7F5F8;
+}
+
+body {
display: none;
font-family: 'pingfang-medium';
width: 100%;
height: px2rem(1334);
- background: url('../images/register.png') #080709 no-repeat 0 0/100% 100%;
+ background: url('../images/register.png') #E7F5F8 no-repeat 0 0/100% 100%;
position: relative;
}
-.avatar{
+.avatar {
position: absolute;
- top: px2rem(454);
- left: 50%;
+ top: 5.3rem;
+ left: 49.6%;
transform: translateX(-50%);
- width: px2rem(160);
- height: px2rem(160);
- img{
+ width: 2.2rem;
+ height: 2.2rem;
+
+ img {
width: 100%;
height: 100%;
border-radius: 50%;
}
}
-.tip{
+.tip {
position: absolute;
top: px2rem(754);
left: 50%;
@@ -43,72 +48,85 @@ body{
color: white;
width: 100%;
text-align: center;
+ display: none;
}
-.form-wrap{
+.form-wrap {
position: absolute;
- top: px2rem(820);
+ top: 8.933333rem;
left: 50%;
transform: translateX(-50%);
- .mobile-number, .verify-ipt{
- width: px2rem(630);
- height: px2rem(70);
+
+ .mobile-number,
+ .verify-ipt {
+ width: px2rem(621);
+ height: px2rem(92);
outline: none;
- border-radius: px2rem(30);
+ border-radius: px2rem(92);
padding-left: px2rem(30);
- background-color: rgba($color: #fff, $alpha: .1);
+ background: #fff;
margin-bottom: px2rem(30);
font-size: px2rem(30);
- color: white;
- &::placeholder{
- color: white;
- font-weight: 200;
+ color: #141949;
+ border: 1px solid #C8C9FF;
+ box-sizing: border-box;
+ font-weight: bold;
+
+ &::placeholder {
+ color: #141949;
+ font-weight: bold;
}
}
- .verify-wrap{
+
+ .verify-wrap {
position: relative;
height: px2rem(70);
- .verify-btn{
+
+ .verify-btn {
position: absolute;
- right: 0;
- top: 0;
- width: px2rem(138);
- height: px2rem(70);
- background-image: linear-gradient(to right, #256DC2, #5E2AB0);
- border-radius: px2rem(35);
+ right: px2rem(24, );
+ top: px2rem(19, );
+ width: px2rem(140);
+ height: px2rem(55);
+ background: #FF6BEF;
+ border-radius: px2rem(55);
color: white;
font-size: px2rem(30);
text-align: center;
- line-height: px2rem(70);
+ line-height: px2rem(55);
}
- .invite-code{
+
+ .invite-code {
position: absolute;
- top: 50%;
+ top: 63%;
left: 50%;
transform: translate(-50%, -50%);
- color: white;
+ color: #141949;
font-size: px2rem(36, );
font-weight: bold;
}
}
- .register-btn{
+
+ .register-btn {
display: block;
- // width: px2rem(630);
- height: px2rem(70);
- background-image: linear-gradient(to right, #218EFF, #7727E4);
- border-radius: px2rem(35);
+ width: px2rem(621);
+ height: px2rem(92);
+ background: linear-gradient(-90deg, #BBFFFF 0%, #A9AAFF 52%, #ECD0FF 100%);
+ border-radius: px2rem(92);
margin: px2rem(60) auto 0;
- color: white;
+ color: #141949;
font-size: px2rem(36);
font-weight: bold;
text-align: center;
- line-height: px2rem(70);
+ line-height: px2rem(92);
}
- .form-tip{
+
+ .form-tip {
color: #999;
font-size: px2rem(26);
text-align: center;
- a{
+
+ a {
color: white;
text-decoration: underline;
}
@@ -118,7 +136,7 @@ body{
-.bottom{
+.bottom {
position: fixed;
bottom: 0;
left: 50%;
@@ -126,22 +144,25 @@ body{
z-index: 999;
width: px2rem(750);
height: px2rem(126);
- background-color: rgba($color: #653DE9, $alpha: .4);
+ background: linear-gradient(-90deg, #A493FC 0%, #40D3F8 100%);;
display: inline-flex;
align-items: center;
- img{
+
+ img {
width: px2rem(86);
height: px2rem(86);
border-radius: px2rem(16);
margin-left: px2rem(20);
margin-right: px2rem(10);
}
- p{
+
+ p {
flex: 1;
font-size: px2rem(30);
color: white;
}
- a{
+
+ a {
width: px2rem(160);
height: px2rem(52);
line-height: px2rem(52);
@@ -149,8 +170,8 @@ body{
background: white;
margin-right: px2rem(20);
text-align: center;
- font-size: px2rem(26);
+ font-size: px2rem(28);
font-weight: bold;
- color: #752AE4;
+ color: #141949;
}
-}
+}
\ No newline at end of file
diff --git a/view/peko/modules/game/images/banner-yy.png b/view/peko/modules/game/images/banner-yy.png
index 324a1b8..b04e6d3 100644
Binary files a/view/peko/modules/game/images/banner-yy.png and b/view/peko/modules/game/images/banner-yy.png differ
diff --git a/view/peko/modules/game/images/banner.png b/view/peko/modules/game/images/banner.png
index d2fa7ed..4b69bdd 100644
Binary files a/view/peko/modules/game/images/banner.png and b/view/peko/modules/game/images/banner.png differ
diff --git a/view/peko/modules/game/images/default.png b/view/peko/modules/game/images/default.png
index f026653..9db2f89 100644
Binary files a/view/peko/modules/game/images/default.png and b/view/peko/modules/game/images/default.png differ
diff --git a/view/peko/modules/game/images/delete.png b/view/peko/modules/game/images/delete.png
index 34c42da..81dcda2 100644
Binary files a/view/peko/modules/game/images/delete.png and b/view/peko/modules/game/images/delete.png differ
diff --git a/view/peko/modules/game/images/female.png b/view/peko/modules/game/images/female.png
index cb8880e..76405af 100644
Binary files a/view/peko/modules/game/images/female.png and b/view/peko/modules/game/images/female.png differ
diff --git a/view/peko/modules/game/images/info-bg.png b/view/peko/modules/game/images/info-bg.png
index 9b68258..1844c4e 100644
Binary files a/view/peko/modules/game/images/info-bg.png and b/view/peko/modules/game/images/info-bg.png differ
diff --git a/view/peko/modules/game/images/info-tip.png b/view/peko/modules/game/images/info-tip.png
index 73136df..c5531e7 100644
Binary files a/view/peko/modules/game/images/info-tip.png and b/view/peko/modules/game/images/info-tip.png differ
diff --git a/view/peko/modules/game/images/logo-yy.png b/view/peko/modules/game/images/logo-yy.png
index b7e7d69..0112525 100644
Binary files a/view/peko/modules/game/images/logo-yy.png and b/view/peko/modules/game/images/logo-yy.png differ
diff --git a/view/peko/modules/game/images/logo.png b/view/peko/modules/game/images/logo.png
index c700763..06bbf4a 100644
Binary files a/view/peko/modules/game/images/logo.png and b/view/peko/modules/game/images/logo.png differ
diff --git a/view/peko/modules/game/images/male.png b/view/peko/modules/game/images/male.png
index 5b6d044..49bcafb 100644
Binary files a/view/peko/modules/game/images/male.png and b/view/peko/modules/game/images/male.png differ
diff --git a/view/peko/modules/game/images/record-bg.png b/view/peko/modules/game/images/record-bg.png
index cdaf6c8..97aa666 100644
Binary files a/view/peko/modules/game/images/record-bg.png and b/view/peko/modules/game/images/record-bg.png differ
diff --git a/view/peko/modules/game/images/register.png b/view/peko/modules/game/images/register.png
index 54c6bc6..d4a011d 100644
Binary files a/view/peko/modules/game/images/register.png and b/view/peko/modules/game/images/register.png differ
diff --git a/view/peko/modules/game/images/rule-bg-big.png b/view/peko/modules/game/images/rule-bg-big.png
index 04ec99f..c80c7a8 100644
Binary files a/view/peko/modules/game/images/rule-bg-big.png and b/view/peko/modules/game/images/rule-bg-big.png differ
diff --git a/view/peko/modules/game/images/rule-bg.png b/view/peko/modules/game/images/rule-bg.png
deleted file mode 100644
index 30d1374..0000000
Binary files a/view/peko/modules/game/images/rule-bg.png and /dev/null differ
diff --git a/view/peko/modules/game/images/ruleBg.png b/view/peko/modules/game/images/ruleBg.png
new file mode 100644
index 0000000..5a83dbd
Binary files /dev/null and b/view/peko/modules/game/images/ruleBg.png differ
diff --git a/view/peko/modules/game/images/share-btn.png b/view/peko/modules/game/images/share-btn.png
index 42309c2..06bfe61 100644
Binary files a/view/peko/modules/game/images/share-btn.png and b/view/peko/modules/game/images/share-btn.png differ
diff --git a/view/peko/modules/game/index.html b/view/peko/modules/game/index.html
index 3c14d23..6a20cb5 100644
--- a/view/peko/modules/game/index.html
+++ b/view/peko/modules/game/index.html
@@ -1,12 +1,15 @@
+
-
+
邀请好友
+
@@ -21,17 +24,30 @@