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
| <template>
| <u-modal v-model="show" :show-confirm-button="false" :mask-close-able="true" :show-cancel-button="false"
| confirm-text="" :show-title="false" @tap="show = false">
| <view class="slot-content text_align_center flex align-center justify-center align-center"
| style="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"
| style="width: 450rpx;"
| >
| {{ resmessage }}
| </view>
| </view>
| </view>
| </u-modal>
| </template>
|
| <script>
| export default {
| data() {
| return {
| show: false
| }
| },
| props: {
| rescode: {
| type: [String, Number],
| default: 0
| },
| resmessage: {
| type: [String, Object],
| default: ''
| },
| // show: {
| // type: Boolean,
| // default: false
| // }
| },
| methods: {
|
| }
| }
| </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;
| }
| </style>
|
|