Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
babycare_xiaoxiao
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
翁阳
babycare_xiaoxiao
Commits
a1d2fb41
Commit
a1d2fb41
authored
Jul 30, 2020
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
48e001dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
128 additions
and
131 deletions
+128
-131
babycare.getPrizesByLevel.json
mock/miniTb/babycare.getPrizesByLevel.json
+112
-116
babycare.luckyDraw.json
mock/miniTb/babycare.luckyDraw.json
+15
-14
LotteryScene.ts
src/scene/LotteryScene.ts
+1
-1
No files found.
mock/miniTb/babycare.getPrizesByLevel.json
View file @
a1d2fb41
{
"code"
:
"000000"
,
"data"
:
[
{
"switchStock"
:
1
,
"image"
:
"https://img.alicdn.com/imgextra/i2/2275046294/O1CN01c4rCs11wMhRrsjEep_!!2275046294-2-miniprogram.png"
,
"isBackUp"
:
false
,
"properiodto"
:
1600
,
"level"
:
1
,
"probability"
:
"16"
,
"openId"
:
"AAFwCvE-ALiIWXYsJuTQVRpH"
,
"prizeType"
:
60
,
"updateTime"
:
1594623032191
,
"type"
:
3
,
"properiodfrom"
:
1
,
"activityId"
:
"5f08084ec3ad3494b9201c0e"
,
"ename"
:
""
,
"lockStatus"
:
1
,
"credits"
:
""
,
"createTime"
:
1594361933509
,
"deleteStatus"
:
1
,
"name"
:
"60关奖品3"
,
"useStock"
:
1
,
"rank"
:
""
,
"_id"
:
"123"
,
"id"
:
""
,
"stock"
:
200
},
{
"image"
:
"https://source.unsplash.com/user/erondu/80x80"
,
"isBackUp"
:
true
,
"properiodto"
:
10000
,
"level"
:
2
,
"probability"
:
"84"
,
"prizeType"
:
60
,
"updateTime"
:
1594623032197
,
"type"
:
5
,
"properiodfrom"
:
1601
,
"activityId"
:
"5f08084ec3ad3494b9201c0e"
,
"lockStatus"
:
1
,
"createTime"
:
1594623032197
,
"deleteStatus"
:
1
,
"name"
:
"谢谢参与"
,
"useStock"
:
0
,
"_id"
:
"456"
},
{
"image"
:
"https://source.unsplash.com/user/erondu/90x90"
,
"isBackUp"
:
true
,
"properiodto"
:
10000
,
"level"
:
2
,
"probability"
:
"84"
,
"prizeType"
:
60
,
"updateTime"
:
1594623032197
,
"type"
:
5
,
"properiodfrom"
:
1601
,
"activityId"
:
"5f08084ec3ad3494b9201c0e"
,
"lockStatus"
:
1
,
"createTime"
:
1594623032197
,
"deleteStatus"
:
1
,
"name"
:
"谢谢参与"
,
"useStock"
:
0
,
"_id"
:
"789"
},
{
"image"
:
"https://source.unsplash.com/user/erondu/100x100"
,
"isBackUp"
:
true
,
"properiodto"
:
10000
,
"level"
:
2
,
"probability"
:
"84"
,
"prizeType"
:
60
,
"updateTime"
:
1594623032197
,
"type"
:
5
,
"properiodfrom"
:
1601
,
"activityId"
:
"5f08084ec3ad3494b9201c0e"
,
"lockStatus"
:
1
,
"createTime"
:
1594623032197
,
"deleteStatus"
:
1
,
"name"
:
"谢谢参与"
,
"useStock"
:
0
,
"_id"
:
"1213"
},
{
"image"
:
"https://source.unsplash.com/user/erondu/110x110"
,
"isBackUp"
:
true
,
"properiodto"
:
10000
,
"level"
:
2
,
"probability"
:
"84"
,
"prizeType"
:
60
,
"updateTime"
:
1594623032197
,
"type"
:
5
,
"properiodfrom"
:
1601
,
"activityId"
:
"5f08084ec3ad3494b9201c0e"
,
"lockStatus"
:
1
,
"createTime"
:
1594623032197
,
"deleteStatus"
:
1
,
"name"
:
"谢谢参与"
,
"useStock"
:
0
,
"_id"
:
"9898"
},
{
"image"
:
"https://source.unsplash.com/user/erondu/120x120"
,
"isBackUp"
:
true
,
"properiodto"
:
10000
,
"level"
:
2
,
"probability"
:
"84"
,
"prizeType"
:
60
,
"updateTime"
:
1594623032197
,
"type"
:
5
,
"properiodfrom"
:
1601
,
"activityId"
:
"5f08084ec3ad3494b9201c0e"
,
"lockStatus"
:
1
,
"createTime"
:
1594623032197
,
"deleteStatus"
:
1
,
"name"
:
"谢谢参与"
,
"useStock"
:
0
,
"_id"
:
"9654"
}
{
"switchStock"
:
2
,
"isBackUp"
:
false
,
"openId"
:
"AAEaCvE-ALiIWXQsJuac30pr"
,
"type"
:
3
,
"properiodfrom"
:
1
,
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"lockStatus"
:
1
,
"credits"
:
""
,
"deleteStatus"
:
1
,
"rank"
:
""
,
"startTime"
:
""
,
"id"
:
""
,
"stock"
:
""
,
"image"
:
"https://img.alicdn.com/imgextra/i2/2275046294/O1CN01Zzj1FL1wMhS845iJp_!!2275046294-2-miniprogram.png"
,
"properiodto"
:
5000
,
"amount"
:
""
,
"level"
:
1
,
"probability"
:
"50"
,
"prizeType"
:
10
,
"updateTime"
:
1596078351399
,
"ename"
:
""
,
"createTime"
:
1596014583758
,
"name"
:
"实物1实物1实物1实"
,
"useStock"
:
0
,
"_id"
:
"5f213ff7738989c8b3f46f4b"
,
"endTime"
:
""
},
{
"switchStock"
:
2
,
"isBackUp"
:
false
,
"openId"
:
"AAEaCvE-ALiIWXQsJuac30pr"
,
"type"
:
1
,
"properiodfrom"
:
5001
,
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"lockStatus"
:
1
,
"credits"
:
""
,
"deleteStatus"
:
1
,
"rank"
:
""
,
"startTime"
:
1593475200000
,
"id"
:
""
,
"stock"
:
""
,
"image"
:
"https://img.alicdn.com/imgextra/i2/2275046294/O1CN01fcO2aS1wMhS2wKUZO_!!2275046294-0-miniprogram.jpg"
,
"amount"
:
"1"
,
"properiodto"
:
10000
,
"level"
:
2
,
"probability"
:
"50"
,
"prizeType"
:
10
,
"updateTime"
:
1596078351410
,
"ename"
:
"18c738e4b1de4de3b481885b0d5e0936"
,
"createTime"
:
1596014583758
,
"name"
:
"优惠券1"
,
"useStock"
:
0
,
"_id"
:
"5f213ff7738989c8b3f46f4c"
,
"endTime"
:
1596239999000
},
{
"switchStock"
:
2
,
"isBackUp"
:
false
,
"openId"
:
"AAEaCvE-ALiIWXQsJuac30pr"
,
"type"
:
3
,
"properiodfrom"
:
10001
,
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"lockStatus"
:
1
,
"credits"
:
""
,
"deleteStatus"
:
1
,
"rank"
:
""
,
"startTime"
:
""
,
"id"
:
""
,
"stock"
:
""
,
"image"
:
"https://img.alicdn.com/imgextra/i4/2275046294/O1CN01avEmL01wMhS5Wxd63_!!2275046294-2-miniprogram.png"
,
"properiodto"
:
10000
,
"amount"
:
""
,
"level"
:
3
,
"probability"
:
"0"
,
"prizeType"
:
10
,
"updateTime"
:
1596078351423
,
"ename"
:
""
,
"createTime"
:
1596014583758
,
"name"
:
"实物11"
,
"useStock"
:
0
,
"_id"
:
"5f213ff7738989c8b3f46f4d"
,
"endTime"
:
""
},
{
"switchStock"
:
2
,
"isBackUp"
:
false
,
"type"
:
3
,
"properiodfrom"
:
10001
,
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"lockStatus"
:
1
,
"credits"
:
""
,
"deleteStatus"
:
1
,
"rank"
:
""
,
"startTime"
:
""
,
"id"
:
""
,
"stock"
:
""
,
"image"
:
"https://img.alicdn.com/imgextra/i3/2275046294/O1CN01KWxBt41wMhS7Oiham_!!2275046294-2-miniprogram.png"
,
"properiodto"
:
10000
,
"amount"
:
""
,
"level"
:
4
,
"probability"
:
"0"
,
"prizeType"
:
10
,
"updateTime"
:
1596078351428
,
"ename"
:
""
,
"createTime"
:
1596078351428
,
"name"
:
"实物测试名称过长的啦"
,
"useStock"
:
0
,
"_id"
:
"5f22390fe5c0d7361f1e6b59"
,
"endTime"
:
""
}
],
"success"
:
true
,
"message"
:
"成功"
}
\ No newline at end of file
}
\ No newline at end of file
mock/miniTb/babycare.luckyDraw.json
View file @
a1d2fb41
{
"code"
:
"000000"
,
"data"
:
{
"image"
:
"https://img.alicdn.com/imgextra/i1/2275046294/O1CN01TrcMYF1wMhRuCphHI_!!2275046294-2-miniprogram.png"
,
"level"
:
90
,
"drawStatus"
:
1
,
"openId"
:
"AAHuCvE-ALiIWXYsJuTb5S4W"
,
"createDay"
:
"2020/07/14"
,
"avatar"
:
"sdfwerwerwer"
,
"type"
:
3
,
"prizeId"
:
"5f08084e0cb7338a0a377c8d"
,
"activityId"
:
"5f08084ec3ad3494b9201c0e"
,
"ename"
:
""
,
"userNick"
:
"wmmmmm"
,
"name"
:
"90关奖品4"
,
"_id"
:
"123"
"image"
:
"https://img.alicdn.com/imgextra/i2/2275046294/O1CN01Zzj1FL1wMhS845iJp_!!2275046294-2-miniprogram.png"
,
"amount"
:
""
,
"level"
:
10
,
"drawStatus"
:
1
,
"openId"
:
"AAFgCvE-ALiIWXYsJuSLKdVt"
,
"createDay"
:
"2020/07/30"
,
"avatar"
:
"http://wwc.alicdn.com/avatar/getAvatar.do?userIdStr=XFvSvGH0XmQGOFNWMCQyP08yX8cYPFgLXH*IXFMHvHcT&width=80&height=80&type=sns"
,
"type"
:
3
,
"prizeId"
:
"5f213ff7738989c8b3f46f4b"
,
"activityId"
:
"5f213ff79897b44ce1d2925d"
,
"ename"
:
""
,
"userNick"
:
"lpf468169313"
,
"name"
:
"实物1实物1实物1实"
,
"_id"
:
"AAFgCvE-ALiIWXYsJuSLKdVt1596078979091"
},
"success"
:
true
,
"message"
:
"成功"
}
\ No newline at end of file
}
\ No newline at end of file
src/scene/LotteryScene.ts
View file @
a1d2fb41
...
...
@@ -91,7 +91,7 @@ export class LotteryScene extends Scene {
//如果是失败
if
(
!
res
.
success
)
return
;
let
id
;
if
(
res
.
data
&&
res
.
data
.
_id
)
id
=
res
.
data
.
_i
d
;
if
(
res
.
data
&&
res
.
data
.
prizeId
)
id
=
res
.
data
.
prizeI
d
;
this
.
enableMouseEvt
(
false
);
this
.
lotScroll
.
lot
(
id
,
()
=>
{
this
.
enableMouseEvt
(
true
)
...
...
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