payAccount.vue
2.01 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
<template>
<div class="pay-account">
<div v-if="validStatus === 1">
<div class="account">
<p class="account-tip">支付宝账号</p>
<p class="account-name">{{alipayAccount?alipayAccount:nickName}}</p>
</div>
<p class="tip"><i class="cubeic-warn"></i><span>已绑定的支付宝账号暂无法提供系统换绑和解除,如需要帮助可致电<a class="phone" href="tel:400-889-9646"> 400-889-9646 </a>联系电话客服</span></p>
</div>
<div v-else>
<div class="bind-button" @click="bindAccount">设置支付宝账号</div>
<p class="tip"><i class="cubeic-warn"></i><span>请先设置支付宝账号作为货款和补偿款的收款账户</span></p>
</div>
</div>
</template>
<script>
import { createNamespacedHelpers } from 'vuex';
const {mapState, mapActions} = createNamespacedHelpers('home/bindAccount');
export default {
name: 'pay-account',
props: {
},
activated() {
this.fetchUserAliPayAccount()
},
computed: {
...mapState(['alipayAccount','certName', 'validStatus','nickName'])
},
methods: {
...mapActions(['fetchUserAliPayAccount']),
bindAccount() {
this.$router.push({ name: 'bindAccount' });
}
},
};
</script>
<style lang="scss" scoped>
.pay-account {
padding: 40px 0;
.tip {
font-size: 24px;
display: flex;
align-items: center;
}
.cubeic-warn {
font-size: 32px;
margin-right: 16px;
}
}
.phone {
text-decoration: underline;
color: #65AB85;
}
.bind-button {
width: 100%;
text-align: center;
height: 88px;
line-height: 88px;
background-color: #002B47;
color: #fff;
border-radius: 88px;
font-size: 34px;
margin-bottom: 20px;
}
.account {
display: flex;
height: 120px;
line-height: 120px;
border-bottom: solid 1px #eee;
margin-bottom: 20px;
font-size: 28px;
.account-tip {
flex: 1
}
.account-name {
color: #000;
font-weight: bold;
}
}
</style>