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
39fad81c
Commit
39fad81c
authored
Jun 26, 2019
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
liwei
parent
be484649
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
3 deletions
+36
-3
starRank.vue
src/components/star/starRank.vue
+36
-3
No files found.
src/components/star/starRank.vue
View file @
39fad81c
...
@@ -42,8 +42,8 @@
...
@@ -42,8 +42,8 @@
:show-indicators=
"false"
:show-indicators=
"false"
:touchable=
"true"
:touchable=
"true"
:initial-swipe=
"tabIndex-1"
:initial-swipe=
"tabIndex-1"
:duration=
"1000"
class=
"scroll"
class=
"scroll"
ref=
"demo"
@
change=
"swipeChange"
@
change=
"swipeChange"
>
>
<van-swipe-item
@
click=
"swipeItemClick"
>
<van-swipe-item
@
click=
"swipeItemClick"
>
...
@@ -365,7 +365,6 @@ export default {
...
@@ -365,7 +365,6 @@ export default {
},
},
tabChange
(
index
)
{
tabChange
(
index
)
{
console
.
log
(
index
);
console
.
log
(
index
);
console
.
log
(
this
.
$refs
.
demo
);
this
.
tabIndex
=
index
;
this
.
tabIndex
=
index
;
// if(index==2){
// if(index==2){
// setTimeout(() => {
// setTimeout(() => {
...
@@ -461,6 +460,24 @@ export default {
...
@@ -461,6 +460,24 @@ export default {
flex: 1;
flex: 1;
height: 64 * @toVw;
height: 64 * @toVw;
line-height: 74 * @toVw;
line-height: 74 * @toVw;
// .demo {
// display: inline-block;
// width: 86 * @toVw;
// height: 35 * @toVw;
// line-height: 35 * @toVw;
// position: relative;
// text-shadow: 0px 1px 1px rgba(187, 82, 0, 1);
// color: white;
// font-size: 15 * @toVw;
// animation: slideIn 0.5s linear;
// img {
// width: 86 * @toVw;
// position: absolute;
// top: 0;
// left: 0;
// z-index: -1;
// }
// }
.activity {
.activity {
display: inline-block;
display: inline-block;
width: 86 * @toVw;
width: 86 * @toVw;
...
@@ -470,7 +487,7 @@ export default {
...
@@ -470,7 +487,7 @@ export default {
text-shadow: 0px 1px 1px rgba(187, 82, 0, 1);
text-shadow: 0px 1px 1px rgba(187, 82, 0, 1);
color: white;
color: white;
font-size: 15 * @toVw;
font-size: 15 * @toVw;
transition: opacity 0.5s
;
animation: slideOut 1s linear
;
img {
img {
width: 86 * @toVw;
width: 86 * @toVw;
position: absolute;
position: absolute;
...
@@ -481,6 +498,22 @@ export default {
...
@@ -481,6 +498,22 @@ export default {
}
}
}
}
}
}
@keyframes slideOut {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes slideIn {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
.anActivity {
.anActivity {
margin-top: 24 * @toVw;
margin-top: 24 * @toVw;
}
}
...
...
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