Commit 755c98f5 authored by wildfirecode's avatar wildfirecode

1

parent 5a078770
No preview for this file type
...@@ -692,7 +692,7 @@ ...@@ -692,7 +692,7 @@
} }
], ],
"uuid": "5f2a7508-4728-430b-b306-06f719ea81e3", "uuid": "5f2a7508-4728-430b-b306-06f719ea81e3",
"disabled": true, "disabled": false,
"children": [ "children": [
{ {
"name": "cankao", "name": "cankao",
...@@ -1334,6 +1334,49 @@ ...@@ -1334,6 +1334,49 @@
] ]
} }
] ]
},
{
"name": "Button",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": -288.88888888888886,
"y": -762.2222222222222
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|96f7f590-a82a-422f-803d-6e4e454b6dc5"
}
},
{
"script": "components/animation/TouchZoom",
"properties": {
"easeName": "backOut"
}
},
{
"script": "components/ui/Button",
"properties": {
"disabledRes": "res|96f7f590-a82a-422f-803d-6e4e454b6dc5",
"downRes": "res|96f7f590-a82a-422f-803d-6e4e454b6dc5",
"upRes": "res|96f7f590-a82a-422f-803d-6e4e454b6dc5",
"onClick": [
{
"entity": "entity|5f2a7508-4728-430b-b306-06f719ea81e3",
"component": 1,
"method": "onTapCloseButton"
}
]
}
}
],
"children": [],
"uuid": "90432538-716c-4df5-9ae0-af2e559dd66c"
} }
] ]
} }
...@@ -1571,9 +1614,9 @@ ...@@ -1571,9 +1614,9 @@
"width": 450, "width": 450,
"height": 350, "height": 350,
"position": { "position": {
"y": 9, "x": -3.3333333333333357,
"_type_": "scilla/support/Vector2D", "y": -25.444444444444446,
"x": 10 "_type_": "scilla/support/Vector2D"
} }
} }
}, },
...@@ -1931,11 +1974,9 @@ ...@@ -1931,11 +1974,9 @@
} }
}, },
{ {
"script": "./scripts/dialogs/PrizeDialogContent", "script": "./scripts/dialogs/ScoreDialogContent",
"properties": { "properties": {
"pic": "entity|51655474-f891-419c-92e5-0dfa6f75cb67", "content": "entity|03779188-0be4-44e9-a348-c01cbcda6865"
"label": "entity|undefined",
"getOrderStatus": "dynamic|API|getOrderStatus"
} }
} }
], ],
...@@ -2030,7 +2071,7 @@ ...@@ -2030,7 +2071,7 @@
{ {
"entity": "entity|4e3bc4b3-e5f5-4ae5-a736-9c252085acd7", "entity": "entity|4e3bc4b3-e5f5-4ae5-a736-9c252085acd7",
"component": 1, "component": 1,
"method": "onClick_usebtn" "method": "onclick_ranbtn"
} }
] ]
} }
......
...@@ -20,7 +20,7 @@ export default class RuleDialogContent extends DialogContent { ...@@ -20,7 +20,7 @@ export default class RuleDialogContent extends DialogContent {
} }
setup(data) { setup(data) {
this._contentRenderer.htmlText = this.ajaxElement.rule; this._contentRenderer.htmlText = window['CFG']['_rule'];
} }
} }
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
import { Entity } from "scilla/src"; import { Entity } from "scilla/src";
import DialogContent from "../popup/DialogContent"; import DialogContent from "../popup/DialogContent";
import { setText } from "../entityUtils";
export default class ScoreDialogContent extends DialogContent { export default class ScoreDialogContent extends DialogContent {
content: Entity; content: Entity;
...@@ -14,6 +15,16 @@ export default class ScoreDialogContent extends DialogContent { ...@@ -14,6 +15,16 @@ export default class ScoreDialogContent extends DialogContent {
} }
setup(data: any = {}) { setup(data: any = {}) {
setText(this.content, `恭喜你共摇出${data}颗喜糖`)
}
protected onTapCloseButton() {
super.onTapCloseButton();
this.bubbling('fuckNavigator', 'start');
}
onclick_ranbtn() {
this.hide();
this.bubbling('fuckNavigator', 'result');
} }
} }
...@@ -15,7 +15,7 @@ export default class ScenePlay extends ScillaComponent implements INavigatorView ...@@ -15,7 +15,7 @@ export default class ScenePlay extends ScillaComponent implements INavigatorView
box1: Entity; box1: Entity;
box2: Entity; box2: Entity;
box3: Entity; box3: Entity;
private COUNT_DOWN_SEC = 8; private COUNT_DOWN_SEC = 4;
private _startTag = false; private _startTag = false;
private _msPassed = 0; private _msPassed = 0;
private _ballCounter = 0; private _ballCounter = 0;
...@@ -123,7 +123,8 @@ export default class ScenePlay extends ScillaComponent implements INavigatorView ...@@ -123,7 +123,8 @@ export default class ScenePlay extends ScillaComponent implements INavigatorView
onTimerout() { onTimerout() {
console.log('onTimerout'); console.log('onTimerout');
alert(this._ballCounter); // alert(this._ballCounter);
this.bubbling('showDialog', 'Score',this._ballCounter);
} }
getNumber(num) { getNumber(num) {
...@@ -170,9 +171,9 @@ export default class ScenePlay extends ScillaComponent implements INavigatorView ...@@ -170,9 +171,9 @@ export default class ScenePlay extends ScillaComponent implements INavigatorView
this.box3.enabled = true; this.box3.enabled = true;
} }
onGameOver() { // onGameOver() {
this.bubbling('fuck', 'result'); // this.bubbling('fuck', 'result');
} // }
// _timer // _timer
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void { onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
......
...@@ -15,6 +15,10 @@ export default class SceneResult extends ScillaComponent implements INavigatorVi ...@@ -15,6 +15,10 @@ export default class SceneResult extends ScillaComponent implements INavigatorVi
this.loadAvatar(this.myavatar, '//yun.duiba.com.cn/db_games/1.jpg', 78); this.loadAvatar(this.myavatar, '//yun.duiba.com.cn/db_games/1.jpg', 78);
} }
onTapCloseButton() {
this.bubbling('fuck', 'start');
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void { onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true; this.entity.enabled = true;
} }
......
...@@ -34,6 +34,7 @@ export default class RankList extends ScillaComponent { ...@@ -34,6 +34,7 @@ export default class RankList extends ScillaComponent {
rank.getComponent(RankItem).setdata(item); rank.getComponent(RankItem).setdata(item);
this.content.addChild(rank); this.content.addChild(rank);
rank.getComponent(Transform).position.y = index * itemHeight - totalHeight / 2 + itemHeight / 2 + 10; rank.getComponent(Transform).position.y = index * itemHeight - totalHeight / 2 + itemHeight / 2 + 10;
this._list.push(rank);
}); });
} }
......
assets/singles/logo.png

