fix: 移除待支付订单的mock倒计时注释并优化认证失败原因显示
移除订单管理页面中关于mock倒计时的TODO注释,使用实际倒计时逻辑 在车辆认证页面,将认证失败原因从纯文本改为可展开/收起的省略显示组件
Showing
2 changed files
with
3 additions
and
3 deletions
| ... | @@ -45,7 +45,7 @@ | ... | @@ -45,7 +45,7 @@ |
| 45 | <text class="text-sm text-gray-500 mt-1 block">续航{{ item.range_km }}km | 最高时速{{ item.max_speed_kmh }}km/h</text> | 45 | <text class="text-sm text-gray-500 mt-1 block">续航{{ item.range_km }}km | 最高时速{{ item.max_speed_kmh }}km/h</text> |
| 46 | <!-- 认证失败原因 --> | 46 | <!-- 认证失败原因 --> |
| 47 | <view v-if="item.verification_status === 7 && item.verification_reason" class="verification-reason mt-1"> | 47 | <view v-if="item.verification_status === 7 && item.verification_reason" class="verification-reason mt-1"> |
| 48 | - <text class="text-xs text-red-500">审核结果:{{ item.verification_reason }}</text> | 48 | + <!-- <text class="text-xs text-red-500">审核结果:{{ item.verification_reason }}</text> --> |
| 49 | <nut-config-provider :theme-vars="themeVars"> | 49 | <nut-config-provider :theme-vars="themeVars"> |
| 50 | <nut-ellipsis :content="item.verification_reason" direction="end" rows="2" expand-text="展开" collapse-text="收起"></nut-ellipsis> | 50 | <nut-ellipsis :content="item.verification_reason" direction="end" rows="2" expand-text="展开" collapse-text="收起"></nut-ellipsis> |
| 51 | </nut-config-provider> | 51 | </nut-config-provider> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-19 14:11:06 | 2 | * @Date: 2022-09-19 14:11:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-07-18 12:23:09 | 4 | + * @LastEditTime: 2025-07-18 12:34:54 |
| 5 | * @FilePath: /jgdl/src/pages/myOrders/index.vue | 5 | * @FilePath: /jgdl/src/pages/myOrders/index.vue |
| 6 | * @Description: 订单管理页面 | 6 | * @Description: 订单管理页面 |
| 7 | --> | 7 | --> |
| ... | @@ -438,7 +438,7 @@ const loadOrderData = async (isLoadMore = false) => { | ... | @@ -438,7 +438,7 @@ const loadOrderData = async (isLoadMore = false) => { |
| 438 | details: orderData.details && orderData.details.length > 0 ? orderData.details[0] : null | 438 | details: orderData.details && orderData.details.length > 0 ? orderData.details[0] : null |
| 439 | } | 439 | } |
| 440 | 440 | ||
| 441 | - // TODO: 为待支付订单添加mock的倒计时时间(1800秒用于测试) | 441 | + // 为待支付订单添加倒计时时间 |
| 442 | if (processedOrder.status === 3) { | 442 | if (processedOrder.status === 3) { |
| 443 | // 计算剩余时间(毫秒) | 443 | // 计算剩余时间(毫秒) |
| 444 | const current_date = new Date(processedOrder.server_time); | 444 | const current_date = new Date(processedOrder.server_time); | ... | ... |
-
Please register or login to post a comment