连云港陪玩陪聊
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chunwan/pages/peiwan/confirm.vue

352 lines
7.4 KiB

<template>
<view class="peiwan">
<view class="peiwan-hd">
<view class="title">约玩项目</view>
<view class="content">
<view class="item" :class="clickIndex == idx?'item-active':(idx <= 3?'item-on':'')" v-for="idx in 9" :key="idx">
<view class="name">K歌</view>
<view class="price">158.00</view>
</view>
</view>
</view>
<view class="peiwan-hd">
<view class="title">服务时长</view>
<view class="fuwu">
<view class="item">
<view class="a">服务时长</view>
<view class="b">
<u-number-box v-model="value" @change="valChange"></u-number-box>
</view>
</view>
<view class="item">
<view class="a">服务金额</view>
<view class="b">
<text>¥158.00</text>
</view>
</view>
</view>
</view>
<view class="peiwan-hd">
<view class="title">服务信息</view>
<view class="info">
<view class="item">
<view class="a">联系人</view>
<view class="b">
<input type="text" placeholder="请输入" />
</view>
</view>
<view class="item">
<view class="a">见面位置</view>
<view class="b">
<view class="txt txt-on">请选择位置</view>
<image src="@/static/icon-arrow.png"></image>
</view>
</view>
<view class="item">
<view class="a">详细地址</view>
<view class="b">
<input type="text" placeholder="请输入" />
</view>
</view>
<view class="item">
<view class="a">见面时间</view>
<view class="b">
<view class="txt txt-on">请选择</view>
<image src="@/static/icon-arrow.png"></image>
</view>
</view>
<view class="item">
<view class="a">联系电话</view>
<view class="b">
<input type="text" placeholder="请输入" />
</view>
</view>
<view class="item">
<view class="a">微信号</view>
<view class="b">
<input type="text" placeholder="请输入" />
</view>
</view>
<view class="item">
<view class="a">距离陪玩师</view>
<view class="b">
0.00KM
</view>
</view>
<view class="item">
<view class="a">路费<text>4元/km</text></view>
<view class="b">
¥0.00
</view>
</view>
</view>
</view>
<view class="peiwan-hd">
<view class="title">支付方式</view>
<view class="pay">
<view class="item" :class="tabIndex == 1?'item-on':''" @click="tabItem(1)">
<view class="a"><image src="@/static/wxpay.png"></image>微信支付</view>
<view class="b">微信快捷支付
<image class="img1" src="@/static/icon-check.png"></image>
<image class="img2" src="@/static/icon-check-on.png"></image>
</view>
</view>
<view class="item" :class="tabIndex == 2?'item-on':''" @click="tabItem(2)">
<view class="a"><image src="@/static/zfb.png"></image>支付宝支付</view>
<view class="b">支付宝支付
<image class="img1" src="@/static/icon-check.png"></image>
<image class="img2" src="@/static/icon-check-on.png"></image>
</view>
</view>
</view>
</view>
<view class="peiwan-fd">
<view class="price">
合计:¥28.00<text>通过阿里云提供计算服务</text>
</view>
<view class="btn">立即支付</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
tabIndex: 1,
value: 2,
clickIndex: 1
};
},
methods: {
valChange(e) {
console.log('当前值为: ' + e.value)
},
tabItem(index){
this.tabIndex = index;
}
}
}
</script>
<style scoped lang="scss">
.peiwan{
padding: 0 25rpx 160rpx;
overflow: hidden;
&-fd{
background-color: #FFFFFF;
width: 100%;
padding: 30rpx 25rpx;
box-sizing: border-box;
position: fixed;
left: 0;
bottom: 0;
z-index: 22;
display: flex;
align-items: center;
justify-content: space-between;
.price{
font-weight: 500;
font-size: 30rpx;
color: #222222;
text{
display: block;
font-size: 24rpx;
color: #999999;
text-align: left;
margin-top: 10rpx;
}
}
.btn{
width: 230rpx;
line-height: 80rpx;
background: linear-gradient(0deg, #000000, #3D3B38);
box-shadow: 0px 4rpx 18rpx 0px rgba(42,41,39,0.34);
border-radius: 80rpx;
text-align: center;
font-weight: 400;
font-size: 30rpx;
color: #FFFFFF;
}
}
&-hd{
overflow: hidden;
.title{
font-weight: 500;
font-size: 32rpx;
color: #222222;
margin-top: 30rpx;
}
.pay{
padding: 20rpx 30rpx;
background: #FFFFFF;
border-radius: 20rpx;
margin-top: 20rpx;
.item{
padding: 10rpx 0;
display: flex;
align-items: center;
justify-content: space-between;
font-weight: 400;
font-size: 28rpx;
color: #333333;
.a{
flex: 1;
display: flex;
align-items: center;
image{
width: 60rpx;
height: 60rpx;
margin-right: 10rpx;
}
}
.b{
font-size: 28rpx;
color: #CCCCCC;
display: flex;
align-items: center;
image{
width: 32rpx;
height: 32rpx;
margin-left: 20rpx;
}
.img1{
display: block;
}
.img2{
display: none;
}
}
&-on{
.b{
.img1{
display: none;
}
.img2{
display: block;
}
}
}
}
}
.info{
width: 100%;
background: #FFFFFF;
border-radius: 20rpx;
padding: 0 30rpx;
box-sizing: border-box;
margin-top: 20rpx;
.item{
padding: 35rpx 0;
display: flex;
align-items: center;
justify-content: space-between;
border-top: 1px solid #EAEAEA;
&:first-child{
border-top-color: #FFFFFF;
}
.a{
font-weight: 500;
font-size: 30rpx;
color: #222222;
text{
font-size: 24rpx;
color: #999999;
margin-left: 10rpx;
}
}
.b{
flex: 1;
display: flex;
align-items: center;
justify-content: flex-end;
font-size: 28rpx;
color: #222222;
image{
width: 40rpx;
height: 40rpx;
}
input{
width: 100%;
text-align: right;
line-height: 50rpx;
padding: 0 20rpx;
box-sizing: border-box;
height: 50rpx;
font-size: 28rpx;
color: #222222;
}
.txt-on{
font-weight: 500;
font-size: 28rpx;
color: #808080;
}
}
}
}
.fuwu{
width: 100%;
background: #FFFFFF;
border-radius: 20rpx;
padding: 20rpx 30rpx;
box-sizing: border-box;
margin-top: 20rpx;
.item{
padding: 10rpx 0;
display: flex;
align-items: center;
.a{
font-weight: 500;
font-size: 30rpx;
color: #222222;
margin-right: 50rpx;
}
.b{
flex: 1;
text{
font-weight: 500;
font-size: 28rpx;
color: #E70C0C;
}
}
}
}
.content{
margin-top: 20rpx;
overflow: hidden;
width: 110%;
.item{
width: 240rpx;
height: 140rpx;
background: url(@/static/icon-xianxia.png) center top no-repeat;
background-size: contain;
float: left;
text-align: left;
padding: 30rpx;
box-sizing: border-box;
border: 1px solid #F3F4F5;
&-on{
background: url(@/static/icon-xianshang.png) center top no-repeat;
background-size: contain;
}
&-active{
border: 1px solid #000;
}
.name{
font-weight: 500;
font-size: 30rpx;
color: #222222;
white-space: nowrap;
overflow: hidden;
}
.price{
font-weight: 500;
font-size: 24rpx;
color: #E70C0C;
margin-top: 10rpx;
}
}
}
}
}
</style>