123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <template>
- <van-overlay :show="show">
- <view class="contact-us-wrapper">
- <view class="contact-us">
- <view class="contact-us-qrcode">
- <image :src="buoyInfo.contact_us_qrcode" show-menu-by-longpress/>
- </view>
- <view class="contact-us-label-1">{{buoyInfo.contact_us_title}}</view>
- <view class="contact-us-label-2">{{buoyInfo.contact_us_description}}</view>
- <view class="contact-us-service-list">
- <view>{{buoyInfo.contact_us_consultation}}</view>
- <view>{{buoyInfo.contact_us_forum}}</view>
- <view>{{buoyInfo.contact_us_visit}}</view>
- </view>
- <view class="contact-us-close" @click="onClickClose">
- <van-icon name="close" />
- </view>
- </view>
- </view>
- </van-overlay>
- </template>
- <script>
- import VanOverlay from '@/wxcomponents/vant/overlay/index'
- import {getBuoyInfo} from "@/api";
- export default {
- options: {
- styleIsolation: 'shared'
- },
- components: {
- VanOverlay
- },
- props: {
- show: Boolean,
- qrcode_url: String
- },
- watch: {
- show(val){
- if (val) {
- this.getBuoyData()
- }
- }
- },
- data() {
- return {
- loading: false,
- buoyInfo: {}
- }
- },
- created() {
- // this.getBuoyData()
- },
- methods: {
- onClickClose() {
- this.$emit('update:show', false)
- },
- getBuoyData() {
- getBuoyInfo().then(res => {
- this.buoyInfo = res.data
- // console.log(this.buoyInfo);
- })
- }
- }
- }
- </script>
- <style lang="scss">
- .contact-us-wrapper{
- @include display-flex-center;
- height: 100%;
- .contact-us{
- @include display-flex-center;
- position: relative;
- flex-direction: column;
- width: 500rpx;
- height: 689rpx;
- background-color: $buttonPrimaryColor;
- border-radius: 15rpx 15rpx 15rpx 15rpx;
- color: #FFFFFF;
- }
- .contact-us-qrcode{
- width: 279rpx;
- height: 279rpx;
- margin-top: 69rpx auto 0 auto;
- }
- .contact-us-label-1{
- margin-top: 30rpx;
- font-size: $fontSize6;
- }
- .contact-us-label-2{
- margin-top: 13rpx;
- font-size: $fontSize6;
- }
- .contact-us-service-list{
- display: grid;
- grid-template-columns: 1fr;
- grid-row-gap: 10rpx;
- margin-top: 20rpx;
- font-size: $fontSize3;
- }
- .contact-us-close{
- position: absolute;
- top: -70rpx;
- right: -70rpx;
- .van-icon-close{
- font-size: 69rpx;
- cursor: pointer;
- }
- }
- }
- </style>
|