chore: 添加记录观看时长;个人资料添加身份项;

- 将应用版本从1.0.57更新至1.0.58
- 将edu-core依赖从本地路径更新至git仓库地址
- 调整baseUrl配置以使用线上正式环境
- 在用户信息页面中新增用户观看时间标签
This commit is contained in:
2026-03-24 14:26:48 +08:00
parent ff66593f4f
commit 02436fe222
8 changed files with 83 additions and 1380 deletions

View File

@@ -12,7 +12,7 @@
<CommonCourseVideo
:video-list="videoArray"
:current-index="currentVideoIndex !== null ? currentVideoIndex : 0"
:course="{courseTitle:options.navTitle, chapterTitle: curriculumData.title}"
:course="{courseTitle:options.navTitle, chapterTitle: curriculumData.title, catalogueId: curriculumData.catalogueId || '', courseId: curriculumData.courseId || ''}"
:cover="options.curriculumImgUrl || ''"
:http="$http"
/>

View File

@@ -65,9 +65,10 @@
</view>
<view class="userInfoBox" style="margin-left: 20rpx">
<view class="name"
>昵称{{ userMes.nickname ? userMes.nickname : "未设置" }}</view
>
<view class="name">
{{ userMes.nickname ? userMes.nickname : "未设置" }}
<text v-if="userMes.profile" class="user-profile">({{userMes.profile}})</text>
</view>
<view
class="name"
style="
@@ -91,13 +92,18 @@
</view>
</view>
</template>
<view>
<u-tag v-if="userMes.todayWatch" :text="userMes.todayWatch" size="mini" plain plainFill type="success" class="watch-time"></u-tag>
<u-tag v-if="userMes.totalWatch" :text="userMes.totalWatch" size="mini" plain plainFill class="watch-time"></u-tag>
</view>
</view>
</view>
<view
style="
padding: 20rpx 20rpx 0;
margin-top: 50rpx;
margin-top: 25rpx;
height: auto;
display: flex;
align-items: center;
@@ -637,6 +643,9 @@ export default {
if (this.userInfo.id != undefined) {
this.$http.post("common/user/getUserInfo").then((res) => {
this.userMes = res.result;
this.userMes.profile = res.des || '';
this.userMes.todayWatch = res.todayWatch || '';
this.userMes.totalWatch = res.totalWatch || '';
if (this.userMes.userVip) {
}
});
@@ -792,30 +801,39 @@ export default {
view {
.name {
width: 100%;
font-weight: bold;
font-size: 32rpx;
color: #333 !important;
}
width: 100%;
font-weight: bold;
font-size: 32rpx;
color: #6990c7 !important;
line-height: 1.2;
margin-bottom: 6rpx;
}
.user-profile{
font-size: 28rpx;
font-weight: normal;
display: inline-block;
}
.phone {
font-weight: bold;
font-size: 28rpx;
color: #333;
}
.phone {
font-size: 26rpx;
color: #6990c7 !important;
margin: 6rpx 0;
}
.tong {
color: #999;
font-size: 25upx;
}
.per_user_img {
display: inline-block;
width: 40upx;
height: 40upx;
margin-left: 10rpx;
vertical-align: super;
}
.per_user_img {
display: inline-block;
width: 40upx;
height: 40upx;
margin-left: 10rpx;
vertical-align: super;
}
.watch-time {
margin-top: 10rpx;
display: inline-block;
margin-right: 10rpx;
}
}
}
@@ -1033,9 +1051,9 @@ export default {
background-color: transparent !important;
}
uni-page-body {
// background: #d8f8e4 !important;
}
// uni-page-body {
// // background: #d8f8e4 !important;
// }
.bg_top {
padding: 0 30rpx;
@@ -1406,8 +1424,8 @@ uni-page-body {
// margin-right: 10rpx;
}
.zhanghu {
}
// .zhanghu {
// }
.quanyi {
border-top: 1rpx solid #f2d494;

File diff suppressed because it is too large Load Diff