diff --git a/service-uniapp-technician/pages/index/center.vue b/service-uniapp-technician/pages/index/center.vue index 06c3338..a75f575 100644 --- a/service-uniapp-technician/pages/index/center.vue +++ b/service-uniapp-technician/pages/index/center.vue @@ -49,7 +49,9 @@ @@ -63,7 +65,7 @@ font-size: 24rpx; text-align: center; line-height: 50rpx; - background-color: #EF8C9499; + background-color: #EF8C9433; "> 实时获取你当前的位置 @@ -101,10 +103,12 @@ color="rgb(255, 100, 112)" type="multiple" :default-date="defaultDate" - @select="onConfirm" switch-mode="year-month" :formatter="formatter" - :style="{ height: '300px' }" + v-model:show="calendarShow" + @confirm="calendarConfirm" + ref="calendar" + @close="$refs.calendar.reset()" /> @@ -138,6 +142,10 @@ 服务时间 + + + 请假日历 + 退出登录 @@ -169,7 +177,8 @@ keyValue : 'phone', config : [], phone : '', - defaultDate : [] + defaultDate : [], + calendarShow : false } }, onShow() { @@ -177,6 +186,12 @@ this.getConfig() }, methods: { + clickCalendar(){ + this.calendarShow = true + }, + calendarConfirm(){ + console.log(1); + }, formatter(day){ this.defaultDate.forEach(n => { @@ -188,8 +203,8 @@ return day }, - onConfirm(dates){ - this.defaultDate = dates + onSelectCalendar(dates){ + console.log(1); }, getUserInfo() { this.$api('giveTenInfo', {}, res => { diff --git a/service-uniapp-technician/static/home/30.png b/service-uniapp-technician/static/home/30.png new file mode 100644 index 0000000..2bcc38e Binary files /dev/null and b/service-uniapp-technician/static/home/30.png differ diff --git a/service-uniapp-technician/static/icons/rl.png b/service-uniapp-technician/static/icons/rl.png new file mode 100644 index 0000000..0490444 Binary files /dev/null and b/service-uniapp-technician/static/icons/rl.png differ