Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
renderingEngine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王剑峰
renderingEngine
Commits
64dc3214
Commit
64dc3214
authored
Dec 11, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了好多东西啊
parent
ae388238
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19183 additions
and
0 deletions
+19183
-0
data.json
data/data.json
+3939
-0
engine.d20665eae76962ad21c153fe7a719130b08e292c.js
dist/engine.d20665eae76962ad21c153fe7a719130b08e292c.js
+15244
-0
No files found.
data/data.json
0 → 100644
View file @
64dc3214
{
"options"
:
{
"pageTitle"
:
"屈臣氏刮刮卡1219"
,
"entrySceneView"
:
"屈臣氏刮刮卡1219"
,
"containerId"
:
"game-container"
,
"designWidth"
:
750
,
"designHeight"
:
1334
,
"frameRate"
:
60
,
"scaleMode"
:
"fixedWidth"
,
"rendererType"
:
"webgl"
,
"tpl"
:
"<!DOCTYPE html>
\n
<html lang=
\"
en
\"
>
\n\n\t
<head>
\n\t
<meta charset=
\"
UTF-8
\"
>
\n\t
<title>$PAGE_TITLE$</title>
\n\t
<meta name=
\"
viewport
\"\n
content=
\"
width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no
\"
/>
\n\t
<meta name=
\"
apple-mobile-web-app-capable
\"
content=
\"
yes
\"
/>
\n\t
<meta name=
\"
full-screen
\"
content=
\"
true
\"
/>
\n\t
<meta name=
\"
screen-orientation
\"
content=
\"
portrait
\"
/>
\n\t
<meta name=
\"
x5-fullscreen
\"
content=
\"
true
\"
/>
\n\t
<meta name=
\"
360-fullscreen
\"
content=
\"
true
\"
/>
\n\t
<style>
\n\t
html,
\n\t
body {
\n\t
padding: 0;
\n\t
margin: 0;
\n\t
border: 0;
\n\n\t
width: 100%;
\n\t
height: 100%;
\n\t
overflow: hidden;
\n\t
position: absolute;
\n\t
background-color: white;
\n
}
\n
</style>
\n
</head>
\n\n
<body>
\n
<div id=
\"
$CONTAINER_ID$
\"
style=
\"
line-height:0;font-size:0
\"
></div>
\n\t
<script src=
\"
http://yun.duiba.com.cn/editor/zeroing/libs/engine.7a5de46a29e3323c479ba7481002f5adf09a9622.js
\"
></script>
\n\t
$SCRIPTS$
\n\t
<script>
\n\t\t
engine.launch('//yun.duiba.com.cn/aurora/$VERSION$-data.json');
\n\t
</script>
\n
</body>
\n
</html>
\n
"
,
"env"
:
[
{
"name"
:
"appID"
,
"value"
:
"1234"
},
{
"name"
:
"projectID"
,
"value"
:
"1"
}
]
},
"views"
:
[
{
"name"
:
"屈臣氏刮刮卡1219"
,
"type"
:
"node"
,
"uuid"
:
"74c9e6bf-0929-480e-b633-7b13141773a6"
,
"children"
:
[
{
"name"
:
"背景"
,
"properties"
:
{
"width"
:
750
,
"height"
:
1624
,
"alpha"
:
1
,
"visible"
:
true
,
"source"
:
"asset://5f09b688-eb0a-4bf6-ac52-ed18ce663846"
,
"x"
:
0
,
"y"
:
0
},
"uuid"
:
"cf12b0c1-cce7-4629-bee3-12097f99ba44"
,
"type"
:
"image"
},
{
"name"
:
"奖品"
,
"properties"
:
{
"width"
:
678
,
"height"
:
326
,
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
36
,
"y"
:
865
},
"uuid"
:
"9f6e5a02-c8e0-4d3b-9dc2-fe1d2fedef12"
,
"type"
:
"node"
,
"children"
:
[
{
"name"
:
"木板"
,
"properties"
:
{
"width"
:
678
,
"height"
:
31
,
"alpha"
:
1
,
"visible"
:
true
,
"y"
:
211
,
"source"
:
"asset://2c59e041-898c-40cc-b88b-6a817b9a1e38"
},
"uuid"
:
"2378b530-d343-461e-8297-3cefec9ae8d7"
,
"type"
:
"image"
},
{
"name"
:
"奖品"
,
"properties"
:
{
"width"
:
650
,
"height"
:
220
,
"alpha"
:
1
,
"visible"
:
false
,
"x"
:
12
,
"y"
:
76
,
"horizonCenter"
:
0
},
"uuid"
:
"b83704e9-2201-4740-9755-a82173d3c80d"
,
"type"
:
"node"
,
"children"
:
[],
"events"
:
{}
},
{
"name"
:
"奖品标题"
,
"properties"
:
{
"width"
:
343
,
"height"
:
69
,
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
168
,
"source"
:
"asset://f77c1092-e60c-48a6-83a7-fe97113497e1"
},
"uuid"
:
"0a51019c-8c79-4285-bbac-b0dfd28b1319"
,
"type"
:
"image"
}
]
},
{
"name"
:
"抽奖"
,
"properties"
:
{
"width"
:
610
,
"height"
:
458
,
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
71
,
"y"
:
371
},
"uuid"
:
"cdfc1eac-2ada-42cb-9425-f92aa7a71a52"
,
"type"
:
"node"
,
"children"
:
[
{
"name"
:
"礼物盒"
,
"properties"
:
{
"width"
:
610
,
"height"
:
458
,
"alpha"
:
1
,
"visible"
:
true
,
"source"
:
"asset://83a321db-2df3-4412-b373-f6c7f1248d03"
},
"uuid"
:
"c9f0dfe4-228f-4500-987d-345a51748d57"
,
"type"
:
"image"
},
{
"name"
:
"刮卡区"
,
"properties"
:
{
"width"
:
499
,
"height"
:
243
,
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
55
,
"y"
:
172
},
"uuid"
:
"b7d19ccc-e327-45cf-ac3e-827971cfeaf8"
,
"type"
:
"node"
,
"children"
:
[
{
"name"
:
"刮刮卡-未刮开"
,
"properties"
:
{
"width"
:
499
,
"height"
:
236
,
"alpha"
:
1
,
"visible"
:
true
,
"y"
:
4
,
"source"
:
"asset://bacc2948-e65d-4b30-9290-e9c6a35f2b3f"
},
"uuid"
:
"ae59bef0-d4eb-4d9e-9bff-2cd933b7086d"
,
"type"
:
"image"
},
{
"name"
:
"刮刮卡-开始背景"
,
"properties"
:
{
"width"
:
499
,
"height"
:
243
,
"alpha"
:
1
,
"visible"
:
true
,
"source"
:
"asset://34769270-365a-404a-a042-1c50a8add295"
},
"uuid"
:
"7ea884af-3ecb-4b24-8ee2-5091d8e291ca"
,
"type"
:
"image"
},
{
"name"
:
"遮罩-刮卡奖品"
,
"type"
:
"rect"
,
"properties"
:
{
"width"
:
498
,
"height"
:
241
,
"visible"
:
false
},
"events"
:
{},
"uuid"
:
"3905b34d-79ee-4401-9d9e-f9ee913af490"
}
],
"events"
:
{}
},
{
"name"
:
"按钮状态"
,
"properties"
:
{
"width"
:
452
,
"height"
:
113
,
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
80
,
"y"
:
226
},
"uuid"
:
"d6b59cf1-d135-4774-a1f3-411f75c7b529"
,
"type"
:
"node"
,
"children"
:
[
{
"name"
:
"开始按钮"
,
"properties"
:
{
"width"
:
452
,
"height"
:
113
,
"alpha"
:
1
,
"visible"
:
true
,
"source"
:
"asset://c19439bb-ed98-4cd5-9ad9-2903565375d3"
,
"x"
:
0
,
"y"
:
0
},
"uuid"
:
"44e9622b-337f-4eaf-a33c-d7598098f9a9"
,
"type"
:
"image"
,
"events"
:
{
"click"
:
{
"once"
:
false
,
"behaviors"
:
[
{
"uuid"
:
"b53a6c5d-0482-4cd0-85c5-0fbf25e1deff"
,
"alias"
:
"开始按钮_click"
,
"meta"
:
"f469222f-144f-4006-8a5c-54ed7104a7e5"
}
]
}
}
},
{
"name"
:
"按钮无抽奖次数"
,
"properties"
:
{
"width"
:
452
,
"height"
:
113
,
"alpha"
:
1
,
"visible"
:
false
,
"source"
:
"asset://088bc60d-1803-46da-98d7-9f7e6091f8f0"
,
"x"
:
0
,
"y"
:
0
},
"uuid"
:
"e49cee18-2ba2-4161-85c3-a22c794d4fdf"
,
"type"
:
"image"
,
"events"
:
{
"click"
:
{
"once"
:
false
,
"behaviors"
:
[
{
"uuid"
:
"02c185c2-316e-43ca-b503-f8f48a140382"
,
"alias"
:
"按钮无抽奖次数_click"
,
"meta"
:
"43b32f28-99a0-4198-b9e0-5b7ef18aecc4"
}
]
}
}
}
],
"scripts"
:
[
{
"script"
:
"touch-zoom"
,
"props"
:
{
"zoomTo"
:
0.95
}
}
]
},
{
"name"
:
"抽奖次数"
,
"properties"
:
{
"width"
:
375
,
"height"
:
24
,
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
117
,
"y"
:
343
},
"uuid"
:
"87120f29-bea3-48b8-897b-373ab0d23574"
,
"type"
:
"node"
,
"children"
:
[
{
"name"
:
"剩余抽奖次数"
,
"properties"
:
{
"height"
:
24
,
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
91
,
"text"
:
"剩余抽奖次数:0"
,
"size"
:
24
,
"fillColor"
:
"rgba(216, 184, 109, 1)"
,
"horizonCenter"
:
0
},
"uuid"
:
"82df149d-2929-451e-936e-06011333a15b"
,
"type"
:
"label"
,
"events"
:
{
"data-center"
:
{
"once"
:
false
,
"behaviors"
:
[
{
"uuid"
:
"10002953-1ed0-4407-9221-b76b0029a435"
,
"alias"
:
"剩余抽奖次数_data-center"
,
"meta"
:
"5e1514bd-1856-4316-8b54-f2ebb8b48118"
}
]
}
}
},
{
"name"
:
"线条"
,
"properties"
:
{
"width"
:
375
,
"height"
:
2
,
"alpha"
:
1
,
"visible"
:
true
,
"y"
:
11
,
"source"
:
"asset://ab718406-b1a3-42e2-a10b-01de5680f65b"
},
"uuid"
:
"13438b89-bb8c-4800-b4d4-bf1f72f12bd4"
,
"type"
:
"image"
}
]
}
]
},
{
"name"
:
"组-中奖"
,
"type"
:
"node"
,
"properties"
:
{
"width"
:
489
,
"height"
:
237
,
"visible"
:
false
,
"x"
:
130
,
"y"
:
545
},
"events"
:
{},
"uuid"
:
"55fb5a22-a133-4815-9815-6107fbd63c61"
,
"children"
:
[
{
"name"
:
"图片-刮卡奖品"
,
"type"
:
"image"
,
"properties"
:
{
"x"
:
0
,
"y"
:
0
,
"width"
:
498
,
"height"
:
241
,
"visible"
:
false
},
"events"
:
{},
"uuid"
:
"165050c2-91ba-4fb6-bac5-d0f63b0e993e"
}
]
},
{
"name"
:
"组-未中奖"
,
"type"
:
"node"
,
"properties"
:
{
"width"
:
495
,
"height"
:
239
,
"visible"
:
false
,
"x"
:
129
,
"y"
:
545
},
"events"
:
{},
"uuid"
:
"8f646122-be68-4766-94b5-21ed49f1d257"
,
"children"
:
[
{
"name"
:
"谢谢参与底图"
,
"type"
:
"rect"
,
"properties"
:
{
"width"
:
498
,
"height"
:
241
,
"alpha"
:
0.5
},
"events"
:
{},
"uuid"
:
"e0364a8a-9c2c-43a8-86a1-287a14a01942"
},
{
"name"
:
"谢谢参与"
,
"type"
:
"label"
,
"properties"
:
{
"text"
:
"谢谢参与"
,
"size"
:
80
,
"fillColor"
:
"rgba(255, 255, 255, 1)"
,
"verticalCenter"
:
0
,
"horizonCenter"
:
0
},
"events"
:
{},
"uuid"
:
"66d4b196-a2a5-471a-8970-ac564b72ca2c"
}
]
},
{
"name"
:
"大标题"
,
"properties"
:
{
"width"
:
676
,
"height"
:
158
,
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
37
,
"y"
:
186
,
"source"
:
"asset://ac57f0b0-9362-472b-b22b-da97e1720cc2"
},
"uuid"
:
"f8171747-fb12-49b5-8625-867338bec680"
,
"type"
:
"image"
},
{
"name"
:
"按钮-我的奖品"
,
"properties"
:
{
"width"
:
110
,
"height"
:
30
,
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
622
,
"y"
:
106
,
"source"
:
"asset://f0c54205-c8c0-4220-8172-b11455f3f0a8"
},
"uuid"
:
"234fd038-2304-459c-826a-fc6a4e9546d3"
,
"type"
:
"image"
,
"events"
:
{
"click"
:
{
"once"
:
false
,
"behaviors"
:
[
{
"uuid"
:
"c4e5ebe3-0eab-4f90-ab61-2741fa53a323"
,
"alias"
:
"活动奖品_click"
,
"meta"
:
"623e623c-d887-442f-a810-4ffefaed1bc1"
}
]
}
},
"scripts"
:
[
{
"script"
:
"touch-zoom"
,
"props"
:
{
"zoomTo"
:
0.95
}
}
]
},
{
"name"
:
"按钮-活动规则"
,
"properties"
:
{
"width"
:
110
,
"height"
:
30
,
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
624
,
"y"
:
63
,
"source"
:
"asset://bc2cbf01-3fd6-4af6-8916-0a3b980b114f"
},
"uuid"
:
"b7c84c94-2adc-4f93-8072-ff3f9e8c57ba"
,
"type"
:
"image"
,
"events"
:
{
"click"
:
{
"once"
:
false
,
"behaviors"
:
[
{
"uuid"
:
"df4bcad9-ab1a-42ed-9e11-27dfb20fd79c"
,
"alias"
:
"活动细则_click"
,
"meta"
:
"bc6612a7-a468-4082-9534-97537baa6639"
}
]
}
},
"scripts"
:
[
{
"script"
:
"touch-zoom"
,
"props"
:
{
"zoomTo"
:
0.95
}
}
]
},
{
"name"
:
"Logo"
,
"properties"
:
{
"width"
:
372
,
"height"
:
70
,
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
188
,
"y"
:
89
,
"source"
:
"asset://d0452d45-9776-461b-a68e-d07a6043feed"
},
"uuid"
:
"74b62214-593d-423a-bc02-2360eefdba9c"
,
"type"
:
"image"
},
{
"name"
:
"轮播"
,
"properties"
:
{
"width"
:
754
,
"height"
:
44
,
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
-1
,
"y"
:
-1
},
"uuid"
:
"eaad83e2-bae0-4f2a-ad5e-48efd33ed070"
,
"type"
:
"node"
,
"children"
:
[
{
"name"
:
"垫底"
,
"properties"
:
{
"width"
:
754
,
"height"
:
44
,
"alpha"
:
0.7490196078431373
,
"visible"
:
true
,
"fillColor"
:
"#d7a546"
},
"uuid"
:
"6fbd4897-1ab5-4144-bce9-66bf26ec699d"
,
"type"
:
"rect"
},
{
"name"
:
"组-中奖轮播"
,
"type"
:
"node"
,
"properties"
:
{
"verticalCenter"
:
0
,
"height"
:
40
,
"y"
:
2
,
"x"
:
0
},
"events"
:
{},
"uuid"
:
"b08c80e0-2220-4bb3-ba27-f79e83e1454f"
,
"children"
:
[]
}
]
},
{
"name"
:
"弹窗蒙层"
,
"properties"
:
{
"width"
:
750
,
"height"
:
1624
,
"alpha"
:
0.8
,
"visible"
:
false
,
"source"
:
"asset://1de9775b-9f9e-46e1-bdff-84f7d488c026"
},
"uuid"
:
"d2250f29-a1e6-4965-aadc-ff3cacfb93a8"
,
"type"
:
"image"
},
{
"name"
:
"奖品滚动视图"
,
"type"
:
"scrollView"
,
"properties"
:
{
"width"
:
700
,
"height"
:
205
,
"x"
:
24
,
"y"
:
944
,
"isVertical"
:
false
,
"horizonCenter"
:
0
,
"direction"
:
"horizontal"
,
"isSpringBack"
:
true
},
"events"
:
{},
"uuid"
:
"e2055082-c4ee-4403-b4f9-4e8df1254932"
,
"children"
:
[]
}
],
"properties"
:
{},
"events"
:
{
"init"
:
{
"once"
:
false
,
"behaviors"
:
[
{
"uuid"
:
"bf86110b-880b-40cb-9893-90c3c5345000"
,
"alias"
:
"屈臣氏刮刮卡1219_init"
,
"meta"
:
"9aeb7c34-a41a-45c5-8c7e-9ab7be81c716"
}
]
}
}
},
{
"name"
:
"弹窗-中奖"
,
"type"
:
"node"
,
"properties"
:
{
"horizonCenter"
:
0
,
"verticalCenter"
:
0
,
"width"
:
750
,
"height"
:
1334
,
"x"
:
0
,
"y"
:
0
},
"events"
:
{
"awake"
:
{
"once"
:
false
,
"behaviors"
:
[
{
"uuid"
:
"f5ad68db-5fd1-44f1-bbfb-3e498957a036"
,
"alias"
:
"弹窗-中奖_awake"
,
"meta"
:
"a3606651-1355-40d8-aeb5-ef6cf722d413"
}
]
}
},
"uuid"
:
"9712f13a-e849-460c-bae1-98b4fdadcf21"
,
"children"
:
[
{
"name"
:
"背景光"
,
"properties"
:
{
"width"
:
750
,
"height"
:
1057
,
"alpha"
:
1
,
"visible"
:
true
,
"source"
:
"asset://810008b4-2a25-4163-acf7-22f8922edc01"
},
"uuid"
:
"8d4d5a5b-a8c5-410a-a639-df8f79a6b35b"
,
"type"
:
"image"
},
{
"name"
:
"弹窗背景"
,
"properties"
:
{
"width"
:
640
,
"height"
:
632
,
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
55
,
"y"
:
209
,
"source"
:
"asset://b2f3f3af-c655-4788-a5c6-eab61db089d2"
},
"uuid"
:
"189972c1-fb17-447c-99cd-9f2417160362"
,
"type"
:
"image"
},
{
"name"
:
"按钮-立即领取"
,
"properties"
:
{
"width"
:
452
,
"height"
:
113
,
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
150
,
"y"
:
698
,
"source"
:
"asset://e4d548d3-09c7-4213-89ae-ab6da5cd7718"
},
"uuid"
:
"485f3b98-ea0a-417b-b3c2-a540a0eb45d6"
,
"type"
:
"image"
,
"events"
:
{
"click"
:
{
"once"
:
false
,
"behaviors"
:
[
{
"uuid"
:
"5d9f1db8-3346-462b-a875-30dd4c5f22f9"
,
"alias"
:
"按钮-立即领取_click"
,
"meta"
:
"62002b01-f97f-44f1-88c7-f7bea61a9a96"
}
]
}
}
},
{
"name"
:
"按钮-关闭弹窗"
,
"type"
:
"image"
,
"properties"
:
{
"source"
:
"按钮-关闭弹窗"
,
"width"
:
50
,
"height"
:
50
,
"x"
:
638
,
"y"
:
133
},
"events"
:
{
"click"
:
{
"once"
:
false
,
"behaviors"
:
[
{
"uuid"
:
"880e87bb-64dd-4019-8b9b-83c451da9fa1"
,
"alias"
:
"按钮-关闭弹窗_click"
,
"meta"
:
"bc02c850-912e-4428-a055-ada6a0c78fba"
}
]
}
},
"uuid"
:
"f69f14b0-98b1-424e-ada3-f1a5d550fe68"
},
{
"name"
:
"6字奖品名称"
,
"properties"
:
{
"height"
:
27
,
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
298
,
"y"
:
627
,
"text"
:
""
,
"size"
:
27.97349
,
"fillColor"
:
"rgba(242, 202, 142, 1)"
,
"horizonCenter"
:
0
},
"uuid"
:
"d689dac0-a726-4873-b21b-9be03d36003b"
,
"type"
:
"label"
},
{
"name"
:
"奖品图片"
,
"type"
:
"image"
,
"properties"
:
{
"width"
:
230
,
"height"
:
230
,
"x"
:
259
,
"y"
:
373
,
"horizonCenter"
:
0
},
"events"
:
{},
"uuid"
:
"3fcd61d7-8a40-43c1-821d-0e3fdb486cab"
}
]
},
{
"name"
:
"弹窗-活动规则"
,
"type"
:
"node"
,
"properties"
:
{
"horizonCenter"
:
0
,
"verticalCenter"
:
0
,
"x"
:
0
,
"y"
:
0
},
"events"
:
{},
"uuid"
:
"8d987fb3-5dc4-432b-ab5d-650a7820994c"
,
"children"
:
[
{
"name"
:
"弹窗背景"
,
"properties"
:
{
"width"
:
597
,
"height"
:
736
,
"alpha"
:
1
,
"visible"
:
true
,
"source"
:
"asset://383df34a-b575-4e1b-8527-9982e97442dd"
,
"horizonCenter"
:
-15
},
"uuid"
:
"bf55b815-58f4-498d-81da-07de15cdbbed"
,
"type"
:
"image"
,
"children"
:
[]
},
{
"name"
:
"规则容器"
,
"type"
:
"scrollView"
,
"properties"
:
{
"width"
:
500
,
"height"
:
562
,
"x"
:
67
,
"y"
:
111
},
"events"
:
{},
"uuid"
:
"204081f4-dd8e-4669-a679-563401130db6"
,
"children"
:
[
{
"name"
:
"规则文案"
,
"properties"
:
{
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
0
,
"y"
:
0
,
"text"
:
"${游戏规则}"
,
"size"
:
24
,
"fillColor"
:
"rgba(242, 202, 142, 1)"
,
"horizonCenter"
:
0
},
"uuid"
:
"554f4bf8-5f70-406e-8bca-118aa9919c5d"
,
"type"
:
"label"
}
]
},
{
"name"
:
"关闭按钮"
,
"type"
:
"image"
,
"properties"
:
{
"source"
:
"按钮-关闭弹窗"
,
"width"
:
50
,
"height"
:
50
,
"x"
:
600
,
"y"
:
-50
},
"events"
:
{
"click"
:
{
"once"
:
false
,
"behaviors"
:
[
{
"uuid"
:
"6457b94c-7f3e-4c5e-aef9-2f03ed32524f"
,
"alias"
:
"关闭按钮_click"
,
"meta"
:
"04aed616-8f51-4176-80c3-3bcabc6d2e15"
}
]
}
},
"uuid"
:
"368e9a49-c2c7-466a-9989-d18d6dcaae85"
}
]
},
{
"name"
:
"弹窗-未中奖"
,
"type"
:
"node"
,
"properties"
:
{},
"events"
:
{},
"uuid"
:
"9327f5a2-c56c-447c-b0ea-73455cf471b7"
,
"children"
:
[
{
"name"
:
"弹窗背景"
,
"properties"
:
{
"width"
:
538
,
"height"
:
462
,
"alpha"
:
1
,
"visible"
:
true
,
"source"
:
"asset://fbb78028-c3b9-47ad-a72a-37dab667003e"
,
"x"
:
0
,
"y"
:
0
,
"horizonCenter"
:
10
},
"uuid"
:
"8cde1163-65d4-43df-b356-260cf8ca8086"
,
"type"
:
"image"
},
{
"name"
:
"按钮-关闭弹窗"
,
"type"
:
"image"
,
"properties"
:
{
"source"
:
"按钮-关闭弹窗"
,
"width"
:
50
,
"height"
:
50
,
"x"
:
520
,
"y"
:
-60
},
"events"
:
{
"click"
:
{
"once"
:
false
,
"behaviors"
:
[
{
"uuid"
:
"607f4773-afde-4a87-aaed-f9f0ae8ac9b0"
,
"alias"
:
"按钮-关闭弹窗_click"
,
"meta"
:
"fc0ad7cb-454b-4dac-8591-43645d90a6c5"
}
]
}
},
"uuid"
:
"bbff2496-a75b-4516-b305-ac00f2fd16d2"
},
{
"name"
:
"按钮-我知道了"
,
"properties"
:
{
"width"
:
452
,
"height"
:
113
,
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
43
,
"y"
:
334
,
"source"
:
"asset://ee1dbd2c-d0e9-483e-8c4e-fe4a37e0b302"
,
"horizonCenter"
:
10
},
"uuid"
:
"1aa53271-217e-4121-b826-e0e71f539066"
,
"type"
:
"image"
,
"events"
:
{
"click"
:
{
"once"
:
false
,
"behaviors"
:
[
{
"uuid"
:
"17b7585d-7459-4022-961e-927b63f51df2"
,
"alias"
:
"按钮-我知道了_click"
,
"meta"
:
"023a47c1-a590-4dd3-a13c-3de205fb8e40"
}
]
}
},
"scripts"
:
[
{
"script"
:
"touch-zoom"
,
"props"
:
{
"zoomTo"
:
0.95
}
}
]
},
{
"name"
:
"很遗憾~"
,
"properties"
:
{
"height"
:
26
,
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
217
,
"y"
:
227
,
"text"
:
"很遗憾~"
,
"size"
:
27.97349
,
"fillColor"
:
"rgba(242, 202, 142, 1)"
,
"horizonCenter"
:
10
},
"uuid"
:
"d3ac7145-bc4d-40d1-9def-cc2b06028dba"
,
"type"
:
"label"
},
{
"name"
:
"您与奖品擦肩而过"
,
"properties"
:
{
"alpha"
:
1
,
"visible"
:
true
,
"x"
:
173
,
"y"
:
266
,
"text"
:
"您与奖品擦肩而过"
,
"size"
:
25.82168
,
"fillColor"
:
"rgba(242, 202, 142, 1)"
,
"horizonCenter"
:
10
},
"uuid"
:
"1c9f3257-991d-4b32-ab6e-4050430e834a"
,
"type"
:
"label"
}
]
},
{
"name"
:
"弹窗-消息"
,
"type"
:
"node"
,
"properties"
:
{},
"events"
:
{},
"uuid"
:
"ce5cf696-d706-42dd-8f54-3f801f4843af"
,
"children"
:
[
{
"name"
:
"弹窗背景"
,
"type"
:
"image"
,
"properties"
:
{
"source"
:
"asset://fbb78028-c3b9-47ad-a72a-37dab667003e"
,
"width"
:
538
,
"height"
:
462
},
"events"
:
{},
"uuid"
:
"1311efac-c321-4acb-9ae8-536efff232d0"
},
{
"name"
:
"关闭按钮"
,
"type"
:
"image"
,
"properties"
:
{
"source"
:
"asset://ee1dbd2c-d0e9-483e-8c4e-fe4a37e0b302"
,
"width"
:
452
,
"height"
:
113
,
"x"
:
46
,
"y"
:
333
},
"events"
:
{
"click"
:
{
"once"
:
false
,
"behaviors"
:
[
{
"uuid"
:
"f6497939-de6f-4fa0-929f-91b2e3b17a78"
,
"alias"
:
"关闭按钮_click"
,
"meta"
:
"b105098a-b7a4-4613-afa6-a830be4a8b0a"
}
]
}
},
"uuid"
:
"7e6bdde1-5389-42a4-8b42-e3274e18cf95"
,
"scripts"
:
[
{
"script"
:
"touch-zoom"
,
"props"
:
{
"zoomTo"
:
0.95
}
}
]
},
{
"name"
:
"消息"
,
"type"
:
"label"
,
"properties"
:
{
"text"
:
"网络异常,请稍后再试~"
,
"fillColor"
:
"rgba(218, 166, 54, 1)"
,
"x"
:
86
,
"y"
:
248
,
"height"
:
41
,
"horizonCenter"
:
0
,
"verticalCenter"
:
0
,
"size"
:
24
},
"events"
:
{},
"uuid"
:
"8def4bd4-fcfb-4d73-b06f-35a01d44dc8e"
}
]
}
],
"assets"
:
[
{
"name"
:
"背景"
,
"ext"
:
".png"
,
"uuid"
:
"5f09b688-eb0a-4bf6-ac52-ed18ce663846"
,
"url"
:
"//yun.duiba.com.cn/aurora/eb06aec6b98b00d331ac3d526427929bc88d0502.png"
},
{
"name"
:
"木板"
,
"ext"
:
".png"
,
"uuid"
:
"2c59e041-898c-40cc-b88b-6a817b9a1e38"
,
"url"
:
"//yun.duiba.com.cn/aurora/a04d2df84f37fb6e6ac6c1a0aec2dfc42c11eb08.png"
},
{
"name"
:
"携程卡"
,
"ext"
:
".png"
,
"uuid"
:
"09f2695f-52e6-4c8e-8512-e0e876702192"
,
"url"
:
"//yun.duiba.com.cn/aurora/043c3b1ebdb7a4d8771f6abfef416f98ccf1e405.png"
},
{
"name"
:
"优惠券 拷贝"
,
"ext"
:
".png"
,
"uuid"
:
"f16baed7-05d3-4bd5-92d2-1c1aa2f54a3b"
,
"url"
:
"//yun.duiba.com.cn/aurora/7d9f2b47623db6f4946c47df17c9344ac5db59ca.png"
},
{
"name"
:
"优惠券"
,
"ext"
:
".png"
,
"uuid"
:
"21efe6eb-7324-492d-9832-862e93a64d3b"
,
"url"
:
"//yun.duiba.com.cn/aurora/7ee70b654472b6def058628717656ae299ac119f.png"
},
{
"name"
:
"发膜"
,
"ext"
:
".png"
,
"uuid"
:
"ef18ff32-1fcf-431d-a70f-9c453769f61b"
,
"url"
:
"//yun.duiba.com.cn/aurora/ba810e3562143e3ea0e4f95c24113d520c119b0d.png"
},
{
"name"
:
"戴森吹风机"
,
"ext"
:
".png"
,
"uuid"
:
"08158966-8395-4da5-a0b2-fbddb9b08cf5"
,
"url"
:
"//yun.duiba.com.cn/aurora/af0d2690134a9e0fa99469be2cdc5f52ea12c381.png"
},
{
"name"
:
"奖品标题"
,
"ext"
:
".png"
,
"uuid"
:
"f77c1092-e60c-48a6-83a7-fe97113497e1"
,
"url"
:
"//yun.duiba.com.cn/aurora/48a10d25409732a8be4896ea283ba6b22920a9e5.png"
},
{
"name"
:
"礼物盒"
,
"ext"
:
".png"
,
"uuid"
:
"83a321db-2df3-4412-b373-f6c7f1248d03"
,
"url"
:
"//yun.duiba.com.cn/aurora/acd7f8e65fa068d6544827469c17479705bd619d.png"
},
{
"name"
:
"刮刮卡-刮开"
,
"ext"
:
".png"
,
"uuid"
:
"bacc2948-e65d-4b30-9290-e9c6a35f2b3f"
,
"url"
:
"//yun.duiba.com.cn/aurora/69f47697737cbaccf80a4a7e99a4cf7fabf3c939.png"
},
{
"name"
:
"刮刮卡-未刮开"
,
"ext"
:
".png"
,
"uuid"
:
"34769270-365a-404a-a042-1c50a8add295"
,
"url"
:
"//yun.duiba.com.cn/aurora/12edc0b77721d0df451c2626ff6eb2975119e1ef.png"
},
{
"name"
:
"开始按钮"
,
"ext"
:
".png"
,
"uuid"
:
"c19439bb-ed98-4cd5-9ad9-2903565375d3"
,
"url"
:
"//yun.duiba.com.cn/aurora/9b8d605b539be8487c8f1414f771cbf960a2073c.png"
},
{
"name"
:
"按钮无抽奖次数"
,
"ext"
:
".png"
,
"uuid"
:
"088bc60d-1803-46da-98d7-9f7e6091f8f0"
,
"url"
:
"//yun.duiba.com.cn/aurora/39332bc508ae22cddc79fc876220a06bc476ad31.png"
},
{
"name"
:
"线条"
,
"ext"
:
".png"
,
"uuid"
:
"ab718406-b1a3-42e2-a10b-01de5680f65b"
,
"url"
:
"//yun.duiba.com.cn/aurora/6623aaee4c0f3a11a4b2adefa88d2aff3d8165be.png"
},
{
"name"
:
"大标题"
,
"ext"
:
".png"
,
"uuid"
:
"ac57f0b0-9362-472b-b22b-da97e1720cc2"
,
"url"
:
"//yun.duiba.com.cn/aurora/d3148c330f966eaab70d3e0a675514247c5801ad.png"
},
{
"name"
:
"活动奖品"
,
"ext"
:
".png"
,
"uuid"
:
"f0c54205-c8c0-4220-8172-b11455f3f0a8"
,
"url"
:
"//yun.duiba.com.cn/aurora/3ad29cbbb97ea4ac17f78c9a224a488fcb80af6b.png"
},
{
"name"
:
"活动细则"
,
"ext"
:
".png"
,
"uuid"
:
"bc2cbf01-3fd6-4af6-8916-0a3b980b114f"
,
"url"
:
"//yun.duiba.com.cn/aurora/7b96d5dd6c8172978f4605be8e01473ed1ad0ab2.png"
},
{
"name"
:
"Logo"
,
"ext"
:
".png"
,
"uuid"
:
"d0452d45-9776-461b-a68e-d07a6043feed"
,
"url"
:
"//yun.duiba.com.cn/aurora/b1b1646631ca092378d1929d882f9353ed8eca54.png"
},
{
"name"
:
"弹窗蒙层"
,
"ext"
:
".png"
,
"uuid"
:
"1de9775b-9f9e-46e1-bdff-84f7d488c026"
,
"url"
:
"//yun.duiba.com.cn/aurora/70f7a74c93fec2cade23990ffa4a63842946fcb4.png"
},
{
"name"
:
"按钮-关闭弹窗"
,
"ext"
:
".png"
,
"uuid"
:
"d462f701-8879-4662-917f-e7218369c02f"
,
"url"
:
"//yun.duiba.com.cn/aurora/36fea4395a70d10d94dbb55ea1fd6f74a4f4fd9c.png"
},
{
"name"
:
"背景光"
,
"ext"
:
".png"
,
"uuid"
:
"810008b4-2a25-4163-acf7-22f8922edc01"
,
"url"
:
"//yun.duiba.com.cn/aurora/83a8be0f32d7b84e04bcbf4f4380b60378d42845.png"
},
{
"name"
:
"弹窗背景"
,
"ext"
:
".png"
,
"uuid"
:
"b2f3f3af-c655-4788-a5c6-eab61db089d2"
,
"url"
:
"//yun.duiba.com.cn/aurora/a21b2c528bd8ce8bd1a2abf4dabe0cb043f7d891.png"
},
{
"name"
:
"立即领取"
,
"ext"
:
".png"
,
"uuid"
:
"e4d548d3-09c7-4213-89ae-ab6da5cd7718"
,
"url"
:
"//yun.duiba.com.cn/aurora/5c7d09fb00042b1ee4ce1a1a1193b5644b0d4f6d.png"
},
{
"name"
:
"弹窗背景"
,
"ext"
:
".png"
,
"uuid"
:
"fbb78028-c3b9-47ad-a72a-37dab667003e"
,
"url"
:
"//yun.duiba.com.cn/aurora/06dee5525d0b3efca38f93497ea66c0a5111e984.png"
},
{
"name"
:
"我知道了按钮"
,
"ext"
:
".png"
,
"uuid"
:
"ee1dbd2c-d0e9-483e-8c4e-fe4a37e0b302"
,
"url"
:
"//yun.duiba.com.cn/aurora/b62e05a19e06e08b3f361950beb81fe13c4c80e8.png"
},
{
"name"
:
"弹窗背景"
,
"ext"
:
".png"
,
"uuid"
:
"383df34a-b575-4e1b-8527-9982e97442dd"
,
"url"
:
"//yun.duiba.com.cn/aurora/29c4cfede74082a2fe84050f379857dc9d00db15.png"
}
],
"dataMapping"
:
[
{
"name"
:
"剩余次数"
,
"path"
:
"getRemainTimes"
},
{
"name"
:
"轮播数据"
,
"path"
:
"getAllUserRecords"
},
{
"name"
:
"游戏规则"
,
"path"
:
"getRule"
},
{
"name"
:
"奖品信息"
,
"path"
:
"doJoin"
},
{
"name"
:
"奖项信息"
,
"path"
:
"getPrizeInfo"
}
],
"processes"
:
[
{
"id"
:
"bc6612a7-a468-4082-9534-97537baa6639"
,
"name"
:
"活动细则_click"
,
"props"
:
{},
"subEntry"
:
"d47d3f4e-8095-4cc4-886d-11555794d495"
,
"sub"
:
{
"d47d3f4e-8095-4cc4-886d-11555794d495"
:
{
"uuid"
:
"d47d3f4e-8095-4cc4-886d-11555794d495"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"70bfcebf-97e1-406f-a9e0-8c38c653964a"
]
}
},
"81fac73e-9641-4eb8-b317-57b409d67f05"
:
{
"uuid"
:
"81fac73e-9641-4eb8-b317-57b409d67f05"
,
"meta"
:
"push-dialog"
,
"design"
:
{
"x"
:
503
,
"y"
:
47
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
47
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
47
}
]
}
},
"props"
:
{
"viewName"
:
"弹窗-活动规则"
},
"output"
:
{}
},
"70bfcebf-97e1-406f-a9e0-8c38c653964a"
:
{
"uuid"
:
"70bfcebf-97e1-406f-a9e0-8c38c653964a"
,
"meta"
:
"api-request"
,
"design"
:
{
"x"
:
238
,
"y"
:
47
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
63
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
49
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
63
}
],
"exception"
:
[
{
"x"
:
124.5
,
"y"
:
77
}
]
}
},
"props"
:
{
"uri"
:
"/projectRule.query"
,
"dataName"
:
"getRule"
},
"output"
:
{
"success"
:
[
"81fac73e-9641-4eb8-b317-57b409d67f05"
],
"failed"
:
[
"115d2597-7652-4bc2-80b1-e4701e3a7906"
]
},
"alias"
:
"查询项目规则"
},
"115d2597-7652-4bc2-80b1-e4701e3a7906"
:
{
"uuid"
:
"115d2597-7652-4bc2-80b1-e4701e3a7906"
,
"meta"
:
"show-toast"
,
"design"
:
{
"x"
:
484
,
"y"
:
159
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
79
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
79
}
]
}
},
"props"
:
{
"padding"
:
10
,
"duration"
:
2000
,
"showDuration"
:
300
,
"hideDuration"
:
200
,
"text"
:
"查询规则失败,请稍后再试~"
},
"output"
:
{}
}
}
},
{
"id"
:
"99abf7c7-dcac-411b-a0df-63a6847a198f"
,
"name"
:
"立即领取_click"
,
"props"
:
{},
"subEntry"
:
"65d04879-7670-4338-b0aa-3e592a5fe72e"
,
"sub"
:
{
"65d04879-7670-4338-b0aa-3e592a5fe72e"
:
{
"uuid"
:
"65d04879-7670-4338-b0aa-3e592a5fe72e"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"d410dd21-fb01-4a14-8a23-e5b1f301e035"
]
}
},
"d410dd21-fb01-4a14-8a23-e5b1f301e035"
:
{
"uuid"
:
"d410dd21-fb01-4a14-8a23-e5b1f301e035"
,
"meta"
:
"jump"
,
"design"
:
{
"x"
:
231
,
"y"
:
128
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
39
}
]
}
},
"props"
:
{
"url"
:
{
"type"
:
"data-center"
,
"value"
:
"doJoin.url"
}
},
"output"
:
{}
}
}
},
{
"id"
:
"623e623c-d887-442f-a810-4ffefaed1bc1"
,
"name"
:
"活动奖品_click"
,
"props"
:
{},
"subEntry"
:
"6f2da443-224a-4635-b818-99d842b5ade9"
,
"sub"
:
{
"6f2da443-224a-4635-b818-99d842b5ade9"
:
{
"uuid"
:
"6f2da443-224a-4635-b818-99d842b5ade9"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
9
,
"y"
:
9
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"f8f1a226-4904-44f5-97be-0682ed285fdd"
]
}
},
"f8f1a226-4904-44f5-97be-0682ed285fdd"
:
{
"uuid"
:
"f8f1a226-4904-44f5-97be-0682ed285fdd"
,
"meta"
:
"jump"
,
"design"
:
{
"x"
:
353
,
"y"
:
75
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
39
}
]
}
},
"props"
:
{
"url"
:
{
"type"
:
"static"
,
"value"
:
"baidu.com"
}
},
"output"
:
{}
}
}
},
{
"id"
:
"04aed616-8f51-4176-80c3-3bcabc6d2e15"
,
"name"
:
"关闭按钮_click"
,
"props"
:
{},
"subEntry"
:
"bee3cf5f-9661-47f0-8116-ece5f53e4c87"
,
"sub"
:
{
"bee3cf5f-9661-47f0-8116-ece5f53e4c87"
:
{
"uuid"
:
"bee3cf5f-9661-47f0-8116-ece5f53e4c87"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
22
,
"y"
:
6
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"8b3d986f-e58f-4420-84f9-0d2fcccd4ea9"
]
}
},
"8b3d986f-e58f-4420-84f9-0d2fcccd4ea9"
:
{
"uuid"
:
"8b3d986f-e58f-4420-84f9-0d2fcccd4ea9"
,
"meta"
:
"pop-dialog"
,
"design"
:
{
"x"
:
268
,
"y"
:
28
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
39
}
]
}
},
"props"
:
{},
"output"
:
{}
}
}
},
{
"id"
:
"81c3b861-02ca-4230-a80e-5ecd8a3102fb"
,
"name"
:
"初始化场景"
,
"props"
:
{},
"subEntry"
:
"771c4750-9a72-4f35-9151-11b755ad3432"
,
"sub"
:
{
"771c4750-9a72-4f35-9151-11b755ad3432"
:
{
"uuid"
:
"771c4750-9a72-4f35-9151-11b755ad3432"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
31
,
"y"
:
366
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"bbeddc58-aa56-4529-95f4-9d637ff97b2a"
]
}
},
"bbeddc58-aa56-4529-95f4-9d637ff97b2a"
:
{
"uuid"
:
"bbeddc58-aa56-4529-95f4-9d637ff97b2a"
,
"meta"
:
"api-request"
,
"design"
:
{
"x"
:
273
,
"y"
:
333
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
63
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
49
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
63
}
],
"exception"
:
[
{
"x"
:
124.5
,
"y"
:
77
}
]
}
},
"props"
:
{
"uri"
:
"join_1/getRemainTime.do"
,
"dataName"
:
"getRemainTimes"
},
"output"
:
{
"success"
:
[
"390a0a31-78a3-4291-9782-1c6b82a9fe15"
],
"failed"
:
[
"74ee883d-cdaa-4056-a3a2-f317923e75b3"
]
},
"alias"
:
"获取剩余抽奖次数"
},
"74ee883d-cdaa-4056-a3a2-f317923e75b3"
:
{
"uuid"
:
"74ee883d-cdaa-4056-a3a2-f317923e75b3"
,
"meta"
:
"push-dialog"
,
"design"
:
{
"x"
:
730
,
"y"
:
567
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
47
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
47
}
]
}
},
"props"
:
{
"viewName"
:
"弹窗-消息"
},
"output"
:
{}
},
"baea6a9a-31aa-444b-913a-0256a94012a0"
:
{
"uuid"
:
"baea6a9a-31aa-444b-913a-0256a94012a0"
,
"meta"
:
"api-request"
,
"design"
:
{
"x"
:
930
,
"y"
:
208
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
63
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
49
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
63
}
],
"exception"
:
[
{
"x"
:
124.5
,
"y"
:
77
}
]
}
},
"props"
:
{
"uri"
:
"strategyRecords.query"
,
"method"
:
"post"
,
"dataName"
:
"getAllUserRecords"
,
"params"
:
{
"type"
:
"map"
,
"value"
:
{
"strategyId"
:
{
"type"
:
"static"
,
"value"
:
"“ru_1,ru_2,ru_3”"
}
}
}
},
"output"
:
{
"success"
:
[
"e4b144ac-7a58-4e51-a28d-a502db7d669b"
],
"failed"
:
[
"74ee883d-cdaa-4056-a3a2-f317923e75b3"
]
},
"alias"
:
"获取获奖信息轮播"
},
"390a0a31-78a3-4291-9782-1c6b82a9fe15"
:
{
"uuid"
:
"390a0a31-78a3-4291-9782-1c6b82a9fe15"
,
"meta"
:
"api-request"
,
"design"
:
{
"x"
:
499
,
"y"
:
185
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
63
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
49
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
63
}
],
"exception"
:
[
{
"x"
:
124.5
,
"y"
:
77
}
]
}
},
"props"
:
{
"uri"
:
"prize.query"
,
"dataName"
:
"getPrizeInfo"
,
"params"
:
{
"type"
:
"map"
,
"value"
:
{
"ids"
:
{
"type"
:
"static"
,
"value"
:
"
\"
sss_1,sss_2,sss_3,sss_4,sss_5,sss_6
\"
"
}
}
}
},
"output"
:
{
"success"
:
[
"88ccc6a0-606e-48da-93f0-6acbe861a76f"
],
"failed"
:
[
"74ee883d-cdaa-4056-a3a2-f317923e75b3"
]
},
"alias"
:
"获取所有奖项信息"
},
"711332a8-d3b9-4d14-b687-89fbcb750449"
:
{
"uuid"
:
"711332a8-d3b9-4d14-b687-89fbcb750449"
,
"meta"
:
"5b34e6cd-46c1-492f-a46e-2d9d9280e166"
,
"design"
:
{
"x"
:
900
,
"y"
:
78
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{}
},
"props"
:
{
"prizeInfoGroup"
:
"node://e2055082-c4ee-4403-b4f9-4e8df1254932"
,
"mainScene"
:
"node://74c9e6bf-0929-480e-b633-7b13141773a6"
},
"output"
:
{},
"alias"
:
"初始化奖项信息"
},
"e4b144ac-7a58-4e51-a28d-a502db7d669b"
:
{
"uuid"
:
"e4b144ac-7a58-4e51-a28d-a502db7d669b"
,
"meta"
:
"91a45698-f1fc-4248-8ccc-bd927465d8de"
,
"design"
:
{
"x"
:
1121
,
"y"
:
138
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
55
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
48
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
62
}
]
}
},
"props"
:
{
"group"
:
"node://eaad83e2-bae0-4f2a-ad5e-48efd33ed070"
,
"txtGroup"
:
"node://b08c80e0-2220-4bb3-ba27-f79e83e1454f"
},
"output"
:
{},
"alias"
:
"初始化获奖信息轮播"
},
"88ccc6a0-606e-48da-93f0-6acbe861a76f"
:
{
"uuid"
:
"88ccc6a0-606e-48da-93f0-6acbe861a76f"
,
"meta"
:
"32b1845f-ed17-4b9d-b5f2-194aeb9a43b5"
,
"design"
:
{
"x"
:
734
,
"y"
:
173
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
45
}
]
},
"output"
:
{
"p0"
:
[
{
"x"
:
124.5
,
"y"
:
38
}
],
"p1"
:
[
{
"x"
:
124.5
,
"y"
:
52
}
]
}
},
"props"
:
{},
"output"
:
{
"p0"
:
[
"711332a8-d3b9-4d14-b687-89fbcb750449"
],
"p1"
:
[
"baea6a9a-31aa-444b-913a-0256a94012a0"
]
}
},
"79cb08f5-3fb9-4c78-8d5e-e968c6221fb2"
:
{
"uuid"
:
"79cb08f5-3fb9-4c78-8d5e-e968c6221fb2"
,
"meta"
:
"04913f37-5951-429a-88cf-a1e3cc533adf"
,
"design"
:
{
"x"
:
561
,
"y"
:
27
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
55
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
48
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
62
}
]
}
},
"props"
:
{
"startBtn"
:
"node://44e9622b-337f-4eaf-a33c-d7598098f9a9"
,
"dStartBtn"
:
"node://e49cee18-2ba2-4161-85c3-a22c794d4fdf"
,
"remainTimesTxt"
:
"node://82df149d-2929-451e-936e-06011333a15b"
},
"output"
:
{}
}
},
"metas"
:
[
{
"id"
:
"5b34e6cd-46c1-492f-a46e-2d9d9280e166"
,
"script"
:
"let prizeInfo = global.dataCenter.getDataByName('奖项信息');
\n
console.log(engine)
\n
if(prizeInfo && prizeInfo.length>0){
\n\t
for(let i = 0;i<prizeInfo.length;i++){
\n
\t
let prizeItem = prizeInfo[i]
\n
let prize = new engine.Container()
\n
prize.width = 240;
\n
prize.height = props.prizeInfoGroup.height;
\n
let prizeImg = new engine.Image()
\n
prizeImg.source =
\"\"
+ prizeItem.icon
\n
prizeImg.width = 140;
\n
prizeImg.height = 140;
\n
prizeImg.horizonCenter = 0;
\n
prizeImg.top =0;
\n
\n
let prizeName = new engine.Label()
\n
prizeName.text =
\"\"
+ prizeItem.name
\n
prizeName.size = 24;
\n
prizeName.fillColor =
\"
#FBD89F
\"
;
\n
prizeName.bottom = 0;
\n
prizeName.horizonCenter = 0;
\n
prize.addChild(prizeImg)
\n
prize.addChild(prizeName)
\n
prize.x = i*240;
\n
props.prizeInfoGroup.addChild(prize)
\n\t
}
\n
}
\n
"
,
"props"
:
{
"prizeInfoGroup"
:
{
"type"
:
"node"
,
"enum"
:
[]
}
},
"isInline"
:
true
,
"name"
:
"初始化奖项信息"
,
"output"
:
[],
"sub"
:
{
"8f3dd2ab-5056-48dc-ab6f-0589784b585b"
:
{
"uuid"
:
"8f3dd2ab-5056-48dc-ab6f-0589784b585b"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{}
}
},
"subEntry"
:
"8f3dd2ab-5056-48dc-ab6f-0589784b585b"
},
{
"id"
:
"91a45698-f1fc-4248-8ccc-bd927465d8de"
,
"script"
:
"let startX=0;
\n
let data = global.dataCenter.getDataByName('轮播数据');
\n
console.log(data)
\n
if(data&&data.length>0){
\n\t
for(let i=0;i<data.length;i++){
\n
\t
let item = data[i]
\n
\t
let label = new engine.Label()
\n
\t
label.size = 24;
\n
\t
label.fillColor =
\"
#fff
\"\n
label.y = 8;
\n
\t
label.text = `${item.userId}获得了${item.extra.name}`
\n
\t
label.x = startX;
\n\t\t
label.verticalAlign =
\"
center
\"\n
\t
props.txtGroup.addChild(label)
\n
\t
startX += label.width+30;
\n\t
}
\n
engine.Tween.get(props.txtGroup)
\n
\t
.set({x:800})
\n
\t
.to({x:-target.width-200},3000*data.length+2000)
\n
\t
.call(()=>{
\n
\t
engine.Tween.get(props.group)
\n
\t\t
.to({y:-50},1000)
\n
\t
})
\n
\n
}else {
\n
props.group.y = -50
\n
}
\n
"
,
"props"
:
{
"group"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"txtGroup"
:
{
"type"
:
"node"
,
"enum"
:
[]
}
},
"isInline"
:
true
,
"name"
:
"自定义节点"
,
"output"
:
[
"success"
,
"failed"
]
},
{
"id"
:
"32b1845f-ed17-4b9d-b5f2-194aeb9a43b5"
,
"script"
:
""
,
"props"
:
{},
"isInline"
:
true
,
"name"
:
"分流节点"
,
"output"
:
[
"p0"
,
"p1"
],
"isDivider"
:
true
}
],
"output"
:
[]
},
{
"id"
:
"4eb1c520-cef3-4e5a-a5b0-536561c043ff"
,
"name"
:
"规则容器_init"
,
"props"
:
{},
"subEntry"
:
"d1a80a4c-003d-4f8e-9c4a-a7b4120a90bb"
,
"sub"
:
{
"d1a80a4c-003d-4f8e-9c4a-a7b4120a90bb"
:
{
"uuid"
:
"d1a80a4c-003d-4f8e-9c4a-a7b4120a90bb"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{}
}
}
},
{
"id"
:
"b1b708d3-ec1a-4f81-8ca4-61c3fd55c7f2"
,
"name"
:
"中奖轮播_data-center"
,
"props"
:
{},
"subEntry"
:
"5c9eb210-300d-4350-bd05-9475a687e1ed"
,
"sub"
:
{
"5c9eb210-300d-4350-bd05-9475a687e1ed"
:
{
"uuid"
:
"5c9eb210-300d-4350-bd05-9475a687e1ed"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"f6c1f346-cd9b-4153-944b-6e8f4014483b"
]
}
},
"f6c1f346-cd9b-4153-944b-6e8f4014483b"
:
{
"uuid"
:
"f6c1f346-cd9b-4153-944b-6e8f4014483b"
,
"meta"
:
"data-center-event-filter"
,
"design"
:
{
"x"
:
234
,
"y"
:
74
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
32
}
],
"cancel"
:
[
{
"x"
:
124.5
,
"y"
:
46
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"b4dc3e67-0ca4-49e3-9310-00c901add50e"
]
}
},
"b4dc3e67-0ca4-49e3-9310-00c901add50e"
:
{
"uuid"
:
"b4dc3e67-0ca4-49e3-9310-00c901add50e"
,
"meta"
:
"8f36b5db-dccf-400a-aedd-726a1f92d12a"
,
"design"
:
{
"x"
:
440
,
"y"
:
146
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
31
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
24
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
38
}
]
}
},
"props"
:
{},
"output"
:
{}
}
},
"metas"
:
[
{
"id"
:
"8f36b5db-dccf-400a-aedd-726a1f92d12a"
,
"script"
:
""
,
"props"
:
{},
"isInline"
:
true
,
"name"
:
"自定义节点"
,
"output"
:
[
"success"
,
"failed"
]
}
]
},
{
"id"
:
"8d94b5ef-aedc-4dc0-a1cb-14ac22942f1e"
,
"name"
:
"组-中奖轮播_data-center"
,
"props"
:
{},
"subEntry"
:
"4a04e5e7-bc05-45ef-ae55-ae71bf0e516d"
,
"sub"
:
{
"4a04e5e7-bc05-45ef-ae55-ae71bf0e516d"
:
{
"uuid"
:
"4a04e5e7-bc05-45ef-ae55-ae71bf0e516d"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[]
}
}
},
"metas"
:
[]
},
{
"id"
:
"2d172618-d7d6-49e7-9ebc-781e1b94506c"
,
"name"
:
"奖品_data-center"
,
"props"
:
{},
"subEntry"
:
"6874205a-1101-4a54-b39c-89bd4bba4e3d"
,
"sub"
:
{
"6874205a-1101-4a54-b39c-89bd4bba4e3d"
:
{
"uuid"
:
"6874205a-1101-4a54-b39c-89bd4bba4e3d"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[]
}
}
},
"metas"
:
[]
},
{
"id"
:
"a0dafbcf-c698-446f-af83-5e1ba1690741"
,
"name"
:
"剩余抽奖次数_data-center"
,
"props"
:
{},
"subEntry"
:
"aee060fb-97b9-4a57-8430-85e33cde3caa"
,
"sub"
:
{
"aee060fb-97b9-4a57-8430-85e33cde3caa"
:
{
"uuid"
:
"aee060fb-97b9-4a57-8430-85e33cde3caa"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
-5
,
"y"
:
64
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"8c6f84cc-85da-4259-a208-acfa9834f6c7"
]
}
},
"8c6f84cc-85da-4259-a208-acfa9834f6c7"
:
{
"uuid"
:
"8c6f84cc-85da-4259-a208-acfa9834f6c7"
,
"meta"
:
"data-center-event-filter"
,
"design"
:
{
"x"
:
219
,
"y"
:
54
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
32
}
],
"cancel"
:
[
{
"x"
:
124.5
,
"y"
:
46
}
]
}
},
"props"
:
{
"dataName"
:
"剩余次数"
},
"output"
:
{
"success"
:
[
"b412434e-bb02-416e-b607-3c79e2d872de"
],
"cancel"
:
[]
}
},
"b412434e-bb02-416e-b607-3c79e2d872de"
:
{
"uuid"
:
"b412434e-bb02-416e-b607-3c79e2d872de"
,
"meta"
:
"f22a800b-a32a-474d-ab3f-1abc4e375822"
,
"design"
:
{
"x"
:
491
,
"y"
:
47
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
47
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
40
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
54
}
]
}
},
"props"
:
{
"startBtn"
:
"node://44e9622b-337f-4eaf-a33c-d7598098f9a9"
,
"dstartBtn"
:
"node://e49cee18-2ba2-4161-85c3-a22c794d4fdf"
},
"output"
:
{},
"alias"
:
"更新开始按钮状态"
}
},
"metas"
:
[
{
"id"
:
"f22a800b-a32a-474d-ab3f-1abc4e375822"
,
"script"
:
"
\n
let remainTimes = global.dataCenter.getDataByName('剩余次数');
\n\n
console.log(remainTimes)
\n
if(remainTimes>0){
\n
props.dstartBtn.visible = false
\n
props.startBtn.visible = true
\n
}else{
\n
props.dstartBtn.visible = true
\n
props.startBtn.visible = false
\n
}
\n
target.text =
\"
剩余抽奖次数:
\"
+(remainTimes&&remainTimes>0?remainTimes : 0)"
,
"props"
:
{
"startBtn"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"dstartBtn"
:
{
"type"
:
"node"
,
"enum"
:
[]
}
},
"isInline"
:
true
,
"name"
:
"自定义节点"
,
"output"
:
[
"success"
,
"failed"
]
}
]
},
{
"id"
:
"f469222f-144f-4006-8a5c-54ed7104a7e5"
,
"name"
:
"开始按钮_click"
,
"props"
:
{},
"subEntry"
:
"68b0c527-5581-4658-97c0-825c14a72848"
,
"sub"
:
{
"68b0c527-5581-4658-97c0-825c14a72848"
:
{
"uuid"
:
"68b0c527-5581-4658-97c0-825c14a72848"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"cad43b7f-5baa-4630-ba6b-8eb3a1c394e6"
]
}
},
"cad43b7f-5baa-4630-ba6b-8eb3a1c394e6"
:
{
"uuid"
:
"cad43b7f-5baa-4630-ba6b-8eb3a1c394e6"
,
"meta"
:
"api-request"
,
"design"
:
{
"x"
:
245
,
"y"
:
103
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
63
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
49
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
63
}
],
"exception"
:
[
{
"x"
:
124.5
,
"y"
:
77
}
]
}
},
"props"
:
{
"uri"
:
"join_1/join.do"
,
"dataName"
:
"doJoin"
},
"output"
:
{
"success"
:
[
"a7834546-75a1-4360-bc66-5513b196a95b"
],
"failed"
:
[
"a9eae0d1-0a2a-4fda-9c50-1d3f56998756"
]
}
},
"a7834546-75a1-4360-bc66-5513b196a95b"
:
{
"uuid"
:
"a7834546-75a1-4360-bc66-5513b196a95b"
,
"meta"
:
"a6c9e9c7-7934-4e5e-8bf7-8a5151f65781"
,
"design"
:
{
"x"
:
578
,
"y"
:
49
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
103
}
]
},
"output"
:
{
"弹出中奖弹窗"
:
[
{
"x"
:
124.5
,
"y"
:
96
}
],
"弹出未中奖弹窗"
:
[
{
"x"
:
124.5
,
"y"
:
110
}
]
}
},
"props"
:
{
"drawBg"
:
"node://ae59bef0-d4eb-4d9e-9bff-2cd933b7086d"
,
"startBtn"
:
"node://d6b59cf1-d135-4774-a1f3-411f75c7b529"
,
"startDrawBg"
:
"node://7ea884af-3ecb-4b24-8ee2-5091d8e291ca"
,
"remainTimesGroup"
:
"node://87120f29-bea3-48b8-897b-373ab0d23574"
,
"prizeGroup"
:
"node://55fb5a22-a133-4815-9815-6107fbd63c61"
,
"noPrizeGroup"
:
"node://8f646122-be68-4766-94b5-21ed49f1d257"
,
"mainScene"
:
"node://74c9e6bf-0929-480e-b633-7b13141773a6"
,
"prizeImg"
:
"node://165050c2-91ba-4fb6-bac5-d0f63b0e993e"
},
"output"
:
{
"1"
:
[],
"2"
:
[],
"success"
:
[],
"弹出中奖弹窗"
:
[
"2013d723-6a92-431a-8bed-06ff4ee80884"
],
"弹出未中奖弹窗"
:
[
"cca5da3b-cbca-4623-b816-75a68f165178"
]
}
},
"a9eae0d1-0a2a-4fda-9c50-1d3f56998756"
:
{
"uuid"
:
"a9eae0d1-0a2a-4fda-9c50-1d3f56998756"
,
"meta"
:
"push-dialog"
,
"design"
:
{
"x"
:
376
,
"y"
:
425
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
47
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
47
}
]
}
},
"props"
:
{
"viewName"
:
"弹窗-消息"
},
"output"
:
{}
},
"2013d723-6a92-431a-8bed-06ff4ee80884"
:
{
"uuid"
:
"2013d723-6a92-431a-8bed-06ff4ee80884"
,
"meta"
:
"push-dialog"
,
"design"
:
{
"x"
:
882
,
"y"
:
53
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
47
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
47
}
]
}
},
"props"
:
{
"viewName"
:
"弹窗-中奖"
},
"output"
:
{}
},
"cca5da3b-cbca-4623-b816-75a68f165178"
:
{
"uuid"
:
"cca5da3b-cbca-4623-b816-75a68f165178"
,
"meta"
:
"push-dialog"
,
"design"
:
{
"x"
:
875
,
"y"
:
172
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
47
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
47
}
]
}
},
"props"
:
{
"viewName"
:
"弹窗-未中奖"
},
"output"
:
{}
}
},
"metas"
:
[
{
"id"
:
"a6c9e9c7-7934-4e5e-8bf7-8a5151f65781"
,
"script"
:
"global.distance = 0;
\n
global.points = [];
\n
global.tempPoints = [];
\n
global.startPoint = {}
\n
let prizeInfo = global.dataCenter.getDataByName('奖品信息');
\n
let allPrizeInfo = global.dataCenter.getDataByName('奖项信息');
\n
let container = new engine.Container()
\n
props.mainScene.addChild(container)
\n
props.startDrawBg.visible = false;
\n
props.drawBg.visible = true;
\n
props.startBtn.visible = false;
\n
props.remainTimesGroup.visible = false;
\n
props.prizeGroup.mouseEnabled = false;
\n
props.prizeGroup.mouseChildren = false;
\n
props.noPrizeGroup.mouseEnabled = false;
\n
props.noPrizeGroup.mouseChildren = false;
\n\n
props.prizeMask = new engine.Graphics()
\n
props.mainScene.addChild(props.prizeMask)
\n
props.drawBg.addEventListener(engine.MouseEvent.MOUSE_DOWN, global.onDownPrize = (e) => {
\n
global.points.push(global.tempPoints);
\n
global.startPoint = {
\n
x: e.stageX,
\n
y: e.stageY
\n
}
\n
global.tempPoints.push(global.startPoint)
\n
}, this)
\n
props.drawBg.addEventListener(engine.MouseEvent.MOUSE_MOVE, global.onMovePrize = (e) => {
\n
let endPoint = {
\n
x: e.stageX,
\n
y: e.stageY
\n
}
\n
global.tempPoints.push({
\n
x: e.stageX,
\n
y: e.stageY
\n
});
\n
draw(global.points, props.prizeMask)
\n
global.distance += distance(global.startPoint, endPoint)
\n
console.log(global.distance)
\n
global.startPoint = endPoint
\n\n
if (global.distance > 2000) {
\n
global.distance = 0;
\n
global.points = [];
\n
global.tempPoints = [];
\n
global.startPoint = {}
\n
props.drawBg.removeEventListener(engine.MouseEvent.MOUSE_DOWN, global.onDownPrize, this)
\n
props.drawBg.removeEventListener(engine.MouseEvent.MOUSE_MOVE, global.onMovePrize, this)
\n
props.drawBg.removeEventListener(engine.MouseEvent.MOUSE_UP, global.onUpPrize, this)
\n
props.drawBg.removeEventListener(engine.MouseEvent.MOUSE_OUT, global.onOutPrize, this)
\n\t\t\t\t
if (prizeInfo && prizeInfo.prizeId !==
\"
thanks
\"
) {
\n
\t\t\t\t
next(
\"
弹出中奖弹窗
\"
)
\n\t\t\t\t
}else{
\n
\t\t\t\t
next(
\"
弹出未中奖弹窗
\"
)
\n\t\t\t\t
}
\n
\n
}
\n
}, this)
\n
props.drawBg.addEventListener(engine.MouseEvent.MOUSE_UP, global.onUpPrize = (e) => {
\n
global.tempPoints = [];
\n
}, this)
\n
props.drawBg.addEventListener(engine.MouseEvent.MOUSE_OUT, global.onOutPrize = (e) => {
\n
//global.tempPoints = [];
\n
}, this)
\n\n
if (prizeInfo && prizeInfo.prizeId !==
\"
thanks
\"
) {
\n
// 有奖
\n
let prize = null
\n
for (let i = 0; i < allPrizeInfo.length; i++) {
\n
if (prizeInfo.prizeId == allPrizeInfo[i].id) {
\n
prize = allPrizeInfo[i]
\n
}
\n
}
\n
props.prizeImg.source = prize.icon
\n
\n
props.prizeGroup.mask = props.prizeMask;
\n\n
props.prizeGroup.visible = true;
\n
props.noPrizeGroup.visible = false;
\n
} else {
\n
// 没奖
\n
props.noPrizeGroup.mask = props.prizeMask;
\n\n
props.prizeGroup.visible = false;
\n
props.noPrizeGroup.visible = true;
\n
}
\n\n
function draw(points, mask) {
\n
if (!points.length) return;
\n
mask.clear();
\n
for (var i = 0; i < points.length; i++) {
\n
let tempPoints = points[i];
\n
if (tempPoints.length < 2) continue
\n
mask.beginFill(0xff0000);
\n
mask.drawCircle(tempPoints[0].x, tempPoints[0].y, 2);
\n
mask.endFill()
\n
mask.lineStyle(50, 0xff0000, 1)
\n
mask.moveTo(tempPoints[0].x, tempPoints[0].y);
\n
for (var j = 1; j < tempPoints.length - 1; j++) {
\n
mask.lineTo(tempPoints[j].x, tempPoints[j].y);
\n
}
\n
mask.endFill()
\n
mask.beginFill(0xff0000);
\n
mask.drawCircle(tempPoints[tempPoints.length - 1].x, tempPoints[tempPoints.length - 1].y, 2);
\n
mask.endFill()
\n
}
\n
}
\n\n
function distance(obj1, obj2) {
\n
let distance = Math.sqrt(Math.pow(obj1.x - obj2.x, 2) + Math.pow(obj1.y - obj2.y, 2));
\n
return distance;
\n
}"
,
"props"
:
{
"drawBg"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"startBtn"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"startDrawBg"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"remainTimesGroup"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"prizeGroup"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"noPrizeGroup"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"prizeMask"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"mainScene"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"prizeImg"
:
{
"type"
:
"node"
,
"enum"
:
[]
}
},
"isInline"
:
true
,
"name"
:
"开始刮奖"
,
"output"
:
[
"弹出中奖弹窗"
,
"弹出未中奖弹窗"
],
"sub"
:
{
"2ec12088-d051-4d93-8157-c92ae8ab40ee"
:
{
"uuid"
:
"2ec12088-d051-4d93-8157-c92ae8ab40ee"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{}
}
},
"subEntry"
:
"2ec12088-d051-4d93-8157-c92ae8ab40ee"
}
]
},
{
"id"
:
"43b32f28-99a0-4198-b9e0-5b7ef18aecc4"
,
"name"
:
"按钮无抽奖次数_click"
,
"props"
:
{},
"subEntry"
:
"b5d7f1d4-8c67-4a58-a47c-89d5ae61b63f"
,
"sub"
:
{
"b5d7f1d4-8c67-4a58-a47c-89d5ae61b63f"
:
{
"uuid"
:
"b5d7f1d4-8c67-4a58-a47c-89d5ae61b63f"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"d28b4a26-2b9b-480c-9899-c7325d856b62"
]
}
},
"d28b4a26-2b9b-480c-9899-c7325d856b62"
:
{
"uuid"
:
"d28b4a26-2b9b-480c-9899-c7325d856b62"
,
"meta"
:
"show-toast"
,
"design"
:
{
"x"
:
267
,
"y"
:
53
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
79
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
79
}
]
}
},
"props"
:
{
"padding"
:
10
,
"duration"
:
1000
,
"showDuration"
:
300
,
"hideDuration"
:
200
,
"viewName"
:
"无抽奖次数提示"
,
"text"
:
"您暂无抽奖次数~凡消费即可参与"
},
"output"
:
{}
}
}
},
{
"id"
:
"371ced37-395d-42cb-ae4c-40fe9f1cea79"
,
"name"
:
"刮卡区_init"
,
"props"
:
{},
"subEntry"
:
"0c3e9632-3f21-4df9-bf27-d7058aeb029a"
,
"sub"
:
{
"0c3e9632-3f21-4df9-bf27-d7058aeb029a"
:
{
"uuid"
:
"0c3e9632-3f21-4df9-bf27-d7058aeb029a"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[]
}
}
}
},
{
"id"
:
"94bd7d18-5340-4a8c-95b0-0ec2af4bfbe7"
,
"name"
:
"关闭弹窗并更新剩余次数"
,
"props"
:
{},
"subEntry"
:
"cd571600-fcc7-4629-a9b9-d89b4879310c"
,
"sub"
:
{
"cd571600-fcc7-4629-a9b9-d89b4879310c"
:
{
"uuid"
:
"cd571600-fcc7-4629-a9b9-d89b4879310c"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"ff0c97c2-0c53-43ea-b9ba-92e63ea101d6"
]
}
},
"ff0c97c2-0c53-43ea-b9ba-92e63ea101d6"
:
{
"uuid"
:
"ff0c97c2-0c53-43ea-b9ba-92e63ea101d6"
,
"meta"
:
"api-request"
,
"design"
:
{
"x"
:
176
,
"y"
:
83
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
63
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
49
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
63
}
],
"exception"
:
[
{
"x"
:
124.5
,
"y"
:
77
}
]
}
},
"props"
:
{
"uri"
:
"join_1/getRemainTime.do"
,
"dataName"
:
"getRemainTimes"
},
"output"
:
{
"success"
:
[
"75914e4e-e1df-4157-9e9a-f1fad37c3f3f"
],
"failed"
:
[
"5aa00df0-7161-4850-af38-71e4f9ecc392"
]
}
},
"5aa00df0-7161-4850-af38-71e4f9ecc392"
:
{
"uuid"
:
"5aa00df0-7161-4850-af38-71e4f9ecc392"
,
"meta"
:
"show-toast"
,
"design"
:
{
"x"
:
377
,
"y"
:
243
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
79
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
79
}
]
}
},
"props"
:
{
"padding"
:
10
,
"duration"
:
1000
,
"showDuration"
:
300
,
"hideDuration"
:
200
,
"viewName"
:
"更新数据失败"
},
"output"
:
{
"success"
:
[
"75914e4e-e1df-4157-9e9a-f1fad37c3f3f"
]
}
},
"75914e4e-e1df-4157-9e9a-f1fad37c3f3f"
:
{
"uuid"
:
"75914e4e-e1df-4157-9e9a-f1fad37c3f3f"
,
"meta"
:
"c08718d8-28e4-41c5-9739-be9f1abe0d93"
,
"design"
:
{
"x"
:
625
,
"y"
:
108
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
79
}
]
},
"output"
:
{
"next"
:
[
{
"x"
:
124.5
,
"y"
:
79
}
]
}
},
"props"
:
{
"prizeGroup"
:
"node://55fb5a22-a133-4815-9815-6107fbd63c61"
,
"noPrizeGroup"
:
"node://8f646122-be68-4766-94b5-21ed49f1d257"
,
"remainTimesTxt"
:
"node://87120f29-bea3-48b8-897b-373ab0d23574"
,
"drawBg"
:
"node://ae59bef0-d4eb-4d9e-9bff-2cd933b7086d"
,
"startDrawBg"
:
"node://7ea884af-3ecb-4b24-8ee2-5091d8e291ca"
,
"startBtnGroup"
:
"node://d6b59cf1-d135-4774-a1f3-411f75c7b529"
},
"output"
:
{
"success"
:
[],
"next"
:
[
"877365bc-5b57-42f0-af60-3087a7b3d2e7"
]
},
"alias"
:
"初始化刮奖区"
},
"877365bc-5b57-42f0-af60-3087a7b3d2e7"
:
{
"uuid"
:
"877365bc-5b57-42f0-af60-3087a7b3d2e7"
,
"meta"
:
"pop-dialog"
,
"design"
:
{
"x"
:
843
,
"y"
:
132
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
39
}
]
}
},
"props"
:
{
"closeAll"
:
false
},
"output"
:
{}
}
},
"metas"
:
[
{
"id"
:
"c08718d8-28e4-41c5-9739-be9f1abe0d93"
,
"script"
:
"props.prizeGroup.visible=false;
\n
props.noPrizeGroup.visible=false;
\n
props.remainTimesTxt.visible= true;
\n
props.drawBg.visible=false;
\n
props.startDrawBg.visible=true;
\n
props.startBtnGroup.visible=true;
\n
next(
\"
next
\"
)"
,
"props"
:
{
"prizeGroup"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"noPrizeGroup"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"remainTimesTxt"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"drawBg"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"startDrawBg"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"startBtnGroup"
:
{
"type"
:
"node"
,
"enum"
:
[]
}
},
"isInline"
:
true
,
"name"
:
"自定义节点"
,
"output"
:
[
"next"
],
"sub"
:
{
"35a4d5ee-09be-4e18-8b90-b2c0d18a56bb"
:
{
"uuid"
:
"35a4d5ee-09be-4e18-8b90-b2c0d18a56bb"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{}
}
},
"subEntry"
:
"35a4d5ee-09be-4e18-8b90-b2c0d18a56bb"
}
],
"output"
:
[]
},
{
"id"
:
"bc02c850-912e-4428-a055-ada6a0c78fba"
,
"name"
:
"按钮-关闭弹窗_click"
,
"props"
:
{},
"subEntry"
:
"a2bd9935-0719-426d-bda8-864e6766d5a9"
,
"sub"
:
{
"a2bd9935-0719-426d-bda8-864e6766d5a9"
:
{
"uuid"
:
"a2bd9935-0719-426d-bda8-864e6766d5a9"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"e82e8271-b5ea-459d-9e32-e69465e57a9b"
]
}
},
"e82e8271-b5ea-459d-9e32-e69465e57a9b"
:
{
"uuid"
:
"e82e8271-b5ea-459d-9e32-e69465e57a9b"
,
"meta"
:
"94bd7d18-5340-4a8c-95b0-0ec2af4bfbe7"
,
"design"
:
{
"x"
:
284
,
"y"
:
94
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{}
},
"props"
:
{},
"output"
:
{}
}
}
},
{
"id"
:
"240e342c-bd55-47d0-a1d7-4ec526ab46a3"
,
"name"
:
"奖品滚动视图_data-center"
,
"props"
:
{},
"subEntry"
:
"a0acae55-e736-4b54-9312-3bf0795abcfa"
,
"sub"
:
{
"a0acae55-e736-4b54-9312-3bf0795abcfa"
:
{
"uuid"
:
"a0acae55-e736-4b54-9312-3bf0795abcfa"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[]
}
}
},
"metas"
:
[]
},
{
"id"
:
"b105098a-b7a4-4613-afa6-a830be4a8b0a"
,
"name"
:
"关闭按钮_click"
,
"props"
:
{},
"subEntry"
:
"36b06dd4-0bf5-4698-8e5f-97d9d988e414"
,
"sub"
:
{
"36b06dd4-0bf5-4698-8e5f-97d9d988e414"
:
{
"uuid"
:
"36b06dd4-0bf5-4698-8e5f-97d9d988e414"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"c49ffcb4-537c-47f2-ba09-5219deeb2689"
]
}
},
"c49ffcb4-537c-47f2-ba09-5219deeb2689"
:
{
"uuid"
:
"c49ffcb4-537c-47f2-ba09-5219deeb2689"
,
"meta"
:
"pop-dialog"
,
"design"
:
{
"x"
:
233
,
"y"
:
87
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
39
}
]
}
},
"props"
:
{},
"output"
:
{}
}
}
},
{
"id"
:
"8f5cf707-4484-48d7-aa8b-1f817211c046"
,
"name"
:
"屈臣氏刮刮卡1219_data-center"
,
"props"
:
{},
"subEntry"
:
"26dc9b2f-36b8-4b06-b3b8-e96fac6a9457"
,
"sub"
:
{
"26dc9b2f-36b8-4b06-b3b8-e96fac6a9457"
:
{
"uuid"
:
"26dc9b2f-36b8-4b06-b3b8-e96fac6a9457"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"f68e36dd-3a73-429c-958b-ebb40bf2330b"
]
}
},
"f68e36dd-3a73-429c-958b-ebb40bf2330b"
:
{
"uuid"
:
"f68e36dd-3a73-429c-958b-ebb40bf2330b"
,
"meta"
:
"data-center-event-filter"
,
"design"
:
{
"x"
:
190
,
"y"
:
128
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
32
}
],
"cancel"
:
[
{
"x"
:
124.5
,
"y"
:
46
}
]
}
},
"props"
:
{
"dataName"
:
"dialog"
},
"output"
:
{
"success"
:
[
"dc4ea6c8-d84c-40af-b645-d78f83a95a64"
]
}
},
"dc4ea6c8-d84c-40af-b645-d78f83a95a64"
:
{
"uuid"
:
"dc4ea6c8-d84c-40af-b645-d78f83a95a64"
,
"meta"
:
"0de6c7ba-273a-4e55-9739-37c7270b8838"
,
"design"
:
{
"x"
:
426
,
"y"
:
186
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"1"
:
[
{
"x"
:
124.5
,
"y"
:
32
}
],
"2"
:
[
{
"x"
:
124.5
,
"y"
:
46
}
]
}
},
"props"
:
{},
"output"
:
{
"1"
:
[
"f1589121-0a20-4e57-86ae-1136aaa7474a"
],
"2"
:
[
"1159e972-b829-4e3f-a63d-ed16ca23bd3a"
]
}
},
"f1589121-0a20-4e57-86ae-1136aaa7474a"
:
{
"uuid"
:
"f1589121-0a20-4e57-86ae-1136aaa7474a"
,
"meta"
:
"push-dialog"
,
"design"
:
{
"x"
:
674
,
"y"
:
136
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
47
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
47
}
]
}
},
"props"
:
{
"viewName"
:
"弹窗-中奖弹窗"
},
"output"
:
{}
},
"1159e972-b829-4e3f-a63d-ed16ca23bd3a"
:
{
"uuid"
:
"1159e972-b829-4e3f-a63d-ed16ca23bd3a"
,
"meta"
:
"push-dialog"
,
"design"
:
{
"x"
:
674
,
"y"
:
252
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
47
}
]
},
"output"
:
{
"complete"
:
[
{
"x"
:
124.5
,
"y"
:
47
}
]
}
},
"props"
:
{
"viewName"
:
"弹窗-未中奖"
},
"output"
:
{}
}
},
"metas"
:
[
{
"id"
:
"0de6c7ba-273a-4e55-9739-37c7270b8838"
,
"script"
:
"next(props.dialogType + '');"
,
"props"
:
{
"dialogType"
:
{
"type"
:
"number"
,
"enum"
:
[],
"alias"
:
"类型"
}
},
"isInline"
:
true
,
"name"
:
"自定义节点"
,
"output"
:
[
"1"
,
"2"
]
}
]
},
{
"id"
:
"114670b7-f451-4963-986d-c21f909f546c"
,
"name"
:
"屈臣氏刮刮卡1219_data-center"
,
"props"
:
{},
"subEntry"
:
"a2d37fba-bda0-4b1a-999d-47ced3dab8d4"
,
"sub"
:
{
"a2d37fba-bda0-4b1a-999d-47ced3dab8d4"
:
{
"uuid"
:
"a2d37fba-bda0-4b1a-999d-47ced3dab8d4"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
35
,
"y"
:
20
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[]
}
},
"e50ab8aa-8d14-470c-89d7-a62725014939"
:
{
"uuid"
:
"e50ab8aa-8d14-470c-89d7-a62725014939"
,
"meta"
:
"6ebe307d-aee6-4091-b4b2-dd2ea15b852d"
,
"design"
:
{
"x"
:
255
,
"y"
:
151
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
31
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
24
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
38
}
]
}
},
"props"
:
{},
"output"
:
{}
}
},
"metas"
:
[
{
"id"
:
"6ebe307d-aee6-4091-b4b2-dd2ea15b852d"
,
"script"
:
""
,
"props"
:
{},
"isInline"
:
true
,
"name"
:
"自定义节点"
,
"output"
:
[
"success"
,
"failed"
],
"sub"
:
{
"fd3c771e-ea60-4524-9df8-0d60d94868ce"
:
{
"uuid"
:
"fd3c771e-ea60-4524-9df8-0d60d94868ce"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{}
}
},
"subEntry"
:
"fd3c771e-ea60-4524-9df8-0d60d94868ce"
}
]
},
{
"id"
:
"9aeb7c34-a41a-45c5-8c7e-9ab7be81c716"
,
"name"
:
"屈臣氏刮刮卡1219_init"
,
"props"
:
{},
"subEntry"
:
"f9ec1b02-eb39-4606-8f22-95c5865bcec7"
,
"sub"
:
{
"f9ec1b02-eb39-4606-8f22-95c5865bcec7"
:
{
"uuid"
:
"f9ec1b02-eb39-4606-8f22-95c5865bcec7"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"6d75f480-3287-4d00-9ef3-902907ab9aa1"
]
}
},
"6d75f480-3287-4d00-9ef3-902907ab9aa1"
:
{
"uuid"
:
"6d75f480-3287-4d00-9ef3-902907ab9aa1"
,
"meta"
:
"81c3b861-02ca-4230-a80e-5ecd8a3102fb"
,
"design"
:
{
"x"
:
280
,
"y"
:
14
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
31
}
]
},
"output"
:
{}
},
"props"
:
{},
"output"
:
{}
}
}
},
{
"id"
:
"fc0ad7cb-454b-4dac-8591-43645d90a6c5"
,
"name"
:
"按钮-关闭弹窗_click"
,
"props"
:
{},
"subEntry"
:
"a05a1c8a-22e2-4515-808a-94d0525f8c00"
,
"sub"
:
{
"a05a1c8a-22e2-4515-808a-94d0525f8c00"
:
{
"uuid"
:
"a05a1c8a-22e2-4515-808a-94d0525f8c00"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"69e38a06-3837-4f24-9c90-67447a8422ba"
]
}
},
"69e38a06-3837-4f24-9c90-67447a8422ba"
:
{
"uuid"
:
"69e38a06-3837-4f24-9c90-67447a8422ba"
,
"meta"
:
"94bd7d18-5340-4a8c-95b0-0ec2af4bfbe7"
,
"design"
:
{
"x"
:
260
,
"y"
:
71
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{}
},
"props"
:
{},
"output"
:
{}
}
}
},
{
"id"
:
"023a47c1-a590-4dd3-a13c-3de205fb8e40"
,
"name"
:
"按钮-我知道了_click"
,
"props"
:
{},
"subEntry"
:
"be72617f-0f11-40f1-87fd-661bf76cf501"
,
"sub"
:
{
"be72617f-0f11-40f1-87fd-661bf76cf501"
:
{
"uuid"
:
"be72617f-0f11-40f1-87fd-661bf76cf501"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"a461fc26-ad6b-4b0e-83ed-0d78499d008d"
]
}
},
"a461fc26-ad6b-4b0e-83ed-0d78499d008d"
:
{
"uuid"
:
"a461fc26-ad6b-4b0e-83ed-0d78499d008d"
,
"meta"
:
"94bd7d18-5340-4a8c-95b0-0ec2af4bfbe7"
,
"design"
:
{
"x"
:
264
,
"y"
:
134
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{}
},
"props"
:
{},
"output"
:
{}
}
}
},
{
"id"
:
"5e1514bd-1856-4316-8b54-f2ebb8b48118"
,
"name"
:
"剩余抽奖次数_data-center"
,
"props"
:
{},
"subEntry"
:
"dff7c0af-cc36-4a9a-a913-5e8b267723f2"
,
"sub"
:
{
"dff7c0af-cc36-4a9a-a913-5e8b267723f2"
:
{
"uuid"
:
"dff7c0af-cc36-4a9a-a913-5e8b267723f2"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"9d94f352-ddaf-41e3-a3f8-e453881a3f2d"
]
}
},
"7b2f42c1-038c-41a7-832c-d6489ea7c393"
:
{
"uuid"
:
"7b2f42c1-038c-41a7-832c-d6489ea7c393"
,
"meta"
:
"90290f8b-768a-4853-ab80-ff14ce390cdd"
,
"design"
:
{
"x"
:
448
,
"y"
:
27
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
55
}
]
},
"output"
:
{}
},
"props"
:
{
"dstartBtn"
:
"node://e49cee18-2ba2-4161-85c3-a22c794d4fdf"
,
"startBtn"
:
"node://44e9622b-337f-4eaf-a33c-d7598098f9a9"
},
"output"
:
{}
},
"9d94f352-ddaf-41e3-a3f8-e453881a3f2d"
:
{
"uuid"
:
"9d94f352-ddaf-41e3-a3f8-e453881a3f2d"
,
"meta"
:
"data-center-event-filter"
,
"design"
:
{
"x"
:
220
,
"y"
:
8
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
32
}
],
"cancel"
:
[
{
"x"
:
124.5
,
"y"
:
46
}
]
}
},
"props"
:
{
"dataName"
:
"getRemainTimes"
},
"output"
:
{
"success"
:
[
"7b2f42c1-038c-41a7-832c-d6489ea7c393"
],
"cancel"
:
[]
}
}
},
"metas"
:
[
{
"id"
:
"90290f8b-768a-4853-ab80-ff14ce390cdd"
,
"script"
:
"
\n
let remainTimes = global.dataCenter.getDataByName('剩余次数');
\n
console.log(remainTimes)
\n
if(remainTimes>0){
\n
props.dstartBtn.visible = false
\n
props.startBtn.visible = true
\n
}else{
\n
props.dstartBtn.visible = true
\n
props.startBtn.visible = false
\n
}
\n
target.text =
\"
剩余抽奖次数:
\"
+(remainTimes&&remainTimes>0?remainTimes : 0)"
,
"props"
:
{
"dstartBtn"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"startBtn"
:
{
"type"
:
"node"
,
"enum"
:
[]
}
},
"isInline"
:
true
,
"name"
:
"更新剩余次数及按钮状态"
,
"output"
:
[],
"sub"
:
{
"3d82b985-0b15-49e8-b5df-5c90662d724d"
:
{
"uuid"
:
"3d82b985-0b15-49e8-b5df-5c90662d724d"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{}
}
},
"subEntry"
:
"3d82b985-0b15-49e8-b5df-5c90662d724d"
}
]
},
{
"id"
:
"1ec189e5-98ac-417d-b548-ec3d24e2f24d"
,
"name"
:
"弹窗-中奖_init"
,
"props"
:
{},
"subEntry"
:
"b5f0a22b-6560-467e-949b-1f326e98b76a"
,
"sub"
:
{
"b5f0a22b-6560-467e-949b-1f326e98b76a"
:
{
"uuid"
:
"b5f0a22b-6560-467e-949b-1f326e98b76a"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"ca88686b-2e42-43c2-ba62-369b4b3e704d"
]
}
},
"ca88686b-2e42-43c2-ba62-369b4b3e704d"
:
{
"uuid"
:
"ca88686b-2e42-43c2-ba62-369b4b3e704d"
,
"meta"
:
"data-center-event-filter"
,
"design"
:
{
"x"
:
228
,
"y"
:
100
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
39
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
32
}
],
"cancel"
:
[
{
"x"
:
124.5
,
"y"
:
46
}
]
}
},
"props"
:
{
"dataName"
:
"doJoin"
},
"output"
:
{
"success"
:
[
"a44e2fcd-425b-4f5b-bbeb-95b2336b99e8"
]
}
},
"a44e2fcd-425b-4f5b-bbeb-95b2336b99e8"
:
{
"uuid"
:
"a44e2fcd-425b-4f5b-bbeb-95b2336b99e8"
,
"meta"
:
"a41f71c8-283e-4c20-aa04-58c66d80d052"
,
"design"
:
{
"x"
:
473
,
"y"
:
117
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
47
}
]
},
"output"
:
{}
},
"props"
:
{
"prizeImg"
:
"node://3fcd61d7-8a40-43c1-821d-0e3fdb486cab"
,
"prizeName"
:
"node://d689dac0-a726-4873-b21b-9be03d36003b"
},
"output"
:
{}
}
},
"metas"
:
[
{
"id"
:
"a41f71c8-283e-4c20-aa04-58c66d80d052"
,
"script"
:
"let prize = global.
\n
if (this.prize && this.prize.prizeId !==
\"
thanks
\"
) {
\n
this.prizeImg.source = this.lottery.icon;
\n
this.prizeName.text = this.lottery.name +
\"\"\n
}"
,
"props"
:
{
"prizeImg"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"prizeName"
:
{
"type"
:
"node"
,
"enum"
:
[]
}
},
"isInline"
:
true
,
"name"
:
"自定义节点"
,
"output"
:
[]
}
]
},
{
"id"
:
"6e5bd4a8-5658-4d3c-9452-3b31fe867c85"
,
"name"
:
"弹窗-中奖_awake"
,
"props"
:
{},
"subEntry"
:
"beff851a-caca-4696-a96c-18b659a4adf2"
,
"sub"
:
{
"beff851a-caca-4696-a96c-18b659a4adf2"
:
{
"uuid"
:
"beff851a-caca-4696-a96c-18b659a4adf2"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
9
,
"y"
:
9
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[]
}
}
},
"metas"
:
[]
},
{
"id"
:
"62002b01-f97f-44f1-88c7-f7bea61a9a96"
,
"name"
:
"按钮-立即领取_click"
,
"props"
:
{},
"subEntry"
:
"8f3e1b71-f0c6-42c3-96d6-25c0ad89dce8"
,
"sub"
:
{
"8f3e1b71-f0c6-42c3-96d6-25c0ad89dce8"
:
{
"uuid"
:
"8f3e1b71-f0c6-42c3-96d6-25c0ad89dce8"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"325aadb1-d650-4d9c-8218-7aca47016bd7"
]
}
},
"325aadb1-d650-4d9c-8218-7aca47016bd7"
:
{
"uuid"
:
"325aadb1-d650-4d9c-8218-7aca47016bd7"
,
"meta"
:
"9eeb4f30-0428-4803-83f2-e8ffbacd0368"
,
"design"
:
{
"x"
:
246
,
"y"
:
58
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
31
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
24
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
38
}
]
}
},
"props"
:
{},
"output"
:
{}
}
},
"metas"
:
[
{
"id"
:
"9eeb4f30-0428-4803-83f2-e8ffbacd0368"
,
"script"
:
"let prize = global.dataCenter.getDataByName('奖品信息');
\n
window.location.href = prize.url"
,
"props"
:
{},
"isInline"
:
true
,
"name"
:
"领奖"
,
"output"
:
[
"success"
,
"failed"
],
"sub"
:
{
"125f1ba0-8829-43fa-b948-363027372446"
:
{
"uuid"
:
"125f1ba0-8829-43fa-b948-363027372446"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{}
}
},
"subEntry"
:
"125f1ba0-8829-43fa-b948-363027372446"
}
]
},
{
"id"
:
"a4bb438f-2e22-4433-84da-5a21e650122d"
,
"name"
:
"弹窗-中奖_init"
,
"props"
:
{},
"subEntry"
:
"fb8c1218-2b88-4139-91d2-5af9f54895a6"
,
"sub"
:
{
"fb8c1218-2b88-4139-91d2-5af9f54895a6"
:
{
"uuid"
:
"fb8c1218-2b88-4139-91d2-5af9f54895a6"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{}
}
}
},
{
"id"
:
"167f599c-bd48-404a-9e5b-8172106262fd"
,
"name"
:
"弹窗-中奖_init"
,
"props"
:
{},
"subEntry"
:
"f49c5321-564c-41c3-9f59-ba3c555f67e8"
,
"sub"
:
{
"f49c5321-564c-41c3-9f59-ba3c555f67e8"
:
{
"uuid"
:
"f49c5321-564c-41c3-9f59-ba3c555f67e8"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
28
,
"y"
:
11
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{}
}
}
},
{
"id"
:
"a3606651-1355-40d8-aeb5-ef6cf722d413"
,
"name"
:
"弹窗-中奖_awake"
,
"props"
:
{},
"subEntry"
:
"0f1594fb-82b7-47c1-b6d0-3e753198a292"
,
"sub"
:
{
"0f1594fb-82b7-47c1-b6d0-3e753198a292"
:
{
"uuid"
:
"0f1594fb-82b7-47c1-b6d0-3e753198a292"
,
"alias"
:
"入口"
,
"meta"
:
"entry"
,
"design"
:
{
"x"
:
10
,
"y"
:
10
,
"input"
:
{},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
31.5
}
]
}
},
"props"
:
{},
"output"
:
{
"success"
:
[
"07da0464-a197-41c4-8c7b-b45de8d986d0"
]
}
},
"07da0464-a197-41c4-8c7b-b45de8d986d0"
:
{
"uuid"
:
"07da0464-a197-41c4-8c7b-b45de8d986d0"
,
"meta"
:
"5c163620-52a9-49db-8651-7460bff1ba2a"
,
"design"
:
{
"x"
:
181
,
"y"
:
65
,
"input"
:
{
"default"
:
[
{
"x"
:
5.5
,
"y"
:
47
}
]
},
"output"
:
{
"success"
:
[
{
"x"
:
124.5
,
"y"
:
40
}
],
"failed"
:
[
{
"x"
:
124.5
,
"y"
:
54
}
]
}
},
"props"
:
{
"prizeImg"
:
"node://3fcd61d7-8a40-43c1-821d-0e3fdb486cab"
,
"prizeName"
:
"node://d689dac0-a726-4873-b21b-9be03d36003b"
},
"output"
:
{},
"alias"
:
"更新奖品信息"
}
}
},
{
"id"
:
"5c163620-52a9-49db-8651-7460bff1ba2a"
,
"script"
:
"let prize = global.dataCenter.getDataByName('奖品信息');
\n
let prizeInfo =global.dataCenter.getDataByName('奖项信息');
\n
let getPrize=null
\n
if(prizeInfo &&prizeInfo.length>0){
\n\t
for(let i=0;i<prizeInfo.length;i++){
\n
\t
if(prize.prizeId == prizeInfo[i].id){
\n
getPrize = prizeInfo[i];
\n
\t\t\t
props.prizeImg.source = getPrize.icon
\n
\t
props.prizeName.text =
\"\"
+getPrize.name
\n
}
\n\t
}
\n
}
\n
console.log(prize)"
,
"props"
:
{
"prizeImg"
:
{
"type"
:
"node"
,
"enum"
:
[]
},
"prizeName"
:
{
"type"
:
"node"
,
"enum"
:
[]
}
},
"name"
:
"自定义节点"
,
"output"
:
[
"success"
,
"failed"
]
}
],
"customs"
:
[]
}
\ No newline at end of file
dist/engine.d20665eae76962ad21c153fe7a719130b08e292c.js
0 → 100644
View file @
64dc3214
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment