Jelajahi Sumber

fix 修改班级页bug

tiedan 4 tahun lalu
induk
melakukan
6cb94d91b5
4 mengubah file dengan 36 tambahan dan 17 penghapusan
  1. TEMPAT SAMPAH
      images/icon_stu.png
  2. 3 2
      pages/myClass/myClass.js
  3. 20 13
      pages/myClass/myClass.wxml
  4. 13 2
      pages/myClass/myClass.wxss

TEMPAT SAMPAH
images/icon_stu.png


+ 3 - 2
pages/myClass/myClass.js

@@ -31,7 +31,7 @@ Page({
     cardVis: false,
     stuItem: null,
     pageNum: 1,
-    pageSize: 4,
+    pageSize: 20,
     stuInfo: {},
     jobArr: [],
     classVis: false,
@@ -39,7 +39,8 @@ Page({
     classNVis: false,
     scheduleList: [],
     icon_school:app.globalData.imgUrl+"/images/icon_school.png",
-    icon_doc:app.globalData.imgUrl+"/images/icon_doc.png"
+    icon_doc:app.globalData.imgUrl+"/images/icon_doc.png",
+    icon_stu:"/images/icon_stu.png"
 
   },
   // 查询我是否认证

+ 20 - 13
pages/myClass/myClass.wxml

@@ -77,20 +77,26 @@
     </view>
 
 
-
-
-	<view wx:if="{{classVis}}" class="stu_list">
-	  <view class="stu_item" wx:for="{{stuInfo.list}}" bindtap = "onClickShow" data-item="{{item}}">
-	    <van-image round width="120rpx" height="120rpx" src="{{item.avatar}}" fit="cover"/>
-		<view class="stu_con">
-		  <view class="stu_text"> 
-		    <view class="stu_line"><view class="stu_name">{{item.studentName}}</view><van-image width="32rpx" height="32rpx" src="{{item.studentSex==0?gender_icon_m:gender_icon_f}}" fit="cover"/> <van-tag class="stu_tag" type="primary" wx:if="{{item.register==0}}">已登记</van-tag><van-tag class="stu_tag" type="warning" wx:else>未登记</van-tag> </view>
-            <view class="stu_check">查看名片 </view>
-		  </view>
-		  <view class="stu_progress">学习进度:{{item.studyProgress}}%</view>
-		  <van-progress percentage="{{item.studyProgress}}" color="#5FD387"/>
+    <view class="stu_list_container" wx:if="{{classVis}}">
+        <van-cell size="large"   >
+			<view slot="title">
+				<view class="van-cell-text"><van-image width="24" height="24" src="{{icon_stu}}" /> 学员名单</view> 
+			</view>
+		</van-cell>
 		</view>
-	  </view>
+		<view wx:if="{{classVis}}" class="stu_list">
+		<view class="stu_item" wx:for="{{stuInfo.list}}" bindtap = "onClickShow" data-item="{{item}}">
+			<van-image round width="110rpx" height="110rpx" src="{{item.avatar}}" fit="cover"/>
+			<view class="stu_con">
+			<view class="stu_text"> 
+				<view class="stu_line"><view class="stu_name">{{item.studentName}}</view><van-image width="32rpx" height="32rpx" src="{{item.studentSex==0?gender_icon_m:gender_icon_f}}" fit="cover"/> <van-tag class="stu_tag" type="primary" wx:if="{{item.register==0}}">已登记</van-tag><van-tag class="stu_tag" type="warning" wx:else>未登记</van-tag> </view>
+				<view class="stu_check">查看名片 </view>
+			</view>
+			<view class="stu_progress">学习进度:{{item.studyProgress}}%</view>
+			<van-progress percentage="{{item.studyProgress}}" color="#5FD387"/>
+			</view>
+		</view>
+	
 	</view>
 
 	<van-overlay show="{{ cardVis }}" bind:click="onClickHide">
@@ -114,6 +120,7 @@
 				<van-progress percentage="{{stuItem.studyProgress}}" stroke-width="12rpx" color="#5FD387"/>
 			  </view>
 			</view>
+			<view class="card_close"><van-icon name="cross" /></view>
 		</view>
     </van-overlay>
 

+ 13 - 2
pages/myClass/myClass.wxss

@@ -559,6 +559,7 @@ page{
   align-items: center;
   justify-content: center;
   height: 100%;
+  flex-flow: column nowrap;
 }
 
 .card_block {
@@ -567,6 +568,16 @@ page{
   background-color: #fff;
   border-radius: 20rpx;
 }
+.card_close{
+  width:100rpx;
+  height:100rpx;
+  border-radius: 100rpx;
+  background-color: #ffffff;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  margin-top:50rpx;
+}
 .card_info{
   box-sizing: border-box;
   padding:60rpx 80rpx 0rpx 80rpx;
@@ -670,6 +681,6 @@ padding:0rpx 30rpx;
   justify-content: start;
   align-items: center;
 }
-.classInfo_cell .van-image{
+.classInfo_cell .van-image,.stu_list_container .van-image{
   margin-right:20rpx;
-}
+}