payAccount.vue 1.95 KB
<template>
  <div class="pay-account">
      <div v-if="validStatus === 1">
          <div class="account">
              <p class="account-tip">支付宝账号</p>
              <p class="account-name">{{alipayAccount}}</p>
          </div>
          <p class="tip"><i class="cubeic-warn"></i><span>已绑定的支付宝账号暂无法提供系统换绑和解除,如
需要帮助可致电<a class="phone" href="tel:400-8890-9646"> 400-8890-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'])
  },
  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;
    }
}

</style>