bug
This commit is contained in:
@@ -79,7 +79,7 @@ export default {
|
|||||||
return this.$u.toast('请输入标题')
|
return this.$u.toast('请输入标题')
|
||||||
}
|
}
|
||||||
if (!this.forms.publishUnitName) {
|
if (!this.forms.publishUnitName) {
|
||||||
return this.$u.toast('请输入正文')
|
return this.$u.toast('请输入发布单位')
|
||||||
}
|
}
|
||||||
|
|
||||||
const imgs = []
|
const imgs = []
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="imgs">
|
<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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -142,6 +142,13 @@ export default {
|
|||||||
this.currentTabs = index
|
this.currentTabs = index
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user