he2802 3 năm trước cách đây
mục cha
commit
54431a04c1
1 tập tin đã thay đổi với 20 bổ sung17 xóa
  1. 20 17
      pages2/class/detail.vue

+ 20 - 17
pages2/class/detail.vue

@@ -72,23 +72,27 @@
 					</view>
 					<view style="color: #007AFF;font-size: 30rpx;font-weight: bold;width: 15%;text-align: center;" @click="postNote">提交</view>
 				</view>
-				<view v-for="(item, index) in noteList">
+				<view v-for="(item, index) in noteList" >
 					<view class="dateBox">{{$method.timestampToTime(item.dateNote)}}</view>
-					<view class="noteBox" v-for="(item1, index1) in item.userNotes">
-						<view class="tBox">
-							<image src="/static/icon/note1.png" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image>
-							<view class="title leftPadding">{{item1.dateNote}}</view>
-						</view>
-						<view class="tBox2">
-							<view class="title" style="width: 39rpx;height: 39rpx;margin:0 29rpx;">{{$method.secondToDate(item1.noteSecond)}}</view>
-							<view class="t2Content leftPadding">fdgdfgd</view>
-						</view>
-						<view class="tBox">
-							<image src="/static/icon/note2.png" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image>
-							<view class="title leftPadding">{{item1.sectionName}}</view>
+						<view class="noteBox" v-for="(item1, index1) in item.userNotes">
+							<view>
+								<view class="tBox" v-if="playSectionId==item1.sectionId">
+									<image src="/static/icon/note1.png" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image>
+									<view class="title leftPadding">{{item1.dateNote}}</view>
+								</view>
+								<view class="tBox2">
+									<view class="title" style="width: 39rpx;height: 39rpx;margin:0 29rpx;">{{$method.secondToDate(item1.noteSecond)}}</view>
+									<view class="t2Content leftPadding">fdgdfgd</view>
+								</view>
+								<view class="tBox" v-if="playSectionId!=item1.sectionId">
+									<image src="/static/icon/note2.png" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image>
+									<view class="title leftPadding">{{item1.sectionName}}</view>
+								</view>
+								<view style="margin-left: 97rpx;" class="t2Content leftPadding">{{item1.noteText}}</view>
+							</view>
+							
 						</view>
-						<view style="margin-left: 97rpx;" class="t2Content leftPadding">{{item1.noteText}}</view>
-					</view>
+
 				</view>
 			</view>
 			<!--答疑 -->
@@ -768,9 +772,8 @@ page {
 .noteBox {
 	width: 100%;
 	background: #ffffff;
-	border-radius: 16rpx;
 	padding: 10rpx;
-
+	border-radius: 16rpx;
 }
 .dateBox {
 	width: 216rpx;