Commit befec1b2 authored by wildfirecode13's avatar wildfirecode13

u

parent d5bb9553
{"code":null,"data":500000,"message":null,"success":true} {"code":null,"data":2500,"message":null,"success":true}
\ No newline at end of file \ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"alreadyOpenAccount": false, "alreadyOpenAccount": false,
"assistFriendNum": 1, "assistFriendNum": 1,
"canWithdraw": false, "canWithdraw": false,
"experienceAmount": 1000, "experienceAmount": 2500,
"maxExperienceAmount": 2500, "maxExperienceAmount": 2500,
"millionShares": null, "millionShares": null,
"otherExperienceAmount": 1, "otherExperienceAmount": 1,
......
export const MAX_MONEY=100*10000; export const MAX_MONEY=100*10000;
export const MONEY_PERCENT=0.1; export const MONEY_PERCENT=0.1;
\ No newline at end of file
export const WEIXIN_URL = 'https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=Mzg5NTMyMTg3Nw==&scene=124#wechat_redirect';
\ No newline at end of file
...@@ -2,8 +2,13 @@ import { RES } from "../../module/RES"; ...@@ -2,8 +2,13 @@ import { RES } from "../../module/RES";
import { Panel } from "../../module/views/Panel"; import { Panel } from "../../module/views/Panel";
import centerTextField from "../common/centerTextField"; import centerTextField from "../common/centerTextField";
import getObject from "../common/getObject"; import getObject from "../common/getObject";
import { WEIXIN_URL } from "../datas";
export class ShareFailPanel extends Panel { export class ShareFailPanel extends Panel {
share_success_btn(){
location.href=WEIXIN_URL
}
initUi() { initUi() {
super.initUi(); super.initUi();
var skin = RES.getSkinDataByName(this.skinName); var skin = RES.getSkinDataByName(this.skinName);
...@@ -24,4 +29,13 @@ export class ShareFailPanel extends Panel { ...@@ -24,4 +29,13 @@ export class ShareFailPanel extends Panel {
async start(data) { async start(data) {
super.start(); super.start();
} }
initEvents(){
super.initEvents();
getObject(this,'share_fail_btn').addEventListener(FYGE.MouseEvent.CLICK,this.share_success_btn,this);
}
removeEvents(){
super.removeEvents();
getObject(this,'share_fail_btn').removeEventListener(FYGE.MouseEvent.CLICK,this.share_success_btn,this);
}
} }
\ No newline at end of file
...@@ -2,8 +2,13 @@ import { RES } from "../../module/RES"; ...@@ -2,8 +2,13 @@ import { RES } from "../../module/RES";
import { Panel } from "../../module/views/Panel"; import { Panel } from "../../module/views/Panel";
import centerTextField from "../common/centerTextField"; import centerTextField from "../common/centerTextField";
import getObject from "../common/getObject"; import getObject from "../common/getObject";
import { WEIXIN_URL } from "../datas";
export class ShareSuccessPanel extends Panel { export class ShareSuccessPanel extends Panel {
share_success_btn(){
location.href=WEIXIN_URL
}
initUi() { initUi() {
super.initUi(); super.initUi();
var skin = RES.getSkinDataByName(this.skinName); var skin = RES.getSkinDataByName(this.skinName);
...@@ -24,4 +29,13 @@ export class ShareSuccessPanel extends Panel { ...@@ -24,4 +29,13 @@ export class ShareSuccessPanel extends Panel {
super.start(); super.start();
} }
initEvents(){
super.initEvents();
getObject(this,'share_success_btn').addEventListener(FYGE.MouseEvent.CLICK,this.share_success_btn,this);
}
removeEvents(){
super.removeEvents();
getObject(this,'share_success_btn').removeEventListener(FYGE.MouseEvent.CLICK,this.share_success_btn,this);
}
} }
\ 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