fix: rating

This commit is contained in:
zzc
2026-06-10 00:03:29 +08:00
parent 0e0d9604e1
commit a98f82c113
2 changed files with 18 additions and 6 deletions

View File

@@ -12,8 +12,9 @@
<view class="sparkle s-2"></view>
<view class="sparkle s-3"></view>
</view>
<text class="title">{{ type === 'comment' ? '评论成功' : '评分成功' }}</text>
<text class="title">{{ type === 'comment' ? '评论成功' : type === 'release' ? '已提交审核' : '评分成功' }}</text>
<text class="subtitle" v-if="type === 'comment'">{{ actionData?.label || '你的锐评已发布' }}</text>
<text class="subtitle" v-else-if="type === 'release'">{{ actionData?.label || '请耐心等待管理员审核' }}</text>
<text class="subtitle" v-else>你已将TA评价为{{ actionData?.label || '...' }}</text>
</view>
</view>

View File

@@ -153,6 +153,9 @@
<view class="footer-bar">
<button class="submit-btn" @tap="handleSubmit">发布夯拉评分</button>
</view>
<!-- 成功特效弹窗 -->
<SuccessPopup ref="successPopupRef" />
</view>
</template>
@@ -166,8 +169,10 @@ import {
uploadImage,
chooseAndUploadImage,
} from "@/utils/common.js";
import SuccessPopup from "@/components/SuccessPopup/SuccessPopup.vue";
import { FILE_BASE_URL } from "@/utils/constants";
const successPopupRef = ref(null);
const statusBarHeight = ref(getStatusBarHeight() || 0);
const categories = ref([]);
@@ -334,10 +339,13 @@ const handleSubmit = async () => {
});
uni.hideLoading();
uni.showToast({
title: "已提交审核",
icon: "success",
});
if (successPopupRef.value) {
successPopupRef.value.show({
emoji: '🎉',
label: '请耐心等待管理员审核'
}, 'release');
}
// 初始化表单内容
Object.assign(formData, {
@@ -353,7 +361,10 @@ const handleSubmit = async () => {
{ name: "", coverUrl: "" },
];
smartNavigateBack({ delay: 1500 });
// 延迟跳转,等待弹窗展示完成
setTimeout(() => {
smartNavigateBack();
}, 2000);
} catch (error) {
uni.hideLoading();
uni.showToast({