Commit 295a98d9 authored by gengchunlei's avatar gengchunlei

居民端小程序 1、图片查看组件替换

parent 41715179
...@@ -460,10 +460,8 @@ ...@@ -460,10 +460,8 @@
<template #right-icon> <template #right-icon>
<doc-icon type='doc-down' /> <doc-icon type='doc-down' />
</template> </template>
<div class='list gap-x-2.5 gap-y-1 flex items-center flex-wrap'> <div>
<div v-for="(url, index) in info.informedConsentUrl" :key="index" > <image-preview :img-list='info.informedConsentUrl'></image-preview>
<img style='width: 1.47rem;height: 2.04rem' :src="url.trueDownloadUrl" />
</div>
</div> </div>
</van-collapse-item> </van-collapse-item>
...@@ -493,8 +491,10 @@ import { showNotify } from 'vant' ...@@ -493,8 +491,10 @@ import { showNotify } from 'vant'
import { secondScreenDetail } from '@/api/residentWX/screening.js' import { secondScreenDetail } from '@/api/residentWX/screening.js'
import { useStore } from '@/residentWX/store' import { useStore } from '@/residentWX/store'
import { fetchDataHandle } from '@/utils/common' import { fetchDataHandle } from '@/utils/common'
import ImagePreview from '@/residentWX/components/imagePreview/imagePreview'
export default { export default {
components: { ImagePreview },
inject:['showNav'], inject:['showNav'],
data() { data() {
return { return {
......
...@@ -322,10 +322,8 @@ ...@@ -322,10 +322,8 @@
<template #right-icon> <template #right-icon>
<doc-icon type="doc-down" /> <doc-icon type="doc-down" />
</template> </template>
<div class="list gap-x-2.5 gap-y-1 flex items-center flex-wrap"> <div>
<div v-for="(url, index) in info.visitImageList" :key="index" > <image-preview :img-list='info.visitImageList'></image-preview>
<img style="width: 1.47rem; height: 2.04rem" :src="url.trueDownloadUrl" />
</div>
</div> </div>
</van-collapse-item> </van-collapse-item>
<van-collapse-item key="13" title="下次随访日期" name="13"> <van-collapse-item key="13" title="下次随访日期" name="13">
...@@ -359,7 +357,9 @@ ...@@ -359,7 +357,9 @@
<script> <script>
import { fetchDataHandle } from '@/utils/common.js' import { fetchDataHandle } from '@/utils/common.js'
import { useStore } from '@/resident/store/index.js' import { useStore } from '@/resident/store/index.js'
import ImagePreview from '@/residentWX/components/imagePreview/imagePreview'
export default { export default {
components: { ImagePreview },
props: { props: {
visitInfo: { visitInfo: {
type: Object, type: Object,
......
...@@ -322,10 +322,8 @@ ...@@ -322,10 +322,8 @@
<template #right-icon> <template #right-icon>
<doc-icon type="doc-down" /> <doc-icon type="doc-down" />
</template> </template>
<div class="list gap-x-2.5 gap-y-1 flex items-center flex-wrap"> <div>
<div v-for="(url, index) in info.visitImageList" :key="index" > <image-preview :img-list='info.visitImageList'></image-preview>
<img style="width: 1.47rem; height: 2.04rem" :src="url.trueDownloadUrl" />
</div>
</div> </div>
</van-collapse-item> </van-collapse-item>
<van-collapse-item key="13" title="下次随访日期" name="13"> <van-collapse-item key="13" title="下次随访日期" name="13">
...@@ -359,7 +357,9 @@ ...@@ -359,7 +357,9 @@
<script> <script>
import { fetchDataHandle } from '@/utils/common.js' import { fetchDataHandle } from '@/utils/common.js'
import { useStore } from '@/resident/store/index.js' import { useStore } from '@/resident/store/index.js'
import ImagePreview from '@/residentWX/components/imagePreview/imagePreview'
export default { export default {
components: { ImagePreview },
props: { props: {
visitInfo: { visitInfo: {
type: Object, type: Object,
......
...@@ -322,10 +322,8 @@ ...@@ -322,10 +322,8 @@
<template #right-icon> <template #right-icon>
<doc-icon type="doc-down" /> <doc-icon type="doc-down" />
</template> </template>
<div class="list gap-x-2.5 gap-y-1 flex items-center flex-wrap"> <div>
<div v-for="(url, index) in info.visitImageList" :key="index" > <image-preview :img-list='info.visitImageList'></image-preview>
<img style="width: 1.47rem; height: 2.04rem" :src="url.trueDownloadUrl" />
</div>
</div> </div>
</van-collapse-item> </van-collapse-item>
<van-collapse-item key="13" title="下次随访日期" name="13"> <van-collapse-item key="13" title="下次随访日期" name="13">
...@@ -359,7 +357,9 @@ ...@@ -359,7 +357,9 @@
<script> <script>
import { fetchDataHandle } from '@/utils/common.js' import { fetchDataHandle } from '@/utils/common.js'
import { useStore } from '@/resident/store/index.js' import { useStore } from '@/resident/store/index.js'
import ImagePreview from '@/residentWX/components/imagePreview/imagePreview'
export default { export default {
components: { ImagePreview },
props: { props: {
visitInfo: { visitInfo: {
type: Object, type: Object,
......
...@@ -320,10 +320,8 @@ ...@@ -320,10 +320,8 @@
<template #right-icon> <template #right-icon>
<doc-icon type="doc-down" /> <doc-icon type="doc-down" />
</template> </template>
<div class="list gap-x-2.5 gap-y-1 flex items-center flex-wrap"> <div>
<div v-for="(url, index) in info.visitImageList" :key="index" > <image-preview :img-list='info.visitImageList'></image-preview>
<img style="width: 1.47rem; height: 2.04rem" :src="url.trueDownloadUrl" />
</div>
</div> </div>
</van-collapse-item> </van-collapse-item>
<van-collapse-item key="13" title="下次随访日期" name="13"> <van-collapse-item key="13" title="下次随访日期" name="13">
...@@ -357,7 +355,9 @@ ...@@ -357,7 +355,9 @@
<script> <script>
import { fetchDataHandle } from '@/utils/common.js' import { fetchDataHandle } from '@/utils/common.js'
import { useStore } from '@/resident/store/index.js' import { useStore } from '@/resident/store/index.js'
import ImagePreview from '@/residentWX/components/imagePreview/imagePreview'
export default { export default {
components: { ImagePreview },
props: { props: {
visitInfo: { visitInfo: {
type: Object, type: Object,
......
...@@ -322,10 +322,8 @@ ...@@ -322,10 +322,8 @@
<template #right-icon> <template #right-icon>
<doc-icon type="doc-down" /> <doc-icon type="doc-down" />
</template> </template>
<div class="list gap-x-2.5 gap-y-1 flex items-center flex-wrap"> <div>
<div v-for="(url, index) in info.visitImageList" :key="index" > <image-preview :img-list='info.visitImageList'></image-preview>
<img style="width: 1.47rem; height: 2.04rem" :src="url.trueDownloadUrl" />
</div>
</div> </div>
</van-collapse-item> </van-collapse-item>
<van-collapse-item key="13" title="下次随访日期" name="13"> <van-collapse-item key="13" title="下次随访日期" name="13">
...@@ -359,7 +357,9 @@ ...@@ -359,7 +357,9 @@
<script> <script>
import { fetchDataHandle } from '@/utils/common.js' import { fetchDataHandle } from '@/utils/common.js'
import { useStore } from '@/resident/store/index.js' import { useStore } from '@/resident/store/index.js'
import ImagePreview from '@/residentWX/components/imagePreview/imagePreview'
export default { export default {
components: { ImagePreview },
props: { props: {
visitInfo: { visitInfo: {
type: Object, type: Object,
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</span> </span>
</div> </div>
<van-collapse v-model="activeCollapse" ref="collapse" class="doc-collapse" @change="collapseChange"> <van-collapse :model-value="activeCollapse" ref="collapse" class="doc-collapse" @change="collapseChange">
<van-collapse-item key="1" title="居民信息" name="1"> <van-collapse-item key="1" title="居民信息" name="1">
<template #right-icon> <template #right-icon>
<doc-icon type="doc-down" /> <doc-icon type="doc-down" />
...@@ -360,10 +360,8 @@ ...@@ -360,10 +360,8 @@
<template #right-icon> <template #right-icon>
<doc-icon type="doc-down" /> <doc-icon type="doc-down" />
</template> </template>
<div class="list gap-x-2.5 gap-y-1 flex items-center flex-wrap"> <div>
<div v-for="(url, index) in info.visitImageList" :key="index" > <image-preview :img-list='info.visitImageList'></image-preview>
<img style="width: 1.47rem; height: 2.04rem" :src="url.trueDownloadUrl" />
</div>
</div> </div>
</van-collapse-item> </van-collapse-item>
<van-collapse-item key="13" title="下次随访日期" name="13"> <van-collapse-item key="13" title="下次随访日期" name="13">
...@@ -397,7 +395,9 @@ ...@@ -397,7 +395,9 @@
<script> <script>
import { fetchDataHandle } from '@/utils/common.js' import { fetchDataHandle } from '@/utils/common.js'
import { useStore } from '@/resident/store/index.js' import { useStore } from '@/resident/store/index.js'
import ImagePreview from '@/residentWX/components/imagePreview/imagePreview'
export default { export default {
components: { ImagePreview },
props: { props: {
visitInfo: { visitInfo: {
type: Object, type: Object,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment