接口对接

This commit is contained in:
yanran200730
2023-03-17 14:48:30 +08:00
parent cf996ed83d
commit d53e5f3b4b
3 changed files with 145 additions and 15 deletions

View File

@@ -19,7 +19,7 @@
</div>
<div class="topic">
<h3 v-if="!form.themeId" @click="isShow = true">#绑定话题</h3>
<div class="choosed" v-else>
<div class="choosed" v-else @click="isShow = true">
<span>#{{ form.themeTitle }}</span>
</div>
<p>绑定一个与您发布内容相关很高的话题会被更多人看到哦</p>
@@ -62,7 +62,7 @@
themeTitle: '',
source: 0,
content: '',
visibleRange: 0
visibleRange: 1
},
topicList: [],
isShow: false
@@ -79,6 +79,7 @@
return this.$toast(`内容不能为空`)
}
this.$loading()
this.$instance.post(`/app/appneighborhoodassistance/addOrUpdate`, {
...this.form
}).then(res => {
@@ -96,7 +97,7 @@
},
onSwitchChange (e) {
this.form.visibleRange = e.detail.value ? 1 : 0
this.form.visibleRange = e.detail.value ? 0 : 1
},
getTopicList () {