Merge branch 'master' of http://gitea.bugtc.com/zhouyanli/property-manager-side
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
v-for="(it, ind) in ite.files"
|
||||
:key="ind"
|
||||
:src="it"
|
||||
@tap="handlePrivew(ite.files, index)"
|
||||
@tap="handlePrivew(ite.files, ind)"
|
||||
mode="scaleToFill"
|
||||
></image>
|
||||
</view>
|
||||
|
||||
@@ -83,11 +83,11 @@
|
||||
<image
|
||||
class="img"
|
||||
mode="scaleToFill"
|
||||
v-for="(ite, ind) in ite.files"
|
||||
v-for="(it, ind) in ite.files"
|
||||
lazy-load
|
||||
:key="ind"
|
||||
:src="ite"
|
||||
@tap="previewImages(ite.files, index)"
|
||||
:src="it"
|
||||
@tap="previewImages(ite.files, ind)"
|
||||
></image>
|
||||
</view>
|
||||
</view>
|
||||
@@ -168,6 +168,7 @@ function init() {
|
||||
files: ite.imgUrl ? ite.imgUrl.split(',') : []
|
||||
}
|
||||
})
|
||||
console.log(points)
|
||||
return {
|
||||
routeName: item.routeName,
|
||||
routeId: item.routeId,
|
||||
@@ -260,6 +261,7 @@ const isComputed = computed(() => {
|
||||
* @param {Number} currentIndex - 当前点击的图片索引
|
||||
*/
|
||||
function previewImages(images, currentIndex) {
|
||||
console.log(images)
|
||||
uni.previewImage({
|
||||
urls: images,
|
||||
current: currentIndex
|
||||
@@ -371,6 +373,7 @@ function previewImages(images, currentIndex) {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
& > .img:not(:last-child) {
|
||||
margin-right: 20rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
width: 100%;
|
||||
.img {
|
||||
|
||||
Reference in New Issue
Block a user