Commit b1972501 authored by wjf's avatar wjf

Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev

parents 5664963a d63f67ed
egret/resource/assets/map/ad_icon.png

21.4 KB | W: | H:

egret/resource/assets/map/ad_icon.png

34.3 KB | W: | H:

egret/resource/assets/map/ad_icon.png
egret/resource/assets/map/ad_icon.png
egret/resource/assets/map/ad_icon.png
egret/resource/assets/map/ad_icon.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -139,6 +139,10 @@
{
"keys": "scratch_rule_bg_png",
"name": "scratchrulepanel"
},
{
"name": "preload",
"keys": "map大转盘_png,map刮现金红包_png"
}
],
"resources": [
......@@ -2361,6 +2365,16 @@
"url": "assets/scratch/rule/scratch_rule_bg.png",
"type": "image",
"name": "scratch_rule_bg_png"
},
{
"name": "map大转盘_png",
"type": "image",
"url": "assets/map/map大转盘.png"
},
{
"name": "map刮现金红包_png",
"type": "image",
"url": "assets/map/map刮现金红包.png"
}
]
}
\ No newline at end of file
......@@ -43,7 +43,7 @@
</e:Button>
<e:Label id="countdown" text="00:00:00" x="77.39" y="31.19" verticalAlign="middle" textAlign="center" size="22"/>
</e:Group>
<e:Button id="shopBtn" label="" x="613.08" y="174.01">
<e:Button id="shopBtn" label="" x="613.08" y="174.01" visible="false">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="道具_png" source.down="道具_png" source.disabled="道具_png"/>
......@@ -51,7 +51,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button id="recordBtn" label="" x="614.14" y="323.76">
<e:Button id="recordBtn" label="" x="614.14" y="174.01">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="recordbtn_png" source.down="recordbtn_png" source.disabled="recordbtn_png"/>
......@@ -68,7 +68,7 @@
<e:Image source="namebg_png" horizontalCenter="-4" bottom="-4"/>
<e:Label id="nameTxt" text="La121233bel" y="91.5" size="20" horizontalCenter="1"/>
</e:Group>
<e:Image id="adBtn" y="474.02" source="ad_icon_png" right="24" width="122" height="122"/>
<e:Image id="adBtn" y="478" source="ad_icon_png" right="602" width="122" height="122"/>
<e:Button id="taskBtn" label="" x="572.62" y="248.51" visible="false">
<e:skinName>
<e:Skin states="up,down,disabled">
......@@ -164,5 +164,19 @@
</e:Group>
<e:Label text="点击开宝箱" y="791" size="37" horizontalCenter="0" bold="true"/>
</e:Group>
<e:Group x="567.36" y="318.43" locked="true">
<e:Image source="map大转盘_png" x="33.36" y="0"/>
<e:Group x="6" y="10.24">
<e:Image id="inviteTipsBg0" source="invite_txtbg_png" y="0" touchEnabled="false"/>
<e:Label id="inviteTips0" text="立即到" horizontalCenter="0" verticalCenter="0" verticalAlign="middle" textAlign="center" textColor="0xFFFFFF" size="18" fontFamily="Helvetica"/>
</e:Group>
</e:Group>
<e:Group y="476" right="30">
<e:Image source="map刮现金红包_png" y="0"/>
<e:Group x="-24">
<e:Image id="inviteTipsBg1" source="invite_txtbg_png" y="0" touchEnabled="false"/>
<e:Label id="inviteTips1" text="立即到" horizontalCenter="0" verticalCenter="0" verticalAlign="middle" textAlign="center" textColor="0xFFFFFF" size="18" fontFamily="Helvetica"/>
</e:Group>
</e:Group>
<w:Config id="16c89f4ae1a"/>
</e:Skin>
\ No newline at end of file
......@@ -47,7 +47,7 @@
<e:Group id="progressGroup" x="8" verticalCenter="0">
<e:Image id="progressBg" source="scratch_progress_bg_png" anchorOffsetX="0" anchorOffsetY="0" x="0" y="0" width="437" height="22"/>
<e:Rect id="progress" fillColor="0xeb1917" left="0" verticalCenter="0" width="0" top="0" bottom="0"/>
<e:Label id="progressLabel" text="仅剩90.7%" size="18" verticalCenter="0" horizontalCenter="0"/>
<e:Label id="progressLabel" text="仅剩90.7%" size="18" verticalCenter="0" horizontalCenter="0" bold="true"/>
</e:Group>
<e:Image id="hongbao" source="scratch_hongbao_png" scaleX="1" scaleY="1" verticalCenter="0" horizontalCenter="219"/>
</e:Group>
......
......@@ -70,12 +70,14 @@ export default class MapScene extends Scene {
async start(data?) {
// NetManager.ins.getInviteInfo((success, res)=>{
// if(!success){
//
// }
// PanelCtrl.instance.show('scratch', res.data);
// });
setTimeout(() => {
NetManager.ins.getInviteInfo((success, res) => {
if(!success) {
}
PanelCtrl.instance.show('scratch', res.data);
});
}, 1000);
super.start();
......@@ -112,7 +114,7 @@ export default class MapScene extends Scene {
noticeAdvert = {enable: false}
}
if (noticeAdvert && noticeAdvert.enable && nowTimerStr2 != oldTimerStr2) {
if(noticeAdvert && noticeAdvert.enable && nowTimerStr2 != oldTimerStr2) {
// if (!adTag) {
panels.push('ad');
// adTag = true;
......@@ -120,9 +122,9 @@ export default class MapScene extends Scene {
localStorage.setItem('nowTimer2Str' + window['CFG'].consumerId, nowTimerStr2);
}
const { signInfoVO } = DataManager.ins.getData('getSignInfo');
if (signInfoVO.continueDay < 7) { //表示明天还可以签到
if (signInfoVO.todaySigned == 0 && oldTimerStr != nowTimerStr) {
const {signInfoVO} = DataManager.ins.getData('getSignInfo');
if(signInfoVO.continueDay < 7) { //表示明天还可以签到
if(signInfoVO.todaySigned == 0 && oldTimerStr != nowTimerStr) {
panels.push('sign');
localStorage.setItem('nowTimerStr' + window['CFG'].consumerId, nowTimerStr);
}
......@@ -267,13 +269,13 @@ export default class MapScene extends Scene {
}
updateSign(){
const { signInfoVO } = DataManager.ins.getData('getSignInfo');
if (signInfoVO.continueDay < 7) { //表示明天还可以签到
this['sign_s1'].visible=signInfoVO.todaySigned == 0;
this['sign_s2'].visible=!this['sign_s1'].visible;
}else {
this['sign_s2'].visible=true;
updateSign() {
const {signInfoVO} = DataManager.ins.getData('getSignInfo');
if(signInfoVO.continueDay < 7) { //表示明天还可以签到
this['sign_s1'].visible = signInfoVO.todaySigned == 0;
this['sign_s2'].visible = !this['sign_s1'].visible;
} else {
this['sign_s2'].visible = true;
}
}
......
......@@ -199,7 +199,6 @@ class InviteItem extends eui.ItemRenderer {
}
dataChanged() {
console.log(this.data);
this.img.source = this.data.avatar || "http://yun.duiba.com.cn/db_games/default_avatar.png";
this.img.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if (this.data.callFun) {
......
......@@ -166,8 +166,8 @@ export default class ScratchPanel extends Panel {
}
private hongbaoEffect(){
egret.Tween.get(this["hongbao"]).to({scaleX:0.8, scaleY:0.8}, 300, egret.Ease.quadInOut).call(()=>{
egret.Tween.get(this["hongbao"]).to({scaleX:1, scaleY:1}, 200, egret.Ease.quadInOut).wait(1500).call(()=>{
egret.Tween.get(this["hongbao"]).to({scaleX:0.8, scaleY:0.8}, 200, egret.Ease.quadInOut).call(()=>{
egret.Tween.get(this["hongbao"]).to({scaleX:1, scaleY:1}, 100, egret.Ease.quadInOut).wait(1500).call(()=>{
this.hongbaoEffect();
});
});
......@@ -201,8 +201,7 @@ class ScratchItem extends eui.ItemRenderer {
}
dataChanged() {
this.img.mask = this.mask
console.log(this.data);
this.img.mask = this.mask;
this.img.source = this.data.avatar || "http://yun.duiba.com.cn/db_games/default_avatar.png";
this.img.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if(this.data.callFun) {
......
{
"code": "0000000000",
"data": {
"mapAdvert": {
"enable": true,
"advertList": [
{
"img": "//yun.duiba.com.cn/images/201910/2iu41if4n7.png",
"url": "https://cuxiao.m.suning.com/scms/s11dybys.html?adTypeCode=1137&adId=https%3A%2F%2Flib.suning.com%2Fweex%2Fs11dybys.js%3FpageCode%3Ds11dybys"
}
]
},
"noticeAdvert": {
"enable": true,
"advertList": [
{
"img": "//yun.duiba.com.cn/images/201910/mgspbjuspb.png",
"url": "http://shop.m.suning.com/sale/30001669_10269054.html"
}
]
},
"popupAdvert": null
},
"success": true,
"desc": "OK",
"timestamp": 1571821360634
}
\ No newline at end of file
{"code":"0000000000","data":{"mapAdvert":{"enable":true,"advertList":[{"img":"//yun.duiba.com.cn/images/201910/2iu41if4n7.png","url":"https://cuxiao.m.suning.com/scms/s11dybys.html?adTypeCode=1137&adId=https%3A%2F%2Flib.suning.com%2Fweex%2Fs11dybys.js%3FpageCode%3Ds11dybys"}]},"noticeAdvert":{"enable":true,"advertList":[{"img":"//yun.duiba.com.cn/images/201910/zqtdp6xibw.jpg","url":"https://cuxiao.m.suning.com/scms/songshu.html"}]},"popupAdvert":null},"success":true,"desc":"OK","timestamp":1571913337116}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment