Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
aixianling
2023-10-09 10:56:25 +08:00

View File

@@ -33,7 +33,7 @@
<div class="btn-wrapper"> <div class="btn-wrapper">
<div class="btn" hover-class="text-hover" :class="[!form.content ? 'active' : '']" @click="submit">发布服务</div> <div class="btn" hover-class="text-hover" :class="[!form.content ? 'active' : '']" @click="submit">发布服务</div>
</div> </div>
<u-popup v-model="isShow" mode="bottom" hidden height="700rpx" border-radius="30"> <!-- <u-popup v-model="isShow" mode="bottom" hidden height="700rpx" border-radius="30">
<div class="popup"> <div class="popup">
<h2>请选择</h2> <h2>请选择</h2>
<scroll-view class="popup-list" scroll-y> <scroll-view class="popup-list" scroll-y>
@@ -46,7 +46,9 @@
</div> </div>
</scroll-view> </scroll-view>
</div> </div>
</u-popup> </u-popup> -->
<u-select v-model="isShow" :list="topicList" value-name="id"
label-name="title" @confirm="confirm"></u-select>
</div> </div>
</template> </template>
<script> <script>
@@ -74,10 +76,17 @@
}, },
methods: { methods: {
confirm(val) {
this.form.themeId = val[0].value;
this.form.themeTitle = val[0].label;
},
submit () { submit () {
if (!this.form.content) { if (!this.form.content) {
return this.$toast(`内容不能为空`) return this.$toast(`内容不能为空`)
} }
if (!this.form.themeId) {
return this.$toast(`请绑定话题`)
}
this.$loading() this.$loading()
this.$instance.post(`/app/appneighborhoodassistance/addOrUpdate`, { this.$instance.post(`/app/appneighborhoodassistance/addOrUpdate`, {