You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<template> <view class="content" v-if="value"> <view class="box"> <image class="img" src="https://picsum.photos/200" mode="aspectFill" @click="clickAd"></image> <view class="close" @click="close"> <text class="lf-iconfont icon-shanchu"></text> </view> </view> </view></template>
<script> export default { props: { value: { type: Boolean, default: true } }, created(){ }, methods: { clickAd(){ this.$msg('您点击了广告图') }, close(){ this.$emit('update:value', false); } } }</script>
<style lang="scss" scoped="scoped"> .content{ width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; position: fixed; left: 0; top: 0; .box{ width: 600rpx; height: max-content; .img{ width: 600rpx; height: 840rpx; border: 1rpx solid #979797; } .close{ width: 70rpx; height: 70rpx; margin: 34rpx auto 0; border-radius: 50%; display: flex; justify-content: center; align-items: center; text{ font-size: 80rpx; } } } }</style>
|