<template>
  <view class="container"></view>
</template>

<script>
export default {
  data() {
    return {
      faceType: "",
    };
  },
  onLoad: function (options) {
    console.log(options);
    this.faceType = options.faceType || "";
    console.log("准备跳转了哦1");
    //faceAuth = 1  人脸活体检测成功
    // my.navigateTo({
    //   url: `/pages/BankModule/OpenAccount/OpenAccount?faceAuth=1`,
    // });
  },
  onShow() {
    console.log(this.faceType, "lalalallalala");
    if (this.faceType == "OPEN_ACCOUNT") {
      // 开户
      my.navigateTo({
        url: `/pages/BankModule/OpenAccount/OpenAccount?faceAuth=1`,
      });
    } else if (this.faceType == "CHANGE_CARD" || this.faceType == "ACTIVE_ACCOUNT") {
      // 换绑卡、不动户激活
      my.navigateTo({
        url: `/pages/BankModule/ChangeBankPay/ChangeBankPay?faceAuth=1&faceType=${this.faceType}`,
      });
    } else if (this.faceType == "CANCEL_ACCOUNT") {
      // 销户
      my.navigateTo({
        url: `/pages/BankModule/Recharge/Recharge?faceAuth=1`,
      });
    }
  },
  created: function () {
    // console.log(this.$echarts);
  },
  methods: {},
  mounted: function () {},
};
</script>

<style scoped>
</style>
