Commit 755c98f5 authored by wildfirecode's avatar wildfirecode

1

parent 5a078770
No preview for this file type
......@@ -692,7 +692,7 @@
}
],
"uuid": "5f2a7508-4728-430b-b306-06f719ea81e3",
"disabled": true,
"disabled": false,
"children": [
{
"name": "cankao",
......@@ -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 @@
"width": 450,
"height": 350,
"position": {
"y": 9,
"_type_": "scilla/support/Vector2D",
"x": 10
"x": -3.3333333333333357,
"y": -25.444444444444446,
"_type_": "scilla/support/Vector2D"
}
}
},
......@@ -1931,11 +1974,9 @@
}
},
{
"script": "./scripts/dialogs/PrizeDialogContent",
"script": "./scripts/dialogs/ScoreDialogContent",
"properties": {
"pic": "entity|51655474-f891-419c-92e5-0dfa6f75cb67",
"label": "entity|undefined",
"getOrderStatus": "dynamic|API|getOrderStatus"
"content": "entity|03779188-0be4-44e9-a348-c01cbcda6865"
}
}
],
......@@ -2030,7 +2071,7 @@
{
"entity": "entity|4e3bc4b3-e5f5-4ae5-a736-9c252085acd7",
"component": 1,
"method": "onClick_usebtn"
"method": "onclick_ranbtn"
}
]
}
......
......@@ -20,7 +20,7 @@ export default class RuleDialogContent extends DialogContent {
}
setup(data) {
this._contentRenderer.htmlText = this.ajaxElement.rule;
this._contentRenderer.htmlText = window['CFG']['_rule'];
}
}
......@@ -6,6 +6,7 @@
import { Entity } from "scilla/src";
import DialogContent from "../popup/DialogContent";
import { setText } from "../entityUtils";
export default class ScoreDialogContent extends DialogContent {
content: Entity;
......@@ -14,6 +15,16 @@ export default class ScoreDialogContent extends DialogContent {
}
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
box1: Entity;
box2: Entity;
box3: Entity;
private COUNT_DOWN_SEC = 8;
private COUNT_DOWN_SEC = 4;
private _startTag = false;
private _msPassed = 0;
private _ballCounter = 0;
......@@ -123,7 +123,8 @@ export default class ScenePlay extends ScillaComponent implements INavigatorView
onTimerout() {
console.log('onTimerout');
alert(this._ballCounter);
// alert(this._ballCounter);
this.bubbling('showDialog', 'Score',this._ballCounter);
}
getNumber(num) {
......@@ -170,9 +171,9 @@ export default class ScenePlay extends ScillaComponent implements INavigatorView
this.box3.enabled = true;
}
onGameOver() {
this.bubbling('fuck', 'result');
}
// onGameOver() {
// this.bubbling('fuck', 'result');
// }
// _timer
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
......
......@@ -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);
}
onTapCloseButton() {
this.bubbling('fuck', 'start');
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
......
......@@ -34,6 +34,7 @@ export default class RankList extends ScillaComponent {
rank.getComponent(RankItem).setdata(item);
this.content.addChild(rank);
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 @@
__extends(ScenePlay, _super);
function ScenePlay() {
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._msPassed = 0;
_this_1._ballCounter = 0;
......@@ -7087,7 +7087,7 @@
};
ScenePlay.prototype.onTimerout = function () {
console.log('onTimerout');
alert(this._ballCounter);
this.bubbling('showDialog', 'Score', this._ballCounter);
};
ScenePlay.prototype.getNumber = function (num) {
if (num < 10)
......@@ -7129,9 +7129,6 @@
this.box2.enabled = false;
this.box3.enabled = true;
};
ScenePlay.prototype.onGameOver = function () {
this.bubbling('fuck', 'result');
};
ScenePlay.prototype.onDidEnter = function (last, action, parameters) {
this.entity.enabled = true;
};
......@@ -7530,6 +7527,9 @@
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);
};
SceneResult.prototype.onTapCloseButton = function () {
this.bubbling('fuck', 'start');
};
SceneResult.prototype.onDidEnter = function (last, action, parameters) {
this.entity.enabled = true;
};
......@@ -7986,6 +7986,7 @@
rank.getComponent(RankItem).setdata(item);
_this.content.addChild(rank);
rank.getComponent(Transform).position.y = index * itemHeight - totalHeight / 2 + itemHeight / 2 + 10;
_this._list.push(rank);
});
};
return RankList;
......@@ -8562,7 +8563,7 @@
this._contentRenderer = this.Content.getComponent(HtmlRenderer);
};
RuleDialogContent.prototype.setup = function (data) {
this._contentRenderer.htmlText = this.ajaxElement.rule;
this._contentRenderer.htmlText = window['CFG']['_rule'];
};
return RuleDialogContent;
}(DialogContent));
......@@ -8676,6 +8677,29 @@
return PrizeDialogContent;
}(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) {
__extends(Icon, _super);
function Icon() {
......@@ -8736,6 +8760,7 @@
registerDef('./scripts/scenes/SceneController', SceneController);
registerDef('./scripts/dialogs/AlertDialogContent', AlertDialogContent);
registerDef('./scripts/dialogs/PrizeDialogContent', PrizeDialogContent);
registerDef('./scripts/dialogs/ScoreDialogContent', ScoreDialogContent);
registerDef('./scripts/common/Toast', Toast);
registerDef('./scripts/Icon', Icon);
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 @@
<script src="./security.js"></script>
<script src="debug/bundle.js"></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() {
console.log('requirelogin');
......
......@@ -86,11 +86,14 @@ registerDef('./scripts/dialogs/AlertDialogContent', component25);
import component26 from '../../assets/scripts/dialogs/PrizeDialogContent';
registerDef('./scripts/dialogs/PrizeDialogContent', component26);
import component27 from '../../assets/scripts/common/Toast';
registerDef('./scripts/common/Toast', component27);
import component27 from '../../assets/scripts/dialogs/ScoreDialogContent';
registerDef('./scripts/dialogs/ScoreDialogContent', component27);
import component28 from '../../assets/scripts/Icon';
registerDef('./scripts/Icon', component28);
import component28 from '../../assets/scripts/common/Toast';
registerDef('./scripts/common/Toast', component28);
import component29 from '../../assets/scripts/scenes/SceneResult';
registerDef('./scripts/scenes/SceneResult', component29);
import component29 from '../../assets/scripts/Icon';
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