collectionTestDialog.vue
1.35 KB
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
<template>
<GLDialog title="收款测试" mode="mid" okText="关闭" :visible.sync="isShowTestDialog" :close-on-click-modal="false" :close-on-press-escape="false" :before-close="handleDialogClose" :hasFooter="false">
<div class="dialog-look">
<div class="qrcode-box" v-for="(item, index) in dialogData" :key="index">
<div class="qrcode-tiltle">{{ item.title }}</div>
<div class="qrcode-tips">请扫码完成支付</div>
<img class="qrcode-img" :src="item.url" alt="" />
</div>
</div>
</GLDialog>
</template>
<script>
export default {
name: 'collection-test-dialog',
props: {
dialogData: {
type: Array,
default: () => []
},
isShowTestDialog: {
type: Boolean,
default: false
}
},
data() {
return {}
},
methods: {
handleDialogClose() {
this.$emit('handleDialogClose')
}
}
}
</script>
<style lang="scss" scoped>
.dialog-look {
padding: 24px 40px 48px 40px;
display: flex;
align-items: center;
justify-content: center;
.qrcode-box {
display: flex;
flex-flow: column;
align-items: center;
margin: 0 20px;
.qrcode-tiltle {
font-size: 16px;
color: #333;
}
.qrcode-tips {
font-size: 14px;
color: #666;
margin: 8px;
}
.qrcode-img {
width: 118px;
height: 118px;
}
}
}
</style>