tipsDialog.vue 3.25 KB
<!-- 财务分账测试 -->
<template>
  <!--   btn-ok-label="全部下载" -->
  <d2-dialog title="提示" :is-visible="verificationCodeVisible" class="verificationCode" width="750px"
    btn-ok-label="申请虚拟对公账户" @closeDialog="handleClose" @confirmDialog="handleConfirm">
    <!-- <div>55</div> -->
    <div class="box" v-for="(item, index) in accountValidMerchants" :key="index">
      <p class="channel">渠道: {{ item.paymentChannelName }}分账对象未开通虚拟对公账户,请继续前往申请开通:</p>
      <div class="info" v-if="item.shopMerchants.length">
        流量方: <span v-for="(child, childIndex) in item.shopMerchants" :key='childIndex'>{{ child.merchantName }}</span>
      </div>
      <div class="info" v-if="item.partners.length">
        服务商: <span v-for="(child, childIndex) in item.partners" :key='childIndex'>{{ child.merchantName }}</span>
      </div>
      <div class="info" v-if="item.platformMerchants.length">
        平台方: <span v-for="(child, childIndex) in item.platformMerchants" :key='childIndex'>{{ child.merchantName
        }}</span>
      </div>
    </div>
    <!-- <div class="box" v-for="(item, index) in accountValidMerchants" :key="index">
      <p class="channel">渠道: {{ item.paymentChannelName }}分账对象未开通虚拟对公账户,请继续前往申请开通:</p>
      <div class="info" v-if="item.shopMerchants.length">
        流量方: <span v-for="(child, childIndex) in item.shopMerchants" :key='childIndex'>{{ child.merchantName }}</span>
      </div>
      <div class="info" v-if="item.partners.length">
        服务商: <span v-for="(child, childIndex) in item.partners" :key='childIndex'>{{ child.merchantName }}</span>
      </div>
      <div class="info" v-if="item.platformMerchants.length">
        平台方: <span v-for="(child, childIndex) in item.platformMerchants" :key='childIndex'>{{ child.merchantName
        }}</span>
      </div>
    </div> -->

  </d2-dialog>
</template>

<script>
// import { sendSms, getAdminInfo } from '@api/merchant'
import { mapActions } from 'vuex'
export default {
  name: 'TipsDialog',
  props: {
    visible: {
      // 弹窗是否展示
      type: Boolean,
      default: false
    },
    accountValidMerchants: {
      type: Array,
      default: () => []
    }
  },
  computed: {
    verificationCodeVisible: {
      // return this.
      get() {
        return this.visible
      },
      set(val) {
        this.$emit('update:visible', false)
      }
    }
  },
  data() {
    return {

    }
  },
  mounted() {

  },
  methods: {
    ...mapActions({
      close: 'd2admin/page/close'
    }),
    handleClose() {
      // this.$emit('dialogClose')
      // this.$update
      this.verificationCodeVisible = false
    },
    // handleApply() {

    //   },
    // 跳转虚拟对公账号
    handleConfirm() {
      this.$router.push({ name: 'accountList_new' })
      this.close({ tagName: '/merchantDetail' })
    }
  }
}
</script>

<style scoped lang="scss">
.container {
  padding: 16px 44px;
  color: #333333;
  background: #f6f8fa;
}

.channel {
  color: #333333;
  font-size: 16px;
}

.info {
  color: #666666;
  font-size: 14px;
}
</style>