Przeglądaj źródła

启航教培管家 教师端 请假条详情页面修改

常志远 2 lat temu
rodzic
commit
2090443bbf
1 zmienionych plików z 25 dodań i 7 usunięć
  1. 25 7
      pages/teacher/leaveApproval/leaveDetails.vue

+ 25 - 7
pages/teacher/leaveApproval/leaveDetails.vue

@@ -9,10 +9,10 @@
 			<view class="title">
 				周梓轩的请假条
 			</view>
-			<view class="state1" v-show="show==true">
+			<view class="state1" v-show="state==false">
 				待处理
 			</view>
-			<view class="state2" v-show="show==false">
+			<view class="state2" v-show="state==true">
 				已审核
 			</view>
 
@@ -73,7 +73,7 @@
 					郭健康
 				</view>
 			</view>
-			<view class="item" v-show="show==false">
+			<view class="item" v-show="state==true">
 				<view class="title">
 					回复结果
 				</view>
@@ -81,7 +81,7 @@
 					同意
 				</view>
 			</view>
-			<view class="item" v-show="show==false">
+			<view class="item" v-show="state==true">
 				<view class="title">
 					回复时间
 				</view>
@@ -91,10 +91,11 @@
 			</view>
 		</view>
 
-
+    <view class="bottom">
+    	<u-button @click="show = true;">填写意见</u-button>
+    </view>
 		<!-- 弹窗 -->
 		<view class="">
-			<u-button @click="show = true;">打开弹窗</u-button>
 			<u-popup mode="bottom" v-model="show">
 				<view class="content">
 					<scroll-view scroll-y="true">
@@ -133,7 +134,7 @@
 						</view>
 					</scroll-view>
 					<view class="confrim-btn">
-						<u-button @click="show = false;">确定</u-button>
+						<u-button @click="show = false;state=true">确定</u-button>
 					</view>
 				</view>
 			</u-popup>
@@ -344,4 +345,21 @@
 			}
 		}
 	}
+
+   .bottom{
+	   background-color: #fff;
+	   padding: 20rpx 32rpx;
+	   position: fixed;
+	   left: 0;
+	   right: 0;
+	   bottom: 0;
+	   .u-btn{
+		   border-radius: 8px;
+		   background-color: rgba(0, 187, 170, 1);
+		   color: rgba(255, 255, 255, 1);
+		   font-size: 18px;
+	   }
+	   
+   }
+
 </style>