Commit c2a15227 authored by wildfirecode's avatar wildfirecode

1

parent 7697ed86
......@@ -44,6 +44,7 @@
<script src="libs/security.js"></script>
<script src="libs/downloadApp.js"></script>
<script>
window['activeRule'] = '<br> 唤醒梦想,赋能亚运!<br> 为打造一届充满情怀的亚运盛会,让更多公众通过公益+互联网的新模式参与到杭州亚运会的筹备中来,杭州亚组委于2019年12月15日正式启动“寻找2022个亚运梦想”大型公益品牌活动。<br> 从现在至杭州亚运会开幕,我们将汇聚包括吉利汽车、中国电信、中国移动、工商银行、长龙航空、支付宝、阿里集团、杭州市体育彩票管理中心、青少年足球成长公益基金、浙江省青少年发展基金会、浙江省慈善联合总会、新浪微博、网易新闻、浙江之声及浙江电视台公共新闻频道在内的15家企业、组织和单位一起组成“联合助梦方”搭建“寻梦通道”,同时在全球范围内“寻梦”。只要您的梦想与亚运有关,只要您对梦想的坚持一如既往,您便可以通过文字、视频、音频、图画等任何您想到的形式将您的梦想告诉我们。我们将与“联合助梦方”一起让您的梦想被更多的人看见,被更多的人关注,通过杭州亚组委开设的“杭州亚运圆梦行动”(暂名)公募项目汇聚公众的爱心为梦想助力。最后,我们将在所有亚运梦想中挑选2022个,以亚运的名义为您圆梦。 <br> 我们坚信,每个梦想都值得被尊重。来吧,唤醒您的梦想,让您的梦想汇聚成亚运梦想的“星空”。';
window['rule'] = '1111<br>2222';
window['projectID']='p32804e45';
// window.firstScene='admin';
......
......@@ -1013,6 +1013,21 @@ export class NetManager extends ABNetManager {
};
this.send(net);
}
public yyh_queryProjectRule(callback: Function): void {
const param: any = {
};
const net: INetData = {
name: 'yyh_queryProjectRule',
uri: '/projectx/'+window['projectID']+'/projectRule.query?_=' +new Date().getTime(),
type: 'get',
dataType: 'json',
param: param,
callback: callback,
hideMsg:true
};
this.send(net);
}
//2
public yyh_join1_dreamDetail( callback: Function,isMyDream=false,dreamId?): void {
......
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"mainscene","version":5,"files":["../assets/main/main_star.png","../assets/main/main_pic.png","../assets/main/main_icon5.png","../assets/main/main_icon4.png","../assets/main/main_icon3.png","../assets/main/main_icon2.png","../assets/main/main_icon1.png","../assets/main/main_fu3.png","../assets/main/main_fu2.png","../assets/main/main_fu.png","../assets/main/main_fu_bg.png","../assets/main/main_btn3.png","../assets/main/main_btn2.png","../assets/main/main_btn1.png","../assets/main/main_bg2.png","../assets/main/main_bg1.png","../assets/main/main_text.png","../assets/main/main_starbg.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"mainscene","version":5,"files":["../assets/main/main_star.png","../assets/main/main_pic.png","../assets/main/main_icon5.png","../assets/main/main_icon4.png","../assets/main/main_icon3.png","../assets/main/main_icon2.png","../assets/main/main_icon1.png","../assets/main/main_fu3.png","../assets/main/main_fu2.png","../assets/main/main_fu.png","../assets/main/main_fu_bg.png","../assets/main/main_btn3.png","../assets/main/main_btn2.png","../assets/main/main_btn1.png","../assets/main/main_bg2.png","../assets/main/main_bg1.png","../assets/main/main_text.png","../assets/main/main_starbg.png","../assets/main/main_iconxx.png"]}
\ No newline at end of file
......@@ -9,7 +9,7 @@
"name": "noname"
},
{
"keys": "main_star_png,main_pic_png,main_icon5_png,main_icon4_png,main_icon3_png,main_icon2_png,main_icon1_png,main_fu3_png,main_fu2_png,main_fu_png,main_fu_bg_png,main_btn3_png,main_btn2_png,main_btn1_png,main_bg2_png,main_bg1_png,main_text_png,main_starbg_png",
"keys": "main_star_png,main_pic_png,main_icon5_png,main_icon4_png,main_icon3_png,main_icon2_png,main_icon1_png,main_fu3_png,main_fu2_png,main_fu_png,main_fu_bg_png,main_btn3_png,main_btn2_png,main_btn1_png,main_bg2_png,main_bg1_png,main_text_png,main_starbg_png,main_iconxx_png",
"name": "mainscene"
},
{
......@@ -436,6 +436,11 @@
"url": "assets/main/main_starbg.png",
"type": "image",
"name": "main_starbg_png"
},
{
"url": "assets/main/main_iconxx.png",
"type": "image",
"name": "main_iconxx_png"
}
]
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="IntroSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Image source="bg_jpg" x="-2"/>
<e:Label id="content" text="梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容" y="350.85" textColor="0x515276" scaleX="1" scaleY="1" size="22" lineSpacing="10" horizontalCenter="0" width="621"/>
<e:Image source="introbg_png" y="272" horizontalCenter="0"/>
<e:Group id="status1" x="85" y="814" visible="false">
<e:Group id="status1" x="85" y="814">
<e:Image id="btn0" source="common_btn12_png" y="0" x="0"/>
<e:Label text="截止时间2019.10.01" y="130.85" textColor="0x515276" scaleX="1" scaleY="1" size="22" lineSpacing="10" id="dead" horizontalCenter="0"/>
</e:Group>
......@@ -11,4 +10,12 @@
<e:Image id="btn1" y="0" x="0" source="common_btn10_png"/>
<e:Label id="lab1" text="快去为更多的梦想充能吧" y="130.85" textColor="0x515276" scaleX="1" scaleY="1" size="22" lineSpacing="10" x="191"/>
</e:Group>
<e:Scroller id="scroller" width="632" height="448" y="330.56" horizontalCenter="-5.5" skinName="skins.ScrollerSkin">
<e:Group id="group" width="100%">
<e:layout>
<e:VerticalLayout/>
</e:layout>
<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:Scroller>
</e:Skin>
\ No newline at end of file
......@@ -7,14 +7,15 @@
<e:Image source="main_bg1_png" x="0" y="0"/>
<e:Label id="progressTxt" text="10/100" width="100%" height="100%" verticalAlign="middle" textAlign="center" size="22" horizontalCenter="0" textColor="0x00ffe4" y="1.52"/>
</e:Group>
<e:Group x="34.88" y="38.4" locked="true">
<e:Group x="34.88" y="38.4">
<e:Image source="main_fu_bg_png" x="0" y="0"/>
<e:Image source="main_fu_png" x="31" y="30.5"/>
<e:Image id="maskImg" source="main_fu2_png" x="31.05" y="30.9"/>
<e:Rect id="imgMask" width="90" height="80.67" x="74.67" y="115" anchorOffsetY="80.67" anchorOffsetX="44.67"/>
<e:Image source="main_fu3_png" y="37.28" x="0"/>
</e:Group>
<e:Group id="starWrapper" width="750" height="1006" x="374" y="562" anchorOffsetX="374" anchorOffsetY="562" locked="true">
<e:Image id="starbtn" source="main_iconxx_png" x="680.51" y="176.28" alpha="0" anchorOffsetX="48.48" anchorOffsetY="63.64"/>
<e:Group id="starWrapper" width="750" height="1006" x="374" y="562" anchorOffsetX="374" anchorOffsetY="562">
<e:Image source="main_pic_png" x="30" y="9" scaleX="1" scaleY="1"/>
</e:Group>
<e:Image id="rulebtn" source="main_btn3_png" x="623" y="32" locked="true"/>
......
......@@ -2,9 +2,9 @@ import Scene from "../libs/new_wx/components/Scene";
import SceneCtrl from "../libs/new_wx/ctrls/sceneCtrl";
import { HtmlTextParser } from "../libs/new_wx/HtmlTextParser";
import { DataManager } from "../libs/tw/manager/DataManager";
import { NetManager } from "../libs/tw/manager/NetManager";
import getsubmitUrl from "./getsubmitUrl";
import join_1_index from "./interfaces/join_1_index";
import { NetManager } from "../libs/tw/manager/NetManager";
export default class IntroScene extends Scene {
......
......@@ -35,7 +35,7 @@ export default class MainScene extends Scene {
this['imgMask'].scaleY = num > max ? 1 : num / max;
}
setNormal(isNormal, rightnow = false) {
setNormal(isNormal, rightnow = false, first = false) {//first 刷新页面的情况
const join_1_index: join_1_index = DataManager.ins.getData('yyh_join1_index');
return new Promise((r) => {
this['starWrapper']['isNormal'] = isNormal;
......@@ -47,13 +47,21 @@ export default class MainScene extends Scene {
egret.Tween.get(item).to({ alpha: 0 }, 300).call(() => { this.removeChild(item) });
});
this.stars = [];
egret.Tween.get(this['starWrapper']).to({ x: 374, y: 562, scaleY: 1, scaleX: 1 }, 500, egret.Ease.backIn).call(() => {
this.playShakeAni();
});
if (first) {
this['starbtn'].alpha = 1;
} else {
this['starbtn'].alpha = 0;
egret.Tween.get(this['starbtn']).set({scaleX:0,scaleY:0}).to({alpha:1,scaleX:1,scaleY:1},200,egret.Ease.getBackOut(5)).wait(400).to({alpa:1,x:680.51,y:176},500);
egret.Tween.get(this['starWrapper']).wait(600).to({ x: 374, y: 562, scaleY: 1, scaleX: 1 }, 500, egret.Ease.backIn).call(() => {
this.playShakeAni();
this['starbtn'].alpha = 1;
});
}
} else {
egret.Tween.get(this['starbtn']).set({x:680.51,y:176,alpha:1}).to({alpha:0,x:375,y:575},700);
this.stopShakeAni();
this.updateStars(join_1_index.data.dreamList);
egret.Tween.get(this['starWrapper']).to({ x: 666 + 10, y: 135 + 30, scaleX: 0.15, scaleY: 0.15 },rightnow?1:500, egret.Ease.backIn).call(() => {
egret.Tween.get(this['starWrapper']).to({ x: 666 + 10, y: 135 + 30, scaleX: 0.15, scaleY: 0.15 }, rightnow ? 1 : 500, egret.Ease.backIn).call(() => {
this['tips'].visible = true;
this.stars.forEach((item, index) => {
wait(index * 1000).then(() => {
......@@ -84,7 +92,7 @@ export default class MainScene extends Scene {
this.playStarAni();
this.onResume_mainscene();
MainBase.onResume_mainscene = this.onResume_mainscene;
const join_1_index: join_1_index = DataManager.ins.getData('yyh_join1_index');
......@@ -92,15 +100,17 @@ export default class MainScene extends Scene {
if (isFirstShow) {
isFirstShow = false;
this.setNormal(1);
this.setNormal(1, false, true);
this['starbtn'].touchEnabled=false;
setTimeout(() => {
this['starbtn'].touchEnabled=true;
this.setNormal(0);
this['starWrapper'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.ontap_starWrapper, this);
}, 3000);
} else {
this.setNormal(0,true);
this.setNormal(0, true);
this['starWrapper'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.ontap_starWrapper, this);
}
const detail: any = await updateMyInfo()
......
import Panel from "../../libs/new_wx/components/Panel";
import { HtmlTextParser } from "../../libs/new_wx/HtmlTextParser";
import { NetManager } from "../../libs/tw/manager/NetManager";
import { DataManager } from "../../libs/tw/manager/DataManager";
export default class RulePanel extends Panel {
......@@ -8,12 +10,17 @@ export default class RulePanel extends Panel {
start() {
super.start();
this.addRule();
NetManager.ins.yyh_queryProjectRule((success)=>{
let str:string = DataManager.ins.getData('yyh_queryProjectRule').data;
str=str.replace('/<p>/g','');
str=str.replace('/</p>/g','<br>');
this.addRule(str);
});
}
group: eui.Group;
private addRule() {
const text =window['rule'];
private addRule(str) {
const text =str;
this.labContent.textFlow = (new HtmlTextParser).parser(text);
}
protected get closeBtns(): eui.Button[] { return [this['closeBtn'],this['closeBtn1']] }
......
......@@ -6,6 +6,9 @@ const config = {
'/projectx/p32804e45/credits/queryStatus.do': {
data: './esports/queryStatus.json'
},
'/projectx/p32804e45/projectRule.query': {
data: './esports/projectRule.json'
},
'/projectx/p32804e45/assist_1/index.do': {
data: './esports/index.json'
},
......
......@@ -8,7 +8,7 @@
"consumerId": "500208012",
"dreamContent": "test content2",
"dreamPic": "http://yun.duiba.com.cn/duibaimage/1574660334863500208012.png",
"dreamStatus": "1",
"dreamStatus": "-1",
"dreamTitle": "testtitle2",
"energy": 2,
"energyLimit": 100,
......
{
"success":true
}
\ 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