fix: rating
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user