auth.vue 1.29 KB
<template>
  <div v-if="showPanel">
    <div v-if="showUnAuth">
      <div class="alert">
        <img class="icon" src="@/assets/images/common/icon-alert-i.png" alt="">
        <div class="txt">
          {{$t('customService.unauth.tips')}}
          <span class="pointer btn" @click="gotoLoginPage">{{$t('customService.unauth.login')}}</span> {{$t('customService.unauth.or')}}
          <span class="pointer btn" @click="gotoRegisterPage">{{$t('customService.unauth.register')}}</span>
        </div>

        <img v-if="model=='suggest'" class="pointer close" src="@/assets/images/common/icon-alert-close.png" alt="" @click="showSuggest = false">
      </div>
    </div>

    <div v-if="showProfileInfo">
      <div class="alert">
        <img class="icon" src="@/assets/images/common/icon-alert-i.png" alt="">
        <div class="txt">
          {{$t('customService.unauth.baseInfoTip')}}
          <span class="pointer btn" @click="gotoInformationPage">{{$t('customService.unauth.infoBtn')}}</span>
        </div>

        <!-- <img class="pointer close" src="@/assets/images/common/icon-alert-close.png" alt=""> -->
      </div>
    </div>
    <div class="empty-line" v-if="model!='suggest'"></div>
  </div>
</template>

<script src="./auth.js"></script>
<style lang="scss" scoped>
@import "./auth.scss";
</style>