|
|
@@ -7,8 +7,7 @@
|
|
|
<div class="main" id="canvsBox" v-else>
|
|
|
<!-- 数字 -->
|
|
|
<div class="txt">
|
|
|
- 第 <span>{{ num }}</span
|
|
|
- > 位参与者
|
|
|
+ 第 <span>{{ num }}</span> 位参与者
|
|
|
</div>
|
|
|
<!-- 二维码 -->
|
|
|
<div class="code">
|
|
|
@@ -16,12 +15,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 加载中 -->
|
|
|
- <div
|
|
|
- class="logingBox"
|
|
|
- v-loading="!isOk"
|
|
|
- element-loading-text="生成海报中"
|
|
|
- element-loading-background="rgba(0, 0, 0, 0.8)"
|
|
|
- ></div>
|
|
|
+ <div class="logingBox" v-loading="!isOk" element-loading-text="生成海报中" element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
|
+ </div>
|
|
|
<div class="close" @click="$emit('close')">
|
|
|
<img src="../../../assets/img/close.png" alt="" />
|
|
|
</div>
|
|
|
@@ -73,14 +68,14 @@ export default {
|
|
|
console.log(e);
|
|
|
}
|
|
|
},
|
|
|
- mounted() {},
|
|
|
- beforeCreate() {}, //生命周期 - 创建之前
|
|
|
- beforeMount() {}, //生命周期 - 挂载之前
|
|
|
- beforeUpdate() {}, //生命周期 - 更新之前
|
|
|
- updated() {}, //生命周期 - 更新之后
|
|
|
- beforeDestroy() {}, //生命周期 - 销毁之前
|
|
|
- destroyed() {}, //生命周期 - 销毁完成
|
|
|
- activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
+ mounted() { },
|
|
|
+ beforeCreate() { }, //生命周期 - 创建之前
|
|
|
+ beforeMount() { }, //生命周期 - 挂载之前
|
|
|
+ beforeUpdate() { }, //生命周期 - 更新之前
|
|
|
+ updated() { }, //生命周期 - 更新之后
|
|
|
+ beforeDestroy() { }, //生命周期 - 销毁之前
|
|
|
+ destroyed() { }, //生命周期 - 销毁完成
|
|
|
+ activated() { }, //如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
};
|
|
|
</script>
|
|
|
<style lang='less' scoped>
|
|
|
@@ -91,15 +86,18 @@ export default {
|
|
|
transform: translate(-50%, -50%);
|
|
|
width: 542px;
|
|
|
height: 820px;
|
|
|
+
|
|
|
.imgBox {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
position: relative;
|
|
|
- & > img {
|
|
|
+
|
|
|
+ &>img {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
- & > p {
|
|
|
+
|
|
|
+ &>p {
|
|
|
position: absolute;
|
|
|
bottom: 10px;
|
|
|
right: 34px;
|
|
|
@@ -109,6 +107,7 @@ export default {
|
|
|
text-align: center;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.logingBox {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
@@ -117,33 +116,39 @@ export default {
|
|
|
height: 100%;
|
|
|
z-index: 99;
|
|
|
}
|
|
|
+
|
|
|
.main {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
background-image: url("../../../assets/img/open/bg-share.jpg");
|
|
|
background-size: 100% 100%;
|
|
|
position: relative;
|
|
|
+
|
|
|
.txt {
|
|
|
position: absolute;
|
|
|
bottom: 185px;
|
|
|
right: 30px;
|
|
|
color: #d6b970;
|
|
|
- & > span {
|
|
|
+
|
|
|
+ &>span {
|
|
|
font-size: 36px;
|
|
|
font-weight: 700;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.code {
|
|
|
position: absolute;
|
|
|
bottom: 60px;
|
|
|
right: 34px;
|
|
|
width: 80px;
|
|
|
- & > img {
|
|
|
+
|
|
|
+ &>img {
|
|
|
border-radius: 6px;
|
|
|
width: 80px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.close {
|
|
|
z-index: 99;
|
|
|
position: absolute;
|
|
|
@@ -152,14 +157,17 @@ export default {
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
// 移动端
|
|
|
-@media screen and (max-width: 1000px) {
|
|
|
+@media screen and (max-width: 1000px),
|
|
|
+(orientation: portrait) {
|
|
|
.share {
|
|
|
max-width: 500px;
|
|
|
width: 90%;
|
|
|
height: 90%;
|
|
|
+
|
|
|
.imgBox {
|
|
|
- & > p {
|
|
|
+ &>p {
|
|
|
font-size: 12px;
|
|
|
bottom: 10px;
|
|
|
width: 120px;
|
|
|
@@ -167,6 +175,7 @@ export default {
|
|
|
text-align: right;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.main {
|
|
|
// background-image: url("../../../assets/img/open/bg-shareM.jpg");
|
|
|
// background-size: 100% 100%;
|
|
|
@@ -174,19 +183,23 @@ export default {
|
|
|
.txt {
|
|
|
bottom: 24%;
|
|
|
right: 14px;
|
|
|
- & > span {
|
|
|
+
|
|
|
+ &>span {
|
|
|
font-size: 24px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.code {
|
|
|
width: 84px;
|
|
|
bottom: 30px;
|
|
|
right: 14px;
|
|
|
- & > img {
|
|
|
+
|
|
|
+ &>img {
|
|
|
width: 84px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.close {
|
|
|
position: absolute;
|
|
|
right: -14px;
|
|
|
@@ -195,16 +208,17 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
@media screen and (max-width: 370px) {
|
|
|
.share {
|
|
|
.main {
|
|
|
.txt {
|
|
|
font-size: 12px;
|
|
|
- & > span {
|
|
|
+
|
|
|
+ &>span {
|
|
|
font-size: 18px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
-</style>
|
|
|
+}</style>
|