续租接口未改的版本
This commit is contained in:
parent
ca09639935
commit
326720450b
|
|
@ -19,7 +19,7 @@
|
|||
{{ getStatusText(device.status) }}
|
||||
</text>
|
||||
<text v-if="device.endTime" class="device-time">
|
||||
到期时间: {{ formatTime(device.endTime) }}
|
||||
到期时间: {{ uni.$uv.date(device.endTime) }}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
>
|
||||
<view class="package-info">
|
||||
<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 class="package-price">
|
||||
<text class="price-symbol">¥</text>
|
||||
|
|
@ -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')}`
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -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'],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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'],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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: () => {},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user