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: () => {}, }, }