| | |
| | | <div class="eventListItem" v-for="item in list"> |
| | | <img |
| | | class="eventListItemImg" |
| | | :src=" |
| | | item.photo_url |
| | | ? item.photo_url.substring(0, item.photo_url.lastIndexOf('.')) + |
| | | '_small' + |
| | | item.photo_url.substring(item.photo_url.lastIndexOf('.')) |
| | | : '' |
| | | " |
| | | :src="getSmallImg(item.photo_url)" |
| | | alt="" |
| | | /> |
| | | <div class="eventListItemPosition" :title="item.address" @click="positioning(item)"> |
| | |
| | | current: 1, |
| | | size: 8, |
| | | }) |
| | | |
| | | const getSmallImg = (url) => { |
| | | return url ? url.substring(0, url.lastIndexOf('.')) + '_small' + url.substring(url.lastIndexOf('.')) : '' |
| | | } |
| | | |
| | | const isMore = ref(false) |
| | | const leftArrowFun = () => { |
| | |
| | | } |
| | | getEventPage(params.value, pageParams).then(res => { |
| | | const resData = res.data.data |
| | | list.value = resData?.records || [] |
| | | list.value = (resData?.records || []) |
| | | total.value = resData.total |
| | | }) |
| | | } |
| | |
| | | |
| | | .leftArrow { |
| | | position: absolute; |
| | | left: 0; |
| | | left: -11px; |
| | | top: 50%; |
| | | transform: translateY(-50%); |
| | | cursor: pointer; |