添加预览简历图片功能
This commit is contained in:
@@ -206,6 +206,14 @@
|
|||||||
{{detailObj.politicalAffiliation}}
|
{{detailObj.politicalAffiliation}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="flexBox detail-item1" v-if="detailObj.resumePicPath">
|
||||||
|
<view class="label">简历图片:</view>
|
||||||
|
<view class="value">
|
||||||
|
<view class="previewResume" @click="previewResume(detailObj.resumePicPath)">
|
||||||
|
查看简历图片
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn-box">
|
<view class="btn-box">
|
||||||
<button type="default" @click="closeResumeDetailPopup">关闭</button>
|
<button type="default" @click="closeResumeDetailPopup">关闭</button>
|
||||||
@@ -302,6 +310,7 @@
|
|||||||
$api
|
$api
|
||||||
} = inject("globalFunction");
|
} = inject("globalFunction");
|
||||||
const imgBaseUrl = config.imgBaseUrl;
|
const imgBaseUrl = config.imgBaseUrl;
|
||||||
|
const trainVideoImgUrl = config.trainVideoImgUrl;
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const interviewPopup = ref(null);
|
const interviewPopup = ref(null);
|
||||||
@@ -311,7 +320,15 @@
|
|||||||
const jobFairId = ref("");
|
const jobFairId = ref("");
|
||||||
const userInfo = ref({});
|
const userInfo = ref({});
|
||||||
const isExpanded = ref(false);
|
const isExpanded = ref(false);
|
||||||
|
//预览简历照片
|
||||||
|
const previewResume = (url) => {
|
||||||
|
if(url){
|
||||||
|
uni.previewImage({
|
||||||
|
urls: [trainVideoImgUrl+url],
|
||||||
|
current: 0
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
const publicUrl = config.LCBaseUrl;
|
const publicUrl = config.LCBaseUrl;
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
jobFairId.value = option.jobFairId;
|
jobFairId.value = option.jobFairId;
|
||||||
@@ -940,6 +957,9 @@
|
|||||||
height: 80%;
|
height: 80%;
|
||||||
.flexBox{
|
.flexBox{
|
||||||
display: flex;
|
display: flex;
|
||||||
|
.previewResume{
|
||||||
|
color:#0088ff
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.detail-item1 {
|
.detail-item1 {
|
||||||
// display: flex;
|
// display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user