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