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

- 将应用版本号更新至1.0.50
- 修改edu-core依赖为git引用,版本更新至1.0.9
- 优化用户资料页面,增加用户信息展示和编辑功能
- 更新请求配置,改善加载动画逻辑
- 添加新权限请求以支持外部存储访问
This commit is contained in:
2026-03-24 14:25:45 +08:00
parent 0a69e1d830
commit 1efcf2d675
9 changed files with 142 additions and 1068 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

@@ -22,13 +22,20 @@
</view>
</view>
<view class="userInfoBox">
<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="phone" v-if="userMes.tel">手机号({{ userMes.tel }})</view>
<view class="vip_type" v-if="textList.length>0">
<view class="vip_type_item" v-for="(item,index) in textList" :key="index">
{{item}}<image src="@/static/icon/chao_vip.png"></image>
</view>
</view>
<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>
<br clear="both" />
</view>
@@ -318,6 +325,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 || '';
});
}
},
@@ -432,18 +442,25 @@ export default {
view {
.name {
font-weight: bold;
width: 100%;
font-size: 30rpx;
line-height: 40rpx;
font-weight: bold;
font-size: 32rpx;
color: #6990c7 !important;
line-height: 1.2;
}
.user-profile{
font-size: 28rpx;
font-weight: normal;
display: inline-block;
}
.phone {
font-size: 26rpx;
line-height: 40rpx;
color: #6990c7;
color: #6990c7 !important;
margin: 6rpx 0;
}
.per_user_img {
display: inline-block;
width: 40upx;
@@ -451,6 +468,12 @@ export default {
margin-left: 10rpx;
vertical-align: super;
}
.watch-time {
margin-top: 10rpx;
display: inline-block;
margin-right: 10rpx;
}
}
}
@@ -732,7 +755,7 @@ export default {
}
.modal_vip{
margin-top: 50rpx;
margin-top: 25rpx;
padding: 20rpx 20rpx 0;
height: auto;
display: flex;
@@ -1044,9 +1067,9 @@ export default {
width: 34rpx;
height: 24rpx;
}
.vip_infor{
// .vip_infor{
}
// }
.vip_infor_item{
display: block;
color: #fff;
@@ -1058,9 +1081,9 @@ export default {
.vip_infor_item text{
color: #fff;
}
.vip_btn{
// .vip_btn{
}
// }
.vip_btn button{
background: none;
border: 2rpx solid #294a97;

File diff suppressed because it is too large Load Diff

View File

@@ -828,8 +828,6 @@ export default {
color: $themeColor;
}
.emaPho {}
.emaPho>view {
display: inline-block;
padding: 10rpx 0;
@@ -904,7 +902,8 @@ export default {
border-radius: 50rpx;
&.active {
@include theme("btn_bg") color: #fff;
@include theme("btn_bg");
color: #fff;
}
}
}