Procházet zdrojové kódy

研学细节优化

vaecebyZ před 9 měsíci
rodič
revize
9248443b3a
2 změnil soubory, kde provedl 18 přidání a 18 odebrání
  1. 16 16
      study/community/detail.vue
  2. 2 2
      study/courseDetail.vue

+ 16 - 16
study/community/detail.vue

@@ -43,7 +43,7 @@
 			<!-- 评论列表 -->
 			<view class="comment">
 				<view class="title">
-					共3条评论
+					共0条评论
 				</view>
 				<zs-list mt="0" @load="loadMore" :status="status">
 					<view class="comment-item" v-for="(item,index) in list" :key="index">
@@ -120,13 +120,13 @@
 				navBareight: 45,//导航栏高度
 				status: 'noMore',
 				list:[
-					{
-						head:require('../../static/logo.png'),
-						userName:'李老师',
-						content:'继续加油哦,看好你!',
-						createTime:'2023-08-29 21:13:56 ',
-						ip:'成都市',
-					}
+				// 	{
+				// 		head:require('../../static/logo.png'),
+				// 		userName:'李老师',
+				// 		content:'继续加油哦,看好你!',
+				// 		createTime:'2023-08-29 21:13:56 ',
+				// 		ip:'成都市',
+				// 	}
 				]
 			}
 		},
@@ -154,14 +154,14 @@
 			},
 			send(val){
 				// console.log(val);
-				const user = JSON.parse(uni.getStorageSync('userInfo'))
-				this.list.push({
-						head:user.imgPath,
-						userName:user.nickname,
-						content:val.detail.value,
-						createTime:uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM:ss'),
-						// ip:'成都市',
-				})
+				// const user = JSON.parse(uni.getStorageSync('userInfo'))
+				// this.list.push({
+				// 		head:user.imgPath,
+				// 		userName:user.nickname,
+				// 		content:val.detail.value,
+				// 		createTime:uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM:ss'),
+				// 		// ip:'成都市',
+				// })
 				this.text = ''
 				uni.showToast({
 					title: '评论经审核后才会显示。',

+ 2 - 2
study/courseDetail.vue

@@ -16,9 +16,9 @@
 				{{info.courseName}}
 			</view>
 			<view class="type-box">
-				<view class="type">
+				<!-- <view class="type">
 					天文课程-天眼
-				</view>
+				</view> -->
 				<view class="times">
 					{{info.chapters[current].viewedCount}}次播放
 				</view>