bindModel.vue
2.61 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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<template>
<div v-if="isShow" class="third-bind-wrapper">
<div class="bind-dialog">
<div class="dialog-title">请确认您的支付宝账号</div>
<div class="dialog-content">
<div class="input-block">
<p class="info-title">账号</p>
<p class="info-text">{{data.account}}</p>
</div>
<div class="input-block">
<p class="info-title">姓名</p>
<p class="info-text">{{data.name}}</p>
</div>
<div class="tip">为了保证您的安全,请再次确认您提供的支付宝账号的正确性!</div>
</div>
<div class="dialog-footer">
<div class="btn-cancel" @click="cancel">返回修改</div>
<div class="btn-confirm" @click="confirm">我已确认</div>
</div>
</div>
</div>
</template>
<script>
import { createNamespacedHelpers } from 'vuex';
const {mapState, mapActions} = createNamespacedHelpers('home/bindAccount');
export default {
name: 'my-dialog',
props: {
isShow: {
type: Boolean,
default: false
},
data: {
type: Object,
default: {}
}
},
data() {
return {
}
},
computed:{
},
methods: {
cancel() {
this.$emit('cancel-click')
},
confirm() {
this.$emit('confirm-click')
}
},
components: {
}
};
</script>
<style lang="scss" scoped>
.third-bind-wrapper {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.4);
z-index: 99;
display: flex;
justify-content: center;
align-items: center;
}
.bind-dialog {
position: relative;
width: 670px;
padding: 64px 48px 80px;
font-size: 28px;
box-sizing: border-box;
background-color: #fff;
}
.dialog-title {
font-size: 28px;
text-align: center;
}
.dialog-content {
padding: 60px 0;
}
.input-block {
margin-bottom: 40px;
.info-title {
font-size: 24px;
color: #999;
}
.info-text {
font-size: 32px;
margin-top: 5px;
}
}
.tip {
color: #D0021B;
font-size: 24px;
}
.dialog-footer {
position: absolute;
bottom: 0;
right: 0;
left: 0;
height: 100px;
border-top: solid 1px #eee;
font-size: 28px;
display: flex;
justify-content: center;
.btn-cancel {
flex: 1;
color: #999;
border-right: solid 1px #eee;
text-align: center;
line-height: 100px;
}
.btn-confirm {
flex: 1;
text-align: center;
line-height: 100px;
}
}
</style>