Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pannage
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
王剑峰
pannage
Commits
4f211c0b
Commit
4f211c0b
authored
Mar 22, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
b44f3847
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
14 deletions
+17
-14
rule.png
egret/resource/assets/rule/rule.png
+0
-0
rule2.png
egret/resource/assets/rule/rule2.png
+0
-0
getOptionImgSize.ts
egret/src/prizePanel/data/getOptionImgSize.ts
+16
-13
doSign.json
mock/json/doSign.json
+1
-1
No files found.
egret/resource/assets/rule/rule.png
View replaced file @
b44f3847
View file @
4f211c0b
This diff is collapsed.
Click to expand it.
egret/resource/assets/rule/rule2.png
0 → 100644
View file @
4f211c0b
415 KB
egret/src/prizePanel/data/getOptionImgSize.ts
View file @
4f211c0b
import
{
LotteryData
}
from
"../../../libs/tw/data/common/lottery/LotteryData"
;
import
ImgSizeType
from
"./ImgSizeType"
;
import
{
LotteryType
}
from
"../../../libs/tw/enum/LotteryType"
const
getOptionImgSize
=
(
lottery
:
LotteryData
)
=>
{
return
ImgSizeType
.
BIG
}
// const getOptionImgSize = (lottery: LotteryData) => {
// let size:string;
// if (
// lottery.type == LotteryType.VIRTUAL ||
// lottery.type == LotteryType.OBJECT) {
// size = ImgSizeType.SMALL
// } else {
// size = ImgSizeType.BIG;
// }
// return size;
// return ImgSizeType.BIG
// }
const
getOptionImgSize
=
(
lottery
:
LotteryData
)
=>
{
let
size
:
string
;
if
(
lottery
.
type
==
LotteryType
.
VIRTUAL
||
lottery
.
type
==
LotteryType
.
OBJECT
||
lottery
.
type
==
LotteryType
.
ALIPAY
||
lottery
.
type
==
LotteryType
.
QB
||
lottery
.
type
==
LotteryType
.
PHONEBILL
)
{
size
=
ImgSizeType
.
SMALL
}
else
{
size
=
ImgSizeType
.
BIG
;
}
return
size
;
}
export
default
getOptionImgSize
\ No newline at end of file
mock/json/doSign.json
View file @
4f211c0b
...
...
@@ -43,6 +43,6 @@
"customInfo"
:
{
"isLuckyStar"
:
true
},
"success"
:
fals
e
,
"success"
:
tru
e
,
"logId"
:
81338132946820
}
\ No newline at end of file
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