From 6e1a19576cdb79b122fc896046031c93a98e7ddf Mon Sep 17 00:00:00 2001
From: huliyong <2783385703@qq.com>
Date: Wed, 21 May 2025 22:43:11 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A1=A8=E5=8D=95?=
=?UTF-8?q?=E9=AA=8C=E8=AF=81=E5=92=8C=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修改train.vue中的答案长度验证逻辑,使用numberWords作为判断条件
- 更新questionCard.vue中的占位符文本,显示numberWords
- 调整timelineService.vue中的订单编号显示样式
- 在clock/index.vue中添加内容输入框的必填验证
---
otherPages/authentication/components/questionCard.vue | 2 +-
otherPages/authentication/examination/train.vue | 2 +-
otherPages/myOrdersManage/clock/index.vue | 6 ++++++
pages/myOrdersManage/components/timelineService.vue | 2 +-
utils/getUrl.js | 8 ++++----
5 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/otherPages/authentication/components/questionCard.vue b/otherPages/authentication/components/questionCard.vue
index 32fb09d..542df0b 100644
--- a/otherPages/authentication/components/questionCard.vue
+++ b/otherPages/authentication/components/questionCard.vue
@@ -14,7 +14,7 @@
-
diff --git a/otherPages/authentication/examination/train.vue b/otherPages/authentication/examination/train.vue
index 7a82547..3b4da83 100644
--- a/otherPages/authentication/examination/train.vue
+++ b/otherPages/authentication/examination/train.vue
@@ -69,7 +69,7 @@ const answered = computed(() => {
}
if(typeof item.value == 'string'){
- return item.value.length >= 700
+ return item.value.length >= (item.numberWords || 0)
}
return true
diff --git a/otherPages/myOrdersManage/clock/index.vue b/otherPages/myOrdersManage/clock/index.vue
index 2bf92f5..928dceb 100644
--- a/otherPages/myOrdersManage/clock/index.vue
+++ b/otherPages/myOrdersManage/clock/index.vue
@@ -181,6 +181,7 @@
@@ -235,6 +236,7 @@
const itemOrderID = ref(0)
const serviceId = ref(0)
const isRead = ref(false)
+ const content = ref('')
const fileList = reactive({
@@ -309,6 +311,10 @@
!fileList.urinalB || fileList.urinalB.length < 1) {
return msg('请上传猫砂盆、尿盆照片')
}
+
+ if(!content.value){
+ return msg('请填写补充信息')
+ }
saveDraft(true)
}
diff --git a/pages/myOrdersManage/components/timelineService.vue b/pages/myOrdersManage/components/timelineService.vue
index 1c20111..9973e67 100644
--- a/pages/myOrdersManage/components/timelineService.vue
+++ b/pages/myOrdersManage/components/timelineService.vue
@@ -48,7 +48,7 @@
服务日期
- {{ item.orderId }}
+ 订单编号:{{ item.orderId }}
{{ item.fullDate }}
diff --git a/utils/getUrl.js b/utils/getUrl.js
index 681aa9f..9f11a4f 100644
--- a/utils/getUrl.js
+++ b/utils/getUrl.js
@@ -1,10 +1,10 @@
-let current = "release";
+let current = "develop";
const accountInfo = wx.getAccountInfoSync();
-current = accountInfo.miniProgram.envVersion;
+// current = accountInfo.miniProgram.envVersion;
const api = {
- // develop:"http://h5.xzaiyp.top",
- develop:"https://api.catmdogd.com/prod-api",
+ develop:"http://h5.xzaiyp.top",
+ // develop:"https://api.catmdogd.com/prod-api",
// develop:"http://pet-admin.hhlm1688.com/api",
// develop: "http://youyi-test.natapp1.cc/prod-api", // 开发
trial: "https://api.catmdogd.com/prod-api", //测试