From 326720450bb2ad2028d8e6035db2563adf5e5f9b Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Sat, 13 Sep 2025 08:57:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=AD=E7=A7=9F=E6=8E=A5=E5=8F=A3=E6=9C=AA?= =?UTF-8?q?=E6=94=B9=E7=9A=84=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/renew-modal/renew-modal.vue | 11 ++--------- pages/InstallationAgreement/InstallationAgreement.vue | 2 +- pages/partnerProtocol/partnerProtocol.vue | 2 +- utils/request.js | 4 ++-- 4 files changed, 6 insertions(+), 13 deletions(-) diff --git a/components/renew-modal/renew-modal.vue b/components/renew-modal/renew-modal.vue index 9a95793..3715369 100644 --- a/components/renew-modal/renew-modal.vue +++ b/components/renew-modal/renew-modal.vue @@ -19,7 +19,7 @@ {{ getStatusText(device.status) }} - 到期时间: {{ formatTime(device.endTime) }} + 到期时间: {{ uni.$uv.date(device.endTime) }} @@ -45,7 +45,7 @@ > {{ item.name || `套餐${index + 1}` }} - {{ item.description || item.period || '暂无描述' }} + ¥ @@ -147,13 +147,6 @@ export default { } return statusMap[status] || '未知状态' }, - - // 格式化时间 - formatTime(timeStr) { - if (!timeStr) return '' - const date = new Date(timeStr) - return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}` - }, }, } diff --git a/pages/InstallationAgreement/InstallationAgreement.vue b/pages/InstallationAgreement/InstallationAgreement.vue index 6a647b4..9d4a558 100644 --- a/pages/InstallationAgreement/InstallationAgreement.vue +++ b/pages/InstallationAgreement/InstallationAgreement.vue @@ -104,7 +104,7 @@ export default { phone: { type: 'string', required: true, - // pattern: /^1[3-9]\d{9}$/, + pattern: /^1[3-9]\d{9}$/, message: '请填写正确的手机号码', trigger: ['blur', 'change'], }, diff --git a/pages/partnerProtocol/partnerProtocol.vue b/pages/partnerProtocol/partnerProtocol.vue index 1d3e718..cbefbdb 100644 --- a/pages/partnerProtocol/partnerProtocol.vue +++ b/pages/partnerProtocol/partnerProtocol.vue @@ -72,7 +72,7 @@ export default { phone: { type: 'string', required: true, - // pattern: /^1[3-9]\d{9}$/, + pattern: /^1[3-9]\d{9}$/, message: '请填写正确的手机号码', trigger: ['blur', 'change'], }, diff --git a/utils/request.js b/utils/request.js index f4dd455..67de54b 100644 --- a/utils/request.js +++ b/utils/request.js @@ -20,7 +20,7 @@ const ENV_CONFIG = { // 正式版 // baseUrl: 'https://chu.chuangtewl.com/prod-api', // baseUrl: 'http://192.168.2.21:4601', - baseUrl: 'http://192.168.2.21:4601', + baseUrl: 'https://chu.chuangtewl.com/prod-api', appId: 1, }, } @@ -137,7 +137,7 @@ function handleResponseError(res, reject, options = {}) { action: () => {}, }, 404: { - title: '请求的资源不存在', + title: '请求资源不存在', action: () => {}, }, }