Commit 06036178 by 胡悦

提交学习中心

1 parent 48f9488f
No preview for this file type

15.7 KB | W: | H:

15.6 KB | W: | H:

assets/images/common/study-title.png
assets/images/common/study-title.png
assets/images/common/study-title.png
assets/images/common/study-title.png
  • 2-up
  • Swipe
  • Onion skin

2.49 MB | W: | H:

2.51 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
<template>
<view class="study-box3">
<view>能力分析</view>
<!-- <qiun-data-charts type="radar" :opts="opts" :chartData="chartData" class="charts-box" /> -->
</view>
</template>
<script>
export default {
name: 'CapabilityAnalysis',
props: {
chartData: {
type: Object,
default: () => {}
}
},
data() {
return {
opts: {
color: ["#3B73FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4", "#ea7ccc"],
padding: [0, 5, 0, 5],
dataLabel: false,
enableScroll: false,
labelColors: ['#666666', '#EB4E4E', '#666666', '#666666', '#666666', '#EB4E4E', '#666666', '#EB4E4E', '#666666'],
legend: {
show: false
},
extra: {
radar: {
gridType: "radar",
gridColor: "#dae8fd",
gridCount: 3,
opacity: 0.2,
max: 10,
labelShow: true,
axisLabelTofix: 1, // 保留一位小数
labelFormatter: function (val) {
// 精确到小数点后一位
return typeof val === 'number' ? val.toFixed(1) : val;
}
}
}
},
}
}
}
</script>
<style lang="scss" scoped>
.study-box3 {
width: calc(100% - #{toRpx(64)});
border-radius: toRpx(24);
background: #ffffff;
padding: toRpx(24);
margin: 0 toRpx(32) toRpx(16);
.charts-box {
width: 100%;
height: toRpx(272);
}
}
</style>
\ No newline at end of file \ No newline at end of file
<!-- 累计学习 -->
<template>
<view class="learn-statistics">
<view class="learn-statistics-title">累计学习</view>
<view class="statistics-content">
<view class="statistics-item ">
<view class="statistics-number blue-number">21.3</view>
<view class="statistics-unit blue-number">小时</view>
</view>
<view class="statistics-item">
<view class="text">排名</view>
<view class="statistics-rank">13</view>
<view class="statistics-unit">名</view>
</view>
</view>
<view :class="['progress-box', progressList.length === 1 ? 'only-one' : '']">
<view class="progress-item" v-for="(item, index) in progressList" :key="index">
<view class="progress-item-title">{{ item.title }}</view>
<view class="progress-item-value">
<view class="number">{{ item.value ? item.value : '-' }}</view>
<view v-if="item.value" class="unit">{{ item.unit }}</view>
</view>
<view style="position: relative;">
<view class="progress-bar"></view>
<view class="progress-bar-value" :style="{ width: item.finish ? `${item.finish}%` : '0' }"></view>
</view>
<view class="progress-item-finish">
<template v-if="item.finish">
<view>本周已有</view>
<view class="progress-text">
<view class="number">{{ item.finish + '%' }}</view>的学员完成学习
</view>
</template>
<template v-else>
<view class="no-finish-text">暂无长课程学习安排</view>
</template>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
name: 'LearnStatistics',
props: {
progressList: {
type: Array,
default: () => []
}
},
data() {
return {}
}
}
</script>
<style lang="scss" scoped>
.learn-statistics {
width: calc(100% - #{toRpx(64)});
border-radius: toRpx(24);
background: #ffffff;
padding: toRpx(24) toRpx(32);
margin: 0 toRpx(32) toRpx(20);
&-title {
font-size: toRpx(28);
color: #1A1A1A;
}
.statistics-content {
display: grid;
grid-template-columns: repeat(2, 1fr);
align-items: center;
margin-top: toRpx(16);
.statistics-item {
display: flex;
align-items: baseline;
.blue-number {
color: #3B73FF;
}
.statistics-number {
color: #3B73FF;
font-size: toRpx(40);
font-weight: 700;
}
.statistics-unit {
font-size: toRpx(22);
font-weight: 500;
margin-left: toRpx(4);
}
.text {
color: #808080;
font-size: toRpx(24);
margin-right: toRpx(8);
}
.statistics-rank {
color: #000000;
font-size: toRpx(32);
font-weight: 500;
}
}
}
.progress-box {
display: grid;
grid-template-columns: repeat(2, 1fr);
margin-top: toRpx(40);
gap: toRpx(24);
&.only-one {
grid-template-columns: repeat(1, 1fr);
}
.progress-item {
display: flex;
justify-content: space-between;
flex-direction: column;
background-color: #F5F9FF;
padding: toRpx(24) toRpx(20);
&-title {
font-size: toRpx(32);
color: #808080;
font-size: toRpx(24);
}
&-value {
display: flex;
align-items: baseline;
margin-top: toRpx(16);
.number {
color: #000;
font-size: toRpx(32);
font-weight: 500;
}
.unit {
font-size: toRpx(20);
color: #000;
}
}
.progress-bar {
// position: relative;
width: calc(100% - #{toRpx(68)});
height: toRpx(12);
border-radius: toRpx(8);
opacity: 0.35;
background: linear-gradient(128.8deg, #75bcff 0%, #2c66f7 100%);
margin-top: toRpx(32);
&-value {
position: absolute;
left: 0;
top: toRpx(32);
height: toRpx(12);
border-radius: toRpx(8);
opacity: 1;
background: linear-gradient(128.8deg, #75bcff 0%, #2c66f7 100%);
}
}
.progress-item-finish {
height: toRpx(72);
margin-top: toRpx(40);
font-size: toRpx(22);
color: #808080;
.progress-text {
display: flex;
}
.number {
color: #3B73FF;
}
.no-finish-text {
margin-top: toRpx(30);
}
}
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="recommend-course">
<scroll-view scroll-y ref="scrollViewRef" :scroll-top="scrollTop" @scrolltolower="pageonReachBottom"
:class="getScrollHeight">
<template v-if="recommendCourseList.length">
<view class="recommend-course-list">
<view class="recommend-course-item" v-for="(item, index) in recommendCourseList" :key="index">
<image
class="recommend-course-item-img"
src="../../../../assets/images/common/course-default-bg.webp"
mode="scaleToFill"
/>
<view class="recommend-course-content">
<view class="recommend-course-item-title">
{{ item.title }}
</view>
<view class="recommend-course-item-text">{{ item.courseNum }}节 | {{ item.courseMinutes }}min</view>
</view>
</view>
</view>
</template>
<template v-else>
<view class="nothing flex">
<image class="icon" src="../../../../assets/images/home/nothing.webp" />
暂无数据
</view>
</template>
<template v-if="nothing">
<view class="end-text">到底了!</view>
</template>
</scroll-view>
</view>
</template>
<script>
export default {
name: 'RecommendCourse',
data() {
return {
// recommendCourseList: [],
nothing: false,
recommendCourseList: [
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
{
title: '鸿蒙智行客户沟通技巧打法都收费阿道夫鞍山市',
courseNum: 2,
courseMinutes: 15
},
],
scrollTop: 0,
}
},
computed: {
getScrollHeight() {
const list = this.recommendCourseList;
if (!list || list.length === 0) {
return '';
}
return 'scroll-view'
}
},
}
</script>
<style lang="scss" scoped>
.recommend-course {
height: calc(100% - #{toRpx(100)});
.scroll-view {
margin-top: toRpx(40);
height: calc(100% - #{toRpx(70)});
.recommend-course-list {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: toRpx(32);
padding: 0 toRpx(40) toRpx(32);
.recommend-course-item {
width: 100%;
height: toRpx(376);
box-shadow: 0 toRpx(8) toRpx(24) 0 #2a61eb1a;
border-radius: toRpx(24);
.recommend-course-item-img {
width: 100%;
height: toRpx(180);
border-radius: toRpx(16) toRpx(16) 0 0;
}
.recommend-course-content {
padding: toRpx(32);
.recommend-course-item-title {
font-size: toRpx(30);
color: #292D33;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
margin-bottom: toRpx(16);
}
.recommend-course-item-text {
font-size: toRpx(24);
color: #999EA8;
}
}
}
}
}
}
.nothing {
width: 100%;
flex-direction: column;
margin-top: toRpx(380);
font-size: toRpx(28);
color: #999999;
.icon {
width: toRpx(678);
height: toRpx(284);
margin-bottom: toRpx(24);
}
}
.end-text {
color: #999;
text-align: center;
padding: toRpx(30) 0;
font-size: toRpx(24);
}
/deep/ {
.uni-scroll-view-content {
height: calc(100% - #{toRpx(20)});
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="study-box2">
<view class="tab-list">
<view @click="handleTabClick(index)" :class="['tab-item', tabIndex === index ? 'active' : '']"
v-for="(item, index) in tabList" :key="index">
<view class="tab-item-title">{{ item.title }}</view>
</view>
</view>
<view class="rank-title">周转化率排名</view>
<view class="rank-value">
<view class="rank-number">{{ barValue }}</view>名
</view>
<view class="bar-box">
<view class="bar-item" v-for="(item, index) in barList" :key="index">
<view class="bar-label">{{ item.label }}</view>
<view class="bar-container">
<view class="bar" :class="item.class" :style="{ width: item.value + '%' }"></view>
<view class="bar-text" :style="{ left: `calc(${item.value}%)` }">{{ item.value }}%</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
name: 'WeeklyConversionRate',
props: {
barList: {
type: Array,
default: () => []
},
barValue: {
type: Number,
default: 0
}
},
data() {
return {
tabList: [
{
title: '延保',
value: '1'
},
{
title: '权益',
value: '2'
},
{
title: '轻改',
value: '3'
},
],
tabIndex: 0,
}
},
methods: {
handleTabClick(index) {
this.tabIndex = index
}
}
}
</script>
<style lang="scss" scoped>
.study-box2 {
width: calc(100% - #{toRpx(64)});
border-radius: toRpx(24);
background: #ffffff;
padding: toRpx(24);
margin: 0 toRpx(32) toRpx(16);
.tab-list {
display: flex;
width: 100%;
height: toRpx(64);
background-color: #F5F6F7;
border-radius: toRpx(12);
color: #666666;
font-size: toRpx(24);
.tab-item {
display: flex;
flex: 1;
align-items: center;
justify-content: center;
margin: toRpx(4);
&.active {
background-color: #fff;
color: #1A1A1A;
border-radius: toRpx(10);
}
}
}
.rank-title {
font-size: toRpx(28);
color: #1A1A1A;
margin-top: toRpx(32);
margin-left: toRpx(8);
}
.rank-value {
display: flex;
align-items: baseline;
color: #3B73FF;
font-size: toRpx(22);
font-weight: 500;
margin-top: toRpx(16);
margin-left: toRpx(8);
.rank-number {
font-size: toRpx(40);
font-weight: 700;
margin-right: toRpx(4);
}
}
/* 进度条整体项样式 */
.bar-box {
margin-top: toRpx(28);
}
.bar-item {
display: flex;
align-items: center;
margin-bottom: toRpx(20);
padding-right: toRpx(120);
&:last-child {
margin-bottom: toRpx(10);
}
.bar-label {
display: inline-block;
width: toRpx(60);
text-align: right;
margin-right: toRpx(10);
font-size: toRpx(22);
}
}
/* 进度条容器样式 */
.bar-container {
position: relative;
flex: 1;
// width: toRpx(380);
height: toRpx(20);
// overflow: hidden;
}
/* 进度条填充样式 */
.bar {
height: 100%;
border-radius: 0 4px 4px 0;
&.top1 {
background: linear-gradient(90deg, #708dff 0%, #6858f5 100%);
}
&.my {
background: linear-gradient(90deg, #389fff 0%, #2c66f7 100%);
}
}
/* 进度百分比文字样式 */
.bar-text {
margin-left: toRpx(20);
position: absolute;
top: 50%;
transform: translateY(-50%);
white-space: nowrap;
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -153,6 +153,12 @@ ...@@ -153,6 +153,12 @@
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},
{
"path": "pages/common/studyDetail/longCourse",
"style": {
"navigationStyle": "custom"
}
} }
], ],
"globalStyle": { "globalStyle": {
......
<template>
<view class="detail-box">
<view class="nav-bar">
<view class="back" @click="backPage(null)">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="title">任务详情</view>
</view>
<view class="course-detail-box">
<view class="course-detail-img-box">
<image class="course-detail-img" src="../../../assets/images/common/course-default-bg.webp" mode="scaleToFill" />
<view class="time-limit-tag"></view>
</view>
<view class="course-detail-content">
<view class="course-title">鸿蒙智行客户沟通技巧解析</view>
<view class="course-progress">
<view class="progress-label">任务进度</view>
<view class="progress-bar"></view>
</view>
<view class="course-info">
<view class="info-label">课程数</view>
<view class="info-value">6节|69min</view>
</view>
<view class="course-finish-time">
<view class="finish-label">完成时间</view>
<view class="finish-value">2025.05.25 18:00</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
}
}
</script>
<style scoped lang="scss">
.detail-box {
position: relative;
width: 100vw;
height: 100vh;
background-image: url('@/assets/images/common/page-bg.webp');
background-size: 100%;
box-sizing: border-box;
padding: toRpx(160) toRpx(64) 0;
}
.nav-bar {
position: fixed;
width: 100%;
height: toRpx(96);
left: 0;
top: toRpx(48);
z-index: 999;
pointer-events: none;
.back {
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
pointer-events: auto;
}
.title {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: 700;
font-size: toRpx(32);
color: #1a1a1a;
}
}
.course-detail-box {
display: flex;
border-radius: toRpx(32);
background: #ffffff59;
box-shadow: inset 0 0 16px 0 #ffffff;
padding: toRpx(32) toRpx(48);
.course-detail-img-box {
position: relative;
margin-right: toRpx(40);
.course-detail-img {
width: toRpx(472);
height: toRpx(279);
border-radius: toRpx(24);
}
.time-limit-tag {
position: absolute;
top: 0;
left: 0;
width: toRpx(122);
height: toRpx(48);
background-image: url('../../../assets/images/common/limit-page.png');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
z-index: 1;
color: #fff;
}
}
.course-detail-content {
.course-title {
font-size: toRpx(32);
color: #1a1a1a;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!