wangyuan 2 лет назад
Родитель
Сommit
494ad73f36

+ 2 - 1
pages/appointment/appointment.wxml

@@ -61,8 +61,9 @@
             <view class="week-body-item backup-week-body-item {{item.disabled ? 'week-body-item-disabled' : ''}} {{item.date == '约满' ? 'week-body-item-full' : ''}}" wx:for="{{backupWeekList}}" wx:key="index">
               <view class="date">{{item.date}}</view>
             </view>
-            <view class="week-body-item {{item.disabled ? 'week-body-item-disabled' : ''}} {{item.active ? 'week-body-item-active' : ''}} {{item.date == '约满' ? 'week-body-item-full' : ''}} {{item.busy ? 'week-body-item-active-busy' : ''}}" wx:for="{{weekList}}" wx:key="index">
+            <view class="week-body-item {{item.disabled ? 'week-body-item-disabled' : ''}} {{item.active ? 'week-body-item-active' : ''}} {{item.date == '约满' ? 'week-body-item-full' : ''}}" wx:for="{{weekList}}" wx:key="index">
               <view class="date" data-date="{{item.dateStr}}" data-disabled="{{item.disabled}}" data-index="{{index}}" bindtap="handleSelectDate">{{item.date}}</view>
+              <view wx:if="{{item.busy}}" class="week-body-item-active-busy-dot"></view>
             </view>
           </view>
         </view>

+ 10 - 0
pages/appointment/appointment.wxss

@@ -175,6 +175,7 @@
   width: 90rpx;
   height: 90rpx;
   color: #333333;
+  position: relative;
 }
 .week-body-item-disabled {
   color: #999999;
@@ -190,6 +191,15 @@
 .week-body-item-active-busy {
   background-color: #9A1D16;
 }
+.week-body-item-active-busy-dot {
+  width: 12rpx;
+  height: 12rpx;
+  background: #9A1D16;
+  border-radius: 50%;
+  position: absolute;
+  bottom: 8rpx;
+  left: calc(50% - 6rpx);
+}
 .date {
   width: 100%;
   height: 100%;

+ 1 - 2
pages/myAppointment/myAppointment.wxss

@@ -42,10 +42,10 @@
 }
 .data-item {
   width: 690rpx;
-  height: 352rpx;
   margin: 20rpx auto 0;
   background: #FFFFFF;
   border-radius: 20rpx;
+  padding-bottom: 20rpx;
 }
 .top {
   width: 100%;
@@ -79,7 +79,6 @@ s-done {
 }
 .bototm {
   width: 100%;
-  height: 60rpx;
   margin-top: 20rpx;
   display: flex;
   justify-content: flex-end;