优化代码

This commit is contained in:
wangxiaowei
2025-12-27 22:33:52 +08:00
parent 93d4edb0ef
commit 2d29c609e9
4 changed files with 3 additions and 6 deletions

View File

@ -40,7 +40,7 @@ export interface IRenewOrderParams {
}
export function renewOrder(data: IRenewOrderParams) {
return http.Post('/storeapi/store/renewDtime', data)
return http.Post('/storeapi/order/renewOrder', data)
}
/**

View File

@ -153,7 +153,7 @@
<view @click="ComboCard.handleToOrderDetail(order.id)">
<view class="flex justify-between items-center">
<view class="font-500 text-30rpx text-[#303133] leading-42rpx line-1 w-300rpx">{{ order.room_name }}</view>
<view class="text-[#606266] text-26rpx">{{order.price || 0}}</view>
<view class="text-[#303133] text-30rpx leading-42rpx font-bold">{{order.price || 0}}</view>
</view>
<view class="font-400 leading-36rpx text-26rpx text-[#606266] mt-34rpx">
<view>预约时间{{ order.day_title }} {{ order.start_time }}-{{ order.end_time }}</view>

View File

@ -81,7 +81,7 @@
</view>
<view class="text-28rpx leading-40rpx text-[#606266] flex items-center justify-between mt-22rpx">
<view>续单时长</view>
<view>{{ order.renew_hour }}</view>
<view>{{ order.renew_hour }}小时</view>
</view>
<view class="text-28rpx leading-40rpx text-[#606266] flex items-center justify-between mt-22rpx">
<view>续单费用</view>

View File

@ -126,11 +126,8 @@
toast.success('续订成功')
} catch (error) {
uni.hideLoading()
toast.info('续订失败,请稍后重试')
return
}
console.log("🚀 ~ item:", item)
}
}
</script>