master
parent
02cda241c4
commit
59cfec762e
@ -0,0 +1,164 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
<u-popup v-model="show" mode="bottom">
|
||||||
|
<view class="date">
|
||||||
|
<view class="date-title">
|
||||||
|
<view>配送</view>
|
||||||
|
<view>
|
||||||
|
<u-icon name="close-circle-fill" color="#f0efed" size="32"></u-icon>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="date-express">
|
||||||
|
<view v-for="(item,index) in express">
|
||||||
|
<view @click="chooseExpress(index)" :class="{'date-express-item':true,'date-express-item_active':expressIndex==index}" v-if="item.value">{{item.value}}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="date-stitle">送货时间</view>
|
||||||
|
<view class="date-list">
|
||||||
|
<view class="date-list-left">
|
||||||
|
<view v-for="(item,index) in data">
|
||||||
|
<view @click="chooseDate(index,item)"
|
||||||
|
:class="{'date-list-item':true,'date-list-item_active':dateIndex==index}"
|
||||||
|
v-if="item">
|
||||||
|
{{item.ymd}}[{{item.week}}]
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="date-list-right">
|
||||||
|
<view class="lunarData">
|
||||||
|
{{dateObj.lunarData?dateObj.lunarData:''}}
|
||||||
|
</view>
|
||||||
|
<view class="hh">
|
||||||
|
<view class="" v-for="(item,index) in hhList">
|
||||||
|
{{item}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</u-popup>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
// 日期
|
||||||
|
data: {
|
||||||
|
type: Array,
|
||||||
|
default () {
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 快递
|
||||||
|
express: {
|
||||||
|
type: Array,
|
||||||
|
default () {
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
show: true,
|
||||||
|
expressIndex:-1,
|
||||||
|
dateIndex:-1,
|
||||||
|
dateObj:{},
|
||||||
|
hhList:['09:00-15:00','15:00-21:00']
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
chooseExpress(index){
|
||||||
|
this.expressIndex = index
|
||||||
|
},
|
||||||
|
chooseDate(index,item){
|
||||||
|
this.dateIndex = index
|
||||||
|
this.dateObj = item
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.u-drawer-content-visible{
|
||||||
|
border-radius: 30rpx 30rpx 0 0;
|
||||||
|
}
|
||||||
|
.date {
|
||||||
|
padding: 35rpx 0;
|
||||||
|
padding-right: 35rpx;
|
||||||
|
|
||||||
|
&-title {
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #000;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding-left: 35rpx;
|
||||||
|
}
|
||||||
|
&-express{
|
||||||
|
padding-left: 35rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-top:35rpx;
|
||||||
|
margin-bottom:15rpx;
|
||||||
|
&-item{
|
||||||
|
font-size: 24rpx;
|
||||||
|
color:#000;
|
||||||
|
background-color: #f0efed;
|
||||||
|
height:57rpx;
|
||||||
|
line-height: 55rpx;
|
||||||
|
text-align: center;
|
||||||
|
min-width: 180rpx;
|
||||||
|
border:1px solid transparent;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
margin-right:20rpx;
|
||||||
|
margin-bottom:20rpx;
|
||||||
|
}
|
||||||
|
&-item_active{
|
||||||
|
color:#ba8b45;
|
||||||
|
background-color: #fef8ee;
|
||||||
|
border:1px solid #ba8b45;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&-stitle{
|
||||||
|
font-size: 24rpx;
|
||||||
|
color:#000;
|
||||||
|
padding-left:35rpx;
|
||||||
|
margin-bottom:35rpx;
|
||||||
|
}
|
||||||
|
&-list{
|
||||||
|
display: flex;
|
||||||
|
height:510rpx;
|
||||||
|
|
||||||
|
&-left{
|
||||||
|
width:235rpx;
|
||||||
|
height:510rpx;
|
||||||
|
overflow-y: scroll;
|
||||||
|
font-size: 0;
|
||||||
|
}
|
||||||
|
&-item{
|
||||||
|
font-size: 24rpx;
|
||||||
|
color:#787877;
|
||||||
|
background-color: #f0efed;
|
||||||
|
width:235rpx;
|
||||||
|
height:72rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 72rpx;
|
||||||
|
|
||||||
|
}
|
||||||
|
&-item_active{
|
||||||
|
background-color: #fff;
|
||||||
|
color:#000;
|
||||||
|
}
|
||||||
|
&-right{
|
||||||
|
width:calc(100% - 235rpx);
|
||||||
|
padding-top:15rpx;
|
||||||
|
padding-left:75rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Loading…
Reference in new issue