222
schangxiang@126.com
2024-12-11 b07eb132b5886122d4d154cd163485af611ebc6a
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
<template>
    <u-modal v-model="show" :show-confirm-button="false" :mask-close-able="!showBtn" :show-cancel-button="false"
        confirm-text="" :show-title="false" @tap="close">
        <view class="slot-content text_align_center flex align-center justify-center align-center"
            style="min-height: 500rpx;">
            <view class="margin_auto padding5_10">
                    <view :class="rescode == 200?'succeicon':'erroricon'" 
                    class="margin_auto margin_bottom25rpx" 
                    style="width: 250rpx;height: 200rpx;"
                    >
                    </view>
                <!-- </view> -->
                <view class="fontSize38rpx padding15 flex justify-center boxRwd" 
                style="width: 450rpx;">
                    {{ resmessage }}
                </view>
                <br>
                <!-- <button v-if="showBtn" class="width95 color_1989FA" @click="close(1)">关闭</button> -->
                <!-- <br> -->
                <!-- <button v-if="showBtn" class="width95 bg-f18202" @click="$emit('goYuKu')">越库</button> -->
            </view>
        </view>
    </u-modal>
</template>
 
<script>
    export default {
        data() {
            return {
                show: false
            }
        },
        props: {
            rescode: {
                type: [String, Number],
                default: 0
            },
            resmessage: {
                type: [String, Object],
                default: ''
            },
            showBtn: {
                type: [String, Number],
                default: 0
            },
            // show: {
            //     type: Boolean,
            //     default: false
            // }
        },
        methods: {
            close(param){
                if(this.showBtn==1 && !param){
                    return
                }
                this.show = false
            }
        }
    }
</script>
 
<style lang="scss">
    .modalcode {
        width: 94%;
        margin: auto;
        margin-top: 10px;
        border-radius: 6px;
        box-shadow: 0 0 4px #d4dde5;
    }
 
    .succeicon {
        background-image: url("../static/modal/success.png");
        background-size: cover;
    }
 
    .erroricon {
        background-image: url("../static/modal/error.png");
        background-size: cover;
    }
 
    .boxRwd{
        word-wrap: break-word;
    display: inline-block;
    }
</style>