Browse Source

修改技师端样式3

master
前端-胡立永 10 months ago
parent
commit
e664cf540a
3 changed files with 22 additions and 7 deletions
  1. +22
    -7
      service-uniapp-technician/pages/index/center.vue
  2. BIN
      service-uniapp-technician/static/home/30.png
  3. BIN
      service-uniapp-technician/static/icons/rl.png

+ 22
- 7
service-uniapp-technician/pages/index/center.vue View File

@ -49,7 +49,9 @@
<view class="" <view class=""
style="height: 270rpx; style="height: 270rpx;
margin: 10rpx; margin: 10rpx;
flex: 1;background-color: #000;
flex: 1;
background-size: 100% 100%;
background: url(/static/home/30.png);
position: relative;"> position: relative;">
<!-- 这里调用地图 --> <!-- 这里调用地图 -->
@ -63,7 +65,7 @@
font-size: 24rpx; font-size: 24rpx;
text-align: center; text-align: center;
line-height: 50rpx; line-height: 50rpx;
background-color: #EF8C9499;
background-color: #EF8C9433;
"> ">
实时获取你当前的位置 实时获取你当前的位置
</view> </view>
@ -101,10 +103,12 @@
color="rgb(255, 100, 112)" color="rgb(255, 100, 112)"
type="multiple" type="multiple"
:default-date="defaultDate" :default-date="defaultDate"
@select="onConfirm"
switch-mode="year-month" switch-mode="year-month"
:formatter="formatter" :formatter="formatter"
:style="{ height: '300px' }"
v-model:show="calendarShow"
@confirm="calendarConfirm"
ref="calendar"
@close="$refs.calendar.reset()"
/> />
<view class="two-card"> <view class="two-card">
@ -138,6 +142,10 @@
<image class="icon" src="/static/icons/m1.png" /> <image class="icon" src="/static/icons/m1.png" />
<view class="title">服务时间</view> <view class="title">服务时间</view>
</view> </view>
<view class="menuItem" @click="clickCalendar">
<image class="icon" src="/static/icons/rl.png" />
<view class="title">请假日历</view>
</view>
<view class="menuItem" @click="logout"> <view class="menuItem" @click="logout">
<image class="icon" src="/static/icons/exit.png" /> <image class="icon" src="/static/icons/exit.png" />
<view class="title">退出登录</view> <view class="title">退出登录</view>
@ -169,7 +177,8 @@
keyValue : 'phone', keyValue : 'phone',
config : [], config : [],
phone : '', phone : '',
defaultDate : []
defaultDate : [],
calendarShow : false
} }
}, },
onShow() { onShow() {
@ -177,6 +186,12 @@
this.getConfig() this.getConfig()
}, },
methods: { methods: {
clickCalendar(){
this.calendarShow = true
},
calendarConfirm(){
console.log(1);
},
formatter(day){ formatter(day){
this.defaultDate.forEach(n => { this.defaultDate.forEach(n => {
@ -188,8 +203,8 @@
return day return day
}, },
onConfirm(dates){
this.defaultDate = dates
onSelectCalendar(dates){
console.log(1);
}, },
getUserInfo() { getUserInfo() {
this.$api('giveTenInfo', {}, res => { this.$api('giveTenInfo', {}, res => {


BIN
service-uniapp-technician/static/home/30.png View File

Before After
Width: 154  |  Height: 98  |  Size: 30 KiB

BIN
service-uniapp-technician/static/icons/rl.png View File

Before After
Width: 200  |  Height: 200  |  Size: 4.2 KiB

Loading…
Cancel
Save