Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shop_mobile_uni
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
郑秀明
shop_mobile_uni
Commits
49bef260
Commit
49bef260
authored
Jul 15, 2020
by
王建威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
c3e7a640
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
vipCenter.vue
pages/vipCenter/vipCenter.vue
+16
-3
No files found.
pages/vipCenter/vipCenter.vue
View file @
49bef260
...
...
@@ -44,8 +44,8 @@
</swiper-item>
</swiper>
</view>
<view
class=
"top_title"
>
当前等级权益
</view>
<view
class=
"now_benefit"
v-for=
"(val, key) in member_list"
v-if=
"key === index"
:key=
"key"
:style=
"[heightFlag ?
{'height': height+'rpx'} : null]" :class="val.grade_list.length > 4 ? 'height1' : 'height2'">
<view
class=
"top_title"
v-if=
"titleFlag"
>
当前等级权益
</view>
<view
class=
"now_benefit"
v-for=
"(val, key) in member_list"
v-if=
"key === index
&& val.grade_list !==null
"
:key=
"key"
:style=
"[heightFlag ?
{'height': height+'rpx'} : null]" :class="val.grade_list.length > 4 ? 'height1' : 'height2'">
<view
class=
"benefit_item"
v-for=
"(item, k) in val.grade_list"
:key=
"k"
:style=
"[key != 0 ?
{color: 'rgba(255,255,255,0.4)'} : null]">
{{
item
.
short_title
}}
<text
class=
"dia"
v-if=
"key === 0"
></text>
...
...
@@ -89,6 +89,7 @@
}],
index
:
0
,
moreFlag
:
true
,
titleFlag
:
true
,
php
:
php
}
},
...
...
@@ -116,6 +117,12 @@
},
changeHeight
(
data
,
index
)
{
this
.
index
=
index
;
if
(
data
===
null
)
{
this
.
moreFlag
=
false
;
this
.
titleFlag
=
false
;
return
}
this
.
titleFlag
=
true
;
if
(
data
.
length
>
8
)
{
this
.
moreFlag
=
true
;
}
else
{
...
...
@@ -128,6 +135,12 @@
swiperChange
(
e
)
{
var
current
=
e
.
detail
.
current
;
this
.
index
=
current
;
if
(
this
.
member_list
[
current
].
grade_list
===
null
)
{
this
.
moreFlag
=
false
;
this
.
titleFlag
=
false
;
return
}
this
.
titleFlag
=
true
;
let
length
=
this
.
member_list
[
current
].
grade_list
.
length
;
if
(
length
>
8
)
{
this
.
moreFlag
=
true
;
...
...
@@ -151,7 +164,7 @@
background-color: #2D3239;
overflow: hidden;
margin-top: -8rpx;
padding: 0 24rpx;
padding: 0 24rpx
24rpx
;
border-radius: 0 0 24rpx 24rpx;
}
.swiper_content {
...
...
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