34.8 KB | W: | H:

assets/singles/logo.png

1.85 KB | W: | H:

assets/singles/logo.png
assets/singles/logo.png
assets/singles/logo.png
assets/singles/logo.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -6967,7 +6967,7 @@ ...@@ -6967,7 +6967,7 @@
__extends(ScenePlay, _super); __extends(ScenePlay, _super);
function ScenePlay() { function ScenePlay() {
var _this_1 = _super !== null && _super.apply(this, arguments) || this; var _this_1 = _super !== null && _super.apply(this, arguments) || this;
_this_1.COUNT_DOWN_SEC = 8; _this_1.COUNT_DOWN_SEC = 4;
_this_1._startTag = false; _this_1._startTag = false;
_this_1._msPassed = 0; _this_1._msPassed = 0;
_this_1._ballCounter = 0; _this_1._ballCounter = 0;
...@@ -7087,7 +7087,7 @@ ...@@ -7087,7 +7087,7 @@
}; };
ScenePlay.prototype.onTimerout = function () { ScenePlay.prototype.onTimerout = function () {
console.log('onTimerout'); console.log('onTimerout');
alert(this._ballCounter); this.bubbling('showDialog', 'Score', this._ballCounter);
}; };
ScenePlay.prototype.getNumber = function (num) { ScenePlay.prototype.getNumber = function (num) {
if (num < 10) if (num < 10)
...@@ -7129,9 +7129,6 @@ ...@@ -7129,9 +7129,6 @@
this.box2.enabled = false; this.box2.enabled = false;
this.box3.enabled = true; this.box3.enabled = true;
}; };
ScenePlay.prototype.onGameOver = function () {
this.bubbling('fuck', 'result');
};
ScenePlay.prototype.onDidEnter = function (last, action, parameters) { ScenePlay.prototype.onDidEnter = function (last, action, parameters) {
this.entity.enabled = true; this.entity.enabled = true;
}; };
...@@ -7530,6 +7527,9 @@ ...@@ -7530,6 +7527,9 @@
this.loadAvatar(this.avatar3, '//yun.duiba.com.cn/db_games/1.jpg', 64); this.loadAvatar(this.avatar3, '//yun.duiba.com.cn/db_games/1.jpg', 64);
this.loadAvatar(this.myavatar, '//yun.duiba.com.cn/db_games/1.jpg', 78); this.loadAvatar(this.myavatar, '//yun.duiba.com.cn/db_games/1.jpg', 78);
}; };
SceneResult.prototype.onTapCloseButton = function () {
this.bubbling('fuck', 'start');
};
SceneResult.prototype.onDidEnter = function (last, action, parameters) { SceneResult.prototype.onDidEnter = function (last, action, parameters) {
this.entity.enabled = true; this.entity.enabled = true;
}; };
...@@ -7986,6 +7986,7 @@ ...@@ -7986,6 +7986,7 @@
rank.getComponent(RankItem).setdata(item); rank.getComponent(RankItem).setdata(item);
_this.content.addChild(rank); _this.content.addChild(rank);
rank.getComponent(Transform).position.y = index * itemHeight - totalHeight / 2 + itemHeight / 2 + 10; rank.getComponent(Transform).position.y = index * itemHeight - totalHeight / 2 + itemHeight / 2 + 10;
_this._list.push(rank);
}); });
}; };
return RankList; return RankList;
...@@ -8562,7 +8563,7 @@ ...@@ -8562,7 +8563,7 @@
this._contentRenderer = this.Content.getComponent(HtmlRenderer); this._contentRenderer = this.Content.getComponent(HtmlRenderer);
}; };
RuleDialogContent.prototype.setup = function (data) { RuleDialogContent.prototype.setup = function (data) {
this._contentRenderer.htmlText = this.ajaxElement.rule; this._contentRenderer.htmlText = window['CFG']['_rule'];
}; };
return RuleDialogContent; return RuleDialogContent;
}(DialogContent)); }(DialogContent));
...@@ -8676,6 +8677,29 @@ ...@@ -8676,6 +8677,29 @@
return PrizeDialogContent; return PrizeDialogContent;
}(DialogContent)); }(DialogContent));
var ScoreDialogContent = (function (_super) {
__extends(ScoreDialogContent, _super);
function ScoreDialogContent() {
return _super !== null && _super.apply(this, arguments) || this;
}
ScoreDialogContent.prototype.onAwake = function () {
_super.prototype.onAwake.call(this);
};
ScoreDialogContent.prototype.setup = function (data) {
if (data === void 0) { data = {}; }
setText(this.content, "\u606D\u559C\u4F60\u5171\u6447\u51FA" + data + "\u9897\u559C\u7CD6");
};
ScoreDialogContent.prototype.onTapCloseButton = function () {
_super.prototype.onTapCloseButton.call(this);
this.bubbling('fuckNavigator', 'start');
};
ScoreDialogContent.prototype.onclick_ranbtn = function () {
this.hide();
this.bubbling('fuckNavigator', 'result');
};
return ScoreDialogContent;
}(DialogContent));
var Icon = (function (_super) { var Icon = (function (_super) {
__extends(Icon, _super); __extends(Icon, _super);
function Icon() { function Icon() {
...@@ -8736,6 +8760,7 @@ ...@@ -8736,6 +8760,7 @@
registerDef('./scripts/scenes/SceneController', SceneController); registerDef('./scripts/scenes/SceneController', SceneController);
registerDef('./scripts/dialogs/AlertDialogContent', AlertDialogContent); registerDef('./scripts/dialogs/AlertDialogContent', AlertDialogContent);
registerDef('./scripts/dialogs/PrizeDialogContent', PrizeDialogContent); registerDef('./scripts/dialogs/PrizeDialogContent', PrizeDialogContent);
registerDef('./scripts/dialogs/ScoreDialogContent', ScoreDialogContent);
registerDef('./scripts/common/Toast', Toast); registerDef('./scripts/common/Toast', Toast);
registerDef('./scripts/Icon', Icon); registerDef('./scripts/Icon', Icon);
registerDef('./scripts/scenes/SceneResult', SceneResult); registerDef('./scripts/scenes/SceneResult', SceneResult);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -56,7 +56,14 @@ ...@@ -56,7 +56,14 @@
<script src="./security.js"></script> <script src="./security.js"></script>
<script src="debug/bundle.js"></script> <script src="debug/bundle.js"></script>
<script> <script>
var CFG = { "actId": "3335069", "oaId": "3335069", "unitName": "积分", "btnUnitName": "积分", "doJoin": "/hdtool/doJoin?dpm=1.3.1.0&activityId=3335069", "quireOrder": "/hdtool/getOrderStatus", "styleConfig": "/hdtool/getHdtoolConfig", "getElement": "/hdtool/ajaxElement", "getPrizeDetail": "/hdtool/prizeDetail", "ajaxThroughInfo": "/hdtool/ajaxThroughInfo", "throughSubmit": "/hdtool/throughSubmit", "gameGetOrder": "/hdtool/getOrderInfo", "gameSubmit": "/hdtool/gameSubmit", "doSubmit": "/hdtool/submit", "adslotId": "", "consumerId": "1", "isNotLoginUser": false, "uid": "1", "hdType": "duiba", "hdToolId": "42363", "appType": "credits", "subType": "custom", "directSendCoupon": "false", "ajaxAction": "", "recommendQueue": "/recommend/getRecommend", "recommendSkin": "/recommend/getRecommendSkin", "isShowDetail": true, "preview": false, "from": "", "login": "//activity.m.duiba.com.cn/hdtool/login?dpm=1.3.3.0", "flowRedirectUrl": "", "flowRedirectTuiaUrl": "", "isOpenRecommend": false, "getCreditsLink": "http://baidu.com?uid=1&dbnewopen", "appId": "1", "recordUrl": "//activity.m.duiba.com.cn/crecord/record?dbnewopen&dpm=1.3.2.0", "shareDesc": "分享分享文案文案", "entranceDesc": "测试领奖,也可到我的奖品领奖,24小时内有效哦", "isSHowMeat": true, "needCouponModal": true, "needRecommendModal": true, "asyncFiles": [], "shareAndroidLinkActivity": "http://www.duiba.com.cn", "shareIosLinkActivity": "http://www.iqiyi.com", "appName": "custom", "needShare": true, "shareTitle": "", "shareSubTitle": "", "sharePicUrl": "", "shareLink": "", "shareAndroidDeeplink": "", "shareIOSDeeplink": "" }; var CFG = {
activityId: 3561555,//活动id
freeLimit: 0,//剩余次数
weixinUid: '1',//微信uid
nickname: 'nickname',//昵称
avatar: 'avatar'
};
CFG._rule = 'starttttttt<br>第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行<br>第2行<br>第3行<br>第4行<br>第5行<br>第6行<br>第7行<br>第1行<br>第2行<br>第3行<br>第4行<br>第5行<br>第6行<br>第7行endddddd';
function requirelogin() { function requirelogin() {
console.log('requirelogin'); console.log('requirelogin');
......
...@@ -86,11 +86,14 @@ registerDef('./scripts/dialogs/AlertDialogContent', component25); ...@@ -86,11 +86,14 @@ registerDef('./scripts/dialogs/AlertDialogContent', component25);
import component26 from '../../assets/scripts/dialogs/PrizeDialogContent'; import component26 from '../../assets/scripts/dialogs/PrizeDialogContent';
registerDef('./scripts/dialogs/PrizeDialogContent', component26); registerDef('./scripts/dialogs/PrizeDialogContent', component26);
import component27 from '../../assets/scripts/common/Toast'; import component27 from '../../assets/scripts/dialogs/ScoreDialogContent';
registerDef('./scripts/common/Toast', component27); registerDef('./scripts/dialogs/ScoreDialogContent', component27);
import component28 from '../../assets/scripts/Icon'; import component28 from '../../assets/scripts/common/Toast';
registerDef('./scripts/Icon', component28); registerDef('./scripts/common/Toast', component28);
import component29 from '../../assets/scripts/scenes/SceneResult'; import component29 from '../../assets/scripts/Icon';
registerDef('./scripts/scenes/SceneResult', component29); registerDef('./scripts/Icon', component29);
import component30 from '../../assets/scripts/scenes/SceneResult';
registerDef('./scripts/scenes/SceneResult', component30);
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