index.vue 782 Bytes
<template>
  <div>
    <NafmHeader navClass="nafmii-head-bg3" :title="$t('title.collect')">
      <template #right>
        <div @click="handleClear">{{$t('button.clear')}}</div>
      </template>
    </NafmHeader>
  </div>
</template>
<script>
export default {
  name: 'Collect',
  data() {
    return {

    }
  },
  methods: {
    // 清空收藏
    handleClear() {
      Dialog.confirm({
        title: this.$t('toast.tip'),
        message: this.$t('toast.tipMessage'),
        cancelButtonText: this.$t('button.clickWrong'),
        cancelButtonColor: '#206CB3',
        confirmButtonText: this.$t('button.okUnbinding'),
        confirmButtonColor: '#999999'
      })
        .then(() => {
          // todo
        })
        .catch(() => {
        });
    }
  }
}
</script>