<template>
  <div class="file">
    <back title="预览"></back>
    <img src="../../../static/img/review.jpg" width="95%" alt="" class="prephoto" />
    <!-- <img src="./4113220014.png" class="cardphoto" > -->
    <img :src="cardphotopath" class="cardphoto" />
    <input type="hidden" :value="loginInfo.member_passport" ref="getValue" />
    <input type="hidden" v-model="cardphotopath" id="" />
  </div>
</template>
<script>
import { mapState } from "vuex";
import Back from "../common/Back.vue";
export default {
  data() {
    return {
      cardphotopath: "",
    };
  },
  components: {
    Back,
  },

  mounted() {
    this.cardphotopath =
      "https://admins.jiangtang360.com/static/admin/cards/" +
      this.$refs.getValue.value +
      ".jpg" +
      "?ran=" +
      Math.random();
  },
  computed: {
    ...mapState(["loginInfo", "apitoken"]),
  },
};
</script>
<style>
.file {
  padding-top: 5rem;
  position: relative;
}
.prephoto {
  border-radius: 10px;
  border: 1px solid;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
}
.cardphoto {
  width: 24%;
  height: 47%;
  position: absolute;
  z-index: 10;
  bottom: 26%;
  left: 11.5%;
}
</style>
