Commit e9c5e2ea authored by wildfirecode's avatar wildfirecode

1

parent 07645dcb
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="HelpBloodSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui">
<e:Skin class="HelpBloodSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Image source="help_blood_1_bg_png" y="26" horizontalCenter="0"/>
<e:Image source="help_blood_1_btn_png" x="108" y="918.5"/>
<e:Image source="help_blood_fail_btn_png" x="108" y="1070"/>
<e:Group y="855" horizontalCenter="0">
<e:Image id="helpbtn" source="help_blood_1_btn_png" x="0" y="0"/>
<e:Image id="gobtn" source="help_blood_fail_btn_png" x="0" y="0" visible="false"/>
</e:Group>
<e:Group y="88" width="100%" horizontalCenter="0">
<e:Image id="txt_standby" source="help_blood_1_text_png" y="0" horizontalCenter="0"/>
<e:Image id="txt_success" source="help_blood_success_text2_png" horizontalCenter="0"/>
<e:Image id="txt_error" source="help_blood_fail_text_png" horizontalCenter="0"/>
<e:Image source="help_blood_fail_text2_png" x="355" y="57" visible="false"/>
<e:Image source="help_blood_fail_text3_png" x="421" y="88" visible="false"/>
<e:Image source="help_blood_fail_text4_png" x="379" y="21" visible="false"/>
</e:Group>
</e:Skin>
\ No newline at end of file
......@@ -9,14 +9,28 @@ export default class HelpBloodPanel extends Panel {
start(data) {
this.netCallback = data.netCallback;
this.code = data.code;
'helpbtn';
'gobtn';
NetManager.ins.showLog(getlogItem(87));
this['gobtn'].once(egret.TouchEvent.TOUCH_TAP, this.onclick_gobtn, this);
this['helpbtn'].once(egret.TouchEvent.TOUCH_TAP, this.onClick, this);
}
onclick_gobtn() {
NetManager.ins.clickLog(getlogItem(88));
}
onClick(){
onClick() {
this['helpbtn'].visible = false;
this['gobtn'].visible = true;
NetManager.ins.showLog(getlogItem(88));
NetManager.ins.clickLog(getlogItem(87));
NetManager.ins.doHelpNew((s, res) => {
this.netCallback();
// doHelpFlag = true;
if (s) {
NetManager.ins.showLog(getlogItem(83))
showToast("助力成功!一起闯关赢现金吧")
}
else {
......@@ -35,4 +49,5 @@ export default class HelpBloodPanel extends Panel {
}, this.code)
}
get skinResKey() { return 'helpGroup' }
get skinKey() { return 'HelpBlood' }
}
\ No newline at end of file
......@@ -197,6 +197,9 @@ const config = {
},
'/activtyShareCode/getUserShareCode':{
data: './happyclear/exchangeCoin.json'
},
'/activtyShareCode/doHelpNew':{
data: './happyclear/doHelpNew.json'
}
};
......
{
"success": true,
"code": "0000000000",
"desc": "OK",
"timestamp": 1571052938097,
"data": {
"invitationId": null,
"invitationCount": 1,
"sysTime": 1571052938083,
"endTime": 1571134423000,
"completeFlag": 1,
"openPrizMsg": null,
"prizeType": "7",
"prizeName": null,
"prizeImg": "//yun.dui88.com/images/201910/oblhlej3a6.png",
"facePrice": "2",
"invitationUser": []
}
}
\ 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