<template>
    <view class="cu-modal" :class="{'show': visible}">
        <view class="mask" @click="close"></view>
        <view class="cu-dialog" style="background-color: transparent; width:100%">
            <view class="relative wrapper">
                <image :src="resource.prince_rule_1" webp class="image" mode="widthFix" />

            </view>
            <view class="paddingT30 flex-align-center">
                <image :src="resource.close" class="x" @click="close" />
            </view>
        </view>
    </view>
</template>

<script>
import resource from '@/utils/resource'
export default {
    data() {
        return {
            resource,
            visible: false
        }
    },
    methods: {
        show() {
            this.visible = true
            this.$parent.$parent.$parent.lock = true
        },
        close() {
            this.visible = false
            this.$parent.$parent.$parent.lock = false
        }
    }
}
</script>

<style lang="scss" scoped>
.mask {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
.wrapper {
    z-index: 1001;
    margin: 0 56rpx;
    .image {
        width: 100%;
    }
}
.x {
    width: 60rpx;
    height: 60rpx;
}
</style>