This commit is contained in:
yanran200730
2022-05-30 11:19:42 +08:00
parent 7c54c806ad
commit 35461d3c9e

View File

@@ -69,11 +69,11 @@
<scroll-view scroll-y class="album-list__wrapper"> <scroll-view scroll-y class="album-list__wrapper">
<div <div
class="item" class="item"
@click="currIndex = index" @click="albumIndex = index"
v-for="(item, index) in albumList" v-for="(item, index) in albumList"
:key="index" :key="index"
:class="[currIndex === index ? 'active' : '']"> :class="[albumIndex === index ? 'active' : '']">
<image class="checked" v-if="currIndex === index" src="./images/xuanzhong.png" /> <image class="checked" v-if="albumIndex === index" src="./images/xuanzhong.png" />
<image class="icon" v-if="!item.lastPhotoUrl" src="./images/icon.png" /> <image class="icon" v-if="!item.lastPhotoUrl" src="./images/icon.png" />
<image class="img" v-if="item.lastPhotoUrl" :src="item.lastPhotoUrl" mode="aspectFill" /> <image class="img" v-if="item.lastPhotoUrl" :src="item.lastPhotoUrl" mode="aspectFill" />
<div class="item-bottom"> <div class="item-bottom">
@@ -134,6 +134,7 @@
waterSrc: '', waterSrc: '',
albumId: '1', albumId: '1',
albumName: '', albumName: '',
albumIndex: 0,
watermarkList: [], watermarkList: [],
isShowAlbum: false, isShowAlbum: false,
albumList: [], albumList: [],