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.
95 lines
2.1 KiB
95 lines
2.1 KiB
<template>
|
|
<view class="mask" @click="hide" v-if="visible">
|
|
<view class="flex-col items-center group_7" @click.stop="() => {}" v-if="codeUrl">
|
|
<image :src="imgStamp['service-bg']" class="image_12" />
|
|
<view class="group_8">
|
|
<view class="flex-col items-center image-wrapper_1">
|
|
<image :src="codeUrl" :show-menu-by-longpress="true" class="image_13" />
|
|
</view>
|
|
<text class="text_10">{{ text }}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import { imgStamp } from '@/enums/index'
|
|
export default {
|
|
props: {
|
|
codeUrl: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
text: {
|
|
type: String,
|
|
default: ''
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
visible: false,
|
|
imgStamp: Object.freeze(imgStamp)
|
|
}
|
|
},
|
|
methods: {
|
|
show() {
|
|
this.visible = true
|
|
},
|
|
hide() {
|
|
this.visible = false
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.mask {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.6);
|
|
z-index: 100;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
.group_7 {
|
|
width: 588rpx;
|
|
position: relative;
|
|
.image_12 {
|
|
width: 588rpx;
|
|
height: 646rpx;
|
|
}
|
|
.group_8 {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 440rpx;
|
|
position: absolute;
|
|
top: 56rpx;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
.image-wrapper_1 {
|
|
padding: 20rpx 0 22rpx;
|
|
background-color: #ffffff;
|
|
width: 402rpx;
|
|
.image_13 {
|
|
border-radius: 16rpx;
|
|
width: 360rpx;
|
|
height: 360rpx;
|
|
}
|
|
}
|
|
.text_10 {
|
|
margin-top: 40rpx;
|
|
color: #4f270d;
|
|
font-size: 36rpx;
|
|
font-family: 'PingFangSC-Medium';
|
|
font-weight: 500;
|
|
line-height: 50rpx;
|
|
// letter-spacing: 14rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|