This commit is contained in:
liuye
2023-09-27 16:43:17 +08:00
parent 4a50280483
commit f7a003fdc5

View File

@@ -33,7 +33,7 @@
<div class="btn-wrapper">
<div class="btn" hover-class="text-hover" :class="[!form.content ? 'active' : '']" @click="submit">发布服务</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">
<h2>请选择</h2>
<scroll-view class="popup-list" scroll-y>
@@ -46,7 +46,9 @@
</div>
</scroll-view>
</div>
</u-popup>
</u-popup> -->
<u-select v-model="isShow" :list="topicList" value-name="id"
label-name="title" @confirm="confirm"></u-select>
</div>
</template>
<script>
@@ -74,6 +76,10 @@
},
methods: {
confirm(val) {
this.form.themeId = val[0].value;
this.form.themeTitle = val[0].label;
},
submit () {
if (!this.form.content) {
return this.$toast(`内容不能为空`)