Commit 1f3044ae authored by wildfirecode's avatar wildfirecode

1

parent 20af0cbc
...@@ -14,5 +14,14 @@ if (cmd === 'build' && process.argv[3] === 'prod') { ...@@ -14,5 +14,14 @@ if (cmd === 'build' && process.argv[3] === 'prod') {
if (process.argv[4] === 'exml') if (process.argv[4] === 'exml')
cmd = 'buildProdEXML'; cmd = 'buildProdEXML';
} }
else if (cmd === 'build' && process.argv[3] === 'prod2') {
// if (cmd === 'build' && remain[1] === 'prod') {
cmd = 'notinypng';
if (process.argv[4] === 'ts')
cmd = 'buildProdTS';
if (process.argv[4] === 'exml')
cmd = 'buildProdEXML';
}
build[cmd]('egret'); build[cmd]('egret');
console.log(); console.log();
\ No newline at end of file
...@@ -1332,7 +1332,7 @@ export class NetManager extends ABNetManager { ...@@ -1332,7 +1332,7 @@ export class NetManager extends ABNetManager {
const net: INetData = { const net: INetData = {
name:'hc_advert', name:'hc_advert',
uri: window['duiba']+'/customActivity/happyclear/advert', uri: window['duiba']+'/customActivity/happyclear/advert',
type: 'post', type: 'get',
dataType: 'json', dataType: 'json',
param: { param: {
activityId: DataManager.ins.customCfgData.actId activityId: DataManager.ins.customCfgData.actId
......
<<<<<<< HEAD
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"common","version":5,"files":["../assets/common/toast.png","../assets/common/share_btn2.png","../assets/common/share_btn1.png","../assets/common/prizePanelbg.png","../assets/common/lightani.png","../assets/common/common_yuanbao.png","../assets/common/common_prizelight.png","../assets/common/common_adbg.png","../assets/common/commmon_okbtn1.png","../assets/common/closeCommonBtn.png","../assets/common/btn.png","../assets/common/alertbg.png","../assets/common/按钮 副本 4.png","../assets/common/按钮 副本 3.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"common","version":5,"files":["../assets/common/toast.png","../assets/common/share_btn2.png","../assets/common/share_btn1.png","../assets/common/prizePanelbg.png","../assets/common/lightani.png","../assets/common/common_yuanbao.png","../assets/common/common_prizelight.png","../assets/common/common_adbg.png","../assets/common/commmon_okbtn1.png","../assets/common/closeCommonBtn.png","../assets/common/btn.png","../assets/common/alertbg.png","../assets/common/按钮 副本 4.png","../assets/common/按钮 副本 3.png"]}
\ No newline at end of file
=======
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"common","version":5,"files":["../assets/common/toast.png","../assets/common/closeCommonBtn.png","../assets/common/btn.png","../assets/common/alertbg.png","../assets/common/按钮 副本 4.png","../assets/common/按钮 副本 3.png","../assets/common/share_btn2.png","../assets/common/share_btn1.png","../assets/common/commmon_okbtn1.png","../assets/common/lightani.png","../assets/common/prizePanelbg.png","../assets/common/common_prizelight.png","../assets/common/common_yuanbao.png"]}
>>>>>>> 0930
<<<<<<< HEAD
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"map","version":5,"files":["../assets/map/taskicon.png","../assets/map/recordbtn.png","../assets/map/progress2.png","../assets/map/progress1.png","../assets/map/namebg.png","../assets/map/msgTri.png","../assets/map/map_signicon.png","../assets/map/lionMsgBg.png","../assets/map/invite_txtbg.png","../assets/map/invite_icon.png","../assets/map/iconbg.png","../assets/map/icon.png","../assets/map/guideOver.png","../assets/map/guideMoney.png","../assets/map/guideLove.png","../assets/map/guideLevel.png","../assets/map/guideBox.png","../assets/map/friend_avatar.png","../assets/map/avatar.png","../assets/map/animal1.png","../assets/map/ad_icon.png","../assets/map/元宝bg.png","../assets/map/有星星.png","../assets/map/音乐关闭.png","../assets/map/音乐.png","../assets/map/星星bg.png","../assets/map/星星.png","../assets/map/无星星.png","../assets/map/问题.png","../assets/map/退出.png","../assets/map/狮子.png","../assets/map/声音关闭.png","../assets/map/声音.png","../assets/map/设置bg.png","../assets/map/设置.png","../assets/map/光 副本 4.png","../assets/map/关闭 拷贝.png","../assets/map/道具.png","../assets/map/宝箱btn.png","../assets/map/宝箱bg.png","../assets/map/宝箱3.png","../assets/map/宝箱2.png","../assets/map/宝箱1.png","../assets/map/宝箱.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"map","version":5,"files":["../assets/map/taskicon.png","../assets/map/recordbtn.png","../assets/map/progress2.png","../assets/map/progress1.png","../assets/map/namebg.png","../assets/map/msgTri.png","../assets/map/map_signicon.png","../assets/map/lionMsgBg.png","../assets/map/invite_txtbg.png","../assets/map/invite_icon.png","../assets/map/iconbg.png","../assets/map/icon.png","../assets/map/guideOver.png","../assets/map/guideMoney.png","../assets/map/guideLove.png","../assets/map/guideLevel.png","../assets/map/guideBox.png","../assets/map/friend_avatar.png","../assets/map/avatar.png","../assets/map/animal1.png","../assets/map/ad_icon.png","../assets/map/元宝bg.png","../assets/map/有星星.png","../assets/map/音乐关闭.png","../assets/map/音乐.png","../assets/map/星星bg.png","../assets/map/星星.png","../assets/map/无星星.png","../assets/map/问题.png","../assets/map/退出.png","../assets/map/狮子.png","../assets/map/声音关闭.png","../assets/map/声音.png","../assets/map/设置bg.png","../assets/map/设置.png","../assets/map/光 副本 4.png","../assets/map/关闭 拷贝.png","../assets/map/道具.png","../assets/map/宝箱btn.png","../assets/map/宝箱bg.png","../assets/map/宝箱3.png","../assets/map/宝箱2.png","../assets/map/宝箱1.png","../assets/map/宝箱.png"]}
\ No newline at end of file
=======
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"map","version":5,"files":["../assets/map/progress2.png","../assets/map/progress1.png","../assets/map/icon.png","../assets/map/animal1.png","../assets/map/元宝bg.png","../assets/map/有星星.png","../assets/map/音乐.png","../assets/map/星星bg.png","../assets/map/星星.png","../assets/map/无星星.png","../assets/map/问题.png","../assets/map/退出.png","../assets/map/狮子.png","../assets/map/声音.png","../assets/map/设置bg.png","../assets/map/设置.png","../assets/map/关闭 拷贝.png","../assets/map/道具.png","../assets/map/宝箱btn.png","../assets/map/宝箱bg.png","../assets/map/宝箱.png","../assets/map/宝箱3.png","../assets/map/宝箱2.png","../assets/map/宝箱1.png","../assets/map/iconbg.png","../assets/map/光 副本 4.png","../assets/map/音乐关闭.png","../assets/map/声音关闭.png","../assets/map/recordbtn.png","../assets/map/msgTri.png","../assets/map/guideOver.png","../assets/map/guideLove.png","../assets/map/guideBox.png","../assets/map/guideLevel.png","../assets/map/guideMoney.png","../assets/map/lionMsgBg.png","../assets/map/map_signicon.png"]}
>>>>>>> 0930
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"preload","version":5,"files":["../assets/ad/ad_closebtn.png"]}
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<e:Skin class="AvatarSkin" width="79" height="85" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="AvatarSkin" width="79" height="85" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Image source="friend_avatar_png"/> <e:Image source="friend_avatar_png"/>
<e:Group x="8.5" y="8.8"> <e:Group x="8.5" y="8.8">
<e:Image id="avatar" y="0" source="testavatar_png" width="64" height="64" x="0"/> <e:Image id="avatar" y="0" source="" width="64" height="64" x="0"/>
<e:Rect id="avatarMask" width="64" height="64" y="0" ellipseWidth="64" ellipseHeight="64"/> <e:Rect id="avatarMask" width="64" height="64" y="0" ellipseWidth="64" ellipseHeight="64"/>
</e:Group> </e:Group>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<e:Group id="friendBtn" x="5.96" y="22.31" width="171" height="120"> <e:Group id="friendBtn" x="5.96" y="22.31" width="171" height="120">
<e:Image source="avatar_png" y="0" horizontalCenter="0"/> <e:Image source="avatar_png" y="0" horizontalCenter="0"/>
<e:Group x="38.5" y="10"> <e:Group x="38.5" y="10">
<e:Image id="avatar" y="0" source="testavatar_png" width="96" height="96" x="0"/> <e:Image id="avatar" y="0" source="" width="96" height="96" x="0"/>
<e:Rect id="avatarMask" width="96" height="96" x="0" y="0" ellipseWidth="96" ellipseHeight="96"/> <e:Rect id="avatarMask" width="96" height="96" x="0" y="0" ellipseWidth="96" ellipseHeight="96"/>
</e:Group> </e:Group>
<e:Image source="namebg_png" horizontalCenter="-4" bottom="-4"/> <e:Image source="namebg_png" horizontalCenter="-4" bottom="-4"/>
......
...@@ -10,21 +10,23 @@ export default class AdSmallComp extends ComponentBase { ...@@ -10,21 +10,23 @@ export default class AdSmallComp extends ComponentBase {
super.start(data); super.start(data);
NetManager.ins.hc_advert(() => { NetManager.ins.hc_advert(() => {
const { data } = DataManager.ins.getData('hc_advert'); const { data } = DataManager.ins.getData('hc_advert');
const { noticeAdvert } = data; let { noticeAdvert } = data;
if (noticeAdvert == null)
noticeAdvert = { enable: false, advertList: [] }
this.visible = noticeAdvert.enable; this.visible = noticeAdvert.enable;
if (noticeAdvert.enable) { if (noticeAdvert.enable) {
result = noticeAdvert.advertList; result = noticeAdvert.advertList;
if(Array.isArray(noticeAdvert.advertList)) { if (Array.isArray(noticeAdvert.advertList)) {
const index = Math.floor(noticeAdvert.advertList.length * Math.random()); const index = Math.floor(noticeAdvert.advertList.length * Math.random());
result =noticeAdvert.advertList[index]; result = noticeAdvert.advertList[index];
} }
this.data.img = result.img; this.data.img = result.img;
} }
}); });
this['img'].addEventListener(egret.TouchEvent.TOUCH_TAP,()=>{ this['img'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
window.location.href = result.url; window.location.href = result.url;
},this); }, this);
} }
get skinKey(): string { return 'ADSmall' } get skinKey(): string { return 'ADSmall' }
......
...@@ -76,7 +76,7 @@ export default class MapScene extends Scene { ...@@ -76,7 +76,7 @@ export default class MapScene extends Scene {
const hc_advert = DataManager.ins.getData('hc_advert').data; const hc_advert = DataManager.ins.getData('hc_advert').data;
const { popupAdvert } = hc_advert; const { popupAdvert } = hc_advert;
if (oldTimerStr2 != nowTimerStr2 && popupAdvert.enable) { if (oldTimerStr2 != nowTimerStr2 && popupAdvert &&popupAdvert.enable) {
panels.push('ad'); panels.push('ad');
localStorage.setItem('nowTimer2Str' + window['CFG'].consumerId, nowTimerStr2); localStorage.setItem('nowTimer2Str' + window['CFG'].consumerId, nowTimerStr2);
} }
...@@ -229,8 +229,11 @@ export default class MapScene extends Scene { ...@@ -229,8 +229,11 @@ export default class MapScene extends Scene {
updateAdData() { updateAdData() {
const hc_advert = DataManager.ins.getData('hc_advert').data; const hc_advert = DataManager.ins.getData('hc_advert').data;
const { mapAdvert } = hc_advert; let { mapAdvert } = hc_advert;
if (mapAdvert == null)
mapAdvert = { enable: false, advertList: [] }
this['adBtn'].visible = mapAdvert.enable; this['adBtn'].visible = mapAdvert.enable;
if (mapAdvert.enable) {
let result; let result;
result = mapAdvert.advertList; result = mapAdvert.advertList;
if (Array.isArray(mapAdvert.advertList)) { if (Array.isArray(mapAdvert.advertList)) {
...@@ -242,6 +245,7 @@ export default class MapScene extends Scene { ...@@ -242,6 +245,7 @@ export default class MapScene extends Scene {
window.location.href = result.url; window.location.href = result.url;
}, this); }, this);
} }
}
destroy() { destroy() {
super.destroy(); super.destroy();
......
{
"success":true,
"code":null,
"desc":null,
"timestamp":1566199822308,
"data":{
"popupAdvert":{
"enable":false,
"advertList":[
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
},
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
}
]
},
"noticeAdvert":{
"enable":true,
"advertList":[
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
},
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
}
]
},
"mapAdvert":{
"enable":false,
"advertList":[
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
},
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
}
]
}
}
}
\ No newline at end of file
{ {
"success":true, "success": true,
"code":null, "code": "0000000000",
"desc":null, "desc": "OK",
"timestamp":1566199822308, "timestamp": 1571038218940,
"data":{ "data": {
"popupAdvert":{ "noticeAdvert": null,
"enable":false, "popupAdvert": null,
"advertList":[ "mapAdvert": null
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
},
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
}
]
},
"noticeAdvert":{
"enable":true,
"advertList":[
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
},
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
}
]
},
"mapAdvert":{
"enable":false,
"advertList":[
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
},
{
"img":"http://yun.dui88.com/images/201909/lsh4tdkp5n.jpg",
"url":"Http://www.baidu.com"
}
]
}
} }
} }
\ No newline at end of file
This diff is collapsed.
{ {
"success":true, "success": true,
"code":"0000000000", "code": "0000000000",
"desc":"OK", "desc": "OK",
"timestamp":1570785133074, "timestamp": 1571037021641,
"data":{ "data": {
"id":27, "id": 27,
"consumerId":1539361, "consumerId": 1539361,
"appId":1, "appId": 1,
"partnerUserId":"1", "partnerUserId": "1",
"nickname":"奈何本人没文化,一句卧槽行天下", "nickname": "奈何本人没文化,一句卧槽行天下",
"avatar":"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg", "avatar": "http://yun.dui88.com/images/201604/c6s5l4dgea.jpg",
"email":null, "email": null,
"sex":null, "sex": null,
"json": "{\"petName\":\"嘿嘿\",\"phone\":\"15858586969\",\"openId\":\"zyj\"}",
"gmtCreate":1447904240000, "gmtCreate": 1447904240000,
"gmtModified":1564034789000 "gmtModified": 1564034789000
} }
} }
\ No newline at end of file
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"scripts": { "scripts": {
"dev": "node build.js dev", "dev": "node build.js dev",
"build": "node build.js build prod", "build": "node build.js build prod",
"build2": "node build.js build prod2",
"buildTS": "node build.js build prod ts", "buildTS": "node build.js build prod ts",
"buildExml": "node build.js build prod exml", "buildExml": "node build.js build prod exml",
"backup": "node build.js backup", "backup": "node build.js backup",
......
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