@@ -50,12 +50,14 @@
<van-field
v-model="customerName"
label="联系人"
+ required
maxlength="50"
placeholder="请输入联系人"
/>
v-model="customerMobile"
label="联系电话"
type="tel"
maxlength="20"
placeholder="请输入联系电话"
@@ -70,6 +72,7 @@
v-model="customerWechat"
label="微信"
placeholder="请输入微信"
@@ -117,6 +117,10 @@ function handleSubmitInfo() {
return;
}
+ if (!bookInfo.customerWechat) {
+ showToast("请输入微信号");
+ return;
+ }
submitLoading.value = true;
request("/website/tourism/myOrder/add", {
method: "post",
@@ -70,10 +70,10 @@ const handleServerError = async (code, msg) => {
if (code === "UNAUTHORIZED_LOGIN") {
const authStore = useAuthStore();
authStore.cleanToken();
- // await navigateTo({
- // path: '/login',
- // replace: true
- // })
+ await navigateTo({
+ path: "/login",
+ replace: true,
+ });
if (msg) {