| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | <!-- 招聘会 --><template>  <view style="padding-bottom: 30px; ">    <view v-if="items.length">      <uni-card v-for="val in items" :key="val.id">        <image class="ss-m-t-10" :src="val.headImg" mode="widthFix" style="width: 100%; height: auto; border-radius: 6px;"></image>        <view class="ss-m-t-20">活动时间:{{ timesTampChange(val.startTime, 'Y-M-D') }}至{{ timesTampChange(val.endTime, 'Y-M-D') }}</view>        <button class="ss-m-t-20 ss-m-b-10" style="background-color: #00897B; color: #fff;" type="primary" @tap="handleToJobFairEnterprises(val)">查看详情</button>      </uni-card>    </view>    <view v-else class="nodata-img-parent">      <image src="https://minio.citupro.com/dev/static/nodata.png" mode="widthFix" style="width: 100vw;height: 100vh;"></image>    </view>  </view></template><script setup>import { ref }  from 'vue'import { getJobFairList } from '@/api/jobFair'import { timesTampChange } from '@/utils/date'const items = ref([])// 获得招聘会列表const getList = async () => {  const res = await getJobFairList()  items.value = res?.data || []}getList()//招聘会const handleToJobFairEnterprises = (val) => {  if (!val?.id) {    uni.showToast({ title: '进去招聘会失败!', icon: 'none' })  }	let text = val.title ? val.title.replace(/<[^>]+>/g, ' ') : '' // 去掉所有 HTML 标签	text = text ? text.replace(/\s+/g, ' ').trim() : '' // 去掉多余的空格	uni.navigateTo({		url: `/pagesB/jobFair/enterprises?jobFairId=${val.id}&jobFairName=${text}`	})}</script><style lang="scss" scoped>.line {  border-top: 1px solid #ccc;}</style>
 |