username@email.com
2024-09-09 cc170291673472d3cda8d7ea77f6bd3a3b5dbb83
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<template>
    <!-- 单图 -->
    <view class="coreshop-adpop" v-if="coreshopdata.parameters.list && coreshopdata.parameters.list.length > 0">
        <view class="adpop" v-if="closeAd">
            <view class="adpop-center">
                <view class="adpop-img">
                    <!-- #ifdef MP-WEIXIN -->
                    <view  @click="showSliderInfo(coreshopdata.parameters.list[0].linkType, coreshopdata.parameters.list[0].linkValue)">
                        <image class="ad-img" :src="coreshopdata.parameters.list[0].image" mode="widthFix"></image>
                    </view>
                    <!-- #endif -->
                    <!-- #ifndef MP-WEIXIN -->
                    <image class="ad-img" :src="coreshopdata.parameters.list[0].image" mode="widthFix" @click="showSliderInfo(coreshopdata.parameters.list[0].linkType, coreshopdata.parameters.list[0].linkValue)"></image>
                    <!-- #endif -->
                </view>
                <image class="close-btn" src="/static/images/close-pink.png" mode="" @click="closePop"></image>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        name: "coreshopadpop",
        props: {
            coreshopdata: {
                // type: Object,
                required: true,
            }
        },
        data() {
            return {
                closeAd: true
            }
        },
        computed: {
            count() {
                // console.log(coreshopdata)
                return (this.coreshopdata.parameters.list.length > 0)
            }
 
        },
        methods: {
            closePop() {
                this.closeAd = false
            },
        },
    }
</script>
 
<style scoped lang="scss">
    .coreshop-adpop {
        .adpop { position: fixed; background: rgba(0,0,0,.5); width: 100%; height: 100vh; z-index: 999; top: 0; left: 0;
            .adpop-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 70%; text-align: center;
                .adpop-img { width: 100%; max-height: 500px; margin-bottom: 25px;
                    .ad-img { width: 100%; max-height: 500px; }
                }
                .close-btn { width: 40px; height: 40px; }
            }
        }
    }
</style>