feat: 问题反馈问题修复
This commit is contained in:
@@ -75,20 +75,12 @@ const appName = computed(() => getCurrentConfig().name);
|
|||||||
|
|
||||||
const handleCall = async () => {
|
const handleCall = async () => {
|
||||||
if (!contactPhone.value.trim()) {
|
if (!contactPhone.value.trim()) {
|
||||||
uni.showToast({
|
uni.showToast({ title: "请填写联系电话", icon: "none" });
|
||||||
title: "请填写联系电话",
|
|
||||||
icon: "none",
|
|
||||||
duration: 2000,
|
|
||||||
});
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!contactText.value.trim()) {
|
if (!contactText.value.trim()) {
|
||||||
uni.showToast({
|
uni.showToast({ title: "请填写意见内容", icon: "none" });
|
||||||
title: "请填写意见内容",
|
|
||||||
icon: "none",
|
|
||||||
duration: 2000,
|
|
||||||
});
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -110,13 +102,11 @@ const sendFeedback = async () => {
|
|||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "反馈意见成功",
|
title: "反馈意见成功",
|
||||||
icon: "success",
|
icon: "success",
|
||||||
duration: 2000,
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message || "反馈意见失败",
|
title: res.message || "反馈意见失败",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
duration: 2000,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -124,7 +114,6 @@ const sendFeedback = async () => {
|
|||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "网络错误,请重试",
|
title: "网络错误,请重试",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
duration: 2000,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="flex flex-col h-screen" @touchend="handleTouchEnd">
|
<view class="flex flex-col h-screen">
|
||||||
<!-- 顶部自定义导航栏 -->
|
<!-- 顶部自定义导航栏 -->
|
||||||
<view class="header" :style="{ paddingTop: statusBarHeight + 'px' }">
|
<view class="header" :style="{ paddingTop: statusBarHeight + 'px' }">
|
||||||
<ChatTopNavBar
|
<ChatTopNavBar
|
||||||
|
|||||||
Reference in New Issue
Block a user