heyujie
2021-06-07 e7d93ffbf1afeaf167af36ea4835935be967f900
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<template>
    <view>
        <!-- <view class="img-box">
            <image :src="imgSrc" mode=""></image>
        </view> -->
        <view class="tui-actionsheet-mask" :class="[show?'tui-mask-show':'']" @tap="handleClickMask">
            <!-- <image :src="imgSrc" mode=""></image> -->
        </view>
    </view>
</template>
 
<script>
    export default {
        
        data() {
            return {
                
            }
        },
        props: {
            imgSrc: {
                type: String,
                default: ""
            },
            show: {
                type: Boolean,
                default: false
            },
        },
        methods: {
            handleClickMask() {
                this.handleClickCancel();
            },
        
            handleClickCancel() {
                this.$emit('hideImgPopper');
            }
        }
    }
</script>
 
<style>
    
    .img-box{
        display: none;
    }
    .pic-show{
        display: block;
            z-index: 999;
            /* display: flex; */
            /* justify-content: center; */
            position: absolute;
            top: 10%;
                left: 7.5%;
        uni-image {
            width: 320px;
            height: 240px;
            display: inline-block;
            overflow: hidden;
            position: relative;
             z-index: 999;
               border-radius: 10rpx;
        }
    }
    .tui-actionsheet {
        width: 100%;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        visibility: hidden;
        transform: translate3d(0, 100%, 0);
        transform-origin: center;
        /* transition: all 0.3s ease-in-out; */
        background: #eaeaec;
        min-height: 100rpx;
    }
 
    
 
 
    .tui-actionsheet-mask {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 99999;
        transition: all 0.3s ease-in-out;
        opacity: 0;
        visibility: hidden;
        uni-image {
            width: 320px;
            height: 240px;
            display: inline-block;
            overflow: hidden;
            position: absolute;
            top: 50%;
            left: 7%;
        }
    }
 
    .tui-mask-show {
        opacity: 1;
        visibility: visible;
    }
</style>