Commit a355853d authored by wildfirecode's avatar wildfirecode

1

parent 51e3dd34
...@@ -32,4 +32,5 @@ ...@@ -32,4 +32,5 @@
</e:Group> </e:Group>
</e:Group> </e:Group>
</e:Scroller> </e:Scroller>
<e:Image id="backbtnxx" source="common_backbtn_png" x="33.2" y="22.96"/>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -41,4 +41,5 @@ ...@@ -41,4 +41,5 @@
</e:Group> </e:Group>
</e:Group> </e:Group>
</e:Scroller> </e:Scroller>
<e:Image id="backbtnxx" source="common_backbtn_png" x="33.2" y="22.96"/>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -93,4 +93,5 @@ ...@@ -93,4 +93,5 @@
</e:Group> </e:Group>
</e:Group> </e:Group>
</e:Scroller> </e:Scroller>
<e:Image id="backbtnxx" source="common_backbtn_png" x="33.2" y="22.96"/>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -18,4 +18,5 @@ ...@@ -18,4 +18,5 @@
<e:Label id="content" text="梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容" y="6.2900000000000205" textColor="0x515276" scaleX="1" scaleY="1" size="26" lineSpacing="10" horizontalCenter="0" width="614" x="-45"/> <e:Label id="content" text="梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容" y="6.2900000000000205" textColor="0x515276" scaleX="1" scaleY="1" size="26" lineSpacing="10" horizontalCenter="0" width="614" x="-45"/>
</e:Group> </e:Group>
</e:Scroller> </e:Scroller>
<e:Image id="backbtnxx" source="common_backbtn_png" x="33.2" y="22.96"/>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -53,4 +53,5 @@ ...@@ -53,4 +53,5 @@
</e:List> </e:List>
</e:Scroller> </e:Scroller>
<e:Label id="tips" text="还未给梦想助力哦~ \n前往“所有梦想”可为他人梦想充能" y="603" textColor="0x000000" verticalAlign="middle" textAlign="center" horizontalCenter="0" lineSpacing="10" visible="false"/> <e:Label id="tips" text="还未给梦想助力哦~ \n前往“所有梦想”可为他人梦想充能" y="603" textColor="0x000000" verticalAlign="middle" textAlign="center" horizontalCenter="0" lineSpacing="10" visible="false"/>
<e:Image id="backbtnxx" source="common_backbtn_png" x="33.2" y="22.96"/>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -4,6 +4,7 @@ import PanelCtrl from "../libs/new_wx/ctrls/panelCtrl"; ...@@ -4,6 +4,7 @@ import PanelCtrl from "../libs/new_wx/ctrls/panelCtrl";
import SceneCtrl from "../libs/new_wx/ctrls/sceneCtrl"; import SceneCtrl from "../libs/new_wx/ctrls/sceneCtrl";
import { NetManager } from "../libs/tw/manager/NetManager"; import { NetManager } from "../libs/tw/manager/NetManager";
import { DataManager } from "../libs/tw/manager/DataManager"; import { DataManager } from "../libs/tw/manager/DataManager";
import setBackBtn from "./setBackBtn";
export default class AdminScene extends Scene { export default class AdminScene extends Scene {
list: eui.List; list: eui.List;
...@@ -11,6 +12,8 @@ export default class AdminScene extends Scene { ...@@ -11,6 +12,8 @@ export default class AdminScene extends Scene {
super.start(); super.start();
this.showlog(); this.showlog();
setBackBtn(this);
this['scroll'].height = this.stage.stageHeight - this['scroll'].y; this['scroll'].height = this.stage.stageHeight - this['scroll'].y;
this.list.useVirtualLayout = true; this.list.useVirtualLayout = true;
......
import Scene from "../libs/new_wx/components/Scene"; import Scene from "../libs/new_wx/components/Scene";
import PanelCtrl from "../libs/new_wx/ctrls/panelCtrl"; import PanelCtrl from "../libs/new_wx/ctrls/panelCtrl";
import SceneCtrl from "../libs/new_wx/ctrls/sceneCtrl";
import { DataManager } from "../libs/tw/manager/DataManager"; import { DataManager } from "../libs/tw/manager/DataManager";
import { NetManager } from "../libs/tw/manager/NetManager"; import setBackBtn from "./setBackBtn";
export default class DreamAdminScene extends Scene { export default class DreamAdminScene extends Scene {
list: eui.List; list: eui.List;
...@@ -11,6 +10,7 @@ export default class DreamAdminScene extends Scene { ...@@ -11,6 +10,7 @@ export default class DreamAdminScene extends Scene {
super.start(); super.start();
this.showlog(); this.showlog();
this.id = data.id; this.id = data.id;
setBackBtn(this,'AdminScene');
this['img'].mask = this['imgMask']; this['img'].mask = this['imgMask'];
this['scroll'].height = this.stage.stageHeight - this['scroll'].y; this['scroll'].height = this.stage.stageHeight - this['scroll'].y;
......
...@@ -5,6 +5,7 @@ import { DataManager } from "../libs/tw/manager/DataManager"; ...@@ -5,6 +5,7 @@ import { DataManager } from "../libs/tw/manager/DataManager";
import getsubmitUrl from "./getsubmitUrl"; import getsubmitUrl from "./getsubmitUrl";
import join_1_index from "./interfaces/join_1_index"; import join_1_index from "./interfaces/join_1_index";
import { NetManager } from "../libs/tw/manager/NetManager"; import { NetManager } from "../libs/tw/manager/NetManager";
import setBackBtn from "./setBackBtn";
export enum DreamSceneType { export enum DreamSceneType {
IN_PROGRESS=0, IN_PROGRESS=0,
RESUBMIT=1, RESUBMIT=1,
...@@ -19,7 +20,7 @@ export default class DreamScene extends Scene { ...@@ -19,7 +20,7 @@ export default class DreamScene extends Scene {
this['group'].removeChild(this['status0']); this['group'].removeChild(this['status0']);
this['group'].removeChild(this['status1']); this['group'].removeChild(this['status1']);
this['group'].removeChild(this['status2']); this['group'].removeChild(this['status2']);
setBackBtn(this);
this.status = data; this.status = data;
this['img'].mask = this['imgMask']; this['img'].mask = this['imgMask'];
......
...@@ -6,11 +6,13 @@ import { DataManager } from "../libs/tw/manager/DataManager"; ...@@ -6,11 +6,13 @@ import { DataManager } from "../libs/tw/manager/DataManager";
import join_1_index from "./interfaces/join_1_index"; import join_1_index from "./interfaces/join_1_index";
import { getProvince } from "./MyDreamScene"; import { getProvince } from "./MyDreamScene";
import { NetManager } from "../libs/tw/manager/NetManager"; import { NetManager } from "../libs/tw/manager/NetManager";
import setBackBtn from "./setBackBtn";
export default class HisDreamScene extends Scene { export default class HisDreamScene extends Scene {
type; type;
async start(type?) { async start(type?) {
this.showlog(); this.showlog();
setBackBtn(this,'ListScene');
const yyh_join1_dreamDetail = DataManager.ins.getData('yyh_join1_dreamDetail').data; const yyh_join1_dreamDetail = DataManager.ins.getData('yyh_join1_dreamDetail').data;
this.type = type; this.type = type;
......
...@@ -5,12 +5,14 @@ import { DataManager } from "../libs/tw/manager/DataManager"; ...@@ -5,12 +5,14 @@ import { DataManager } from "../libs/tw/manager/DataManager";
import { NetManager } from "../libs/tw/manager/NetManager"; import { NetManager } from "../libs/tw/manager/NetManager";
import getsubmitUrl from "./getsubmitUrl"; import getsubmitUrl from "./getsubmitUrl";
import join_1_index from "./interfaces/join_1_index"; import join_1_index from "./interfaces/join_1_index";
import setBackBtn from "./setBackBtn";
export default class IntroScene extends Scene { export default class IntroScene extends Scene {
async start(data?) { async start(data?) {
super.start(); super.start();
this.showlog(); this.showlog();
setBackBtn(this);
this[`status${data}`].visible=true; this[`status${data}`].visible=true;
this['btn0'].addEventListener(egret.TouchEvent.TOUCH_TAP,this.ontap_btn0,this); this['btn0'].addEventListener(egret.TouchEvent.TOUCH_TAP,this.ontap_btn0,this);
this['btn1'].addEventListener(egret.TouchEvent.TOUCH_TAP,this.ontap_btn1,this); this['btn1'].addEventListener(egret.TouchEvent.TOUCH_TAP,this.ontap_btn1,this);
......
...@@ -8,12 +8,14 @@ import join_1_index from "./interfaces/join_1_index"; ...@@ -8,12 +8,14 @@ import join_1_index from "./interfaces/join_1_index";
import { getMyInfo } from "./MainScene"; import { getMyInfo } from "./MainScene";
import getcredits from "./getcredits"; import getcredits from "./getcredits";
import { showToast } from "../libs/new_wx/ctrls/toastCtrl"; import { showToast } from "../libs/new_wx/ctrls/toastCtrl";
import setBackBtn from "./setBackBtn";
export default class ListScene extends Scene { export default class ListScene extends Scene {
list: eui.List; list: eui.List;
list2: eui.List; list2: eui.List;
async start(data?) { async start(data?) {
super.start(); super.start();
setBackBtn(this);
this.showlog(); this.showlog();
this['scroll'].height = this.stage.stageHeight - this['scroll'].y - this['group'].y - 10; this['scroll'].height = this.stage.stageHeight - this['scroll'].y - this['group'].y - 10;
......
import { NetManager } from "../libs/tw/manager/NetManager";
import SceneCtrl from "../libs/new_wx/ctrls/sceneCtrl";
export default (t,key='MainScene') => {
if (t['backbtnxx'])
t['backbtnxx'].once(egret.TouchEvent.TOUCH_TAP, () => {
NetManager.ins.yyh_join1_index(async (success) => {
SceneCtrl.instance.change(key);
});
}, this);
}
\ No newline at end of file
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"consumerId": "500208012", "consumerId": "500208012",
"dreamContent": "test content2", "dreamContent": "test content2",
"dreamPic": "http://yun.duiba.com.cn/duibaimage/1574660334863500208012.png", "dreamPic": "http://yun.duiba.com.cn/duibaimage/1574660334863500208012.png",
"dreamStatus": "2", "dreamStatus": "-1",
"dreamTitle": "testtitle2", "dreamTitle": "testtitle2",
"energy": 2, "energy": 2,
"energyLimit": 100, "energyLimit": 100,
......
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