9d879fe4 by simon

no message

1 parent 7bea0642
......@@ -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;
......
......@@ -13,5 +13,8 @@ Vue.config.productionTip = false
new Vue({
router,
store,
data: {
isInit: false,
},
render: h => h(App)
}).$mount('#app')
......
......@@ -37,9 +37,9 @@ export default {
show: false,
title: "",
content: "",
index: "subcribe-02",
index: "",
// index : "submit",
btnShow: false,
btnShow: true,
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>
......