Преглед изворни кода

fix: 调整课程详情页面

wenxingxing пре 1 дан
родитељ
комит
e0b3802a68

+ 81 - 0
pages/course/components/newCommentList.vue

@@ -0,0 +1,81 @@
+<template>
+	<view class="contentViewClass">
+		<view class="commentItem" v-for="(item, index) in commentList" :key="index">
+			<image class="comment-avatar" :src="$isEmpty(item.avatar)?defHeadImg:item.avatar" mode="aspectFill"></image>
+			<view class="comment-box">
+				<view class="comment-people">
+					<view class="comment-people-name textOne">{{item.nickName}}</view>
+					<view class="comment-time">{{ $isEmpty(item.createTime)?"":$formatDate(item.createTime) }}</view>
+				</view>
+				<view class="comment-text">{{item.content}}</view>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		name: "newCommentList",
+		props: {
+			commentList: {
+				type: Array,
+				default: () => []
+			}
+		},
+		data() {
+			return {
+				defHeadImg: "/static/image/hall/my_heads_icon.png",
+			};
+		},
+	}
+</script>
+
+<style scoped lang="scss">
+	.contentViewClass {
+		width: 100%;
+		padding-bottom: 180rpx;
+	}
+
+	.commentItem {
+		width: 100%;
+		display: flex;
+		align-items: flex-start;
+		margin-bottom: 24rpx;
+	}
+
+	.comment-avatar {
+		width: 90rpx;
+		height: 90rpx;
+		margin-right: 12rpx;
+	}
+
+	.comment-box {
+		width: calc(100vw - 150rpx);
+	}
+
+	.comment-people {
+		width: 100%;
+		margin-bottom: 12rpx;
+	}
+
+	.comment-people-name {
+		width: 100%;
+		font-weight: 600;
+		font-size: 32rpx;
+		color: #222222;
+		margin-bottom: 12rpx;
+	}
+
+	.comment-time {
+		font-weight: 400;
+		font-size: 28rpx;
+		color: rgba(0, 0, 0, 0.45);
+	}
+
+	.comment-text {
+		font-weight: 400;
+		font-size: 32rpx;
+		color: #222222;
+		line-height: 44rpx;
+	}
+</style>

Разлика између датотеке није приказан због своје велике величине
+ 403 - 298
pages/course/info.vue


BIN
static/image/hall/hear_icon.png


BIN
static/image/hall/share_icon.png


BIN
static/images/new/ke_list-icon.png


BIN
static/images/new/see_more.png


Неке датотеке нису приказане због велике количине промена