fix: rating
This commit is contained in:
@@ -12,8 +12,9 @@
|
|||||||
<view class="sparkle s-2">✨</view>
|
<view class="sparkle s-2">✨</view>
|
||||||
<view class="sparkle s-3">✨</view>
|
<view class="sparkle s-3">✨</view>
|
||||||
</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-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>
|
<text class="subtitle" v-else>你已将TA评价为「{{ actionData?.label || '...' }}」</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -153,6 +153,9 @@
|
|||||||
<view class="footer-bar">
|
<view class="footer-bar">
|
||||||
<button class="submit-btn" @tap="handleSubmit">发布夯拉评分</button>
|
<button class="submit-btn" @tap="handleSubmit">发布夯拉评分</button>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- 成功特效弹窗 -->
|
||||||
|
<SuccessPopup ref="successPopupRef" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -166,8 +169,10 @@ import {
|
|||||||
uploadImage,
|
uploadImage,
|
||||||
chooseAndUploadImage,
|
chooseAndUploadImage,
|
||||||
} from "@/utils/common.js";
|
} from "@/utils/common.js";
|
||||||
|
import SuccessPopup from "@/components/SuccessPopup/SuccessPopup.vue";
|
||||||
import { FILE_BASE_URL } from "@/utils/constants";
|
import { FILE_BASE_URL } from "@/utils/constants";
|
||||||
|
|
||||||
|
const successPopupRef = ref(null);
|
||||||
const statusBarHeight = ref(getStatusBarHeight() || 0);
|
const statusBarHeight = ref(getStatusBarHeight() || 0);
|
||||||
|
|
||||||
const categories = ref([]);
|
const categories = ref([]);
|
||||||
@@ -334,10 +339,13 @@ const handleSubmit = async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.showToast({
|
|
||||||
title: "已提交审核",
|
if (successPopupRef.value) {
|
||||||
icon: "success",
|
successPopupRef.value.show({
|
||||||
});
|
emoji: '🎉',
|
||||||
|
label: '请耐心等待管理员审核'
|
||||||
|
}, 'release');
|
||||||
|
}
|
||||||
|
|
||||||
// 初始化表单内容
|
// 初始化表单内容
|
||||||
Object.assign(formData, {
|
Object.assign(formData, {
|
||||||
@@ -353,7 +361,10 @@ const handleSubmit = async () => {
|
|||||||
{ name: "", coverUrl: "" },
|
{ name: "", coverUrl: "" },
|
||||||
];
|
];
|
||||||
|
|
||||||
smartNavigateBack({ delay: 1500 });
|
// 延迟跳转,等待弹窗展示完成
|
||||||
|
setTimeout(() => {
|
||||||
|
smartNavigateBack();
|
||||||
|
}, 2000);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
Reference in New Issue
Block a user