Commit 1833508d authored by wildfirecode's avatar wildfirecode

1

parent e9c5e2ea
......@@ -6,11 +6,11 @@
<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 id="txt_standby" source="help_blood_1_text_png" y="0" horizontalCenter="0" visible="false"/>
<e:Image id="txt_success" source="help_blood_success_text2_png" horizontalCenter="0" visible="false"/>
<e:Image id="txt_error" source="help_blood_fail_text_png" horizontalCenter="0" visible="false"/>
<e:Image id="txt_error2002002016" source="help_blood_fail_text2_png" horizontalCenter="0" visible="false"/>
<e:Image id="txt_error2002002036" source="help_blood_fail_text3_png" horizontalCenter="0"/>
<e:Image source="help_blood_fail_text4_png" x="379" y="21" visible="false"/>
</e:Group>
</e:Skin>
\ No newline at end of file
......@@ -15,6 +15,8 @@ export default class HelpBloodPanel extends Panel {
this['gobtn'].once(egret.TouchEvent.TOUCH_TAP, this.onclick_gobtn, this);
this['helpbtn'].once(egret.TouchEvent.TOUCH_TAP, this.onClick, this);
this['txt_standby'].visible = true;
this['helpbtn'].visible = true;
}
onclick_gobtn() {
......@@ -24,16 +26,17 @@ export default class HelpBloodPanel extends Panel {
onClick() {
this['helpbtn'].visible = false;
this['gobtn'].visible = true;
this['txt_success'].visible=true;
NetManager.ins.showLog(getlogItem(88));
NetManager.ins.clickLog(getlogItem(87));
NetManager.ins.doHelpNew((s, res) => {
this.netCallback();
this['txt_sutxt_standbyccess'].visible=false;
// doHelpFlag = true;
if (s) {
this['txt_success'].visible=true;
showToast("助力成功!一起闯关赢现金吧")
}
else {
} else {
var codeMsgs = {//具体code还没给
"2002002016": "不可以给自己助力哦~",//
"2002002036": "已经给好友助力过了哦~",
......
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