新增记录

This commit is contained in:
花有清香月有阴
2022-01-10 16:59:50 +08:00
parent 79b2de0cdd
commit 3a336bc2e0
4 changed files with 274 additions and 8 deletions

View File

@@ -83,9 +83,9 @@
<div class="leftInput" @click="showBottomInput = true">我来说两句...</div>
</div>
<u-popup v-model="showBottomInput" height="auto" mode="bottom">
<u-popup v-model="showBottomInput" height="auto" mode="bottom" @close="close">
<div class="comments-wrapper">
<u-input v-model="content" placeholder="写下你的想法" type="textarea" auto-height height="180" maxlength="140"> </u-input>
<u-input v-model="content" placeholder="写下你的想法" type="textarea" auto-height :clearable="false" height="180" maxlength="140"> </u-input>
<div class="words">字数{{ content.length }}/140</div>
<div class="bottombtn">
@@ -275,6 +275,10 @@ export default {
})
},
close() {
this.content = ''
},
previewImage(images, img) {
uni.previewImage({
urls: images.map((v) => v.url),