<template>
|
<!-- 弹窗 -->
|
<uni-popup ref="popup" type="top">
|
<view class="popup-container" :style="{'height':windowHeight}">
|
<view class="popup-content">
|
<view class="filter-content-time">
|
<text>开始时间</text>
|
<picker mode="date" :value="date" :start="startDate" :end="endDate" @change="bindDateChange">
|
<view class="gray flex align-center">
|
<text>请选择</text>
|
<text class="iconfont iconarrow-backimg"></text>
|
</view>
|
</picker>
|
</view>
|
<view class="filter-content-time">
|
<text>结束时间</text>
|
<picker mode="date" :value="date" :start="startDate" :end="endDate" @change="bindDateChange">
|
<view class="gray flex align-center">
|
<text>请选择</text>
|
<text class="iconfont iconarrow-backimg"></text>
|
</view>
|
</picker>
|
</view>
|
<view class="filter-content-row">
|
<view>
|
<text>客户</text>
|
</view>
|
<view class="img-box">
|
<image class="header-img mr-20" src="../../../static/images/default-avatar.png"></image>
|
<navigator url="../../member/selectCustomer" hover-class="none">
|
<text class="iconfont iconjia gray-outline-btn-circle ml-5"></text>
|
</navigator>
|
</view>
|
</view>
|
<view class="filter-content-row">
|
<view>
|
<text>员工</text>
|
</view>
|
<view class="img-box">
|
<image class="header-img mr-20" src="../../../static/images/default-avatar.png"></image>
|
<navigator url="../../manager/selectEmployee" hover-class="none">
|
<text class="iconfont iconjia gray-outline-btn-circle ml-5"></text>
|
</navigator>
|
</view>
|
</view>
|
</view>
|
<view class="btn-group">
|
<button class="white-btn flex-1">重置</button>
|
<button class="blue-btn flex-1 ml-10">确定</button>
|
</view>
|
</view>
|
</uni-popup>
|
</template>
|
|
<script>
|
import uniPopup from '../../../components/uni-popup/uni-popup'
|
import DateTimePicker from '../../../components/bory-dateTimePicker/bory-dateTimePicker.vue'
|
export default {
|
components: {
|
uniPopup,
|
DateTimePicker
|
},
|
data() {
|
return{
|
windowHeight: "200px",
|
}
|
},
|
props:{
|
isShow: {
|
default: false
|
}
|
},
|
watch:{
|
isShow(newVal){
|
if(newVal){
|
this.$refs.popup.open()
|
}else{
|
this.$refs.popup.close()
|
}
|
}
|
},
|
mounted() {
|
uni.getSystemInfo({
|
success: (res) => {
|
this.windowHeight = res.windowHeight+"px";
|
} })
|
},
|
methods:{
|
showTime () {
|
this.$refs['date-time'].show();
|
}
|
}
|
}
|
</script>
|
|
<style>
|
.popup-container{
|
display: flex;
|
flex-direction: column;
|
justify-content: space-between;
|
background: #FFFFFF;
|
padding: 0 10px;
|
}
|
.filter-content-time{
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
border-bottom: 1px solid #EDEAF4;
|
padding: 10px 0;
|
}
|
.filter-content-row{
|
padding: 10px 0;
|
border-bottom: 1px solid #EDEAF4;
|
}
|
.img-box{
|
display: flex;
|
align-items: center;
|
padding: 0 10px;
|
margin-top: 10px;
|
}
|
.header-img{
|
width: 45px;
|
height: 45px;
|
border-radius: 50%;
|
}
|
.btn-group{
|
display: flex;
|
margin: 20px 0;
|
}
|
</style>
|