CarRental/page_user/user_order.vue

911 lines
18 KiB
Vue
Raw Normal View History

2024-09-19 17:33:39 +08:00
<template>
<view class="page">
<view class="fixed">
<u-navbar title=" " :border-bottom="false" :background="background" title-color='#fff' title-size='36'
height='45' back-icon-color='#000'></u-navbar>
</view>
<view class="backimg">
</view>
<view class="tit">
请于9月4日前到店取车
</view>
<view class="tips">
超出时间将无法保证车辆库存
</view>
<view class="order_code">
<view class="tits" style="color: #3D3D3D;font-weight: 600;font-size: 32rpx;">
已还车
</view>
<view class="tits">
押金将退还原支付账户
</view>
<view class="tits">
还车时间09月05日周四16:00
</view>
</view>
<view class="store_car">
<view class="top">
<view class="type">
租车门店
</view>
云行租车汇丰公寓
</view>
<view class="address">
天目山路148号
</view>
<view class="time">
营业时间09:00-21:00
</view>
<view class="store_btn_li">
<view class="store_btn">
<image src="https://lxnapi.ccttiot.com/bike/img/static/umkJCfPac4Mrzni8aoda" mode=""></image>
联系门店
</view>
<view class="store_btn">
<image src="https://lxnapi.ccttiot.com/bike/img/static/uolYZ4dLvxxI2n2WzZ4J" mode=""></image>
导航到店
</view>
</view>
</view>
<view class="getType">
<view class="type">
还取方式
</view>
<view class="txt">
自行前往门店还车
</view>
</view>
<view class="info_box">
<view class="car_info">
<image src="https://lxnapi.ccttiot.com/bike/img/static/ucOJVTe4wsXSKAH181k9" mode=""></image>
<view class="right_info">
<view class="tits">
全新车网红泡泡50KM续航
</view>
<view class="txt">
套餐日租 108/
</view>
<view class="txt">
租赁周期1
</view>
</view>
</view>
<view class="data">
<view class="text">
租车时间
</view>
<view class="time">
共1天09/04 16:00-09/05 16:00)
</view>
</view>
<view class="info_li">
<view class="text">
租金
</view>
<view class="price">
<span>108×1</span>
108
</view>
</view>
<view class="info_li">
<view class="text">
基础服务保障
</view>
<view class="price">
108
</view>
</view>
<view class="info_li">
<view class="text">
押金
</view>
<view class="price">
<span>108×1</span>
108
</view>
</view>
<view class="line">
</view>
<view class="info_li">
<view class="text">
</view>
<view class="price" style="font-size: 40rpx;">
<span style="font-size: 28rpx;">实付款</span>
108
</view>
</view>
<view class="info_li" style="margin-top: 16rpx;">
<view class="text"></view>
<view class="price" style="font-size: 40rpx;">
<span>还车成功后押金将退回原支付账户</span>
</view>
</view>
</view>
<view class="tab_box">
<view class="choose_tab">
<view class="tab_li" v-for="item in 4" :key="item">
取车须知
<view class="tab_line"></view>
</view>
</view>
<view class="text">
请在2024-09-04 16:00前取车超出时间将无法保证 车辆库存
</view>
</view>
<view class="order_code">
<view class="tits">
订单编号
</view>
<view class="code_li">
<view class="code">
ZDVNJK24968791234168549864412
</view>
<view class="btn">
复制
</view>
</view>
</view>
<view class="bot_btn" v-if="false">
<view class="btn_li" v-if="false">
<view class="txt2">
取消订单
</view>
<view class="btn">
扫码用车
</view>
</view>
<view class="btn_li2" v-if="false">
<view class="btn3">
去还车
</view>
<view class="btn3">
用车
</view>
<view class="btn4">
续租
</view>
</view>
<view class="btn_li3">
<view class="btn3" style="width: 1rpx;"></view>
<view class="btn5">
重新下单
</view>
</view>
</view>
<u-mask :show="showaddress" :z-index='100' duration='0' />
<view class="address_box" v-if="showaddress">
<view class="close">
<image src="https://lxnapi.ccttiot.com/bike/img/static/uBhLz9V8ZDw6PfEfQHL9" mode=""></image>
</view>
<view class="tit5">
支持多店还车
</view>
<view class="tip">
还车可选择以下任意一家门店
</view>
<view class="card_box">
<view class="card" v-for=" item in 3" :key="item">
<view class="chose_img">
<image src="https://lxnapi.ccttiot.com/bike/img/static/uwsRz4zY4kaKnkYt3EFS" mode=""></image>
<!-- <image src="https://lxnapi.ccttiot.com/bike/img/static/uYzjRBaXWfUiqYeQj77R" mode=""></image> -->
</view>
<view class="card_tit">
云行租车汇丰公寓
</view>
<view class="card_txt">
<image src="https://lxnapi.ccttiot.com/bike/img/static/utT79qEWjVeXaZXTihtW" mode=""></image>
<view class="words">
营业时间09:00-21:00
</view>
<view class="km">
961.0m
</view>
</view>
<view class="card_txt">
<image src="https://lxnapi.ccttiot.com/bike/img/static/uBa17CwWo6fhf1csWoko" mode=""></image>
<view class="words">
人民南路110号通过街地铁站C口步行120
</view>
</view>
<view class="store_btn_li">
<view class="store_btn">
<image src="https://lxnapi.ccttiot.com/bike/img/static/umkJCfPac4Mrzni8aoda" mode=""></image>
联系门店
</view>
<view class="store_btn">
<image src="https://lxnapi.ccttiot.com/bike/img/static/uolYZ4dLvxxI2n2WzZ4J" mode=""></image>
导航到店
</view>
</view>
</view>
</view>
<view class="btn">
确认选择
</view>
</view>
<u-mask :show="showsub" :z-index='100' duration='0' />
<view class="sub_car" v-if="showsub">
<view class="tit3">
确认用车
</view>
<view class="car_info">
<image src="https://lxnapi.ccttiot.com/bike/img/static/ucOJVTe4wsXSKAH181k9" mode=""></image>
<view class="right_infos">
<view class="tit4">
全新车网红泡泡50KM...
</view>
<view class="txt3" style="margin-top: 16rpx;">
手机开关锁 | 定位防盗
</view>
<view class="txt3">
车辆编号21358941
</view>
<view class="txt3">
<image src="https://lxnapi.ccttiot.com/bike/img/static/uDlsHeWoSBa8Sj4dAhYx" mode=""></image> 90% <span style="margin-left: 40rpx;">可骑行35km</span>
</view>
</view>
</view>
<view class="btn_li">
<view class="btn1">
换一辆
</view>
<view class="btn2">
确认
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
showsub: false,
showaddress:false
}
},
methods: {
}
}
</script>
<style lang="scss">
page {
background-color: #F7F7F7;
}
.page {
padding-bottom: 200rpx;
.address_box{
z-index: 110;
position: fixed;
bottom: 0;
padding: 28rpx 46rpx;
width: 750rpx;
border-radius: 30rpx 30rpx 0 0;
background: #FFFFFF;
box-shadow: 0rpx 8rpx 20rpx 0rpx rgba(0,0,0,0.3);
.close{
position: absolute;
top: 56rpx;
right: 50rpx;
width: 33.99rpx;
height: 33.99rpx;
}
.card_box::-webkit-scrollbar {
display: none;
}
.btn{
display: flex;
align-items: center;
justify-content: center;
margin-top: 46rpx;
width: 696rpx;
height: 100rpx;
background: #4297F3;
border-radius: 16rpx 16rpx 16rpx 16rpx;
font-weight: 600;
font-size: 40rpx;
color: #FFFFFF;
}
.card_box{
margin-top: 36rpx;
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: center;
max-height: 740rpx;
overflow-y: auto; /* 允许上下滚动 */
overflow-x: hidden; /* 禁止左右滚动 */
.card{
margin-top: 22rpx;
position: relative;
padding: 30rpx 24rpx 0 24rpx;
width: 656rpx;
background: #FFFFFF;
box-shadow: 0rpx 2rpx 20rpx 0rpx rgba(0,0,0,0.2);
border-radius: 30rpx;
.chose_img{
position: absolute;
right: 0;
top: 0;
width: 66rpx;
height: 68rpx;
}
.card_tit{
font-weight: 600;
font-size: 40rpx;
color: #3D3D3D;
}
.card_txt{
margin-top: 8rpx;
width: 100%;
display: inline-flex;
// align-items: center;
image{
margin-top: 6rpx;
margin-right: 8rpx;
width: 28rpx;
height: 28rpx;
}
.words{
font-weight: 400;
font-size: 32rpx;
color: #3D3D3D;
}
.km{
margin-left: auto;
font-weight: 400;
font-size: 32rpx;
color: #4297F3;
}
}
.store_btn_li {
display: flex;
flex-wrap: nowrap;
margin-top: 26rpx;
margin-left: -28rpx;
border-top: 1rpx solid #D8D8D8;
width: 696rpx;
height: 102rpx;
.store_btn:first-child {
border-right: 1rpx solid #D8D8D8;
}
.store_btn {
display: flex;
align-items: center;
justify-content: center;
width: 50%;
height: 102rpx;
image {
font-weight: 400;
font-size: 28rpx;
color: #3D3D3D;
margin-right: 18rpx;
width: 40rpx;
height: 40rpx;
}
}
}
}
}
.tit5{
width: 100%;
text-align: center;
font-weight: 600;
font-size: 44rpx;
color: #3D3D3D;
}
.tip{
margin-top: 18rpx;
width: 100%;
text-align: center;
font-weight: 400;
font-size: 32rpx;
color: #3D3D3D;
}
}
.sub_car {
position: fixed;
padding: 56rpx 60rpx;
top: 500rpx;
left: 50rpx;
z-index: 110;
width: 650rpx;
background: #ffffff;
border-radius: 20rpx 20rpx 20rpx 20rpx;
.btn_li{
margin-top: 40rpx;
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: space-between;
.btn1{
display: flex;
align-items: center;
justify-content: center;
width: 238rpx;
height: 74rpx;
background: #EFEFEF;
border-radius: 37rpx 37rpx 37rpx 37rpx;
font-weight: 600;
font-size: 36rpx;
color: #3D3D3D;
}
.btn2{
display: flex;
align-items: center;
justify-content: center;
width: 238rpx;
height: 74rpx;
background: #4297F3;
border-radius: 37rpx 37rpx 37rpx 37rpx;
font-weight: 600;
font-size: 36rpx;
color: #FFFFFF;
}
}
.tit3 {
width: 100%;
text-align: center;
font-weight: 600;
font-size: 36rpx;
color: #3d3d3d;
}
.car_info {
margin-top: 38rpx;
width: 100%;
display: flex;
flex-wrap: nowrap;
image {
width: 194rpx;
height: 148rpx;
flex-shrink: 0;
/* 防止图片被压缩 */
}
.right_infos {
display: flex;
flex-wrap: wrap;
flex-grow: 1;
/* 允许其他内容占用剩余空间 */
.tit4 {
font-weight: 600;
font-size: 28rpx;
color: #3d3d3d;
}
.txt3 {
margin-top: 6rpx;
image {
width: 32rpx;
height: 32rpx;
flex-shrink: 0;
}
}
}
}
}
.bot_btn {
display: flex;
align-items: center;
width: 750rpx;
height: 174rpx;
background: #FFFFFF;
box-shadow: 0rpx 8rpx 20rpx 0rpx rgba(0, 0, 0, 0.3);
border-radius: 0rpx 0rpx 0rpx 0rpx;
position: fixed;
bottom: 0;
padding: 0 50rpx;
.btn_li3{
width: 100%;
.btn5{
margin-left: auto;
display: flex;
align-items: center;
justify-content: center;
width: 434rpx;
height: 84rpx;
background: #4297F3;
border-radius: 42rpx 42rpx 42rpx 42rpx;
font-weight: 600;
font-size: 36rpx;
color: #FFFFFF;
}
}
.btn_li2{
width: 100%;
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
.btn3{
padding: 10rpx 54rpx;
border-radius: 42rpx 42rpx 42rpx 42rpx;
border: 2rpx solid #4297F3;
font-weight: 500;
font-size: 36rpx;
color: #4297F3;
}
.btn4{
padding: 10rpx 54rpx;
border-radius: 42rpx 42rpx 42rpx 42rpx;
background: #4297F3;
font-weight: 500;
font-size: 36rpx;
color: #FFFFFF;
}
}
.btn_li {
width: 100%;
display: flex;
align-items: center;
flex-wrap: nowrap;
justify-content: space-between;
.txt2 {
font-weight: 400;
font-size: 32rpx;
color: #3D3D3D;
}
.btn {
display: flex;
align-items: center;
justify-content: center;
width: 434rpx;
height: 84rpx;
background: #4297F3;
border-radius: 42rpx 42rpx 42rpx 42rpx;
font-weight: 500;
font-size: 36rpx;
color: #FFFFFF;
}
}
}
.order_code {
width: 696rpx;
margin: 0 auto;
margin-top: 16rpx;
padding: 20rpx 28rpx;
background: #FFFFFF;
border-radius: 20rpx 20rpx 20rpx 20rpx;
.tits {
font-weight: 400;
font-size: 28rpx;
color: #3D3D3D;
}
.code_li {
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
.code {
font-weight: 400;
font-size: 28rpx;
color: #3D3D3D;
}
.btn {
font-weight: 400;
font-size: 28rpx;
color: #4297F3;
}
}
}
.tab_box {
width: 696rpx;
margin: 0 auto;
margin-top: 16rpx;
padding: 20rpx 28rpx;
background: #FFFFFF;
border-radius: 20rpx 20rpx 20rpx 20rpx;
.text {
margin-top: 30rpx;
padding: 0 22rpx;
font-weight: 400;
font-size: 28rpx;
color: #6F6F6F;
}
.choose_tab {
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: space-around;
.tab_li {
width: 112rpx;
display: flex;
flex-wrap: wrap;
justify-content: center;
font-weight: 400;
font-size: 28rpx;
color: #3D3D3D;
.tab_line {
width: 58rpx;
height: 6rpx;
background: #4297F3;
border-radius: 3rpx 3rpx 3rpx 3rpx;
}
}
}
}
.line {
margin-top: 20rpx;
width: 100%;
height: 1rpx;
background: #D8D8D8;
}
.info_box {
width: 696rpx;
margin: 0 auto;
margin-top: 16rpx;
background: #FFFFFF;
border-radius: 20rpx 20rpx 20rpx 20rpx;
padding: 20rpx 18rpx;
.info_li {
margin-top: 20rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 22rpx;
.text {
font-weight: 400;
font-size: 28rpx;
color: #6F6F6F;
}
.price {
span {
font-weight: 400;
font-size: 28rpx;
color: #808080;
}
font-weight: 500;
font-size: 28rpx;
color: #FF1C1C;
}
}
.data {
margin-top: 16rpx;
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 16rpx 22rpx;
background: #EFEFEF;
border-radius: 10rpx 10rpx 10rpx 10rpx;
.text {
font-weight: 400;
font-size: 28rpx;
color: #6F6F6F;
}
.time {
font-weight: 400;
font-size: 28rpx;
color: #4297F3;
}
}
.car_info {
display: flex;
flex-wrap: nowrap;
image {
width: 156rpx;
height: 120rpx;
}
.right_info {
margin-left: 18rpx;
display: flex;
flex-wrap: wrap;
.tits {
width: 100%;
font-weight: 600;
font-size: 28rpx;
color: #3D3D3D;
}
.txt {
width: 100%;
font-weight: 400;
font-size: 28rpx;
color: #6F6F6F;
}
}
}
}
.getType {
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: space-between;
margin: 0 auto;
margin-top: 16rpx;
padding: 30rpx;
width: 696rpx;
// height: 108rpx;
background: #FFFFFF;
border-radius: 20rpx 20rpx 20rpx 20rpx;
.type {
padding: 6rpx 12rpx;
font-weight: 400;
font-size: 24rpx;
color: #0D75E5;
background: #DCEDFF;
border-radius: 8rpx 8rpx 8rpx 8rpx;
}
.txt {
font-weight: 500;
font-size: 32rpx;
color: #3D3D3D;
}
}
.store_car {
border-radius: 30rpx;
width: 696rpx;
padding: 30rpx 28rpx 0 28rpx;
margin: 0 auto;
margin-top: 50rpx;
// height: 342rpx;
background: #FFFFFF;
.store_btn_li {
display: flex;
flex-wrap: nowrap;
margin-top: 26rpx;
margin-left: -28rpx;
border-top: 1rpx solid #D8D8D8;
width: 696rpx;
height: 102rpx;
.store_btn:first-child {
border-right: 1rpx solid #D8D8D8;
}
.store_btn {
display: flex;
align-items: center;
justify-content: center;
width: 50%;
height: 102rpx;
image {
font-weight: 400;
font-size: 28rpx;
color: #3D3D3D;
margin-right: 18rpx;
width: 40rpx;
height: 40rpx;
}
}
}
.line {
width: 100%;
height: 1rpx;
background: #D8D8D8;
}
.address {
margin-top: 48rpx;
font-weight: 400;
font-size: 36rpx;
color: #3D3D3D;
}
.time {
font-weight: 400;
font-size: 28rpx;
color: #3D3D3D;
}
.top {
display: flex;
align-items: center;
font-weight: 600;
font-size: 36rpx;
color: #3D3D3D;
.type {
margin-right: 10rpx;
font-weight: 400;
font-size: 24rpx;
color: #0D75E5;
padding: 6rpx 12rpx;
background: #DCEDFF;
border-radius: 8rpx 8rpx 8rpx 8rpx;
}
}
}
.tit {
margin-left: 38rpx;
margin-top: -400rpx;
font-weight: 600;
font-size: 48rpx;
color: #3D3D3D;
}
.tips {
margin-top: 18rpx;
margin-left: 38rpx;
font-weight: 600;
font-size: 32rpx;
color: #3D3D3D;
}
.fixed {
z-index: 999;
position: fixed;
top: 0;
}
.backimg {
// position: fixed;
width: 750rpx;
height: 696rpx;
z-index: -10;
background-image: url('https://lxnapi.ccttiot.com/bike/img/static/uxg5vXhH35evswvIKxJt');
background-size: cover;
/* 背景图片等比缩放以覆盖整个容器 */
background-position: center;
}
}
</style>