26525
This commit is contained in:
@@ -42,10 +42,10 @@
|
||||
<div class="items" v-for="(item, index) in list" :key="index">
|
||||
<img src="./img/22.png" alt="" @click="del(index)" />
|
||||
<div class="rightopts">
|
||||
<u-input v-model="item.content" placeholder="选项" maxlength="200" :clearable="false" />
|
||||
<u-input :height="40" type="textarea" v-model="item.content" placeholder="选项" maxlength="200" :clearable="false" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="items" @click="addOpts">
|
||||
<div class="items" style="padding-top: 20px" @click="addOpts">
|
||||
<img src="./img/11.png" alt="" />
|
||||
|
||||
<div class="addopts">添加选项</div>
|
||||
@@ -144,7 +144,6 @@ export default {
|
||||
if (!this.form.discussDeadline) {
|
||||
return this.$u.toast('请选择议事截止时间')
|
||||
}
|
||||
|
||||
if (this.form.type === '1') {
|
||||
if (!this.list.length) {
|
||||
return this.$u.toast('请添加选项')
|
||||
@@ -156,13 +155,13 @@ export default {
|
||||
list = this.list.map((v, index) => {
|
||||
return {
|
||||
content: v.content,
|
||||
item: this.keys[index],
|
||||
item: this.keys[index]
|
||||
}
|
||||
})
|
||||
|
||||
for (let i = 0; i < list.length; i++) {
|
||||
for (let i = 0; i < list.length; i ++) {
|
||||
if (!list[i].content) {
|
||||
return this.$u.toast(`请输入第${i + 1}个选项的内容`)
|
||||
return this.$u.toast(`请输入弟${i + 1}个选项的内容`)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -184,7 +183,7 @@ export default {
|
||||
if (res.code == 0) {
|
||||
uni.$emit('update')
|
||||
this.$u.toast('发布成功')
|
||||
this.flag = publish
|
||||
this.flag = true
|
||||
setTimeout(() => {
|
||||
uni.navigateBack({})
|
||||
}, 600)
|
||||
@@ -197,7 +196,7 @@ export default {
|
||||
// return this.$u.toast('请输入选项内容')
|
||||
// }
|
||||
this.list.push({
|
||||
content: '',
|
||||
content: ''
|
||||
})
|
||||
},
|
||||
|
||||
@@ -206,7 +205,6 @@ export default {
|
||||
},
|
||||
|
||||
areaSelect(e) {
|
||||
console.log(e)
|
||||
this.form.areaId = e
|
||||
},
|
||||
|
||||
@@ -316,11 +314,16 @@ export default {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0 40px 0 32px !important;
|
||||
padding: 20px 40px 0 !important;
|
||||
width: 100%;
|
||||
height: 120px;
|
||||
line-height: 120px;
|
||||
// height: 120px;
|
||||
// line-height: 120px;
|
||||
box-sizing: border-box;
|
||||
|
||||
::v-deep .u-input__textarea {
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
|
||||
Reference in New Issue
Block a user