|
@@ -1,61 +1,76 @@
|
|
<template>
|
|
<template>
|
|
<div class="qrcode">
|
|
<div class="qrcode">
|
|
- <img class="qrcodebg" :src="require(`@/assets/images/project/kuangti/qrcode_${theme}.png`)" alt="">
|
|
|
|
|
|
+ <img
|
|
|
|
+ class="qrcodebg"
|
|
|
|
+ :src="require(`@/assets/images/project/kuangti/qrcode_${theme}.png`)"
|
|
|
|
+ alt=""
|
|
|
|
+ />
|
|
<div class="brightness"></div>
|
|
<div class="brightness"></div>
|
|
|
|
|
|
<div class="qrcodecon">
|
|
<div class="qrcodecon">
|
|
<h3>扫描二维码,手机观展</h3>
|
|
<h3>扫描二维码,手机观展</h3>
|
|
- <ul>
|
|
|
|
- <li v-for="(item,i) in qrcodeArr" :key="i">
|
|
|
|
- <p v-html="item.name"></p>
|
|
|
|
- <img :src="require(`@/assets/images/project/${item.qrcode}`)" alt="">
|
|
|
|
- <div>下载二维码</div>
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
|
|
+ <div class="ul">
|
|
|
|
+ <div class="li">
|
|
|
|
+ <p v-if="!currentPano.name" v-html="currentPano.name"></p>
|
|
|
|
+ <div class="xiala" v-else>
|
|
|
|
+ <span @click="isShowUl=!isShowUl">
|
|
|
|
+ {{currentPano.name}}
|
|
|
|
+ <img :src="require(`@/assets/images/project/icon/jiantour.png`)" alt="">
|
|
|
|
+ </span>
|
|
|
|
+ <ul class="brightness" v-if="isShowUl">
|
|
|
|
+ <li @click="isShowUl=false,currentPano.name='四川省返乡创业'" v-for="(item,i) in 2" :key="i">
|
|
|
|
+ 四川省返乡创业
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <img :src="require(`@/assets/images/project/qrcode.jpg`)" alt="" />
|
|
|
|
+ <div class="download">下载二维码</div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="li">
|
|
|
|
+ <p v-html="currentItem.name"></p>
|
|
|
|
+ <img :src="require(`@/assets/images/project/qrcode.jpg`)" alt="" />
|
|
|
|
+ <div class="download">下载二维码</div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-
|
|
|
|
export default {
|
|
export default {
|
|
- props:['currentPano','currentItem'],
|
|
|
|
- data(){
|
|
|
|
|
|
+ props: ["currentPano", "currentItem"],
|
|
|
|
+ data() {
|
|
return {
|
|
return {
|
|
- qrcodeArr:[{
|
|
|
|
- name:this.currentPano.name,
|
|
|
|
- qrcode:'qrcode.jpg'
|
|
|
|
- },{
|
|
|
|
- name:this.currentItem.name,
|
|
|
|
- qrcode:'qrcode.jpg'
|
|
|
|
- }]
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+ isShowUl:false
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
-@w:900px;
|
|
|
|
-@fixw:8px;
|
|
|
|
-.qrcode{
|
|
|
|
|
|
+@w: 900px;
|
|
|
|
+@fixw: 8px;
|
|
|
|
+.qrcode {
|
|
width: @w;
|
|
width: @w;
|
|
position: relative;
|
|
position: relative;
|
|
- .qrcodebg{
|
|
|
|
|
|
+ .qrcodebg {
|
|
width: @w + @fixw * 2;
|
|
width: @w + @fixw * 2;
|
|
position: relative;
|
|
position: relative;
|
|
transform: translateX(-@fixw);
|
|
transform: translateX(-@fixw);
|
|
}
|
|
}
|
|
- .brightness{
|
|
|
|
|
|
+ .brightness {
|
|
position: absolute;
|
|
position: absolute;
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
left: 0;
|
|
left: 0;
|
|
top: 0;
|
|
top: 0;
|
|
z-index: -1;
|
|
z-index: -1;
|
|
- clip-path: polygon(0 10%, 10% 2%, 100% 2%, 100% 90%, 90% 100%, 0 100%);
|
|
|
|
|
|
+ clip-path: polygon(0 11%, 10% 2%, 100% 2%, 100% 90%, 92% 98%, 0 98%);
|
|
}
|
|
}
|
|
-
|
|
|
|
- .qrcodecon{
|
|
|
|
|
|
+
|
|
|
|
+ .qrcodecon {
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 0;
|
|
top: 0;
|
|
transform: translateX(-50%);
|
|
transform: translateX(-50%);
|
|
@@ -64,7 +79,7 @@ export default {
|
|
height: 100%;
|
|
height: 100%;
|
|
text-align: center;
|
|
text-align: center;
|
|
padding: 80px 0 0;
|
|
padding: 80px 0 0;
|
|
- >h3{
|
|
|
|
|
|
+ > h3 {
|
|
font-weight: normal;
|
|
font-weight: normal;
|
|
font-size: 26px;
|
|
font-size: 26px;
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -72,18 +87,18 @@ export default {
|
|
left: 8%;
|
|
left: 8%;
|
|
text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
|
|
text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
|
|
}
|
|
}
|
|
- >ul{
|
|
|
|
|
|
+ .ul {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
width: 100%;
|
|
padding-top: 18px;
|
|
padding-top: 18px;
|
|
- >li{
|
|
|
|
|
|
+ .li {
|
|
text-align: center;
|
|
text-align: center;
|
|
width: 220px;
|
|
width: 220px;
|
|
- &:first-of-type{
|
|
|
|
|
|
+ &:first-of-type {
|
|
margin-right: 15%;
|
|
margin-right: 15%;
|
|
}
|
|
}
|
|
- >p{
|
|
|
|
|
|
+ > p, .xiala {
|
|
font-size: 18px;
|
|
font-size: 18px;
|
|
line-height: 1.5;
|
|
line-height: 1.5;
|
|
height: 80px;
|
|
height: 80px;
|
|
@@ -91,11 +106,55 @@ export default {
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
- >img{
|
|
|
|
|
|
+ .xiala{
|
|
|
|
+ position: relative;
|
|
|
|
+ >span{
|
|
|
|
+ border: 1px solid #fff;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ border-radius: 4px;
|
|
|
|
+ width: 100%;
|
|
|
|
+ padding: 10px 30px 10px 10px;
|
|
|
|
+ position: relative;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ text-overflow:ellipsis;
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+ >img{
|
|
|
|
+ position: absolute;
|
|
|
|
+ right: 12px;
|
|
|
|
+ transform: rotate(90deg);
|
|
|
|
+ top: 33%;
|
|
|
|
+ width: 8px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ >ul{
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 90%;
|
|
|
|
+ padding: 0 10px;
|
|
|
|
+ width: 100%;
|
|
|
|
+ z-index: 99;
|
|
|
|
+ clip-path:none!important;
|
|
|
|
+ border-radius: 4px;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ height: auto;
|
|
|
|
+ >li{
|
|
|
|
+ text-align: left;
|
|
|
|
+ line-height: 1.5;
|
|
|
|
+ border-bottom: dashed 1px #fff;
|
|
|
|
+ padding: 10px 0;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ &:last-of-type{
|
|
|
|
+ border-bottom: none;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ > img {
|
|
width: 100%;
|
|
width: 100%;
|
|
margin: 10px 0 40px;
|
|
margin: 10px 0 40px;
|
|
}
|
|
}
|
|
- >div{
|
|
|
|
|
|
+ .download {
|
|
border: 1px solid #fff;
|
|
border: 1px solid #fff;
|
|
background-color: rgba(255, 255, 255, 0.29);
|
|
background-color: rgba(255, 255, 255, 0.29);
|
|
line-height: 60px;
|
|
line-height: 60px;
|
|
@@ -108,4 +167,4 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|