Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
86e9533d
Commit
86e9533d
authored
Sep 18, 2025
by
chenkai@duiba.com.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
月月礼修改
parent
ed2acbd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
monthGift.vue
components/pointRightsCom/monthGift.vue
+4
-3
No files found.
components/pointRightsCom/monthGift.vue
View file @
86e9533d
...
@@ -848,10 +848,11 @@
...
@@ -848,10 +848,11 @@
// 检查用户等级是否符合要求
// 检查用户等级是否符合要求
const
levelOrder
=
[
0
,
1
,
2
,
3
,
4
];
const
levelOrder
=
[
0
,
1
,
2
,
3
,
4
];
const
userLevelIndex
=
levelOrder
.
indexOf
(
props
.
userLevel
*
1
);
const
userLevelIndex
=
levelOrder
.
indexOf
(
props
.
userLevel
*
1
);
const
requiredLevelIndex
=
levelOrder
.
indexOf
(
props
.
currentLevel
*
1
);
// const requiredLevelIndex = levelOrder.indexOf(props.currentLevel * 1);
const
diamondIndex
=
levelOrder
.
indexOf
(
2
)
// Diamond level is 2
// 如果用户等级
不够
,返回"待解锁"状态的图片
// 如果用户等级
小于钻石
,返回"待解锁"状态的图片
if
(
userLevelIndex
<
requiredLevel
Index
)
{
if
(
userLevelIndex
<
diamond
Index
)
{
return
MONTH_GIFT_IMAGES
[
level
.
toUpperCase
()].
BUY_COM
.
TIME1
.
STATUS
;
return
MONTH_GIFT_IMAGES
[
level
.
toUpperCase
()].
BUY_COM
.
TIME1
.
STATUS
;
}
}
...
...
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