Commit b55bc6cd authored by wildfirecode's avatar wildfirecode

1

parent 502498b2
No preview for this file type
...@@ -383,7 +383,7 @@ ...@@ -383,7 +383,7 @@
"_x": 0, "_x": 0,
"_y": 245.1060606060605, "_y": 245.1060606060605,
"x": 0, "x": 0,
"y": 216.21717171717162 "y": 199.07431457431449
} }
} }
}, },
...@@ -427,7 +427,9 @@ ...@@ -427,7 +427,9 @@
"position": { "position": {
"_hashCode": 3405, "_hashCode": 3405,
"_x": 0, "_x": 0,
"_y": 299.651515151515 "_y": 299.651515151515,
"x": 0,
"y": 271.08008658008646
} }
} }
}, },
...@@ -486,7 +488,7 @@ ...@@ -486,7 +488,7 @@
"uuid": "1fb25a95-98c0-4f3c-9ae9-e8d4e67adf79" "uuid": "1fb25a95-98c0-4f3c-9ae9-e8d4e67adf79"
} }
], ],
"disabled": true "disabled": false
}, },
{ {
"name": "ScenePlay", "name": "ScenePlay",
......
...@@ -53,11 +53,11 @@ export default class PrizeDialogContent extends DialogContent { ...@@ -53,11 +53,11 @@ export default class PrizeDialogContent extends DialogContent {
const texture = await this.loadTexture(data.prizeImage); const texture = await this.loadTexture(data.prizeImage);
texRender.texture = texture; texRender.texture = texture;
if (texture.bounds.width > texture.bounds.height) { if (texture.bounds.width > texture.bounds.height) {
const maxWidth = 500; const maxwidth = 250;
setScale(this.pic, maxWidth / texture.bounds.width) setScale(this.pic, maxwidth / texture.bounds.width)
} else { } else {
const width = 250; const maxheight = 250;
setScale(this.pic, width / texture.bounds.width) setScale(this.pic, maxheight / texture.bounds.height)
} }
} }
......
...@@ -30,7 +30,8 @@ export default class ScoreDialogContent extends DialogContent { ...@@ -30,7 +30,8 @@ export default class ScoreDialogContent extends DialogContent {
// weddingId: window['CFG'].weddingId, // weddingId: window['CFG'].weddingId,
// activityId: window['CFG'].activityId // activityId: window['CFG'].activityId
// }) // })
window.location.href=getRankURL(); this.bubbling('fuckNavigator', 'start');
window.location.href = getRankURL();
} }
// onResponse_rank1() { // onResponse_rank1() {
......
...@@ -73,17 +73,21 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie ...@@ -73,17 +73,21 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
if (p.prizeType == data.prizeType) if (p.prizeType == data.prizeType)
prize = p; prize = p;
}); });
if (!window.localStorage.getItem('prizeShowed')) { if (!window.localStorage.getItem(this.getKey())) {
if (prize) //中奖了 if (prize) //中奖了
this.bubbling('showDialog', 'Prize', prize); this.bubbling('showDialog', 'Prize', prize);
else else
this.bubbling('showDialog', 'Alert', '您与奖品擦肩而过~'); this.bubbling('showDialog', 'Alert', '您与奖品擦肩而过~');
} }
window.localStorage.setItem('prizeShowed', '1') window.localStorage.setItem(this.getKey(), '1')
} }
} }
getKey() {
return 'prizeShowed-' + window['CFG'].weixinUid + '-' + window['CFG'].weddingId + '-' + window['CFG'].activityId
}
updateCountTxt() { updateCountTxt() {
let limit = 0; let limit = 0;
if (this.doJoin) { if (this.doJoin) {
...@@ -94,6 +98,7 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie ...@@ -94,6 +98,7 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
if (limit < 0) if (limit < 0)
limit = 0; limit = 0;
setText(this.countTxt, `剩余次数:${limit}`); setText(this.countTxt, `剩余次数:${limit}`);
console.log(`剩余次数:${limit}`)
} }
initGameStage() { initGameStage() {
console.log('initGameStage') console.log('initGameStage')
...@@ -126,19 +131,19 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie ...@@ -126,19 +131,19 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
onGotDojoin() { onGotDojoin() {
console.log('onGotDojoin', this.doJoin); console.log('onGotDojoin', this.doJoin);
this.startbtn.getComponent(Button).enabled = true; this.startbtn.getComponent(Button).enabled = true;
this.bubbling('fuck', 'guide');
this.updateCountTxt(); this.updateCountTxt();
setTimeout(() => {
this.bubbling('fuck', 'guide');
}, 50);
} }
onGotDojoinError(error) { onGotDojoinError(error) {
this.startbtn.getComponent(Button).enabled = true; this.startbtn.getComponent(Button).enabled = true;
if (error === '400001') { if (error === '400005') {
this.bubbling('showToast', '活动还未开始\n敬请期待~'); this.bubbling('showToast', '活动还未开始\n敬请期待~');
} } else if (error === '400006') {
else if (error === '400005') {
this.bubbling('showToast', '活动已结束\n下次早点来哦~'); this.bubbling('showToast', '活动已结束\n下次早点来哦~');
} } else if (error === '400002') {
else if (error === '400002') {
this.bubbling('showDialog', 'Alert', '您已经没有抽奖机会了'); this.bubbling('showDialog', 'Alert', '您已经没有抽奖机会了');
} }
else { else {
......
...@@ -7507,6 +7507,7 @@ ...@@ -7507,6 +7507,7 @@
}; };
ScoreDialogContent.prototype.onclick_ranbtn = function () { ScoreDialogContent.prototype.onclick_ranbtn = function () {
this.hide(); this.hide();
this.bubbling('fuckNavigator', 'start');
window.location.href = getRankURL(); window.location.href = getRankURL();
}; };
return ScoreDialogContent; return ScoreDialogContent;
...@@ -7571,15 +7572,18 @@ ...@@ -7571,15 +7572,18 @@
if (p.prizeType == data.prizeType) if (p.prizeType == data.prizeType)
prize_1 = p; prize_1 = p;
}); });
if (!window.localStorage.getItem('prizeShowed')) { if (!window.localStorage.getItem(this.getKey())) {
if (prize_1) if (prize_1)
this.bubbling('showDialog', 'Prize', prize_1); this.bubbling('showDialog', 'Prize', prize_1);
else else
this.bubbling('showDialog', 'Alert', '您与奖品擦肩而过~'); this.bubbling('showDialog', 'Alert', '您与奖品擦肩而过~');
} }
window.localStorage.setItem('prizeShowed', '1'); window.localStorage.setItem(this.getKey(), '1');
} }
}; };
SceneStart.prototype.getKey = function () {
return 'prizeShowed-' + window['CFG'].weixinUid + '-' + window['CFG'].weddingId + '-' + window['CFG'].activityId;
};
SceneStart.prototype.updateCountTxt = function () { SceneStart.prototype.updateCountTxt = function () {
var limit = 0; var limit = 0;
if (this.doJoin) { if (this.doJoin) {
...@@ -7591,6 +7595,7 @@ ...@@ -7591,6 +7595,7 @@
if (limit < 0) if (limit < 0)
limit = 0; limit = 0;
setText$1(this.countTxt, "\u5269\u4F59\u6B21\u6570\uFF1A" + limit); setText$1(this.countTxt, "\u5269\u4F59\u6B21\u6570\uFF1A" + limit);
console.log("\u5269\u4F59\u6B21\u6570\uFF1A" + limit);
}; };
SceneStart.prototype.initGameStage = function () { SceneStart.prototype.initGameStage = function () {
console.log('initGameStage'); console.log('initGameStage');
...@@ -7609,17 +7614,20 @@ ...@@ -7609,17 +7614,20 @@
}); });
}; };
SceneStart.prototype.onGotDojoin = function () { SceneStart.prototype.onGotDojoin = function () {
var _this = this;
console.log('onGotDojoin', this.doJoin); console.log('onGotDojoin', this.doJoin);
this.startbtn.getComponent(Button).enabled = true; this.startbtn.getComponent(Button).enabled = true;
this.bubbling('fuck', 'guide');
this.updateCountTxt(); this.updateCountTxt();
setTimeout(function () {
_this.bubbling('fuck', 'guide');
}, 50);
}; };
SceneStart.prototype.onGotDojoinError = function (error) { SceneStart.prototype.onGotDojoinError = function (error) {
this.startbtn.getComponent(Button).enabled = true; this.startbtn.getComponent(Button).enabled = true;
if (error === '400001') { if (error === '400005') {
this.bubbling('showToast', '活动还未开始\n敬请期待~'); this.bubbling('showToast', '活动还未开始\n敬请期待~');
} }
else if (error === '400005') { else if (error === '400006') {
this.bubbling('showToast', '活动已结束\n下次早点来哦~'); this.bubbling('showToast', '活动已结束\n下次早点来哦~');
} }
else if (error === '400002') { else if (error === '400002') {
...@@ -8631,7 +8639,7 @@ ...@@ -8631,7 +8639,7 @@
PrizeDialogContent.prototype.setup = function (data) { PrizeDialogContent.prototype.setup = function (data) {
if (data === void 0) { data = {}; } if (data === void 0) { data = {}; }
return __awaiter(this, void 0, void 0, function () { return __awaiter(this, void 0, void 0, function () {
var texRender, texture, maxWidth, width; var texRender, texture, maxwidth, maxheight;
return __generator(this, function (_a) { return __generator(this, function (_a) {
switch (_a.label) { switch (_a.label) {
case 0: case 0:
...@@ -8643,12 +8651,12 @@ ...@@ -8643,12 +8651,12 @@
texture = _a.sent(); texture = _a.sent();
texRender.texture = texture; texRender.texture = texture;
if (texture.bounds.width > texture.bounds.height) { if (texture.bounds.width > texture.bounds.height) {
maxWidth = 500; maxwidth = 250;
setScale(this.pic, maxWidth / texture.bounds.width); setScale(this.pic, maxwidth / texture.bounds.width);
} }
else { else {
width = 250; maxheight = 250;
setScale(this.pic, width / texture.bounds.width); setScale(this.pic, maxheight / texture.bounds.height);
} }
return [2]; return [2];
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<meta name="viewport" <meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" /> content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-capable" content="yes" />
...@@ -23,13 +23,13 @@ ...@@ -23,13 +23,13 @@
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div> <div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<script src="//yun.duiba.com.cn/db_games/zepto.min.js"></script> <script src="//yun.duiba.com.cn/db_games/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/security.js"></script> <script src="//yun.duiba.com.cn/db_games/security.js"></script>
<script src="//yun.duiba.com.cn/db_games/1561630480/bundle.js"></script> <script src="//yun.duiba.com.cn/db_games/1561641018/bundle.js"></script>
<script> setTimeout(function () { <script> setTimeout(function () {
var loadingEl = document.getElementById('loading'); function onProcess(p) { if (p >= 1) { loadingEl.style.display = 'none'; } } var loadingEl = document.getElementById('loading'); function onProcess(p) { if (p >= 1) { loadingEl.style.display = 'none'; } }
var options = { resPath: "//yun.duiba.com.cn/db_games/1561626859/" }; window['shuijf'].startup(document.getElementById('gameContainer'), options, onProcess); var options = { resPath: "//yun.duiba.com.cn/db_games/1561639721/" }; window['shuijf'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100); }, 100);
window['COUNT_DOWN_SEC']=10; window['COUNT_DOWN_SEC'] = 10;
window['ruleContent'] = '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'; window['ruleContent'] = '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';
</script> </script>
...@@ -71,6 +71,17 @@ ...@@ -71,6 +71,17 @@
<script src="https://yun.duiba.com.cn/db_games/debug/vconsole.min.js"></script>
<script>
// init vConsole
var vConsole = new VConsole();
console.log('Hello world');
</script>
<script type="text/javascript"> <script type="text/javascript">
var CFG = { var CFG = {
'startTime': 'Wed Jun 26 17:30:00 CST 2019', 'startTime': 'Wed Jun 26 17:30:00 CST 2019',
......
...@@ -56,7 +56,8 @@ ...@@ -56,7 +56,8 @@
<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 = { "startTime": 1561523400000, "endTime": 1561554000000, "weddingId": 1, "freeLimit": 100, "weixinUid": "", "activityId": "3", "nickname": "", "activity": { "activityType": 4, "brickId": 5, "drawStatus": 0, "id": 3, "joinLimit": 100, "prizeList": [{ "activityId": 3, "id": 5, "prizeCount": 5, "prizeImage": "//yun.duiba.com.cn/upload/uP99F1462438316972.png", "prizeName": "喜糖摇摇乐奖品1", "prizeRemain": 0, "prizeType": 1, "weddingId": 1 }, { "activityId": 3, "id": 6, "prizeCount": 5, "prizeImage": "//yun.duiba.com.cn/upload/uP99F1462438316972.png", "prizeName": "喜糖摇摇乐奖品2", "prizeRemain": 1, "prizeType": 2, "weddingId": 1 }], "rankEndTime": 1561550400000, "weddingId": 1 } }; window['COUNT_DOWN_SEC'] = 2;
var CFG = { "startTime": 1561523400000, "endTime": 1561554000000, "weddingId": 1, "freeLimit": 100, "weixinUid": "", "activityId": "3", "nickname": "", "activity": { "activityType": 4, "brickId": 5, "drawStatus": 0, "id": 3, "joinLimit": 100, "prizeList": [{ "activityId": 3, "id": 5, "prizeCount": 5, "prizeImage": "//yun.duiba.com.cn/db_games/3.jpg", "prizeName": "喜糖摇摇乐奖品1", "prizeRemain": 0, "prizeType": 1, "weddingId": 1 }, { "activityId": 3, "id": 6, "prizeCount": 5, "prizeImage": "//yun.duiba.com.cn/upload/uP99F1462438316972.png", "prizeName": "喜糖摇摇乐奖品2", "prizeRemain": 1, "prizeType": 2, "weddingId": 1 }], "rankEndTime": 1561550400000, "weddingId": 1 } };
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'; 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';
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
"entryScene": "main" "entryScene": "main"
}, },
"webServiceUrl-": "http://10.10.93.204:7555 http://localhost:3010", "webServiceUrl-": "http://10.10.93.204:7555 http://localhost:3010",
"webServiceUrl": "http://localhost:4001", "webServiceUrl1": "",
"webServiceUrl1": "http://localhost:4001" "webServiceUrl": "http://localhost:4001"
}, },
"dataCenterConfig": { "dataCenterConfig": {
"dataCenterRoot": [ "dataCenterRoot": [
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"prizeId": null, "prizeId": null,
"title": null, "title": null,
"freeLimit":7, "freeLimit":7,
"prizeType": 6, "prizeType": 1,
"orderStatus": 1, "orderStatus": 1,
"imgurl": null, "imgurl": null,
"link": null "link": null
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"avatar": "nickName", "avatar": "nickName",
"score": 1, "score": 1,
"rank": "未上榜", "rank": "未上榜",
"prizeType": null, "prizeType": 1,
"list": [] "list": []
} }
} }
\ 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