6/16,同步

This commit is contained in:
Zy
2026-06-16 14:11:17 +08:00
parent 3a91b14fce
commit 7c5497d229
13 changed files with 230 additions and 188 deletions

View File

@@ -80,6 +80,7 @@
v-for="(it, ind) in ite.files"
:key="ind"
:src="it"
@tap="handlePrivew(ite.files, index)"
mode="scaleToFill"
></image>
</view>
@@ -94,7 +95,7 @@
</view>
</template>
<script setup lang="ts">
<script setup>
import { ref } from 'vue'
import { getInspectionMain } from '@/api/insepction.js'
import { onLoad } from '@dcloudio/uni-app'
@@ -157,6 +158,15 @@ onLoad(options => {
taskid.value = options.id
init()
})
/**预览图片*/
function handlePrivew(lists, index) {
if (lists.length <= 0) return
uni.previewImage({
urls: lists,
count: index
})
}
</script>
<style lang="scss" scoped>