bind.vue 1.26 KB
<template>
  <div v-if="validStatus !== 1" 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>