Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
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
new-sing
h5-base
Commits
d6a2e11a
Commit
d6a2e11a
authored
Jun 26, 2019
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
liwei
parent
f9d6b564
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
40 deletions
+38
-40
starRank.vue
src/components/star/starRank.vue
+38
-40
No files found.
src/components/star/starRank.vue
View file @
d6a2e11a
...
...
@@ -37,8 +37,7 @@
<span
class=
"line"
></span>
</div>
</div>
<transition
name=
"fade"
>
<van-swipe
<van-swipe
:loop=
"false"
:show-indicators=
"false"
:touchable=
"true"
...
...
@@ -47,7 +46,13 @@
@
change=
"swipeChange"
>
<van-swipe-item
@
click=
"swipeItemClick"
>
<scroll
:style=
"
{maxHeight: height +'px'}" v-if="starNum!=0
&&
tabIndex==1" ref="scrollItem" :data="starList" :bounce="false">
<scroll
:style=
"
{maxHeight: height +'px'}"
v-if="starNum!=0
&&
tabIndex==1"
ref="scrollItem"
:data="starList"
:bounce="false"
>
<div
class=
"container"
>
<div
class=
"stageBox"
v-if=
"starInfo.code!=2001"
>
<div
...
...
@@ -80,7 +85,7 @@
<img
:src=
"starPage.star_prize2"
alt
>
</div>
</div>
<div
class=
"addr"
@
click=
"goAddr($event)"
v-if=
"!addressObj"
>
<div
class=
"addr"
@
click=
"goAddr($event)"
v-if=
"!addressObj"
>
点击这里,快去填写收货地址吧
<i
class=
"iconfont icon-youjiantou"
></i>
</div>
...
...
@@ -186,7 +191,6 @@
</scroll>
</van-swipe-item>
</van-swipe>
</transition>
</div>
</
template
>
...
...
@@ -227,13 +231,13 @@ export default {
},
components
:
{},
methods
:
{
swipeItemClick
(
e
){
console
.
log
(
'swipeItemClick'
,
e
);
swipeItemClick
(
e
)
{
console
.
log
(
"swipeItemClick"
,
e
);
this
.
isClick
=
true
;
},
swipeChange
(
index
)
{
this
.
tabIndex
=
index
+
1
;
this
.
isClick
=
false
;
this
.
isClick
=
false
;
},
goResult
()
{
this
.
$router
.
push
({
...
...
@@ -242,37 +246,37 @@ export default {
});
},
goAddr
(
e
)
{
if
(
this
.
isClick
)
{
if
(
this
.
isClick
)
{
if
(
this
.
addressObj
)
{
this
.
$router
.
push
({
name
:
"activityAddr"
});
}
else
{
this
.
$router
.
push
({
name
:
"addressEdit"
});
this
.
$router
.
push
({
name
:
"activityAddr"
});
}
else
{
this
.
$router
.
push
({
name
:
"addressEdit"
});
}
}
}
},
goDetail
(
index
,
e
)
{
console
.
log
(
'goDetail'
,
e
);
if
(
this
.
isClick
)
{
goDetail
(
index
,
e
)
{
console
.
log
(
"goDetail"
,
e
);
if
(
this
.
isClick
)
{
let
obj
=
{};
obj
.
index
=
index
;
if
(
index
==
1
)
{
obj
.
start_at
=
this
.
starInfo
.
start_at
;
obj
.
first_over_at
=
this
.
starInfo
.
first_over_at
;
obj
.
user_category_integral_last_ten
=
this
.
starInfo
.
user_category_integral_last_ten
;
}
else
{
obj
.
start_at
=
this
.
starInfo
.
start_at
;
obj
.
second_over_at
=
this
.
starInfo
.
second_over_at
;
obj
.
user_category_integral_last_twenty
=
this
.
starInfo
.
user_category_integral_last_twenty
;
obj
.
index
=
index
;
if
(
index
==
1
)
{
obj
.
start_at
=
this
.
starInfo
.
start_at
;
obj
.
first_over_at
=
this
.
starInfo
.
first_over_at
;
obj
.
user_category_integral_last_ten
=
this
.
starInfo
.
user_category_integral_last_ten
;
}
else
{
obj
.
start_at
=
this
.
starInfo
.
start_at
;
obj
.
second_over_at
=
this
.
starInfo
.
second_over_at
;
obj
.
user_category_integral_last_twenty
=
this
.
starInfo
.
user_category_integral_last_twenty
;
}
this
.
$router
.
push
({
name
:
"starDetail"
,
query
:
{
starInfo
:
obj
}
});
}
this
.
$router
.
push
({
name
:
"starDetail"
,
query
:
{
starInfo
:
obj
}
});
}
},
onReachBottom
()
{
if
(
!
this
.
finished
&&
this
.
loading
)
{
...
...
@@ -383,12 +387,6 @@ export default {
<
style
scoped
lang=
"less"
>
@import "../../util/public";
.fade-enter-active, .fade-leave-active {
transition: opacity .5s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
opacity: 0;
}
.star-activity-page {
border-top: 1px solid transparent;
}
...
...
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