fix
13404089107
2025-01-08 1c2faed86063eeebd63323e85237411716c8be86
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
<template>
    <el-dialog :visible.sync="dialogVisible" :show-close="false" width="50%" top="51px">
        <div class="content">
            <div class="title">下单须知</div>
            <div class="rich-text" v-html="content">
               
            </div>
            <div class="btns">
                <el-button type="primary" @click="dialogVisible = false" >确认</el-button>
            </div>
        </div>
    </el-dialog>
</template>
 
<script>
export default {
    props: ['show'],
    data() {
        return {
            dialogVisible: this.show,
            form: {
                name: '',
                region: '',
                type: '',
                email: ''
            },
            content:'',
            rules: {
                email: [
                    { required: true, message: '请选择活动区域', trigger: 'change' }
                ],
            }
        };
    },
    created() {
        console.log(this.$store.state.userInfo, '111');
    },
    watch: {
        show(val) {
 
            this.dialogVisible = val
        },
        dialogVisible(val) {
            this.$emit('update:show', val);
        }
    }
};
</script>
 
<style lang="less" scoped>
.content {
    .title {
        padding: 30px 0;
        text-align: center;
        font-size: 18px;
        font-weight: bold;
        color: #3B3F56;
        line-height: 27px;
    }
 
    .btns {
        display: flex;
        justify-content: center;
        margin-top: 32px;
        padding-bottom: 33px;
 
        .el-button {
            width: 311px;
            height: 50px;
            font-size: 20px;
 
        }
 
        .el-button--primary {
            background-color: #014099;
            border-color: #014099;
        }
    }
}
 
.rich-text {
    max-height: 590px;
    min-height: 590px;
    overflow-y: auto;
    padding: 0 30px;
}
 
/deep/ .el-dialog {
    border-radius: 8px;
 
    .el-dialog__header {
        display: none !important;
    }
 
    .el-dialog__body {
        padding: 0 !important;
 
    }
}
</style>