feat: 1. 增加学习累计时长显示;2. 修改学术传承分类;

- 将应用版本号更新至1.0.11 (versionCode 1011)
- 修改edu-core依赖为git仓库引用 (v1.0.11)
- 在课程详情页中添加catalogueId和courseId到课程信息
- 更新“我的”页面,增加用户资料展示,包括今日观看和总观看次数
- 新增样式文件mixin.scss,定义主题色
- 添加搜索图标
This commit is contained in:
2026-03-27 11:01:27 +08:00
parent c89c937bc7
commit 2a8a3b6017
9 changed files with 1036 additions and 1543 deletions

View File

@@ -34,12 +34,17 @@
</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>
<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>
@@ -256,6 +261,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 || '';
});
}
},
@@ -429,6 +437,12 @@ export default {
line-height: 40rpx;
color: #333;
}
.user-profile{
font-size: 28rpx;
font-weight: normal;
display: inline-block;
}
.phone {
font-size: 26rpx;
@@ -442,6 +456,11 @@ export default {
margin-left: 10rpx;
vertical-align: super;
}
.watch-time {
margin-top: 10rpx;
display: inline-block;
margin-right: 10rpx;
}
}
}