Commit deb96b28 authored by rockyl's avatar rockyl

修改上传

parent c63ff1c4
{"currentScene":"assets/scenes/main.scene","dependencies":{"animation/Zoom":"1.0.0","animation/Translation":"1.0.0","net/SampleApi":"1.0.0","net/WebService":"1.0.0","net/ApiComponent":"1.0.0","ui/ScrollView":"1.0.0","ui/Button":"1.0.0","animation/TouchZoom":"1.0.0","animation/Wave":"1.0.0","other/RelativeLayout":"1.0.0","other/FullStageSize":"1.0.0","other/CameraController":"1.0.0","renderer/TextureRenderer":"1.0.0","renderer/RectRenderer":"1.0.0","renderer/TextRenderer":"1.0.0","renderer/CircleRenderer":"1.0.0","base/TouchInterrupt":"1.0.0","base/InteractComponent":"1.0.0","renderer/GraphicRenderer":"1.0.0","base/Transform":"1.0.3","base/ScillaComponent":"1.0.0","renderer/Renderer":"1.0.0"},"oss-remote-path":"scilla/bank/questions"} {"currentScene":"assets/scenes/main.scene","dependencies":{"animation/Zoom":"1.0.0","animation/Translation":"1.0.0","net/SampleApi":"1.0.0","net/SamplePollingApi":"1.0.0","net/WebService":"1.0.0","net/ApiComponent":"1.0.0","ui/ScrollView":"1.0.0","ui/Button":"1.0.0","animation/TouchZoom":"1.0.0","animation/Wave":"1.0.0","other/RelativeLayout":"1.0.0","other/FullStageSize":"1.0.0","other/CameraController":"1.0.0","renderer/TextureRenderer":"1.0.0","renderer/RectRenderer":"1.0.0","renderer/TextRenderer":"1.0.0","renderer/CircleRenderer":"1.0.0","base/TouchInterrupt":"1.0.0","base/InteractComponent":"1.0.0","renderer/GraphicRenderer":"1.0.0","base/Transform":"1.0.3","base/ScillaComponent":"1.0.0","renderer/Renderer":"1.0.0"},"oss-remote-path":"scilla/bank/questions"}
\ No newline at end of file \ No newline at end of file
...@@ -47,7 +47,12 @@ ...@@ -47,7 +47,12 @@
"y": 1, "y": 1,
"_type_": "scilla/support/Vector2D" "_type_": "scilla/support/Vector2D"
}, },
"alpha": 0 "alpha": 0,
"position": {
"_hashCode": 63054,
"_x": 0,
"_y": 0
}
} }
}, },
{ {
...@@ -64,7 +69,8 @@ ...@@ -64,7 +69,8 @@
"properties": { "properties": {
"applyWidth": true, "applyWidth": true,
"applyHeight": true "applyHeight": true
} },
"disabled": false
}, },
{ {
"script": "./scripts/api/HomeApi", "script": "./scripts/api/HomeApi",
...@@ -87,7 +93,8 @@ ...@@ -87,7 +93,8 @@
} }
], ],
"method": "GET", "method": "GET",
"ignoreSuccessField": true "ignoreSuccessField": true,
"credentials": "include"
}, },
"disabled": false "disabled": false
} }
...@@ -103,13 +110,18 @@ ...@@ -103,13 +110,18 @@
"pivot": { "pivot": {
"y": 0, "y": 0,
"_type_": "scilla/support/Vector2D" "_type_": "scilla/support/Vector2D"
},
"position": {
"_hashCode": 54945,
"_x": 0,
"_y": 0
} }
} }
}, },
{ {
"script": "components/renderer/TextureRenderer", "script": "components/renderer/TextureRenderer",
"properties": { "properties": {
"texture": "res|4400d7c6-ac22-466b-8a80-9ecfff845c24" "texture": "res|9ed461f8-f634-4785-82d6-bb997e59aa91"
} }
} }
], ],
...@@ -208,9 +220,9 @@ ...@@ -208,9 +220,9 @@
"script": "components/base/Transform", "script": "components/base/Transform",
"properties": { "properties": {
"position": { "position": {
"x": 1000, "_hashCode": 76158,
"y": 0, "_x": 1000,
"_type_": "scilla/support/Vector2D" "_y": 0
} }
} }
}, },
...@@ -223,7 +235,7 @@ ...@@ -223,7 +235,7 @@
{ {
"script": "components/renderer/TextureRenderer", "script": "components/renderer/TextureRenderer",
"properties": { "properties": {
"texture": "res|5079e0f6-3a88-45f8-ae33-df09aec697d1", "texture": "res|99ca8228-e084-48fb-ba58-503264ef0875",
"anchor": { "anchor": {
"y": 0.5, "y": 0.5,
"_type_": "scilla/support/Vector2D" "_type_": "scilla/support/Vector2D"
...@@ -256,7 +268,8 @@ ...@@ -256,7 +268,8 @@
"param": "Toast" "param": "Toast"
} }
], ],
"score": "dynamic|custom|num" "score": "dynamic|custom|num",
"credentials": "include"
} }
} }
], ],
...@@ -631,7 +644,7 @@ ...@@ -631,7 +644,7 @@
{ {
"script": "components/renderer/TextureRenderer", "script": "components/renderer/TextureRenderer",
"properties": { "properties": {
"texture": "res|5079e0f6-3a88-45f8-ae33-df09aec697d1" "texture": "res|99ca8228-e084-48fb-ba58-503264ef0875"
} }
}, },
{ {
...@@ -864,7 +877,7 @@ ...@@ -864,7 +877,7 @@
"uuid": "62699aa4-5c53-437f-b47f-46490bb2ba22" "uuid": "62699aa4-5c53-437f-b47f-46490bb2ba22"
}, },
{ {
"name": "Image", "name": "QrCode",
"components": [ "components": [
{ {
"script": "components/base/Transform", "script": "components/base/Transform",
...@@ -881,11 +894,32 @@ ...@@ -881,11 +894,32 @@
{ {
"script": "components/renderer/TextureRenderer", "script": "components/renderer/TextureRenderer",
"properties": { "properties": {
"texture": "res|128693bf-b7cf-41cf-b8e9-f5204069b29f" "texture": "res|61e0154e-af7c-48fd-aeb9-cb86b28ec738"
} }
} }
], ],
"uuid": "41c5376f-7a2c-4715-9e6e-22218b9de8c1" "uuid": "41c5376f-7a2c-4715-9e6e-22218b9de8c1"
},
{
"name": "Logo",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 200,
"y": 47.5
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|682d7d12-91ee-4120-b3c8-3ff7bff065ed"
}
}
],
"uuid": "4645cea0-69b3-438b-af73-f9fefebca8ba"
} }
] ]
}, },
...@@ -1057,7 +1091,7 @@ ...@@ -1057,7 +1091,7 @@
{ {
"script": "components/renderer/TextureRenderer", "script": "components/renderer/TextureRenderer",
"properties": { "properties": {
"texture": "res|5079e0f6-3a88-45f8-ae33-df09aec697d1" "texture": "res|99ca8228-e084-48fb-ba58-503264ef0875"
} }
}, },
{ {
...@@ -1084,7 +1118,8 @@ ...@@ -1084,7 +1118,8 @@
"component": 3, "component": 3,
"method": "onGetResponse" "method": "onGetResponse"
} }
] ],
"credentials": "include"
} }
} }
], ],
...@@ -1262,7 +1297,7 @@ ...@@ -1262,7 +1297,7 @@
{ {
"script": "components/renderer/TextRenderer", "script": "components/renderer/TextRenderer",
"properties": { "properties": {
"text": "进入公众号赢取“暑期好礼”大奖", "text": "进入公众号赢取“盛夏好礼“大奖",
"fillColor": "rgba(241, 222, 182, 1)", "fillColor": "rgba(241, 222, 182, 1)",
"textStyle": { "textStyle": {
"fontSize": 36, "fontSize": 36,
...@@ -1290,7 +1325,7 @@ ...@@ -1290,7 +1325,7 @@
{ {
"script": "components/renderer/TextRenderer", "script": "components/renderer/TextRenderer",
"properties": { "properties": {
"text": "关注“小招喵的掌上生活”", "text": "关注“招商银行信用卡”",
"textStyle": { "textStyle": {
"fontSize": 28, "fontSize": 28,
"fontWeight": "normal" "fontWeight": "normal"
...@@ -1372,7 +1407,7 @@ ...@@ -1372,7 +1407,7 @@
{ {
"script": "components/renderer/TextureRenderer", "script": "components/renderer/TextureRenderer",
"properties": { "properties": {
"texture": "res|128693bf-b7cf-41cf-b8e9-f5204069b29f" "texture": "res|72cf26d4-65e7-4c45-881c-05e737ea0083"
} }
}, },
{ {
...@@ -1464,7 +1499,8 @@ ...@@ -1464,7 +1499,8 @@
"script": "components/renderer/RectRenderer", "script": "components/renderer/RectRenderer",
"properties": { "properties": {
"fillColor": "rgba(0, 0, 0, 0.5)" "fillColor": "rgba(0, 0, 0, 0.5)"
} },
"disabled": true
}, },
{ {
"script": "components/other/FullStageSize", "script": "components/other/FullStageSize",
...@@ -1641,16 +1677,12 @@ ...@@ -1641,16 +1677,12 @@
"url": "prefebs/user.pfb" "url": "prefebs/user.pfb"
}, },
{ {
"uuid": "5079e0f6-3a88-45f8-ae33-df09aec697d1", "uuid": "99ca8228-e084-48fb-ba58-503264ef0875",
"url": "singles/bg-detail.jpg" "url": "singles/bg-detail.jpg"
}, },
{ {
"uuid": "4400d7c6-ac22-466b-8a80-9ecfff845c24", "uuid": "9ed461f8-f634-4785-82d6-bb997e59aa91",
"url": "singles/bg.jpg" "url": "singles/bg-start.jpg"
},
{
"uuid": "128693bf-b7cf-41cf-b8e9-f5204069b29f",
"url": "singles/code.png"
}, },
{ {
"uuid": "6e326551-0809-40fe-ac5c-a6fe9f2795a6", "uuid": "6e326551-0809-40fe-ac5c-a6fe9f2795a6",
...@@ -1672,6 +1704,10 @@ ...@@ -1672,6 +1704,10 @@
{ {
"name": "header.png", "name": "header.png",
"uuid": "b9f295b8-e93c-4005-9e37-112c7cd15f6e" "uuid": "b9f295b8-e93c-4005-9e37-112c7cd15f6e"
},
{
"name": "qrcode.png",
"uuid": "72cf26d4-65e7-4c45-881c-05e737ea0083"
} }
] ]
} }
...@@ -1804,6 +1840,10 @@ ...@@ -1804,6 +1840,10 @@
] ]
} }
}, },
{
"uuid": "61e0154e-af7c-48fd-aeb9-cb86b28ec738",
"url": "singles/qrcode.jpg"
},
{ {
"uuid": "4f160f7b-f31a-4e8a-bd79-9f190557d4b6", "uuid": "4f160f7b-f31a-4e8a-bd79-9f190557d4b6",
"url": "singles/qs.sht-disperse", "url": "singles/qs.sht-disperse",
...@@ -1898,8 +1938,8 @@ ...@@ -1898,8 +1938,8 @@
"uuid": "06ffc7ab-e711-43c2-aa7d-7811f36ac093" "uuid": "06ffc7ab-e711-43c2-aa7d-7811f36ac093"
}, },
{ {
"name": "bg.png", "name": "logo.png",
"uuid": "5ccb6472-aa1c-44cd-be4c-4b8fe4be3388" "uuid": "682d7d12-91ee-4120-b3c8-3ff7bff065ed"
} }
] ]
} }
...@@ -1916,10 +1956,6 @@ ...@@ -1916,10 +1956,6 @@
{ {
"name": "btn.png", "name": "btn.png",
"uuid": "f5b56038-5d5a-4427-8dd5-3a659af70b4c" "uuid": "f5b56038-5d5a-4427-8dd5-3a659af70b4c"
},
{
"name": "bg.png",
"uuid": "fd63ef37-9f4c-48be-a1be-34921f393d4e"
} }
] ]
} }
......
import { utils, dynamic } from "scilla";
import SampleApi from "components/net/SampleApi";
/** /**
* 获取渲染数据 * 获取渲染数据
*/ */
import {utils, dynamic} from "scilla";
import SampleApi from "components/net/SampleApi";
export default class HomeApi extends SampleApi { export default class HomeApi extends SampleApi {
//唯一标识 //唯一标识
name: string = 'index'; name: string = 'index';
...@@ -11,7 +13,7 @@ export default class HomeApi extends SampleApi { ...@@ -11,7 +13,7 @@ export default class HomeApi extends SampleApi {
shareCode: dynamic; shareCode: dynamic;
protected async execute() { async execute() {
super.execute({ shareCode: this.shareCode }); super.execute({shareCode: this.shareCode});
} }
} }
\ No newline at end of file
...@@ -2,14 +2,14 @@ import ScillaComponent from 'components/base/ScillaComponent' ...@@ -2,14 +2,14 @@ import ScillaComponent from 'components/base/ScillaComponent'
import {INavigatorViewBase} from '../navigator/VirtualNavigator' import {INavigatorViewBase} from '../navigator/VirtualNavigator'
import {NavigatorAction} from '../navigator/StackNavigator' import {NavigatorAction} from '../navigator/StackNavigator'
import Transform from 'components/base/Transform'; import Transform from 'components/base/Transform';
import { createTween, engine, dynamic, Entity, resource, createTexture, Bounds } from 'scilla'; import {createTween, engine, dynamic, Entity, resource, createTexture, Bounds} from 'scilla';
import TextRenderer from 'components/renderer/TextRenderer'; import TextRenderer from 'components/renderer/TextRenderer';
import TextureRenderer from 'components/renderer/TextureRenderer'; import TextureRenderer from 'components/renderer/TextureRenderer';
import BuriedPoint from '../utils/BuriedPoint'; import BuriedPoint from '../utils/BuriedPoint';
import Popup from '../popup/Popup'; import Popup from '../popup/Popup';
import qrcode from 'qrcode' //import qrcode from 'qrcode'
export default class score extends ScillaComponent implements INavigatorViewBase{ export default class score extends ScillaComponent implements INavigatorViewBase {
score: dynamic score: dynamic
text: Entity text: Entity
name: Entity name: Entity
...@@ -29,7 +29,7 @@ export default class score extends ScillaComponent implements INavigatorViewBase ...@@ -29,7 +29,7 @@ export default class score extends ScillaComponent implements INavigatorViewBase
sheet: resource sheet: resource
shareCode: dynamic shareCode: dynamic
onAwake(){ onAwake() {
super.onAwake(); super.onAwake();
} }
...@@ -48,7 +48,7 @@ export default class score extends ScillaComponent implements INavigatorViewBase ...@@ -48,7 +48,7 @@ export default class score extends ScillaComponent implements INavigatorViewBase
} }
onUpdate(t){ onUpdate(t) {
super.onUpdate(t); super.onUpdate(t);
} }
...@@ -63,7 +63,43 @@ export default class score extends ScillaComponent implements INavigatorViewBase ...@@ -63,7 +63,43 @@ export default class score extends ScillaComponent implements INavigatorViewBase
} }
async onDidEnter(last: string, action: NavigatorAction, parameters: any) { async onDidEnter(last: string, action: NavigatorAction, parameters: any) {
this.initBuried() this.initBuried();
const ts = this.entity.getComponent(Transform)
const run = async () => {
/*const defineCustom = window['defineCustom']
const data = (`${defineCustom.shareInfo.prefix}${encodeURIComponent(`${defineCustom.shareInfo.link}&shareCode=${this.shareCode}&dbnewopen`)}`)
const image = new Image()
qrcode.toDataURL(data, (_, url) => {
image.src = url
})
image.onload = () => {
const texture = createTexture(image)
this.Code.getComponent(TextureRenderer).texture = texture
this.shortcut();
}*/
this.shortcut();
}
if (parameters && parameters.first) {
ts.position.x = 0
ts.alpha = 1
run()
} else {
createTween(this, ts, true)
.set({
position: {x: engine.renderContext.stageSize.width},
alpha: 0,
})
.to({
position: {x: 0},
alpha: 1,
}, 500)
.call(run.bind(this))
}
} }
mapScoreToPng(score) { mapScoreToPng(score) {
...@@ -95,22 +131,12 @@ export default class score extends ScillaComponent implements INavigatorViewBase ...@@ -95,22 +131,12 @@ export default class score extends ScillaComponent implements INavigatorViewBase
async onWillEnter(last: string, action: NavigatorAction, parameters: any = {}) { async onWillEnter(last: string, action: NavigatorAction, parameters: any = {}) {
this.initInfo() this.initInfo()
const ts = this.entity.getComponent(Transform)
const run = async () => { }
const defineCustom = window['defineCustom'] shortcut() {
const data = (`${defineCustom.shareInfo.prefix}${encodeURIComponent(`${defineCustom.shareInfo.link}&shareCode=${this.shareCode}&dbnewopen`)}`) setTimeout(async () => {
const image = new Image()
qrcode.toDataURL(data, (_, url) => {
image.src = url
})
image.onload = () => {
const texture = createTexture(image)
this.Code.getComponent(TextureRenderer).texture = texture
const ts = this.center.getComponent(Transform) const ts = this.center.getComponent(Transform)
setTimeout( async () => {
const shareTs = this.Share.getComponent(Transform)
const img = await engine.renderContext.shortcut(1, { const img = await engine.renderContext.shortcut(1, {
imgType: 'jpeg', imgType: 'jpeg',
zoomToDom: false, zoomToDom: false,
...@@ -129,31 +155,13 @@ export default class score extends ScillaComponent implements INavigatorViewBase ...@@ -129,31 +155,13 @@ export default class score extends ScillaComponent implements INavigatorViewBase
}) })
}, 100) }, 100)
} }
}
if (parameters && parameters.first) {
ts.position.x = 0
ts.alpha = 1
run()
} else {
createTween(this, ts, true)
.set({
position: {x: engine.renderContext.stageSize.width},
alpha: 0,
})
.to({
position: {x: 0},
alpha: 1,
}, 500)
.call(run.bind(this))
}
}
onShare() { onShare() {
const save = document.getElementById('save') const save = document.getElementById('save')
save.style.display = 'none' save.style.display = 'none'
this.Container.getComponent(Popup).showDialog('Share') this.Container.getComponent(Popup).showDialog('Share')
} }
onHide() { onHide() {
const save = document.getElementById('save') const save = document.getElementById('save')
save.style.display = 'flex' save.style.display = 'flex'
......
assets/singles/bg-detail.jpg

572 KB | W: | H:

assets/singles/bg-detail.jpg

214 KB | W: | H:

assets/singles/bg-detail.jpg
assets/singles/bg-detail.jpg
assets/singles/bg-detail.jpg
assets/singles/bg-detail.jpg
  • 2-up
  • Swipe
  • Onion skin
{"ver":"1.0.1","uuid":"5079e0f6-3a88-45f8-ae33-df09aec697d1","subMetas":{"bg-detail":{"ver":"1.0.1","uuid":"0676c16f-5ae2-47bb-91b7-4f56a893f2cd","rawTextureUuid":"5079e0f6-3a88-45f8-ae33-df09aec697d1","type":"texture"}},"type":"texture","imagePath":"/Users/firefly/duiba/demoList/QuestionsOfBank/assets/singles/bg-detail.jpg"} {"ver":"1.0.1","uuid":"99ca8228-e084-48fb-ba58-503264ef0875","subMetas":{"bg-detail":{"ver":"1.0.1","uuid":"b0c30dce-99c0-4a77-8b05-f6471d517334","rawTextureUuid":"99ca8228-e084-48fb-ba58-503264ef0875","type":"texture"}},"type":"texture","imagePath":"/Users/rockyl/WorkSpaces/scilla-projects/questionofbank/assets/singles/bg-detail.jpg"}
{"ver":"1.0.1","uuid":"4400d7c6-ac22-466b-8a80-9ecfff845c24","subMetas":{"bg":{"ver":"1.0.1","uuid":"ec564afa-879d-425a-9aa2-e6d0347e986c","rawTextureUuid":"4400d7c6-ac22-466b-8a80-9ecfff845c24","type":"texture"}},"type":"texture","imagePath":"/Users/firefly/duiba/demoList/QuestionsOfBank/assets/singles/bg.jpg"}
{"ver":"1.0.1","uuid":"6e326551-0809-40fe-ac5c-a6fe9f2795a6","subMetas":{"paper.png":{"ver":"1.0.1","uuid":"146e575e-acbe-49a4-990b-2c7e90b56891","rawTextureUuid":"6e326551-0809-40fe-ac5c-a6fe9f2795a6","type":"texture"},"bottom.png":{"ver":"1.0.1","uuid":"d5be8ed3-45a8-4575-a2a3-ba5ba405bc14","rawTextureUuid":"6e326551-0809-40fe-ac5c-a6fe9f2795a6","type":"texture"},"header-bg.png":{"ver":"1.0.1","uuid":"dd5d6029-2c18-40fa-9c2f-ba34be8d07f9","rawTextureUuid":"6e326551-0809-40fe-ac5c-a6fe9f2795a6","type":"texture"},"header.png":{"ver":"1.0.1","uuid":"b9f295b8-e93c-4005-9e37-112c7cd15f6e","rawTextureUuid":"6e326551-0809-40fe-ac5c-a6fe9f2795a6","type":"texture"}},"type":"sheet"} {"ver":"1.0.1","uuid":"6e326551-0809-40fe-ac5c-a6fe9f2795a6","subMetas":{"paper.png":{"ver":"1.0.1","uuid":"146e575e-acbe-49a4-990b-2c7e90b56891","rawTextureUuid":"6e326551-0809-40fe-ac5c-a6fe9f2795a6","type":"texture"},"bottom.png":{"ver":"1.0.1","uuid":"d5be8ed3-45a8-4575-a2a3-ba5ba405bc14","rawTextureUuid":"6e326551-0809-40fe-ac5c-a6fe9f2795a6","type":"texture"},"header-bg.png":{"ver":"1.0.1","uuid":"dd5d6029-2c18-40fa-9c2f-ba34be8d07f9","rawTextureUuid":"6e326551-0809-40fe-ac5c-a6fe9f2795a6","type":"texture"},"header.png":{"ver":"1.0.1","uuid":"b9f295b8-e93c-4005-9e37-112c7cd15f6e","rawTextureUuid":"6e326551-0809-40fe-ac5c-a6fe9f2795a6","type":"texture"},"qrcode.png":{"ver":"1.0.1","uuid":"72cf26d4-65e7-4c45-881c-05e737ea0083","rawTextureUuid":"6e326551-0809-40fe-ac5c-a6fe9f2795a6","type":"texture"}},"type":"sheet"}
This diff is collapsed.
assets/singles/plane.png

42.3 KB | W: | H:

assets/singles/plane.png

11.7 KB | W: | H:

assets/singles/plane.png
assets/singles/plane.png
assets/singles/plane.png
assets/singles/plane.png
  • 2-up
  • Swipe
  • Onion skin
{"ver":"1.0.1","uuid":"72a01f21-503e-4760-a5dd-c91afd2d3892","subMetas":{"qs8":{"ver":"1.0.1","uuid":"9b555f2f-8fc2-439c-927c-61af82a67a9a","rawTextureUuid":"72a01f21-503e-4760-a5dd-c91afd2d3892","type":"texture"}},"type":"texture","imagePath":"/Users/firefly/duiba/demoList/QuestionsOfBank/assets/singles/qs8.png"}
{"ver":"1.0.1","uuid":"97d07d6b-a199-484f-9601-0259f0f8db07","subMetas":{"btn-left.png":{"ver":"1.0.1","uuid":"c0719f6a-a7ba-4fbb-833b-196102600c64","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"btn-right.png":{"ver":"1.0.1","uuid":"94d591ac-6fc1-4050-b485-1a2cc706d1b9","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"paper.png":{"ver":"1.0.1","uuid":"8c31712e-612d-4df7-905e-6e1193ea1ef3","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"header-bg.png":{"ver":"1.0.1","uuid":"cc31b203-dbe0-47c9-a05a-0b9110f5a04c","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"header.png":{"ver":"1.0.1","uuid":"a59f50ff-7e02-4b21-a66e-115cbd59c8e4","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"back.png":{"ver":"1.0.1","uuid":"baaf1672-8f3f-4998-9ad6-108312238a3e","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"save.png":{"ver":"1.0.1","uuid":"cba7b18f-d117-47b5-9bf8-9da60c42cc78","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"0.png":{"ver":"1.0.1","uuid":"180beee8-d617-4026-b769-d0a1c49d7e0c","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"1.png":{"ver":"1.0.1","uuid":"e527e676-e295-4a84-8b49-f61bc5430f19","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"2.png":{"ver":"1.0.1","uuid":"74762592-83c2-48b8-b8d4-923752074a74","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"3.png":{"ver":"1.0.1","uuid":"b38f6eff-814f-4375-94f5-065d8c934ebe","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"4.png":{"ver":"1.0.1","uuid":"06ffc7ab-e711-43c2-aa7d-7811f36ac093","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"bg.png":{"ver":"1.0.1","uuid":"5ccb6472-aa1c-44cd-be4c-4b8fe4be3388","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"}},"type":"sheet"} {"ver":"1.0.1","uuid":"97d07d6b-a199-484f-9601-0259f0f8db07","subMetas":{"btn-left.png":{"ver":"1.0.1","uuid":"c0719f6a-a7ba-4fbb-833b-196102600c64","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"btn-right.png":{"ver":"1.0.1","uuid":"94d591ac-6fc1-4050-b485-1a2cc706d1b9","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"paper.png":{"ver":"1.0.1","uuid":"8c31712e-612d-4df7-905e-6e1193ea1ef3","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"header-bg.png":{"ver":"1.0.1","uuid":"cc31b203-dbe0-47c9-a05a-0b9110f5a04c","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"header.png":{"ver":"1.0.1","uuid":"a59f50ff-7e02-4b21-a66e-115cbd59c8e4","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"back.png":{"ver":"1.0.1","uuid":"baaf1672-8f3f-4998-9ad6-108312238a3e","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"save.png":{"ver":"1.0.1","uuid":"cba7b18f-d117-47b5-9bf8-9da60c42cc78","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"0.png":{"ver":"1.0.1","uuid":"180beee8-d617-4026-b769-d0a1c49d7e0c","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"1.png":{"ver":"1.0.1","uuid":"e527e676-e295-4a84-8b49-f61bc5430f19","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"2.png":{"ver":"1.0.1","uuid":"74762592-83c2-48b8-b8d4-923752074a74","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"3.png":{"ver":"1.0.1","uuid":"b38f6eff-814f-4375-94f5-065d8c934ebe","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"4.png":{"ver":"1.0.1","uuid":"06ffc7ab-e711-43c2-aa7d-7811f36ac093","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"},"logo.png":{"ver":"1.0.1","uuid":"682d7d12-91ee-4120-b3c8-3ff7bff065ed","rawTextureUuid":"97d07d6b-a199-484f-9601-0259f0f8db07","type":"texture"}},"type":"sheet"}
This diff is collapsed.
assets/singles/share-bg.png

81.3 KB | W: | H:

assets/singles/share-bg.png

25 KB | W: | H:

assets/singles/share-bg.png
assets/singles/share-bg.png
assets/singles/share-bg.png
assets/singles/share-bg.png
  • 2-up
  • Swipe
  • Onion skin
{"ver":"1.0.1","uuid":"0b6cc6aa-8ec8-4a6d-99a8-eebd9c062614","subMetas":{"btn.png":{"ver":"1.0.1","uuid":"f5b56038-5d5a-4427-8dd5-3a659af70b4c","rawTextureUuid":"0b6cc6aa-8ec8-4a6d-99a8-eebd9c062614","type":"texture"},"bg.png":{"ver":"1.0.1","uuid":"fd63ef37-9f4c-48be-a1be-34921f393d4e","rawTextureUuid":"0b6cc6aa-8ec8-4a6d-99a8-eebd9c062614","type":"texture"}},"type":"sheet"} {"ver":"1.0.1","uuid":"0b6cc6aa-8ec8-4a6d-99a8-eebd9c062614","subMetas":{"btn.png":{"ver":"1.0.1","uuid":"f5b56038-5d5a-4427-8dd5-3a659af70b4c","rawTextureUuid":"0b6cc6aa-8ec8-4a6d-99a8-eebd9c062614","type":"texture"}},"type":"sheet"}
This diff is collapsed.
{"ver":"1.0.1","uuid":"0607bb07-8000-4af8-a1d3-a9babf697533","subMetas":{},"type":"sheet"}
import * as tslib_1 from "tslib"; import * as tslib_1 from "tslib";
import { utils } from "scilla";
import SampleApi from "components/net/SampleApi"; import SampleApi from "components/net/SampleApi";
var HomeApi = (function (_super) { var HomeApi = (function (_super) {
tslib_1.__extends(HomeApi, _super); tslib_1.__extends(HomeApi, _super);
...@@ -7,14 +6,12 @@ var HomeApi = (function (_super) { ...@@ -7,14 +6,12 @@ var HomeApi = (function (_super) {
var _this = _super !== null && _super.apply(this, arguments) || this; var _this = _super !== null && _super.apply(this, arguments) || this;
_this.name = 'index'; _this.name = 'index';
_this.uri = '/customActivity/zhaohang/answer/index'; _this.uri = '/customActivity/zhaohang/answer/index';
_this.method = 'GET';
return _this; return _this;
} }
HomeApi.prototype.execute = function () { HomeApi.prototype.execute = function () {
return tslib_1.__awaiter(this, void 0, void 0, function () { return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) { return tslib_1.__generator(this, function (_a) {
utils.injectProp(this.params, { shareCode: this.shareCode }); _super.prototype.execute.call(this, { shareCode: this.shareCode });
_super.prototype.execute.call(this);
return [2]; return [2];
}); });
}); });
......
import * as tslib_1 from "tslib"; import * as tslib_1 from "tslib";
import ScillaComponent from 'components/base/ScillaComponent'; import ScillaComponent from 'components/base/ScillaComponent';
import Transform from 'components/base/Transform'; import Transform from 'components/base/Transform';
import { createTween, engine, } from 'scilla'; import { createTween, engine, Bounds } from 'scilla';
import TextRenderer from 'components/renderer/TextRenderer'; import TextRenderer from 'components/renderer/TextRenderer';
import TextureRenderer from 'components/renderer/TextureRenderer'; import TextureRenderer from 'components/renderer/TextureRenderer';
import BuriedPoint from '../utils/BuriedPoint'; import BuriedPoint from '../utils/BuriedPoint';
import Popup from '../popup/Popup';
var score = (function (_super) { var score = (function (_super) {
tslib_1.__extends(score, _super); tslib_1.__extends(score, _super);
function score() { function score() {
...@@ -15,19 +16,18 @@ var score = (function (_super) { ...@@ -15,19 +16,18 @@ var score = (function (_super) {
}; };
score.prototype.initInfo = function () { score.prototype.initInfo = function () {
return tslib_1.__awaiter(this, void 0, void 0, function () { return tslib_1.__awaiter(this, void 0, void 0, function () {
var nameRenderer, headerRenderer, _a; var nameRenderer, renderer, r;
return tslib_1.__generator(this, function (_b) { return tslib_1.__generator(this, function (_a) {
switch (_b.label) { if (this.nameStr) {
case 0:
nameRenderer = this.name.getComponent(TextRenderer); nameRenderer = this.name.getComponent(TextRenderer);
nameRenderer.text = this.nameStr; nameRenderer.text = this.nameStr.length;
headerRenderer = this.header.getComponent(TextureRenderer); (nameRenderer.text = this.nameStr.length > 6 ? this.nameStr.substring(0, 4) + '...' : this.nameStr);
_a = headerRenderer;
return [4, engine.assetsManager.loadTexture(this.headerUrl)];
case 1:
_a.texture = _b.sent();
return [2];
} }
renderer = this.text.getComponent(TextRenderer);
renderer.text = String((this.score || 0) * 12.5);
r = this.Detail.getComponent(TextureRenderer);
r.texture = this.sheet.getTexture(this.mapScoreToPng(this.score) + ".png");
return [2];
}); });
}); });
}; };
...@@ -43,22 +43,22 @@ var score = (function (_super) { ...@@ -43,22 +43,22 @@ var score = (function (_super) {
toList.callSetConfig(); toList.callSetConfig();
}; };
score.prototype.onDidEnter = function (last, action, parameters) { score.prototype.onDidEnter = function (last, action, parameters) {
var renderer = this.text.getComponent(TextRenderer);
console.log(this.score);
renderer.text = String((this.score || 0) * 12.5);
this.initBuried();
};
score.prototype.onDidLeave = function (next, action, parameters) { };
score.prototype.onWillEnter = function (last, action, parameters) {
if (parameters === void 0) { parameters = {}; }
return tslib_1.__awaiter(this, void 0, void 0, function () { return tslib_1.__awaiter(this, void 0, void 0, function () {
var ts; var ts, run;
var _this = this;
return tslib_1.__generator(this, function (_a) { return tslib_1.__generator(this, function (_a) {
this.initInfo(); this.initBuried();
ts = this.entity.getComponent(Transform); ts = this.entity.getComponent(Transform);
run = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
this.shortcut();
return [2];
});
}); };
if (parameters && parameters.first) { if (parameters && parameters.first) {
ts.position.x = 0; ts.position.x = 0;
ts.alpha = 1; ts.alpha = 1;
run();
} }
else { else {
createTween(this, ts, true) createTween(this, ts, true)
...@@ -69,12 +69,99 @@ var score = (function (_super) { ...@@ -69,12 +69,99 @@ var score = (function (_super) {
.to({ .to({
position: { x: 0 }, position: { x: 0 },
alpha: 1, alpha: 1,
}, 500); }, 500)
.call(run.bind(this));
}
return [2];
});
});
};
score.prototype.mapScoreToPng = function (score) {
switch (score) {
case 0:
return 0;
case 1:
case 2:
case 3:
return 1;
case 4:
case 5:
return 2;
case 6:
case 7:
return 3;
case 8:
return 4;
default:
} }
};
score.prototype.onDidLeave = function (next, action, parameters) {
var save = document.getElementById('save');
save.style.display = 'none';
this.Image.enabled = false;
this.Back.enabled = false;
};
score.prototype.onWillEnter = function (last, action, parameters) {
if (parameters === void 0) { parameters = {}; }
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
this.initInfo();
return [2]; return [2];
}); });
}); });
}; };
score.prototype.shortcut = function () {
var _this = this;
setTimeout(function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
var ts, img, show, save;
var _this = this;
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0:
ts = this.center.getComponent(Transform);
return [4, engine.renderContext.shortcut(1, {
imgType: 'jpeg',
zoomToDom: false,
bounds: new Bounds(0, ts.globalPosition.y - 95, engine.renderContext.stageSize.width, ts.height + 225),
quality: 1
})];
case 1:
img = _a.sent();
show = document.getElementById('img');
save = document.getElementById('save');
show.setAttribute('src', img);
show.setAttribute('crossOrigin', 'Anonymous');
save.style.display = 'inherit';
this.callOnNextTick(function () {
_this.Image.enabled = true;
_this.Back.enabled = true;
});
return [2];
}
});
}); }, 100);
};
score.prototype.onShare = function () {
var save = document.getElementById('save');
save.style.display = 'none';
this.Container.getComponent(Popup).showDialog('Share');
};
score.prototype.onHide = function () {
var save = document.getElementById('save');
save.style.display = 'flex';
this.Container.getComponent(Popup).hideDialog('Share');
};
score.prototype.onShowImage = function () {
var save = document.getElementById('save');
save.className = 'show';
save.style.display = 'flex';
save.addEventListener('click', this.onHideImage, false);
};
score.prototype.onHideImage = function () {
var save = document.getElementById('save');
save.className = '';
save.removeEventListener('click', this.onHideImage, false);
};
score.prototype.onWillLeave = function (next, action, parameters) { score.prototype.onWillLeave = function (next, action, parameters) {
return tslib_1.__awaiter(this, void 0, void 0, function () { return tslib_1.__awaiter(this, void 0, void 0, function () {
var ts; var ts;
......
/Users/firefly/.scilla/components
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
{
"name": "user",
"root": {
"uuid": "20190301114308",
"components": [
{
"script": "components/base/Transform"
}
],
"children": [
{
"uuid": "20190301114245",
"name": "user",
"components": [
{
"script": "components/base/Transform",
"properties": {
"height": 100
}
},
{
"script": "components/other/RelativeLayout",
"properties": {
"left": 0,
"right": 0,
"top": 0,
"once": false
}
}
],
"children": [
{
"name": "HeaderBg",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|dd5d6029-2c18-40fa-9c2f-ba34be8d07f9"
}
},
{
"script": "components/other/RelativeLayout",
"properties": {
"left": 0
}
},
{
"script": "components/renderer/CircleRenderer",
"properties": {
"radius": 33.5,
"isMask": true
}
}
],
"uuid": "18b9c1de-cbe7-4944-98e6-3fd1eeca6d6f",
"children": [
{
"name": "Header",
"components": [
{
"script": "components/base/Transform",
"properties": {
"width": 67,
"height": 67
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|a59f50ff-7e02-4b21-a66e-115cbd59c8e4"
}
}
],
"uuid": "5eda0103-6b90-4f8f-ab92-e7f38a5d3ed0"
}
]
},
{
"name": "Name",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"fillColor": "rgba(0, 0, 0, 1)",
"textStyle": {
"fontSize": 30
},
"text": ""
}
},
{
"script": "components/other/RelativeLayout",
"properties": {
"left": 180
}
}
],
"uuid": "9c06324f-329e-46e4-832f-61cb6f389bb6"
},
{
"name": "Score",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"textStyle": {
"fontSize": 30
},
"fillColor": "rgba(0, 0, 0, 1)",
"text": ""
}
},
{
"script": "components/other/RelativeLayout",
"properties": {
"right": 70
},
"disabled": false
}
],
"uuid": "124fe030-86da-4eef-9432-6d1be4c28220"
},
{
"name": "Bottom",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|d5be8ed3-45a8-4575-a2a3-ba5ba405bc14"
}
},
{
"script": "components/other/RelativeLayout",
"properties": {
"bottom": 0
}
}
],
"uuid": "1ff43867-1581-4a3c-975e-b5cd9757fc06"
}
]
}
]
}
}
\ No newline at end of file
This diff is collapsed.
{
"file": "list.png",
"frames": {
"paper.png": {
"x": 1,
"y": 1,
"w": 743,
"h": 1117,
"offX": 0,
"offY": 0,
"sourceW": 743,
"sourceH": 1117
},
"header-bg.png": {
"x": 746,
"y": 1,
"w": 71,
"h": 78,
"offX": 0,
"offY": 0,
"sourceW": 71,
"sourceH": 78
},
"header.png": {
"x": 819,
"y": 1,
"w": 67,
"h": 67,
"offX": 0,
"offY": 0,
"sourceW": 67,
"sourceH": 67
},
"bottom.png": {
"x": 1,
"y": 1120,
"w": 594,
"h": 7,
"offX": 0,
"offY": 0,
"sourceW": 594,
"sourceH": 7
}
}
}
\ No newline at end of file
This diff is collapsed.
{
"file": "play.png",
"frames": {
"unSelectBtn.png": {
"x": 1,
"y": 1,
"w": 542,
"h": 118,
"offX": 0,
"offY": 0,
"sourceW": 542,
"sourceH": 118
},
"selectBtn.png": {
"x": 1,
"y": 121,
"w": 542,
"h": 118,
"offX": 0,
"offY": 0,
"sourceW": 542,
"sourceH": 118
},
"4-3.png": {
"x": 1,
"y": 241,
"w": 253,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 253,
"sourceH": 35
},
"plane.png": {
"x": 256,
"y": 241,
"w": 229,
"h": 155,
"offX": 13,
"offY": 0,
"sourceW": 242,
"sourceH": 155
},
"4-1.png": {
"x": 1,
"y": 278,
"w": 180,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 180,
"sourceH": 35
},
"8-1.png": {
"x": 183,
"y": 278,
"w": 71,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 71,
"sourceH": 35
},
"score.png": {
"x": 1,
"y": 315,
"w": 146,
"h": 60,
"offX": 0,
"offY": 0,
"sourceW": 146,
"sourceH": 60
},
"1-1.png": {
"x": 149,
"y": 315,
"w": 72,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 72,
"sourceH": 35
},
"1-2.png": {
"x": 149,
"y": 352,
"w": 70,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 70,
"sourceH": 35
},
"4-2.png": {
"x": 1,
"y": 377,
"w": 143,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 143,
"sourceH": 35
},
"6-2.png": {
"x": 146,
"y": 389,
"w": 108,
"h": 36,
"offX": 0,
"offY": 0,
"sourceW": 108,
"sourceH": 36
},
"7-3.png": {
"x": 146,
"y": 427,
"w": 108,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 108,
"sourceH": 35
},
"6-3.png": {
"x": 146,
"y": 464,
"w": 108,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 108,
"sourceH": 35
},
"8-3.png": {
"x": 1,
"y": 414,
"w": 109,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 109,
"sourceH": 35
},
"6-1.png": {
"x": 1,
"y": 451,
"w": 109,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 109,
"sourceH": 35
},
"3-3.png": {
"x": 1,
"y": 488,
"w": 108,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 108,
"sourceH": 35
},
"7-2.png": {
"x": 256,
"y": 398,
"w": 108,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 108,
"sourceH": 35
},
"7-1.png": {
"x": 366,
"y": 398,
"w": 108,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 108,
"sourceH": 35
},
"1-3.png": {
"x": 476,
"y": 398,
"w": 67,
"h": 34,
"offX": 0,
"offY": 0,
"sourceW": 67,
"sourceH": 34
},
"5-1.png": {
"x": 476,
"y": 434,
"w": 62,
"h": 34,
"offX": 0,
"offY": 0,
"sourceW": 62,
"sourceH": 34
},
"3-2.png": {
"x": 256,
"y": 435,
"w": 107,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 107,
"sourceH": 35
},
"8-2.png": {
"x": 365,
"y": 435,
"w": 107,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 107,
"sourceH": 35
},
"5-2.png": {
"x": 474,
"y": 470,
"w": 61,
"h": 34,
"offX": 0,
"offY": 0,
"sourceW": 61,
"sourceH": 34
},
"3-1.png": {
"x": 256,
"y": 472,
"w": 107,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 107,
"sourceH": 35
},
"2-3.png": {
"x": 365,
"y": 472,
"w": 70,
"h": 33,
"offX": 0,
"offY": 0,
"sourceW": 70,
"sourceH": 33
},
"2-2.png": {
"x": 437,
"y": 506,
"w": 70,
"h": 33,
"offX": 0,
"offY": 0,
"sourceW": 70,
"sourceH": 33
},
"2-1.png": {
"x": 365,
"y": 507,
"w": 70,
"h": 33,
"offX": 0,
"offY": 0,
"sourceW": 70,
"sourceH": 33
},
"5-3.png": {
"x": 437,
"y": 541,
"w": 61,
"h": 34,
"offX": 0,
"offY": 0,
"sourceW": 61,
"sourceH": 34
}
}
}
\ No newline at end of file
{
"file": "qs.png",
"frames": {
"qs5.png": {
"x": 1,
"y": 1,
"w": 632,
"h": 536,
"offX": 30,
"offY": 56,
"sourceW": 693,
"sourceH": 648
},
"qs1.png": {
"x": 635,
"y": 1,
"w": 624,
"h": 545,
"offX": 34,
"offY": 51,
"sourceW": 693,
"sourceH": 648
},
"qs2.png": {
"x": 1,
"y": 539,
"w": 624,
"h": 545,
"offX": 34,
"offY": 51,
"sourceW": 693,
"sourceH": 648
},
"qs6.png": {
"x": 1261,
"y": 1,
"w": 624,
"h": 540,
"offX": 34,
"offY": 54,
"sourceW": 693,
"sourceH": 648
},
"qs3.png": {
"x": 1261,
"y": 543,
"w": 624,
"h": 520,
"offX": 34,
"offY": 64,
"sourceW": 693,
"sourceH": 648
},
"qs4.png": {
"x": 627,
"y": 548,
"w": 624,
"h": 520,
"offX": 34,
"offY": 61,
"sourceW": 693,
"sourceH": 648
},
"qs7.png": {
"x": 627,
"y": 1070,
"w": 624,
"h": 513,
"offX": 34,
"offY": 68,
"sourceW": 693,
"sourceH": 648
},
"qs8.png": {
"x": 1,
"y": 1086,
"w": 623,
"h": 517,
"offX": 35,
"offY": 65,
"sourceW": 693,
"sourceH": 648
}
}
}
\ No newline at end of file
{
"file": "score.png",
"frames": {
"bg.png": {
"x": 1,
"y": 1,
"w": 750,
"h": 1624,
"offX": 0,
"offY": 0,
"sourceW": 750,
"sourceH": 1624
},
"paper.png": {
"x": 753,
"y": 1,
"w": 726,
"h": 808,
"offX": 0,
"offY": 0,
"sourceW": 726,
"sourceH": 808
},
"2.png": {
"x": 1,
"y": 1627,
"w": 549,
"h": 185,
"offX": 0,
"offY": 0,
"sourceW": 549,
"sourceH": 185
},
"0.png": {
"x": 1,
"y": 1814,
"w": 491,
"h": 185,
"offX": 0,
"offY": 0,
"sourceW": 491,
"sourceH": 185
},
"save.png": {
"x": 1,
"y": 2001,
"w": 448,
"h": 44,
"offX": 0,
"offY": 0,
"sourceW": 448,
"sourceH": 44
},
"4.png": {
"x": 494,
"y": 1814,
"w": 491,
"h": 185,
"offX": 0,
"offY": 0,
"sourceW": 491,
"sourceH": 185
},
"1.png": {
"x": 552,
"y": 1627,
"w": 491,
"h": 185,
"offX": 0,
"offY": 0,
"sourceW": 491,
"sourceH": 185
},
"3.png": {
"x": 987,
"y": 1814,
"w": 414,
"h": 185,
"offX": 0,
"offY": 0,
"sourceW": 414,
"sourceH": 185
},
"back.png": {
"x": 1403,
"y": 811,
"w": 127,
"h": 53,
"offX": 0,
"offY": 0,
"sourceW": 127,
"sourceH": 53
},
"header.png": {
"x": 1403,
"y": 866,
"w": 125,
"h": 126,
"offX": 0,
"offY": 0,
"sourceW": 125,
"sourceH": 126
},
"btn-left.png": {
"x": 1045,
"y": 811,
"w": 308,
"h": 109,
"offX": 0,
"offY": 0,
"sourceW": 308,
"sourceH": 109
},
"btn-right.png": {
"x": 1045,
"y": 922,
"w": 308,
"h": 109,
"offX": 0,
"offY": 0,
"sourceW": 308,
"sourceH": 109
},
"header-bg.png": {
"x": 1355,
"y": 994,
"w": 146,
"h": 155,
"offX": 0,
"offY": 0,
"sourceW": 146,
"sourceH": 155
}
}
}
\ No newline at end of file
{
"file": "start.png",
"frames": {
"bg.png": {
"x": 1,
"y": 1,
"w": 750,
"h": 1624,
"offX": 0,
"offY": 0,
"sourceW": 750,
"sourceH": 1624
},
"btn.png": {
"x": 753,
"y": 1,
"w": 359,
"h": 127,
"offX": 0,
"offY": 0,
"sourceW": 359,
"sourceH": 127
}
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>QuestionsOfBank</title>
<meta name="viewport"
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="full-screen" content="true"/>
<meta name="screen-orientation" content="portrait"/>
<meta name="x5-fullscreen" content="true"/>
<meta name="360-fullscreen" content="true"/>
<style>
html, body {
padding: 0;
margin: 0;
border: 0;
height: 100%;
background-color: #282C34;
overflow: hidden;
}
ul {
position: absolute;
left: 50%;
top: 50%;
transform: rotate(45deg) translate(-50%, -50%);
-webkit-transform: rotate(45deg) translate(-50%, -50%);
}
li {
list-style-type: none;
position: absolute;
top: 0px;
left: 0px;
width: 20px;
height: 20px;
background: #f5d4a1;
border-radius: 50%;
}
#a {
animation: a 1s ease-in-out infinite;
-webkit-animation: a 1s ease-in-out infinite;
top: -40px;
left: -40px;
}
#b {
animation: b 1s ease-in-out infinite;
-webkit-animation: b 1s ease-in-out infinite;
top: -40px;
left: 0px;
}
#c {
animation: c 1s ease-in-out infinite;
-webkit-animation: c 1s ease-in-out infinite;
top: -40px;
left: 40px;
}
#d {
animation: d 1s ease-in-out infinite;
-webkit-animation: d 1s ease-in-out infinite;
top: 0px;
left: -40px;
}
#e {
animation: e 1s ease-in-out infinite;
-webkit-animation: e 1s ease-in-out infinite;
top: 0px;
left: 0px;
}
#f {
animation: f 1s ease-in-out infinite;
-webkit-animation: f 1s ease-in-out infinite;
top: 0px;
left: 40px;
}
#g {
animation: g 1s ease-in-out infinite;
-webkit-animation: g 1s ease-in-out infinite;
top: 40px;
left: -40px;
}
#h {
animation: h 1s ease-in-out infinite;
-webkit-animation: h 1s ease-in-out infinite;
top: 40px;
left: 0px;
}
#i {
animation: i 1s ease-in-out infinite;
-webkit-animation: i 1s ease-in-out infinite;
top: 40px;
left: 40px;
}
@keyframes a {
50% {
top: 0px;
left: -40px;
}
100% {
top: 0px;
left: -40px;
}
}
@keyframes b {
50% {
top: -40px;
left: -40px;
}
100% {
top: -40px;
left: -40px;
}
}
@keyframes c {
50% {
top: -40px;
left: 0px;
}
100% {
top: -40px;
left: 0px;
}
}
@keyframes d {
50% {
top: 40px;
left: -40px;
}
100% {
top: 40px;
left: -40px;
}
}
@keyframes f {
50% {
top: -40px;
left: 40px;
}
100% {
top: -40px;
left: 40px;
}
}
@keyframes g {
50% {
top: 40px;
left: 0px;
}
100% {
top: 40px;
left: 0px;
}
}
@keyframes h {
50% {
top: 40px;
left: 40px;
}
100% {
top: 40px;
left: 40px;
}
}
@keyframes i {
50% {
top: 0px;
left: 40px;
}
100% {
top: 0px;
left: 40px;
}
}
@-webkit-keyframes a {
50% {
top: 0px;
left: -40px;
}
100% {
top: 0px;
left: -40px;
}
}
@-webkit-keyframes b {
50% {
top: -40px;
left: -40px;
}
100% {
top: -40px;
left: -40px;
}
}
@-webkit-keyframes c {
50% {
top: -40px;
left: 0px;
}
100% {
top: -40px;
left: 0px;
}
}
@-webkit-keyframes d {
50% {
top: 40px;
left: -40px;
}
100% {
top: 40px;
left: -40px;
}
}
@-webkit-keyframes f {
50% {
top: -40px;
left: 40px;
}
100% {
top: -40px;
left: 40px;
}
}
@-webkit-keyframes g {
50% {
top: 40px;
left: 0px;
}
100% {
top: 40px;
left: 0px;
}
}
@-webkit-keyframes h {
50% {
top: 40px;
left: 40px;
}
100% {
top: 40px;
left: 40px;
}
}
@-webkit-keyframes i {
50% {
top: 0px;
left: 40px;
}
100% {
top: 0px;
left: 40px;
}
}
#save {
/* width: 726px;
height: 808px; */
width: 100%;
position: absolute;
top: 50px;
display: none;
opacity: 0;
overflow: hidden;
height: 0;
padding-top: 110%;
}
#save.show {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
padding-top: 0;
height: auto;
width: 100%;
opacity: 1;
background-color: rgba(0, 0, 0, 0.8);
}
#save.show img {
width: 80%;
margin: auto;
position: relative;
}
#save.show::after {
content: '长按保存图片,分享至朋友圈';
color: #fff;
position: absolute;
text-align: center;
width: 100%;
bottom: 50px;
}
#save img {
width: 100%;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
</style>
</head>
<body>
<ul id="loading">
<li id='a'></li>
<li id='b'></li>
<li id='c'></li>
<li id='d'></li>
<li id='e'></li>
<li id='f'></li>
<li id='g'></li>
<li id='h'></li>
<li id='i'></li>
</ul>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<div id="save"><img id="img" /></div>
<script src="https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"></script>
<script>
var CFG = {
callUpRegistH5Code: function () { //唤起登陆方法
console.log('callUpRegistH5Code')
},
appId: '1',
opActivityId: '83139', //活动长id
hdToolId: '24', //活动短id
title: '', //活动标题
rule: '<p><span style="color: rgb(51, 51, 51);">活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则</span></p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello end</p>', //规则
loginFlag: false, //是否登录 true是为登录
logined: true, //是否登录 true是为登录
earnCreditsUrl: 'http://www.baidu.com', //加积分接口
unitName: '贝壳', //积分单位
userNickname: '超级登山包超级登山包超级登山包', //用户昵称
showCredits: 1, //是否展示积分 1:展示 2:不展示
activityCode: '', //活动代码
configJson: '{"background":"//yun.duiba.com.cn/h5/miningMachine/home-bg.jpg","pk_button_normal":"//yun.duiba.com.cn/h5/miningMachine/pk-btn.png","pk_button_disabled":"//yun.duiba.com.cn/h5/miningMachine/pk-filter-btn.png","dig_button_normal":"//yun.duiba.com.cn/h5/miningMachine/mining-btn.png","dig_button_disabled":"//yun.dui88.com/h5/miningMachine/mining-filter-btn.png","dialog_background":"//yun.duiba.com.cn/h5/miningMachine/modal-bg.png","dialog_button":"//yun.duiba.com.cn/h5/miningMachine/modal-btn.png","pk_button_label_normal":"#FFF591","pk_button_label_disabled":"#666666","dig_button_label_normal":"#D12C00","dig_button_label_disabled":"#666666","dialog_text_color":"#AB5400","dialog_button_label":"#FFF591"}'
};
function requirelogin() {
console.log('requirelogin');
}
</script>
<script>
var defineCustom = window['defineCustom'] || {}
defineCustom.shareInfo = {
title: '',
desc: '',
link: 'https://activity-2.m.duiba.com.cn/hdtool/index?id=3561522',
imgUrl: '',
prefix: 'https://activity-2.m.duiba.com.cn/wechat/authNew?apk=JMik915F5K8NCUpYk3zVfzGucXE&dbredirect='
}
defineCustom.shareConfig = {
appId: '$wxappid',
timestamp: '$wxtimestamp',
nonceStr: '$wxnonceStr',
signature: '$wxsignature',
}
defineCustom.qrcode = 'http://thirdwx.qlogo.cn/mmopen/ajNVdqHZLLDRYWXib9ePlnQ0zhBnh737H10bDf4PyhkxMxhVG1rgMtjtjOEbdldPpzIiaObgHE7dymh29GliaoibGQ/132'
</script>
<script src="bundle.js"></script>
<script>
setTimeout(function(){
var options = window['inputOptions'] || {};
window['QuestionsOfBank'].startup(document.getElementById('gameContainer'), options);
}, 100);
</script>
</body>
</html>
{
"name": "QuestionsOfBank",
"engineConfig": {
"fps": 60,
"designWidth": 750,
"designHeight": 1334,
"scaleMode": "fixedWidth",
"modifyCanvasSize": false,
"resPath": ""
},
"customConfig": {
"scene": {
"scenes": {
"main": "scenes/main.scene"
},
"entryScene": "main"
},
"webServiceUrl": "http://10.10.92.44:4001"
},
"dataCenterConfig": {
"dataCenterRoot": [
"API",
"custom"
]
},
"projectUuid": "8f747716-cfbd-431c-a644-00a8a024aea4"
}
{
"name": "user",
"root": {
"uuid": "20190301114308",
"components": [
{
"script": "components/base/Transform"
}
],
"children": [
{
"uuid": "20190301114245",
"name": "user",
"components": [
{
"script": "components/base/Transform",
"properties": {
"height": 100
}
},
{
"script": "components/other/RelativeLayout",
"properties": {
"left": 0,
"right": 0,
"top": 0,
"once": false
}
}
],
"children": [
{
"name": "HeaderBg",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|dd5d6029-2c18-40fa-9c2f-ba34be8d07f9"
}
},
{
"script": "components/other/RelativeLayout",
"properties": {
"left": 0
}
},
{
"script": "components/renderer/CircleRenderer",
"properties": {
"radius": 33.5,
"isMask": true
}
}
],
"uuid": "18b9c1de-cbe7-4944-98e6-3fd1eeca6d6f",
"children": [
{
"name": "Header",
"components": [
{
"script": "components/base/Transform",
"properties": {
"width": 67,
"height": 67
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|a59f50ff-7e02-4b21-a66e-115cbd59c8e4"
}
}
],
"uuid": "5eda0103-6b90-4f8f-ab92-e7f38a5d3ed0"
}
]
},
{
"name": "Name",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"fillColor": "rgba(0, 0, 0, 1)",
"textStyle": {
"fontSize": 30
},
"text": ""
}
},
{
"script": "components/other/RelativeLayout",
"properties": {
"left": 180
}
}
],
"uuid": "9c06324f-329e-46e4-832f-61cb6f389bb6"
},
{
"name": "Score",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"textStyle": {
"fontSize": 30
},
"fillColor": "rgba(0, 0, 0, 1)",
"text": ""
}
},
{
"script": "components/other/RelativeLayout",
"properties": {
"right": 70
},
"disabled": false
}
],
"uuid": "124fe030-86da-4eef-9432-6d1be4c28220"
},
{
"name": "Bottom",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|d5be8ed3-45a8-4575-a2a3-ba5ba405bc14"
}
},
{
"script": "components/other/RelativeLayout",
"properties": {
"bottom": 0
}
}
],
"uuid": "1ff43867-1581-4a3c-975e-b5cd9757fc06"
}
]
}
]
}
}
\ No newline at end of file
This diff is collapsed.
{
"file": "list.png",
"frames": {
"paper.png": {
"x": 1,
"y": 1,
"w": 743,
"h": 1117,
"offX": 0,
"offY": 0,
"sourceW": 743,
"sourceH": 1117
},
"header-bg.png": {
"x": 746,
"y": 1,
"w": 71,
"h": 78,
"offX": 0,
"offY": 0,
"sourceW": 71,
"sourceH": 78
},
"header.png": {
"x": 819,
"y": 1,
"w": 67,
"h": 67,
"offX": 0,
"offY": 0,
"sourceW": 67,
"sourceH": 67
},
"bottom.png": {
"x": 1,
"y": 1120,
"w": 594,
"h": 7,
"offX": 0,
"offY": 0,
"sourceW": 594,
"sourceH": 7
}
}
}
\ No newline at end of file
This diff is collapsed.
{
"file": "play.png",
"frames": {
"unSelectBtn.png": {
"x": 1,
"y": 1,
"w": 542,
"h": 118,
"offX": 0,
"offY": 0,
"sourceW": 542,
"sourceH": 118
},
"selectBtn.png": {
"x": 1,
"y": 121,
"w": 542,
"h": 118,
"offX": 0,
"offY": 0,
"sourceW": 542,
"sourceH": 118
},
"4-3.png": {
"x": 1,
"y": 241,
"w": 253,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 253,
"sourceH": 35
},
"plane.png": {
"x": 256,
"y": 241,
"w": 229,
"h": 155,
"offX": 13,
"offY": 0,
"sourceW": 242,
"sourceH": 155
},
"4-1.png": {
"x": 1,
"y": 278,
"w": 180,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 180,
"sourceH": 35
},
"8-1.png": {
"x": 183,
"y": 278,
"w": 71,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 71,
"sourceH": 35
},
"score.png": {
"x": 1,
"y": 315,
"w": 146,
"h": 60,
"offX": 0,
"offY": 0,
"sourceW": 146,
"sourceH": 60
},
"1-1.png": {
"x": 149,
"y": 315,
"w": 72,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 72,
"sourceH": 35
},
"1-2.png": {
"x": 149,
"y": 352,
"w": 70,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 70,
"sourceH": 35
},
"4-2.png": {
"x": 1,
"y": 377,
"w": 143,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 143,
"sourceH": 35
},
"6-2.png": {
"x": 146,
"y": 389,
"w": 108,
"h": 36,
"offX": 0,
"offY": 0,
"sourceW": 108,
"sourceH": 36
},
"7-3.png": {
"x": 146,
"y": 427,
"w": 108,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 108,
"sourceH": 35
},
"6-3.png": {
"x": 146,
"y": 464,
"w": 108,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 108,
"sourceH": 35
},
"8-3.png": {
"x": 1,
"y": 414,
"w": 109,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 109,
"sourceH": 35
},
"6-1.png": {
"x": 1,
"y": 451,
"w": 109,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 109,
"sourceH": 35
},
"3-3.png": {
"x": 1,
"y": 488,
"w": 108,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 108,
"sourceH": 35
},
"7-2.png": {
"x": 256,
"y": 398,
"w": 108,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 108,
"sourceH": 35
},
"7-1.png": {
"x": 366,
"y": 398,
"w": 108,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 108,
"sourceH": 35
},
"1-3.png": {
"x": 476,
"y": 398,
"w": 67,
"h": 34,
"offX": 0,
"offY": 0,
"sourceW": 67,
"sourceH": 34
},
"5-1.png": {
"x": 476,
"y": 434,
"w": 62,
"h": 34,
"offX": 0,
"offY": 0,
"sourceW": 62,
"sourceH": 34
},
"3-2.png": {
"x": 256,
"y": 435,
"w": 107,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 107,
"sourceH": 35
},
"8-2.png": {
"x": 365,
"y": 435,
"w": 107,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 107,
"sourceH": 35
},
"5-2.png": {
"x": 474,
"y": 470,
"w": 61,
"h": 34,
"offX": 0,
"offY": 0,
"sourceW": 61,
"sourceH": 34
},
"3-1.png": {
"x": 256,
"y": 472,
"w": 107,
"h": 35,
"offX": 0,
"offY": 0,
"sourceW": 107,
"sourceH": 35
},
"2-3.png": {
"x": 365,
"y": 472,
"w": 70,
"h": 33,
"offX": 0,
"offY": 0,
"sourceW": 70,
"sourceH": 33
},
"2-2.png": {
"x": 437,
"y": 506,
"w": 70,
"h": 33,
"offX": 0,
"offY": 0,
"sourceW": 70,
"sourceH": 33
},
"2-1.png": {
"x": 365,
"y": 507,
"w": 70,
"h": 33,
"offX": 0,
"offY": 0,
"sourceW": 70,
"sourceH": 33
},
"5-3.png": {
"x": 437,
"y": 541,
"w": 61,
"h": 34,
"offX": 0,
"offY": 0,
"sourceW": 61,
"sourceH": 34
}
}
}
\ No newline at end of file
{
"file": "qs.png",
"frames": {
"qs5.png": {
"x": 1,
"y": 1,
"w": 632,
"h": 536,
"offX": 30,
"offY": 56,
"sourceW": 693,
"sourceH": 648
},
"qs1.png": {
"x": 635,
"y": 1,
"w": 624,
"h": 545,
"offX": 34,
"offY": 51,
"sourceW": 693,
"sourceH": 648
},
"qs2.png": {
"x": 1,
"y": 539,
"w": 624,
"h": 545,
"offX": 34,
"offY": 51,
"sourceW": 693,
"sourceH": 648
},
"qs6.png": {
"x": 1261,
"y": 1,
"w": 624,
"h": 540,
"offX": 34,
"offY": 54,
"sourceW": 693,
"sourceH": 648
},
"qs3.png": {
"x": 1261,
"y": 543,
"w": 624,
"h": 520,
"offX": 34,
"offY": 64,
"sourceW": 693,
"sourceH": 648
},
"qs4.png": {
"x": 627,
"y": 548,
"w": 624,
"h": 520,
"offX": 34,
"offY": 61,
"sourceW": 693,
"sourceH": 648
},
"qs7.png": {
"x": 627,
"y": 1070,
"w": 624,
"h": 513,
"offX": 34,
"offY": 68,
"sourceW": 693,
"sourceH": 648
},
"qs8.png": {
"x": 1,
"y": 1086,
"w": 623,
"h": 517,
"offX": 35,
"offY": 65,
"sourceW": 693,
"sourceH": 648
}
}
}
\ No newline at end of file
{
"file": "score.png",
"frames": {
"bg.png": {
"x": 1,
"y": 1,
"w": 750,
"h": 1624,
"offX": 0,
"offY": 0,
"sourceW": 750,
"sourceH": 1624
},
"paper.png": {
"x": 753,
"y": 1,
"w": 726,
"h": 808,
"offX": 0,
"offY": 0,
"sourceW": 726,
"sourceH": 808
},
"2.png": {
"x": 1,
"y": 1627,
"w": 549,
"h": 185,
"offX": 0,
"offY": 0,
"sourceW": 549,
"sourceH": 185
},
"0.png": {
"x": 1,
"y": 1814,
"w": 491,
"h": 185,
"offX": 0,
"offY": 0,
"sourceW": 491,
"sourceH": 185
},
"save.png": {
"x": 1,
"y": 2001,
"w": 448,
"h": 44,
"offX": 0,
"offY": 0,
"sourceW": 448,
"sourceH": 44
},
"4.png": {
"x": 494,
"y": 1814,
"w": 491,
"h": 185,
"offX": 0,
"offY": 0,
"sourceW": 491,
"sourceH": 185
},
"1.png": {
"x": 552,
"y": 1627,
"w": 491,
"h": 185,
"offX": 0,
"offY": 0,
"sourceW": 491,
"sourceH": 185
},
"3.png": {
"x": 987,
"y": 1814,
"w": 414,
"h": 185,
"offX": 0,
"offY": 0,
"sourceW": 414,
"sourceH": 185
},
"back.png": {
"x": 1403,
"y": 811,
"w": 127,
"h": 53,
"offX": 0,
"offY": 0,
"sourceW": 127,
"sourceH": 53
},
"header.png": {
"x": 1403,
"y": 866,
"w": 125,
"h": 126,
"offX": 0,
"offY": 0,
"sourceW": 125,
"sourceH": 126
},
"btn-left.png": {
"x": 1045,
"y": 811,
"w": 308,
"h": 109,
"offX": 0,
"offY": 0,
"sourceW": 308,
"sourceH": 109
},
"btn-right.png": {
"x": 1045,
"y": 922,
"w": 308,
"h": 109,
"offX": 0,
"offY": 0,
"sourceW": 308,
"sourceH": 109
},
"header-bg.png": {
"x": 1355,
"y": 994,
"w": 146,
"h": 155,
"offX": 0,
"offY": 0,
"sourceW": 146,
"sourceH": 155
}
}
}
\ No newline at end of file
{
"file": "start.png",
"frames": {
"bg.png": {
"x": 1,
"y": 1,
"w": 750,
"h": 1624,
"offX": 0,
"offY": 0,
"sourceW": 750,
"sourceH": 1624
},
"btn.png": {
"x": 753,
"y": 1,
"w": 359,
"h": 127,
"offX": 0,
"offY": 0,
"sourceW": 359,
"sourceH": 127
}
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>QuestionsOfBank</title>
<meta name="viewport"
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="full-screen" content="true"/>
<meta name="screen-orientation" content="portrait"/>
<meta name="x5-fullscreen" content="true"/>
<meta name="360-fullscreen" content="true"/>
<style>
html, body {
padding: 0;
margin: 0;
border: 0;
height: 100%;
background-color: #282C34;
overflow: hidden;
}
ul {
position: absolute;
left: 50%;
top: 50%;
transform: rotate(45deg) translate(-50%, -50%);
-webkit-transform: rotate(45deg) translate(-50%, -50%);
}
li {
list-style-type: none;
position: absolute;
top: 0px;
left: 0px;
width: 20px;
height: 20px;
background: #f5d4a1;
border-radius: 50%;
}
#a {
animation: a 1s ease-in-out infinite;
-webkit-animation: a 1s ease-in-out infinite;
top: -40px;
left: -40px;
}
#b {
animation: b 1s ease-in-out infinite;
-webkit-animation: b 1s ease-in-out infinite;
top: -40px;
left: 0px;
}
#c {
animation: c 1s ease-in-out infinite;
-webkit-animation: c 1s ease-in-out infinite;
top: -40px;
left: 40px;
}
#d {
animation: d 1s ease-in-out infinite;
-webkit-animation: d 1s ease-in-out infinite;
top: 0px;
left: -40px;
}
#e {
animation: e 1s ease-in-out infinite;
-webkit-animation: e 1s ease-in-out infinite;
top: 0px;
left: 0px;
}
#f {
animation: f 1s ease-in-out infinite;
-webkit-animation: f 1s ease-in-out infinite;
top: 0px;
left: 40px;
}
#g {
animation: g 1s ease-in-out infinite;
-webkit-animation: g 1s ease-in-out infinite;
top: 40px;
left: -40px;
}
#h {
animation: h 1s ease-in-out infinite;
-webkit-animation: h 1s ease-in-out infinite;
top: 40px;
left: 0px;
}
#i {
animation: i 1s ease-in-out infinite;
-webkit-animation: i 1s ease-in-out infinite;
top: 40px;
left: 40px;
}
@keyframes a {
50% {
top: 0px;
left: -40px;
}
100% {
top: 0px;
left: -40px;
}
}
@keyframes b {
50% {
top: -40px;
left: -40px;
}
100% {
top: -40px;
left: -40px;
}
}
@keyframes c {
50% {
top: -40px;
left: 0px;
}
100% {
top: -40px;
left: 0px;
}
}
@keyframes d {
50% {
top: 40px;
left: -40px;
}
100% {
top: 40px;
left: -40px;
}
}
@keyframes f {
50% {
top: -40px;
left: 40px;
}
100% {
top: -40px;
left: 40px;
}
}
@keyframes g {
50% {
top: 40px;
left: 0px;
}
100% {
top: 40px;
left: 0px;
}
}
@keyframes h {
50% {
top: 40px;
left: 40px;
}
100% {
top: 40px;
left: 40px;
}
}
@keyframes i {
50% {
top: 0px;
left: 40px;
}
100% {
top: 0px;
left: 40px;
}
}
@-webkit-keyframes a {
50% {
top: 0px;
left: -40px;
}
100% {
top: 0px;
left: -40px;
}
}
@-webkit-keyframes b {
50% {
top: -40px;
left: -40px;
}
100% {
top: -40px;
left: -40px;
}
}
@-webkit-keyframes c {
50% {
top: -40px;
left: 0px;
}
100% {
top: -40px;
left: 0px;
}
}
@-webkit-keyframes d {
50% {
top: 40px;
left: -40px;
}
100% {
top: 40px;
left: -40px;
}
}
@-webkit-keyframes f {
50% {
top: -40px;
left: 40px;
}
100% {
top: -40px;
left: 40px;
}
}
@-webkit-keyframes g {
50% {
top: 40px;
left: 0px;
}
100% {
top: 40px;
left: 0px;
}
}
@-webkit-keyframes h {
50% {
top: 40px;
left: 40px;
}
100% {
top: 40px;
left: 40px;
}
}
@-webkit-keyframes i {
50% {
top: 0px;
left: 40px;
}
100% {
top: 0px;
left: 40px;
}
}
#save {
/* width: 726px;
height: 808px; */
width: 100%;
position: absolute;
top: 50px;
display: none;
opacity: 0;
overflow: hidden;
height: 0;
padding-top: 110%;
}
#save.show {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
padding-top: 0;
height: auto;
width: 100%;
opacity: 1;
background-color: rgba(0, 0, 0, 0.8);
}
#save.show img {
width: 80%;
margin: auto;
position: relative;
}
#save.show::after {
content: '长按保存图片,分享至朋友圈';
color: #fff;
position: absolute;
text-align: center;
width: 100%;
bottom: 50px;
}
#save img {
width: 100%;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
</style>
</head>
<body>
<ul id="loading">
<li id='a'></li>
<li id='b'></li>
<li id='c'></li>
<li id='d'></li>
<li id='e'></li>
<li id='f'></li>
<li id='g'></li>
<li id='h'></li>
<li id='i'></li>
</ul>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<div id="save"><img id="img" /></div>
<script src="https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"></script>
<script>
var CFG = {
callUpRegistH5Code: function () { //唤起登陆方法
console.log('callUpRegistH5Code')
},
appId: '1',
opActivityId: '83139', //活动长id
hdToolId: '24', //活动短id
title: '', //活动标题
rule: '<p><span style="color: rgb(51, 51, 51);">活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则</span></p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello end</p>', //规则
loginFlag: false, //是否登录 true是为登录
logined: true, //是否登录 true是为登录
earnCreditsUrl: 'http://www.baidu.com', //加积分接口
unitName: '贝壳', //积分单位
userNickname: '超级登山包超级登山包超级登山包', //用户昵称
showCredits: 1, //是否展示积分 1:展示 2:不展示
activityCode: '', //活动代码
configJson: '{"background":"//yun.duiba.com.cn/h5/miningMachine/home-bg.jpg","pk_button_normal":"//yun.duiba.com.cn/h5/miningMachine/pk-btn.png","pk_button_disabled":"//yun.duiba.com.cn/h5/miningMachine/pk-filter-btn.png","dig_button_normal":"//yun.duiba.com.cn/h5/miningMachine/mining-btn.png","dig_button_disabled":"//yun.dui88.com/h5/miningMachine/mining-filter-btn.png","dialog_background":"//yun.duiba.com.cn/h5/miningMachine/modal-bg.png","dialog_button":"//yun.duiba.com.cn/h5/miningMachine/modal-btn.png","pk_button_label_normal":"#FFF591","pk_button_label_disabled":"#666666","dig_button_label_normal":"#D12C00","dig_button_label_disabled":"#666666","dialog_text_color":"#AB5400","dialog_button_label":"#FFF591"}'
};
function requirelogin() {
console.log('requirelogin');
}
</script>
<script>
var defineCustom = window['defineCustom'] || {}
defineCustom.shareInfo = {
title: '',
desc: '',
link: 'https://activity-2.m.duiba.com.cn/hdtool/index?id=3561522',
imgUrl: '',
prefix: 'https://activity-2.m.duiba.com.cn/wechat/authNew?apk=JMik915F5K8NCUpYk3zVfzGucXE&dbredirect='
}
defineCustom.shareConfig = {
appId: '$wxappid',
timestamp: '$wxtimestamp',
nonceStr: '$wxnonceStr',
signature: '$wxsignature',
}
defineCustom.qrcode = 'http://thirdwx.qlogo.cn/mmopen/ajNVdqHZLLDRYWXib9ePlnQ0zhBnh737H10bDf4PyhkxMxhVG1rgMtjtjOEbdldPpzIiaObgHE7dymh29GliaoibGQ/132'
</script>
<script src="bundle.js"></script>
<script>
setTimeout(function(){
var options = window['inputOptions'] || {};
window['QuestionsOfBank'].startup(document.getElementById('gameContainer'), options);
}, 100);
</script>
</body>
</html>
{
"name": "QuestionsOfBank",
"engineConfig": {
"fps": 60,
"designWidth": 750,
"designHeight": 1334,
"scaleMode": "fixedWidth",
"modifyCanvasSize": false,
"resPath": ""
},
"customConfig": {
"scene": {
"scenes": {
"main": "scenes/main.scene"
},
"entryScene": "main"
},
"webServiceUrl": "http://10.10.92.44:4001"
},
"dataCenterConfig": {
"dataCenterRoot": [
"API",
"custom"
]
},
"projectUuid": "8f747716-cfbd-431c-a644-00a8a024aea4"
}
This diff is collapsed.
This diff is collapsed.
{
"file": "list.png",
"frames": {
"paper.png": {
"x": 1,
"y": 1,
"w": 743,
"h": 1117,
"offX": 0,
"offY": 0,
"sourceW": 743,
"sourceH": 1117
},
"header-bg.png": {
"x": 746,
"y": 1,
"w": 71,
"h": 78,
"offX": 0,
"offY": 0,
"sourceW": 71,
"sourceH": 78
},
"header.png": {
"x": 819,
"y": 1,
"w": 67,
"h": 67,
"offX": 0,
"offY": 0,
"sourceW": 67,
"sourceH": 67
},
"bottom.png": {
"x": 1,
"y": 1120,
"w": 594,
"h": 7,
"offX": 0,
"offY": 0,
"sourceW": 594,
"sourceH": 7
}
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{
"file": "start.png",
"frames": {
"bg.png": {
"x": 1,
"y": 1,
"w": 750,
"h": 1624,
"offX": 0,
"offY": 0,
"sourceW": 750,
"sourceH": 1624
},
"btn.png": {
"x": 753,
"y": 1,
"w": 359,
"h": 127,
"offX": 0,
"offY": 0,
"sourceW": 359,
"sourceH": 127
}
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
{
"name": "QuestionsOfBank",
"engineConfig": {
"fps": 60,
"designWidth": 750,
"designHeight": 1334,
"scaleMode": "fixedWidth",
"modifyCanvasSize": false,
"resPath": ""
},
"customConfig": {
"scene": {
"scenes": {
"main": "scenes/main.scene"
},
"entryScene": "main"
},
"webServiceUrl": ""
},
"dataCenterConfig": {
"dataCenterRoot": [
"API",
"custom"
]
},
"projectUuid": "8f747716-cfbd-431c-a644-00a8a024aea4"
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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