图片预览
This commit is contained in:
		@@ -45,7 +45,7 @@
 | 
				
			|||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          <div class="imgs">
 | 
					          <div class="imgs">
 | 
				
			||||||
            <img :src="e.url" alt="" v-for="(e, i) in item.files" :key="i" />
 | 
					            <img :src="e.url" alt="" v-for="(e, i) in item.files" :key="i" @click.stop="previewImage(item.files, e.url)" />
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          <span class="types" :style="{ background: item.type == 0 ? '#FF65B8' : item.type == 1 ? '#FF883C' : '#1AAAFF' }">
 | 
					          <span class="types" :style="{ background: item.type == 0 ? '#FF65B8' : item.type == 1 ? '#FF883C' : '#1AAAFF' }">
 | 
				
			||||||
@@ -147,6 +147,13 @@ export default {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    previewImage(images, img) {
 | 
				
			||||||
 | 
					      uni.previewImage({
 | 
				
			||||||
 | 
					        urls: images.map((v) => v.url),
 | 
				
			||||||
 | 
					        current: img,
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  onReachBottom() {
 | 
					  onReachBottom() {
 | 
				
			||||||
    this.current = this.current + 1
 | 
					    this.current = this.current + 1
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -80,7 +80,7 @@
 | 
				
			|||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <div class="imgs">
 | 
					            <div class="imgs">
 | 
				
			||||||
              <img :src="e.url" alt="" v-for="(e, i) in item.files" :key="i" />
 | 
					              <img :src="e.url" alt="" v-for="(e, i) in item.files" :key="i" @click.stop="previewImage(item.files, e.url)" />
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <span class="types" :style="{ background: item.type == 0 ? '#FF65B8' : item.type == 1 ? '#FF883C' : '#1AAAFF' }">
 | 
					            <span class="types" :style="{ background: item.type == 0 ? '#FF65B8' : item.type == 1 ? '#FF883C' : '#1AAAFF' }">
 | 
				
			||||||
@@ -297,6 +297,13 @@ export default {
 | 
				
			|||||||
        this.getList()
 | 
					        this.getList()
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    previewImage(images, img) {
 | 
				
			||||||
 | 
					      uni.previewImage({
 | 
				
			||||||
 | 
					        urls: images.map((v) => v.url),
 | 
				
			||||||
 | 
					        current: img,
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  onReachBottom() {
 | 
					  onReachBottom() {
 | 
				
			||||||
    this.current = this.current + 1
 | 
					    this.current = this.current + 1
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -45,7 +45,7 @@
 | 
				
			|||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          <div class="imgs">
 | 
					          <div class="imgs">
 | 
				
			||||||
            <img :src="e.url" alt="" v-for="(e, i) in item.files" :key="i" />
 | 
					            <img :src="e.url" alt="" v-for="(e, i) in item.files" :key="i" @click.stop="previewImage(item.files, e.url)" />
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          <span class="types" :style="{ background: item.type == 0 ? '#FF65B8' : item.type == 1 ? '#FF883C' : '#1AAAFF' }">
 | 
					          <span class="types" :style="{ background: item.type == 0 ? '#FF65B8' : item.type == 1 ? '#FF883C' : '#1AAAFF' }">
 | 
				
			||||||
@@ -147,6 +147,13 @@ export default {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    previewImage(images, img) {
 | 
				
			||||||
 | 
					      uni.previewImage({
 | 
				
			||||||
 | 
					        urls: images.map((v) => v.url),
 | 
				
			||||||
 | 
					        current: img,
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  onReachBottom() {
 | 
					  onReachBottom() {
 | 
				
			||||||
    this.current = this.current + 1
 | 
					    this.current = this.current + 1
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -45,7 +45,7 @@
 | 
				
			|||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          <div class="imgs">
 | 
					          <div class="imgs">
 | 
				
			||||||
            <img :src="e.url" alt="" v-for="(e, i) in item.files" :key="i" />
 | 
					            <img :src="e.url" alt="" v-for="(e, i) in item.files" :key="i" @click.stop="previewImage(item.files, e.url)" />
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          <span class="types" :style="{ background: item.type == 0 ? '#FF65B8' : item.type == 1 ? '#FF883C' : '#1AAAFF' }">
 | 
					          <span class="types" :style="{ background: item.type == 0 ? '#FF65B8' : item.type == 1 ? '#FF883C' : '#1AAAFF' }">
 | 
				
			||||||
@@ -147,6 +147,13 @@ export default {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    previewImage(images, img) {
 | 
				
			||||||
 | 
					      uni.previewImage({
 | 
				
			||||||
 | 
					        urls: images.map((v) => v.url),
 | 
				
			||||||
 | 
					        current: img,
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  onReachBottom() {
 | 
					  onReachBottom() {
 | 
				
			||||||
    this.current = this.current + 1
 | 
					    this.current = this.current + 1
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -45,7 +45,7 @@
 | 
				
			|||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          <div class="imgs">
 | 
					          <div class="imgs">
 | 
				
			||||||
            <img :src="e.url" alt="" v-for="(e, i) in item.files" :key="i" />
 | 
					            <img :src="e.url" alt="" v-for="(e, i) in item.files" :key="i" @click.stop="previewImage(item.files, e.url)" />
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          <span class="types" :style="{ background: item.type == 0 ? '#FF65B8' : item.type == 1 ? '#FF883C' : '#1AAAFF' }">
 | 
					          <span class="types" :style="{ background: item.type == 0 ? '#FF65B8' : item.type == 1 ? '#FF883C' : '#1AAAFF' }">
 | 
				
			||||||
@@ -147,6 +147,13 @@ export default {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    previewImage(images, img) {
 | 
				
			||||||
 | 
					      uni.previewImage({
 | 
				
			||||||
 | 
					        urls: images.map((v) => v.url),
 | 
				
			||||||
 | 
					        current: img,
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  onReachBottom() {
 | 
					  onReachBottom() {
 | 
				
			||||||
    this.current = this.current + 1
 | 
					    this.current = this.current + 1
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -32,7 +32,7 @@
 | 
				
			|||||||
            <div class="areaNmae" v-if="item.areaName || item.address">{{ item.areaName }}{{ item.address }}</div>
 | 
					            <div class="areaNmae" v-if="item.areaName || item.address">{{ item.areaName }}{{ item.address }}</div>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          <img :src="item.url[0].url" alt="" />
 | 
					          <img :src="item.url[0].url" alt="" @click.stop="previewImage(item.url, item.url[0].url)" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          <div class="hints" :style="{ background: item.status == 0 ? '#000000' : item.status == 1 ? '#42D784' : '#E4E4E4' }">{{ $dict.getLabel('villageActivityStatus', item.status) }}</div>
 | 
					          <div class="hints" :style="{ background: item.status == 0 ? '#000000' : item.status == 1 ? '#42D784' : '#E4E4E4' }">{{ $dict.getLabel('villageActivityStatus', item.status) }}</div>
 | 
				
			||||||
        </template>
 | 
					        </template>
 | 
				
			||||||
@@ -128,6 +128,13 @@ export default {
 | 
				
			|||||||
    toDetail(item) {
 | 
					    toDetail(item) {
 | 
				
			||||||
      uni.navigateTo({ url: `./Detail?id=${item.id}&createUserId=${item.createUserId}` })
 | 
					      uni.navigateTo({ url: `./Detail?id=${item.id}&createUserId=${item.createUserId}` })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    previewImage(images, img) {
 | 
				
			||||||
 | 
					      uni.previewImage({
 | 
				
			||||||
 | 
					        urls: images.map((v) => v.url),
 | 
				
			||||||
 | 
					        current: img,
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  onReachBottom() {
 | 
					  onReachBottom() {
 | 
				
			||||||
    this.current = this.current + 1
 | 
					    this.current = this.current + 1
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@
 | 
				
			|||||||
  <div class="page">
 | 
					  <div class="page">
 | 
				
			||||||
    <div class="header-content">
 | 
					    <div class="header-content">
 | 
				
			||||||
      <div class="header-top">
 | 
					      <div class="header-top">
 | 
				
			||||||
        <img :src="detail.url && detail.url[0].url" alt="" />
 | 
					        <img :src="detail.url && detail.url[0].url" alt="" @click.stop="previewImage(detail.url, detail.url[0].url)" />
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      <div class="header-middle">
 | 
					      <div class="header-middle">
 | 
				
			||||||
@@ -70,7 +70,7 @@
 | 
				
			|||||||
              </div>
 | 
					              </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
              <div class="card-img">
 | 
					              <div class="card-img">
 | 
				
			||||||
                <img :src="e.url" v-for="(e, i) in imgList[index]" :key="i" alt="" @click.stop="previewImage(info.images, item.url)" />
 | 
					                <img :src="e.url" v-for="(e, i) in imgList[index]" :key="i" alt="" @click.stop="previewImage(imgList[index], e.url)" />
 | 
				
			||||||
              </div>
 | 
					              </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
              <!-- <div class="card-icon">
 | 
					              <!-- <div class="card-icon">
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user