Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
lilejia-f2mb-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
9d879fe4
authored
2019-10-16 14:10:44 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
7bea0642
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
9 deletions
src/components/biz-model/biz-model.vue
src/main.js
src/pages/index/index.vue
src/components/biz-model/biz-model.vue
View file @
9d879fe
...
...
@@ -9,11 +9,7 @@
<div
class=
"successModel"
>
<div
class=
"model-data"
>
{{
data
.
content
}}
</div>
<div
v-if=
"data.btnShow"
class=
"sys-btn-02"
@
click=
"modelBtnClickHandler"
>
{{
data
.
btnText
}}
</div>
<div
v-if=
"data.labelBtnShow"
class=
"label-btn"
@
click=
"labelBtnClickHandler"
>
{{
data
.
labelBtnText
}}
</div>
<div
v-if=
"data.labelBtnShow"
class=
"label-btn"
@
click=
"labelBtnClickHandler"
>
{{
data
.
labelBtnText
}}
</div>
<div
class=
"model-bottom-line"
></div>
</div>
</div>
...
...
@@ -76,6 +72,29 @@
</div>
</div>
<!-- 中奖-->
<div
class=
"model rule-model award"
v-if=
"data.index == 'award'"
>
<div
class=
"model-close"
@
click=
"modelCloseHandler"
></div>
<div
class=
"model-content"
>
<div
class=
"model-head-line"
></div>
<div
class=
"model-title"
>
{{
data
.
title
}}
</div>
<div
class=
"rule-container"
>
<div
class=
"rule-line award-line"
>
<div>
恭喜人气值排名前80的选手们获得由立白集团送出的礼品,请获奖选手在10月20日晚上22点前,点击以下链接填写相关资料(过时没有提交资料视为自动放弃获奖礼品),活动组委会以此资料在一个月内,陆续给大家寄出奖品,请认真准确填写。
</div>
</div>
</div>
<div
class=
"successModel"
>
<div
v-if=
"data.btnShow"
class=
"sys-btn-02"
@
click=
"modelBtnClickHandler"
>
{{
data
.
btnText
}}
</div>
<div
class=
"model-bottom-line"
></div>
</div>
</div>
</div>
<!-- 规则-->
<div
class=
"model rule-model"
v-if=
"data.index == 'rule'"
>
<div
class=
"model-close"
@
click=
"modelCloseHandler"
></div>
...
...
@@ -507,6 +526,10 @@ export default {
}
}
.award-line
{
width
:
420px
;
}
.sm-width
{
width
:
480px
!important
;
margin-bottom
:
30px
;
...
...
src/main.js
View file @
9d879fe
...
...
@@ -13,5 +13,8 @@ Vue.config.productionTip = false
new
Vue
({
router
,
store
,
data
:
{
isInit
:
false
,
},
render
:
h
=>
h
(
App
)
}).
$mount
(
'#app'
)
...
...
src/pages/index/index.vue
View file @
9d879fe
...
...
@@ -37,9 +37,9 @@ export default {
show
:
false
,
title
:
""
,
content
:
""
,
index
:
"
subcribe-02
"
,
index
:
""
,
// index : "submit",
btnShow
:
fals
e
,
btnShow
:
tru
e
,
btnText
:
""
,
confirmHandler
:
null
,
labelBtnShow
:
false
,
...
...
@@ -50,7 +50,6 @@ export default {
},
methods
:
{
toSign
()
{
Toast
.
loading
({
mask
:
true
,
message
:
"请稍等..."
...
...
@@ -61,14 +60,51 @@ export default {
if
(
res
.
isSubcribe
==
1
)
{
this
.
$router
.
push
(
"/sign"
);
}
else
{
this
.
model
.
show
=
true
;
this
.
showSubcribeModel
()
;
}
});
},
showAwardModel
()
{
this
.
model
.
show
=
true
;
this
.
model
.
title
=
"活动结束"
;
this
.
model
.
content
=
""
;
this
.
model
.
btnShow
=
true
;
this
.
model
.
btnText
=
"前往填写"
;
this
.
model
.
index
=
"award"
;
this
.
model
.
confirmHandler
=
this
.
toAward
;
this
.
model
.
labelBtnShow
=
false
;
this
.
model
.
labelBtnText
=
""
;
this
.
model
.
labelBtnHandler
=
null
;
},
showSubcribeModel
()
{
this
.
model
.
show
=
true
;
this
.
model
.
title
=
""
;
this
.
model
.
content
=
""
;
this
.
model
.
btnShow
=
false
;
this
.
model
.
btnText
=
""
;
this
.
model
.
index
=
"subcribe-02"
;
this
.
model
.
confirmHandler
=
null
;
this
.
model
.
labelBtnShow
=
false
;
this
.
model
.
labelBtnText
=
""
;
this
.
model
.
labelBtnHandler
=
null
;
},
toAward
()
{
console
.
log
(
"toAward"
);
this
.
model
.
show
=
false
;
this
.
$router
.
push
({
path
:
"award"
});
}
},
components
:
{
BottomTool
,
BizModel
},
created
()
{
if
(
!
this
.
$root
.
isInit
)
{
this
.
$root
.
isInit
=
true
;
this
.
showAwardModel
();
}
}
};
</
script
>
...
...
Please
register
or
sign in
to post a comment