续租接口未改的版本

This commit is contained in:
WindowBird 2025-09-13 08:57:42 +08:00
parent ca09639935
commit 326720450b
4 changed files with 6 additions and 13 deletions

View File

@ -19,7 +19,7 @@
{{ getStatusText(device.status) }} {{ getStatusText(device.status) }}
</text> </text>
<text v-if="device.endTime" class="device-time"> <text v-if="device.endTime" class="device-time">
到期时间: {{ formatTime(device.endTime) }} 到期时间: {{ uni.$uv.date(device.endTime) }}
</text> </text>
</view> </view>
</view> </view>
@ -45,7 +45,7 @@
> >
<view class="package-info"> <view class="package-info">
<text class="package-name">{{ item.name || `套餐${index + 1}` }}</text> <text class="package-name">{{ item.name || `套餐${index + 1}` }}</text>
<text class="package-desc">{{ item.description || item.period || '暂无描述' }}</text> <!-- <text class="package-desc">{{ item.description || item.period || '暂无描述' }}</text>-->
</view> </view>
<view class="package-price"> <view class="package-price">
<text class="price-symbol">¥</text> <text class="price-symbol">¥</text>
@ -147,13 +147,6 @@ export default {
} }
return statusMap[status] || '未知状态' 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')}`
},
}, },
} }
</script> </script>

View File

@ -104,7 +104,7 @@ export default {
phone: { phone: {
type: 'string', type: 'string',
required: true, required: true,
// pattern: /^1[3-9]\d{9}$/, pattern: /^1[3-9]\d{9}$/,
message: '请填写正确的手机号码', message: '请填写正确的手机号码',
trigger: ['blur', 'change'], trigger: ['blur', 'change'],
}, },

View File

@ -72,7 +72,7 @@ export default {
phone: { phone: {
type: 'string', type: 'string',
required: true, required: true,
// pattern: /^1[3-9]\d{9}$/, pattern: /^1[3-9]\d{9}$/,
message: '请填写正确的手机号码', message: '请填写正确的手机号码',
trigger: ['blur', 'change'], trigger: ['blur', 'change'],
}, },

View File

@ -20,7 +20,7 @@ const ENV_CONFIG = {
// 正式版 // 正式版
// baseUrl: 'https://chu.chuangtewl.com/prod-api', // baseUrl: 'https://chu.chuangtewl.com/prod-api',
// baseUrl: 'http://192.168.2.21:4601', // baseUrl: 'http://192.168.2.21:4601',
baseUrl: 'http://192.168.2.21:4601', baseUrl: 'https://chu.chuangtewl.com/prod-api',
appId: 1, appId: 1,
}, },
} }
@ -137,7 +137,7 @@ function handleResponseError(res, reject, options = {}) {
action: () => {}, action: () => {},
}, },
404: { 404: {
title: '请求资源不存在', title: '请求资源不存在',
action: () => {}, action: () => {},
}, },
} }