diff --git a/root/detail/job.vue b/root/detail/job.vue index 76ce6f2..d1bd73c 100644 --- a/root/detail/job.vue +++ b/root/detail/job.vue @@ -1145,14 +1145,16 @@ export default { res.monthPay = res.minMonthlyPay / 100 + "-" + res.maxMonthlyPay / 100; res.updateTime = that.G.setDeadLine(res.updateTime, "jiaofu"); // console.log("res.images", res.images); + // 过滤掉视频格式的数据,只保留图片 + let imageList = res.images.filter((item) => !item.url || item.url.indexOf(".mp4") === -1); that.swiperArray = - res.images.length == 0 + imageList.length == 0 ? [] - : res.images.map((item, index) => { + : imageList.map((item, index) => { return { id: index + 1, image: item.url, - type: item.url.indexOf(".mp4") > -1 ? "video" : "image", + type: "image", }; }); if (res.logo) {