|
@@ -18,6 +18,9 @@
|
|
|
</van-overlay>
|
|
|
</view>
|
|
|
</u-scroll-view>
|
|
|
+ <contact-us :show.sync="showContactUs" :qrcode_url="q_url" />
|
|
|
+ <float-button @custom-event="updateContactStatus()"></float-button>
|
|
|
+ <van-dialog id="van-dialog" />
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -25,17 +28,27 @@
|
|
|
import NavBar from '@/components/layout/nav-bar'
|
|
|
import UScrollView from '@/components/common/u-scroll-view'
|
|
|
import VanOverlay from '@/wxcomponents/vant/overlay/index'
|
|
|
+ import floatButton from "@/components/layout/float-button"
|
|
|
+ import ContactUs from '@/pages/index/components/contact-us.vue'
|
|
|
import {
|
|
|
getDashboardInfo
|
|
|
} from '@/api'
|
|
|
|
|
|
export default {
|
|
|
- components: { NavBar, UScrollView, VanOverlay },
|
|
|
+ components: {
|
|
|
+ NavBar,
|
|
|
+ UScrollView,
|
|
|
+ VanOverlay,
|
|
|
+ floatButton,
|
|
|
+ ContactUs
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
showOverlay: false,
|
|
|
videoList: [],
|
|
|
- videoUrl: ''
|
|
|
+ videoUrl: '',
|
|
|
+ showContactUs: false,
|
|
|
+ q_url: ''
|
|
|
}
|
|
|
},
|
|
|
props: {
|
|
@@ -59,6 +72,10 @@
|
|
|
videoPlay(item) {
|
|
|
this.videoUrl = item.url
|
|
|
this.showOverlay = true
|
|
|
+ },
|
|
|
+ updateContactStatus(data) {
|
|
|
+ this.showContactUs = data.showContactUs
|
|
|
+ this.q_url = data.q_url
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -68,16 +85,16 @@
|
|
|
.video-container {
|
|
|
.video-list {
|
|
|
display: grid;
|
|
|
- grid-template-columns: 1fr 1fr;
|
|
|
+ grid-template-columns: 1fr;
|
|
|
grid-gap: 30rpx;
|
|
|
-
|
|
|
+
|
|
|
.video-item {
|
|
|
width: 100%;
|
|
|
aspect-ratio: 5/3;
|
|
|
position: relative;
|
|
|
border-radius: 14rpx;
|
|
|
overflow: hidden;
|
|
|
-
|
|
|
+
|
|
|
.cover-img {
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
@@ -86,7 +103,7 @@
|
|
|
left: 0;
|
|
|
z-index: 1;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.video-play {
|
|
|
@include display-flex-center;
|
|
|
position: absolute;
|
|
@@ -100,7 +117,7 @@
|
|
|
margin: auto;
|
|
|
background-color: rgba(229, 117, 25, 0.5);
|
|
|
z-index: 1;
|
|
|
-
|
|
|
+
|
|
|
.iconfont {
|
|
|
color: #FFFFFF;
|
|
|
font-size: 50rpx;
|
|
@@ -108,10 +125,11 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.overlay-wrapper {
|
|
|
@include display-flex-center;
|
|
|
height: 100%;
|
|
|
-
|
|
|
+
|
|
|
video {
|
|
|
width: 100%;
|
|
|
}
|