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
248d829e
Commit
248d829e
authored
Jun 26, 2019
by
chenyishuai@singsingenglish.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
626
parent
d6a2e11a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
55 deletions
+34
-55
starRank.vue
src/components/star/starRank.vue
+34
-55
No files found.
src/components/star/starRank.vue
View file @
248d829e
...
@@ -43,22 +43,12 @@
...
@@ -43,22 +43,12 @@
:touchable=
"true"
:touchable=
"true"
:initial-swipe=
"tabIndex-1"
:initial-swipe=
"tabIndex-1"
class=
"scroll"
class=
"scroll"
@
change=
"swipeChange"
@
change=
"swipeChange"
>
>
<van-swipe-item>
<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=
"container"
>
<div
class=
"stageBox"
v-if=
"starInfo.code!=2001"
>
<div
class=
"stageBox"
v-if=
"starInfo.code!=2001"
>
<div
<div
class=
"result"
v-if=
"starInfo.code!=2003&&starInfo.code!=2004&&starInfo.activity_result.result!=15&&starInfo.activity_result.result!=16"
>
class=
"result"
v-if=
"starInfo.code!=2003&&starInfo.code!=2004&&starInfo.activity_result.result!=15&&starInfo.activity_result.result!=16"
>
<div
class=
"float"
>
结果公示
</div>
<div
class=
"float"
>
结果公示
</div>
<div
v-if=
"starInfo.activity_result.result==11"
>
<div
v-if=
"starInfo.activity_result.result==11"
>
<h2>
恭喜两个阶段全勤挑战成功
</h2>
<h2>
恭喜两个阶段全勤挑战成功
</h2>
...
@@ -69,9 +59,7 @@
...
@@ -69,9 +59,7 @@
<img
:src=
"starPage.star_prize2"
alt
>
<img
:src=
"starPage.star_prize2"
alt
>
</div>
</div>
</div>
</div>
<div
<div
v-if=
"starInfo.activity_result.result==12||starInfo.activity_result.result==13"
>
v-if=
"starInfo.activity_result.result==12||starInfo.activity_result.result==13"
>
<h2>
恭喜第一阶段全勤挑战成功
</h2>
<h2>
恭喜第一阶段全勤挑战成功
</h2>
<p>
赠送 猜猜我是谁系列双语洞洞书(4册)
</p>
<p>
赠送 猜猜我是谁系列双语洞洞书(4册)
</p>
<div
class=
"imgbox"
>
<div
class=
"imgbox"
>
...
@@ -85,7 +73,7 @@
...
@@ -85,7 +73,7 @@
<img
:src=
"starPage.star_prize2"
alt
>
<img
:src=
"starPage.star_prize2"
alt
>
</div>
</div>
</div>
</div>
<div
class=
"addr"
@
click=
"goAddr
($event)
"
v-if=
"!addressObj"
>
<div
class=
"addr"
@
click=
"goAddr"
v-if=
"!addressObj"
>
点击这里,快去填写收货地址吧
点击这里,快去填写收货地址吧
<i
class=
"iconfont icon-youjiantou"
></i>
<i
class=
"iconfont icon-youjiantou"
></i>
</div>
</div>
...
@@ -123,7 +111,7 @@
...
@@ -123,7 +111,7 @@
<span
class=
"add"
>
{{
starInfo
.
user_category_integral_last_ten
}}
/20
</span>
<span
class=
"add"
>
{{
starInfo
.
user_category_integral_last_ten
}}
/20
</span>
<img
:src=
"starPage.star_inner"
alt
>
<img
:src=
"starPage.star_inner"
alt
>
</div>
</div>
<div
class=
"tip"
v-on:click=
"goDetail(1,$event
)"
>
<div
class=
"tip"
@
click=
"goDetail(1
)"
>
查看明细
查看明细
<i
class=
"iconfont icon-youjiantou"
></i>
<i
class=
"iconfont icon-youjiantou"
></i>
</div>
</div>
...
@@ -138,7 +126,7 @@
...
@@ -138,7 +126,7 @@
<span
class=
"add"
>
{{
starInfo
.
user_category_integral_last_twenty
}}
/40
</span>
<span
class=
"add"
>
{{
starInfo
.
user_category_integral_last_twenty
}}
/40
</span>
<img
:src=
"starPage.star_inner"
alt
>
<img
:src=
"starPage.star_inner"
alt
>
</div>
</div>
<div
class=
"tip"
@
click=
"goDetail(2
,$event
)"
>
<div
class=
"tip"
@
click=
"goDetail(2)"
>
查看明细
查看明细
<i
class=
"iconfont icon-youjiantou"
></i>
<i
class=
"iconfont icon-youjiantou"
></i>
</div>
</div>
...
@@ -210,7 +198,6 @@ export default {
...
@@ -210,7 +198,6 @@ export default {
name
:
"starRank"
,
name
:
"starRank"
,
data
()
{
data
()
{
return
{
return
{
isClick
:
true
,
height
:
0
,
height
:
0
,
pullup
:
true
,
pullup
:
true
,
rankBg
:
rankBg
,
rankBg
:
rankBg
,
...
@@ -231,13 +218,9 @@ export default {
...
@@ -231,13 +218,9 @@ export default {
},
},
components
:
{},
components
:
{},
methods
:
{
methods
:
{
swipeItemClick
(
e
)
{
console
.
log
(
"swipeItemClick"
,
e
);
this
.
isClick
=
true
;
},
swipeChange
(
index
)
{
swipeChange
(
index
)
{
console
.
log
(
222
)
this
.
tabIndex
=
index
+
1
;
this
.
tabIndex
=
index
+
1
;
this
.
isClick
=
false
;
},
},
goResult
()
{
goResult
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -245,39 +228,35 @@ export default {
...
@@ -245,39 +228,35 @@ export default {
query
:
{
starInfo
:
this
.
starInfo
}
query
:
{
starInfo
:
this
.
starInfo
}
});
});
},
},
goAddr
(
e
)
{
goAddr
()
{
if
(
this
.
isClick
)
{
if
(
this
.
addressObj
)
{
if
(
this
.
addressObj
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"activityAddr"
name
:
"activityAddr"
});
});
}
else
{
}
else
{
this
.
$router
.
push
({
name
:
"addressEdit"
});
}
}
},
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
;
}
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"starDetail"
,
name
:
"addressEdit"
query
:
{
starInfo
:
obj
}
});
});
}
}
},
},
goDetail
(
index
)
{
console
.
log
(
243
)
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
;
}
this
.
$router
.
push
({
name
:
"starDetail"
,
query
:
{
starInfo
:
obj
}
});
},
onReachBottom
()
{
onReachBottom
()
{
if
(
!
this
.
finished
&&
this
.
loading
)
{
if
(
!
this
.
finished
&&
this
.
loading
)
{
this
.
loading
=
false
;
this
.
loading
=
false
;
...
...
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