li-guang
2020-12-21 c93eff979aba7e4e071b3363f9146d5b4d49996e
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
<template>
    <!-- 确认服务单 -->
    <view>
        <view class="header flex align-center mt-10">
            <image class="header-img" src="../../static/images/head-img.jpg"></image>
            <view class="ml-10">
                <view class="font-16">
                    <text>李某</text>
                    <text class="ml-20">15588881111</text>
                </view>
                <text class="font-14 gray mt-5">普通会员</text>
            </view>
        </view>
        <view class="font-16 content">
            <view class="content-row flex align-center justify-between">
                <text>预约时间</text>
                <text class="gray" @click="selectDatePicker()">{{time}}</text>
            </view>
            <date-time-picker ref='date-time' type='datetime' @change='dateTimeChange'></date-time-picker>
            <view class="content-row flex align-center justify-between">
                <text>预约技师</text>
                <view class="blue">
                    <picker mode="selector" :range="technicianList" @change="technicianChange">
                        <view>
                            <text class="mr-5">{{technician}}</text>
                            <text class="iconfont iconjiantouarrow486"></text>
                        </view>
                    </picker>
                </view>
            </view>
        </view>
        <view class="content">
            <view class="content-row flex align-center" v-for="item in 3">
                <image class="product-img" src="../../static/images/product.jpg" mode="aspectFill"></image>
                <view class="flex justify-between align-center flex-1 ml-10">
                    <view class="flex flex-v">
                        <text class="font-12">面部护理</text>
                        <text class="font-10 gray mt-5">时长: 30分钟</text>
                        <text class="font-10 gray mt-5">有效期至: 2021-12-20</text>
                    </view>
                    <view>
                        <text class="font-16">×1</text>
                    </view>
                </view>
            </view>
            <view class="content-row right">
                <text class="font-16 blue">共3项服务</text>
            </view>
        </view>
        <view class="content input-row flex">
            <text class="mr-10">备注</text>
            <input type="text" value="" placeholder="客户需求" placeholder-class='placeholder'/>
        </view>
        <button class="sticky-footer blue-btn">确认提交</button>
    </view>
</template>
 
<script>
    import DateTimePicker from '../../components/bory-dateTimePicker/bory-dateTimePicker.vue'
    export default{
        components:{
            DateTimePicker
        },
        data(){
            return{
                time:'2020-12-12 19:06',
                technicianList:['赵姐','钱姐','孙姐'],
                technician:'赵姐'
            }
        },
        methods:{
            selectDatePicker () {
                this.$refs['date-time'].show();
            },
            dateTimeChange(value) {
                this.time=value
            },
            technicianChange(e){
                this.technician = this.technicianList[e.detail.value];
            },
        }
    }
</script>
 
<style>
    page{
        background: #F6F6F8;
    }
    .header{
        background: #FFFFFF;
        border: 1px solid #EDEAF4;
        border-radius: 4px;
        box-shadow:0 6px 6px rgba(237,234,244,0.5);
        padding: 10px;
    }
    .header-img{
        width: 48px;
        height: 48px;
        border-radius: 50%;
    }
    .content{
        margin: 10px;
        padding: 0 10px;
        background: #FFFFFF;
        border: 1px solid #EDEAF4;
        border-radius: 4px;
        box-shadow:0 6px 6px rgba(237,234,244,0.5);    
    }
    .content-row{
        border-bottom: 1px solid #EDEAF4;
        padding: 10px 5px;
    }
    .content-row:nth-last-child(1){
        border: 0;
    }
    .product-img{
        width: 53px;
        height: 53px;
        border-radius: 4px;
    }
    .input-row{
        padding: 10px;
    }
</style>