bug
This commit is contained in:
		@@ -79,7 +79,7 @@ export default {
 | 
			
		||||
            return this.$u.toast('请输入标题')
 | 
			
		||||
          }
 | 
			
		||||
          if (!this.forms.publishUnitName) {
 | 
			
		||||
            return this.$u.toast('请输入正文')
 | 
			
		||||
            return this.$u.toast('请输入发布单位')
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
          const imgs = []
 | 
			
		||||
 
 | 
			
		||||
@@ -20,7 +20,7 @@
 | 
			
		||||
          </div>
 | 
			
		||||
 | 
			
		||||
          <div class="imgs">
 | 
			
		||||
            <img :src="items.url" alt="" v-for="(items, i) in item.images" :key="i" />
 | 
			
		||||
            <img :src="items.url" alt="" v-for="(items, i) in item.images" :key="i" v-if="i < 3"  @click.stop="previewImage(item.images, items.url)" />
 | 
			
		||||
          </div>
 | 
			
		||||
        </template>
 | 
			
		||||
 | 
			
		||||
@@ -142,6 +142,13 @@ export default {
 | 
			
		||||
      this.currentTabs = index
 | 
			
		||||
      this.getList()
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    previewImage (images, img) {
 | 
			
		||||
      uni.previewImage({
 | 
			
		||||
        urls: images.map(v => v.url),
 | 
			
		||||
        current: img
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  onReachBottom() {
 | 
			
		||||
    this.current = this.current + 1
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user