jt360front/src/components/user/photoPreview.vue
yindongqi a2f0392fed fix: 将所有http资源替换为https以提升安全性
refactor: 添加新的直播视图路由路径
style: 格式化代码并优化缩进
2025-08-01 17:54:21 +08:00

56 lines
1.1 KiB
Vue

<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>