rating detail
This commit is contained in:
@@ -20,21 +20,21 @@
|
||||
v-model="formData.title"
|
||||
class="topic-input"
|
||||
maxlength="40"
|
||||
placeholder="输入一个有争议的话题..."
|
||||
placeholder="输入一个有趣的话题..."
|
||||
placeholder-class="topic-placeholder"
|
||||
auto-height
|
||||
/>
|
||||
<textarea
|
||||
<!-- <textarea
|
||||
v-model="formData.description"
|
||||
class="desc-input"
|
||||
maxlength="120"
|
||||
placeholder="简单介绍一下这个评分话题..."
|
||||
placeholder-class="desc-placeholder"
|
||||
auto-height
|
||||
/>
|
||||
/> -->
|
||||
</view>
|
||||
|
||||
<view class="cover-card" :class="{ 'has-cover': formData.coverUrl }" @tap="chooseCover">
|
||||
<!-- <view class="cover-card" :class="{ 'has-cover': formData.coverUrl }" @tap="chooseCover">
|
||||
<image
|
||||
v-if="formData.coverUrl"
|
||||
:src="FILE_BASE_URL + formData.coverUrl"
|
||||
@@ -45,7 +45,7 @@
|
||||
<view class="cover-icon"></view>
|
||||
<text class="cover-text">上传封面图</text>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view class="category-group">
|
||||
<view
|
||||
@@ -87,20 +87,20 @@
|
||||
v-model="item.name"
|
||||
class="participant-name"
|
||||
maxlength="12"
|
||||
placeholder="输入名字"
|
||||
placeholder="输入评价对象"
|
||||
placeholder-class="participant-placeholder"
|
||||
/>
|
||||
<input
|
||||
<!-- <input
|
||||
v-model="item.desc"
|
||||
class="participant-desc"
|
||||
maxlength="24"
|
||||
placeholder="一句话简介"
|
||||
placeholder-class="participant-placeholder"
|
||||
/>
|
||||
/> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="participant-actions">
|
||||
<text class="drag-icon">≡</text>
|
||||
<!-- <text class="drag-icon">≡</text> -->
|
||||
<text class="delete-icon" @tap="removeParticipant(item.id)">🗑</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -209,7 +209,7 @@ const tagInput = ref("");
|
||||
const participants = ref([
|
||||
{
|
||||
id: 1,
|
||||
name: "秦始皇",
|
||||
name: "",
|
||||
desc: "一句话简介",
|
||||
avatar: "",
|
||||
},
|
||||
@@ -298,10 +298,10 @@ const handleSubmit = async () => {
|
||||
uni.showToast({ title: '请输入话题', icon: 'none' });
|
||||
return;
|
||||
}
|
||||
if (!formData.coverUrl) {
|
||||
uni.showToast({ title: '请上传封面图', icon: 'none' });
|
||||
return;
|
||||
}
|
||||
// if (!formData.coverUrl) {
|
||||
// uni.showToast({ title: '请上传封面图', icon: 'none' });
|
||||
// return;
|
||||
// }
|
||||
if (!formData.categoryId) {
|
||||
uni.showToast({ title: '请选择话题分类', icon: 'none' });
|
||||
return;
|
||||
@@ -320,7 +320,6 @@ const handleSubmit = async () => {
|
||||
...formData,
|
||||
participants: participants.value,
|
||||
};
|
||||
console.log(11111, payload)
|
||||
await releaseTopic(payload);
|
||||
|
||||
uni.hideLoading();
|
||||
|
||||
Reference in New Issue
Block a user