613 lines
12 KiB
Vue
613 lines
12 KiB
Vue
|
<template>
|
|||
|
<view class="page">
|
|||
|
<u-navbar title="续租" :border-bottom="false" :background="bgc" back-icon-color="#3D3D3D" title-color='#3D3D3D'
|
|||
|
title-size='36' height='50' id="navbar">
|
|||
|
</u-navbar>
|
|||
|
<view class="jieshao">
|
|||
|
<view class="" style="display: flex;justify-content: space-between;">
|
|||
|
<view class="lt">
|
|||
|
<view class="name" style="color: #FF8C1E;font-size: 36rpx;margin-bottom: 24rpx;">
|
|||
|
待还车
|
|||
|
</view>
|
|||
|
<view class="name">
|
|||
|
全新车网红泡泡50KM续航
|
|||
|
</view>
|
|||
|
|
|||
|
</view>
|
|||
|
<view class="rt">
|
|||
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uK5bAmrXLEHVxbH6FcFD" mode=""></image>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="time">
|
|||
|
09-09 16:00 至 09-10 16:00(一天)
|
|||
|
</view>
|
|||
|
<view class="zujin">
|
|||
|
<view class="one">
|
|||
|
租金
|
|||
|
</view>
|
|||
|
<view class="two">
|
|||
|
¥188
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="zujin">
|
|||
|
<view class="one">
|
|||
|
预存
|
|||
|
</view>
|
|||
|
<view class="two">
|
|||
|
¥188
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="zujin">
|
|||
|
<view class="one">
|
|||
|
车辆编号
|
|||
|
</view>
|
|||
|
<view class="two">
|
|||
|
24563321
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
|
|||
|
<view class="zcfangan">
|
|||
|
<view class="name">
|
|||
|
选择续租方案
|
|||
|
</view>
|
|||
|
<view class="fanganlist">
|
|||
|
<view v-for="(item,index) in 4" :key="index" :class="['fanganlist_item', fanganindex == index ? 'gaoliang' : '']" @click="btnfa(index)" >
|
|||
|
<view class="shi">
|
|||
|
1小时
|
|||
|
</view>
|
|||
|
<view class="price">
|
|||
|
¥ <text>38</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="shichang">
|
|||
|
<view class="zcsc">
|
|||
|
租车时长
|
|||
|
</view>
|
|||
|
<view class="jisuan">
|
|||
|
<view class="zong">
|
|||
|
共{{zutime}}天
|
|||
|
</view>
|
|||
|
<view class="jibu">
|
|||
|
<text @click="btndj(1)">-</text> <input type="text" v-model="zutime"/> <text @click="btndj(2)">+</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
|
|||
|
<view class="zhifu">
|
|||
|
<view class="xieyi">
|
|||
|
<u-checkbox v-model="checked" shape="circle"></u-checkbox>已阅读并同意<text>《电动车租赁用户协议》</text><text>《享权须知》</text>
|
|||
|
</view>
|
|||
|
<view class="bot">
|
|||
|
<view class="lt">
|
|||
|
<view class="money">
|
|||
|
¥<text>347.9</text>
|
|||
|
</view>
|
|||
|
<view class="mx" v-if="mxflag" @click="mxflag = false">
|
|||
|
明细 <u-icon name="arrow-down" color="#4297F3" size="28"></u-icon>
|
|||
|
</view>
|
|||
|
<view class="mx" v-else @click="mxflag = true">
|
|||
|
明细 <u-icon name="arrow-up" color="#4297F3" size="28"></u-icon>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="rt">
|
|||
|
支付
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
|
|||
|
<view class="quche">
|
|||
|
<view class="liucheng">
|
|||
|
<view class="lt">
|
|||
|
<view class="qu">
|
|||
|
取车
|
|||
|
</view>
|
|||
|
<view class="dian">
|
|||
|
<text v-for="(item,index) in 5" :key="index"></text>
|
|||
|
</view>
|
|||
|
<view class="time">
|
|||
|
1天
|
|||
|
</view>
|
|||
|
<view class="dian">
|
|||
|
<text v-for="(item,index) in 5" :key="index"></text>
|
|||
|
</view>
|
|||
|
<view class="huan">
|
|||
|
还车
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="rt">
|
|||
|
<view class="one">
|
|||
|
<view class="qtime">
|
|||
|
2024年09月04日 16:00
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="two">
|
|||
|
<view class="shuom">
|
|||
|
到期后开始计算订单时长
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="thr">
|
|||
|
<view class="time">
|
|||
|
2024年09月05日 16:00
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
|
|||
|
<view class="mingxitc" v-if="!mxflag">
|
|||
|
<view class="title">
|
|||
|
订单明细
|
|||
|
</view>
|
|||
|
<view class="zujin" v-for="(item,index) in 6" :key="index">
|
|||
|
<view class="">
|
|||
|
租金
|
|||
|
</view>
|
|||
|
<view class="">
|
|||
|
¥108×1天
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="cha" @click="mxflag = true">×</view>
|
|||
|
</view>
|
|||
|
<view class="mask" v-if="!mxflag"></view>
|
|||
|
|
|||
|
</view>
|
|||
|
</template>
|
|||
|
|
|||
|
<script>
|
|||
|
export default {
|
|||
|
data() {
|
|||
|
return {
|
|||
|
bgc: {
|
|||
|
backgroundColor: "#CCE5FF",
|
|||
|
},
|
|||
|
fanganindex:0,
|
|||
|
zutime:1,
|
|||
|
checked:false,
|
|||
|
mxflag:true,
|
|||
|
|
|||
|
}
|
|||
|
},
|
|||
|
onLoad() {
|
|||
|
|
|||
|
},
|
|||
|
methods: {
|
|||
|
// 点击租车时长加减
|
|||
|
btndj(num){
|
|||
|
if(num == 1){
|
|||
|
if(this.zutime == 1){
|
|||
|
uni.showToast({
|
|||
|
title: '租车时长不能为0',
|
|||
|
icon: 'none',
|
|||
|
duration:2000
|
|||
|
})
|
|||
|
}else{
|
|||
|
this.zutime = this.zutime - 1
|
|||
|
}
|
|||
|
}else{
|
|||
|
this.zutime = this.zutime + 1
|
|||
|
}
|
|||
|
},
|
|||
|
// 点击租车方案
|
|||
|
btnfa(index){
|
|||
|
this.fanganindex = index
|
|||
|
},
|
|||
|
}
|
|||
|
}
|
|||
|
</script>
|
|||
|
|
|||
|
<style lang="scss">
|
|||
|
/deep/ .u-title,
|
|||
|
/deep/ .u-iconfont{
|
|||
|
padding-bottom: 22rpx !important;
|
|||
|
}
|
|||
|
/deep/ .u-iconfont{
|
|||
|
padding-bottom: 0 !important;
|
|||
|
}
|
|||
|
/deep/ .u-checkbox{
|
|||
|
width: 40rpx;
|
|||
|
}
|
|||
|
.quche{
|
|||
|
margin: auto;
|
|||
|
width: 696rpx;
|
|||
|
max-height: 488rpx;
|
|||
|
background: #FFFFFF;
|
|||
|
margin-top: 16rpx;
|
|||
|
border-radius: 20rpx;
|
|||
|
padding: 26rpx 20rpx;
|
|||
|
box-sizing: border-box;
|
|||
|
.liucheng{
|
|||
|
display: flex;
|
|||
|
margin-top: 36rpx;
|
|||
|
.rt{
|
|||
|
width: 100%;
|
|||
|
.one{
|
|||
|
display: flex;
|
|||
|
justify-content: space-between;
|
|||
|
align-items: center;
|
|||
|
.qtime{
|
|||
|
font-weight: 600;
|
|||
|
font-size: 32rpx;
|
|||
|
color: #3D3D3D;
|
|||
|
}
|
|||
|
.gtime{
|
|||
|
display: flex;
|
|||
|
align-items: center;
|
|||
|
font-weight: 600;
|
|||
|
font-size: 28rpx;
|
|||
|
color: #808080;
|
|||
|
image{
|
|||
|
width: 22rpx;
|
|||
|
height: 28rpx;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
.thr{
|
|||
|
margin-top: 20rpx;
|
|||
|
.time{
|
|||
|
font-weight: 600;
|
|||
|
font-size: 32rpx;
|
|||
|
color: #3D3D3D;
|
|||
|
margin-top: 26rpx;
|
|||
|
}
|
|||
|
.juli{
|
|||
|
margin-top: 8rpx;
|
|||
|
}
|
|||
|
.dizhi{
|
|||
|
font-size: 28rpx;
|
|||
|
color: #3D3D3D;
|
|||
|
text{
|
|||
|
font-weight: 600;
|
|||
|
display: inline-block;
|
|||
|
margin-right: 10rpx;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
.two{
|
|||
|
margin-top: 8rpx;
|
|||
|
position: relative;
|
|||
|
.img{
|
|||
|
position: absolute;
|
|||
|
top: 0;
|
|||
|
right: 0;
|
|||
|
z-index: 1;
|
|||
|
width: 166rpx;
|
|||
|
height: 166rpx;
|
|||
|
}
|
|||
|
.shuom{
|
|||
|
margin-top: 26rpx;
|
|||
|
font-size: 28rpx;
|
|||
|
color: #4297F3;
|
|||
|
}
|
|||
|
.dizhi{
|
|||
|
font-size: 28rpx;
|
|||
|
color: #3D3D3D;
|
|||
|
text{
|
|||
|
font-weight: 600;
|
|||
|
display: inline-block;
|
|||
|
margin-right: 10rpx;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
.lt{
|
|||
|
margin-right: 18rpx;
|
|||
|
.huan{
|
|||
|
width: 68rpx;
|
|||
|
height: 40rpx;
|
|||
|
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
|||
|
border: 2rpx solid #16BC32;
|
|||
|
text-align: center;
|
|||
|
line-height: 40rpx;
|
|||
|
font-size: 22rpx;
|
|||
|
color: #16BC32;
|
|||
|
}
|
|||
|
.time{
|
|||
|
padding: 0 10rpx;
|
|||
|
box-sizing: border-box;
|
|||
|
height: 32rpx;
|
|||
|
background: #DCEDFF;
|
|||
|
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
|||
|
text-align: center;
|
|||
|
line-height: 32rpx;
|
|||
|
font-size: 20rpx;
|
|||
|
color: #4297F3;
|
|||
|
}
|
|||
|
.qu{
|
|||
|
width: 68rpx;
|
|||
|
height: 40rpx;
|
|||
|
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
|||
|
border: 2rpx solid #4297F3;
|
|||
|
text-align: center;
|
|||
|
line-height: 40rpx;
|
|||
|
font-size: 22rpx;
|
|||
|
color: #4297F3;
|
|||
|
}
|
|||
|
.dian{
|
|||
|
width: 68rpx;
|
|||
|
text{
|
|||
|
display: block;
|
|||
|
margin: auto;
|
|||
|
width: 4rpx;
|
|||
|
height: 4rpx;
|
|||
|
margin-top: 2rpx;
|
|||
|
background-color: #D8D8D8;
|
|||
|
border-radius: 50%;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
.name{
|
|||
|
font-weight: 600;
|
|||
|
font-size: 40rpx;
|
|||
|
color: #3D3D3D;
|
|||
|
margin-left: 10rpx;
|
|||
|
}
|
|||
|
}
|
|||
|
.gaoliang{
|
|||
|
background: #DCEDFF !important;
|
|||
|
border: 2rpx solid #4297F3 !important;
|
|||
|
}
|
|||
|
@keyframes fadeIn {
|
|||
|
from {
|
|||
|
opacity: 0;
|
|||
|
bottom:-300rpx;
|
|||
|
}
|
|||
|
to {
|
|||
|
opacity: 1;
|
|||
|
bottom:180rpx;
|
|||
|
}
|
|||
|
}
|
|||
|
.mingxitc{
|
|||
|
position: fixed;
|
|||
|
left: 0;
|
|||
|
bottom: 180rpx;
|
|||
|
width: 750rpx;
|
|||
|
max-height: 912rpx;
|
|||
|
overflow: scroll;
|
|||
|
background: #FFFFFF;
|
|||
|
z-index: 99;
|
|||
|
border-radius: 30rpx 30rpx 0 0;
|
|||
|
padding-top: 38rpx;
|
|||
|
padding-left: 36rpx;
|
|||
|
padding-right: 36rpx;
|
|||
|
padding-bottom: 30rpx;
|
|||
|
box-sizing: border-box;
|
|||
|
animation: fadeIn 0.5s ease-in-out forwards;
|
|||
|
.cha{
|
|||
|
font-size: 60rpx;
|
|||
|
font-weight: 600;
|
|||
|
position: absolute;
|
|||
|
top: 10rpx;
|
|||
|
right: 36rpx;
|
|||
|
}
|
|||
|
.zujin{
|
|||
|
display: flex;
|
|||
|
justify-content: space-between;
|
|||
|
margin-top: 22rpx;
|
|||
|
view{
|
|||
|
font-weight: 600;
|
|||
|
font-size: 32rpx;
|
|||
|
color: #3D3D3D;
|
|||
|
}
|
|||
|
}
|
|||
|
.title{
|
|||
|
font-weight: 600;
|
|||
|
font-size: 40rpx;
|
|||
|
color: #3D3D3D;
|
|||
|
width: 100%;
|
|||
|
text-align: center;
|
|||
|
margin-bottom: 16rpx;
|
|||
|
}
|
|||
|
}
|
|||
|
.mask{
|
|||
|
position: fixed;
|
|||
|
width: 100%;
|
|||
|
height: 100vh;
|
|||
|
background-color: rgba(0,0,0,0.3);
|
|||
|
z-index: 98;
|
|||
|
top: 0;
|
|||
|
left: 0;
|
|||
|
animation: fadeIn 0.5s ease-in-out forwards;
|
|||
|
}
|
|||
|
.zhifu{
|
|||
|
width: 750rpx;
|
|||
|
height: 198rpx;
|
|||
|
background: #FFFFFF;
|
|||
|
box-shadow: 0rpx 8rpx 20rpx 0rpx rgba(0,0,0,0.3);
|
|||
|
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
|||
|
position: fixed;
|
|||
|
left: 0;
|
|||
|
bottom: 0;
|
|||
|
z-index: 99;
|
|||
|
.xieyi{
|
|||
|
display: flex;
|
|||
|
align-items: flex-end;
|
|||
|
padding: 28rpx;
|
|||
|
box-sizing: border-box;
|
|||
|
text{
|
|||
|
color: #4297F3;
|
|||
|
}
|
|||
|
}
|
|||
|
.bot{
|
|||
|
display: flex;
|
|||
|
justify-content: space-between;
|
|||
|
align-items: center;
|
|||
|
padding: 0 28rpx;
|
|||
|
box-sizing: border-box;
|
|||
|
.lt{
|
|||
|
display: flex;
|
|||
|
align-items: center;
|
|||
|
.money{
|
|||
|
font-weight: 600;
|
|||
|
font-size: 36rpx;
|
|||
|
color: #FF1C1C;
|
|||
|
text{
|
|||
|
font-size: 52rpx;
|
|||
|
}
|
|||
|
}
|
|||
|
.mx{
|
|||
|
font-size: 28rpx;
|
|||
|
color: #4297F3;
|
|||
|
margin-left: 32rpx;
|
|||
|
text{
|
|||
|
margin-left: 8rpx;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
.rt{
|
|||
|
width: 340rpx;
|
|||
|
height: 84rpx;
|
|||
|
background: #4297F3;
|
|||
|
border-radius: 42rpx 42rpx 42rpx 42rpx;
|
|||
|
text-align: center;
|
|||
|
line-height: 84rpx;
|
|||
|
font-weight: 600;
|
|||
|
font-size: 36rpx;
|
|||
|
color: #FFFFFF;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
page {
|
|||
|
background:#F7F7F7;
|
|||
|
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
|||
|
padding-bottom: 230rpx;
|
|||
|
box-sizing: border-box;
|
|||
|
}
|
|||
|
.zcfangan{
|
|||
|
margin: auto;
|
|||
|
padding: 18rpx 24rpx;
|
|||
|
padding-right: 0 !important;
|
|||
|
box-sizing: border-box;
|
|||
|
width: 698rpx;
|
|||
|
max-height: 5257rpx;
|
|||
|
background: #FFFFFF;
|
|||
|
border-radius: 20rpx;
|
|||
|
margin-top: 16rpx;
|
|||
|
.shichang{
|
|||
|
display: flex;
|
|||
|
justify-content: space-between;
|
|||
|
margin-top: 48rpx;
|
|||
|
align-items: center;
|
|||
|
.zcsc{
|
|||
|
font-size: 28rpx;
|
|||
|
color: #3D3D3D;
|
|||
|
}
|
|||
|
.jisuan{
|
|||
|
display: flex;
|
|||
|
align-items: center;
|
|||
|
padding-right: 24rpx;
|
|||
|
box-sizing: border-box;
|
|||
|
.zong{
|
|||
|
font-weight: 600;
|
|||
|
font-size: 28rpx;
|
|||
|
color: #3D3D3D;
|
|||
|
margin-right: 10rpx;
|
|||
|
}
|
|||
|
.jibu{
|
|||
|
width: 229rpx;
|
|||
|
height: 56rpx;
|
|||
|
border: 1rpx solid #808080;
|
|||
|
border-radius: 50rpx;
|
|||
|
display: flex;
|
|||
|
align-items: center;
|
|||
|
padding: 0 24rpx;
|
|||
|
box-sizing: border-box;
|
|||
|
justify-content: center;
|
|||
|
text{
|
|||
|
font-size: 32rpx;
|
|||
|
}
|
|||
|
input{
|
|||
|
width: 120rpx;
|
|||
|
height: 56rpx;
|
|||
|
border-left: 1rpx solid #808080;
|
|||
|
border-right: 1rpx solid #808080;
|
|||
|
margin: 0 20rpx;
|
|||
|
text-align: center;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
.name{
|
|||
|
font-size: 28rpx;
|
|||
|
color: #3D3D3D;
|
|||
|
font-weight: 600;
|
|||
|
}
|
|||
|
.fanganlist{
|
|||
|
display: flex;
|
|||
|
flex-wrap: wrap;
|
|||
|
.fanganlist_item{
|
|||
|
margin-top: 16rpx;
|
|||
|
margin-right: 16rpx;
|
|||
|
border: 2rpx solid #fff;
|
|||
|
width: 150rpx;
|
|||
|
text-align: center;
|
|||
|
padding-top: 26rpx;
|
|||
|
height: 150rpx;
|
|||
|
background: #F0F5F6;
|
|||
|
border-radius: 12rpx 12rpx 12rpx 12rpx;
|
|||
|
.shi{
|
|||
|
font-size: 28rpx;
|
|||
|
color: #3D3D3D;
|
|||
|
}
|
|||
|
.price{
|
|||
|
font-size: 32rpx;
|
|||
|
color: #FF1C1C;
|
|||
|
text{
|
|||
|
font-size: 44rpx;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
.jieshao{
|
|||
|
width: 698rpx;
|
|||
|
max-height: 450rpx;
|
|||
|
background: #FFFFFF;
|
|||
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|||
|
margin: auto;
|
|||
|
margin-top: 38rpx;
|
|||
|
padding: 22rpx 24rpx;
|
|||
|
box-sizing: border-box;
|
|||
|
.time{
|
|||
|
font-weight: 600;
|
|||
|
font-size: 28rpx;
|
|||
|
color: #3D3D3D;
|
|||
|
}
|
|||
|
.zujin{
|
|||
|
display: flex;
|
|||
|
justify-content: space-between;
|
|||
|
margin-top: 28rpx;
|
|||
|
.one{
|
|||
|
font-weight: 600;
|
|||
|
font-size: 28rpx;
|
|||
|
color: #6F6F6F;
|
|||
|
}
|
|||
|
.two{
|
|||
|
font-weight: 600;
|
|||
|
font-size: 24rpx;
|
|||
|
color: #3D3D3D;
|
|||
|
}
|
|||
|
}
|
|||
|
.rt{
|
|||
|
width: 156rpx;
|
|||
|
padding-top: 20rpx;
|
|||
|
box-sizing: border-box;
|
|||
|
image{
|
|||
|
width: 156rpx;
|
|||
|
height: 120rpx;
|
|||
|
}
|
|||
|
}
|
|||
|
.lt{
|
|||
|
.name{
|
|||
|
font-weight: 600;
|
|||
|
font-size: 32rpx;
|
|||
|
color: #3D3D3D;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
</style>
|