bind.vue
1.25 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
<template>
<div v-if="validStatus === 0" class="">
<div @click="goBind" class="bind-alipay">绑定支付宝</div>
<p class="bind-tip">请先设置支付宝账号作为货款和补偿款的收款账户,
绑定完成在我的收入中展示支付宝绑定账户</p>
</div>
</template>
<script>
import { createNamespacedHelpers } from 'vuex';
const {mapState, mapActions} = createNamespacedHelpers('home/bindAccount');
export default {
name: 'bind',
props: {
data: {
type: Object,
default: {}
}
},
data() {
return {
};
},
computed: {
...mapState(['validStatus'])
},
activated() {
this.fetchUserAliPayAccount()
},
methods: {
...mapActions(['fetchUserAliPayAccount']),
goBind() {
this.$router.push({name:this.data.page})
}
}
};
</script>
<style lang="scss" scoped>
.bind-alipay {
width: 100%;
text-align: center;
height: 88px;
line-height: 88px;
background-color: #fff;
color: #D0021B;
border-radius: 88px;
font-size: 32px;
margin-bottom: 20px;
margin-top: 60px;
border: solid 1px #eee;
}
.bind-tip {
margin: 0 40px;
text-align: center;
font-size: 24px;
color: #999;
margin-bottom: 20px;
}
</style>