|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <view>
|
|
|
|
|
|
+ <view class="ss-p-b-30">
|
|
<view class="mar p-tb ss-m-x-30">
|
|
<view class="mar p-tb ss-m-x-30">
|
|
<view class="f-horizon">
|
|
<view class="f-horizon">
|
|
<image class="r-avatar" style="width: 80px; height: 80px;" :src="info.logoUrl || 'https://minio.citupro.com/dev/menduner/company-avatar.png'"></image>
|
|
<image class="r-avatar" style="width: 80px; height: 80px;" :src="info.logoUrl || 'https://minio.citupro.com/dev/menduner/company-avatar.png'"></image>
|
|
@@ -87,7 +87,8 @@
|
|
<view class="ss-m-t-20" v-if="info?.albumList">
|
|
<view class="ss-m-t-20" v-if="info?.albumList">
|
|
<swiper class="swiper-box" :indicator-dots="true" indicator-active-color="#fff">
|
|
<swiper class="swiper-box" :indicator-dots="true" indicator-active-color="#fff">
|
|
<swiper-item v-for="(item ,index) in info?.albumList" :key="index" style="overflow-x:hidden;overflow-y: auto;">
|
|
<swiper-item v-for="(item ,index) in info?.albumList" :key="index" style="overflow-x:hidden;overflow-y: auto;">
|
|
- <image class="ac-imgs" :src="item" @click="previewImage(index)"></image>
|
|
|
|
|
|
+ <image v-if="checkIsImage(item)" class="ac-imgs" :src="item" @click="previewImage(index)"></image>
|
|
|
|
+ <video v-else :id="'albumListVideo'+index" class="ac-imgs" :src="item" @error="videoErrorCallback" controls></video>
|
|
</swiper-item>
|
|
</swiper-item>
|
|
</swiper>
|
|
</swiper>
|
|
</view>
|
|
</view>
|
|
@@ -119,6 +120,7 @@ import { timesTampChange } from '@/utils/date'
|
|
import { getJobAdvertisedSearch } from '@/api/position'
|
|
import { getJobAdvertisedSearch } from '@/api/position'
|
|
import { getAccessToken } from '@/utils/request'
|
|
import { getAccessToken } from '@/utils/request'
|
|
import PositionList from '@/components/PositionList'
|
|
import PositionList from '@/components/PositionList'
|
|
|
|
+import { checkIsImage } from '@/utils'
|
|
|
|
|
|
const current = ref(0)
|
|
const current = ref(0)
|
|
const items = ['企业介绍', '招聘职位']
|
|
const items = ['企业介绍', '招聘职位']
|
|
@@ -227,6 +229,12 @@ const changeControl = (e) =>{
|
|
if (current.value === 0) getData()
|
|
if (current.value === 0) getData()
|
|
else getPositionList()
|
|
else getPositionList()
|
|
}
|
|
}
|
|
|
|
+const videoErrorCallback = (e) =>{
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: e?.target?.errMsg || '播放错误',
|
|
|
|
+ icon: 'none'
|
|
|
|
+ })
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|