gx
queenwuli
2021-01-11 1d1e327a1cbf8bd822078a9f71894f25ddcee437
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<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>