6/16,同步
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user