Commit f1450b49 by cen

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.5.0

2 parents 4000f93a 51758c19
...@@ -458,4 +458,52 @@ module.exports = { ...@@ -458,4 +458,52 @@ module.exports = {
...data ...data
}) })
}, },
// 新 学习中心 - 开始测评
startExam(data) {
return http.post({
method: 'dj.pad.api.staff.study.exam.start',
projectName: 'pad',
...data
})
},
// 新 学习中心 - 员工学习时长统计
getStudyCenterTimeStatistics(data) {
return http.post({
method: 'dj.pad.api.course.staff.statistics',
projectName: 'pad',
...data
})
},
// 新 学习中心 - 我的课程 ,带状态的分页接口
getMyCourseList(data) {
return http.post({
method: 'dj.api.pad.learning.center.myself.course',
projectName: 'pad',
...data
})
},
// 新 学习中心 - 查询考试分页接口
getExamPage(data) {
return http.post({
method: 'dj.pad.api.recommended.staff.examination.page',
projectName: 'pad',
...data
})
},
// 新 学习中心 - 考试统计
getExamStatistics(data) {
return http.post({
method: 'dj.pad.api.recommended.staff.examination.count',
projectName: 'pad',
...data
})
},
// 新 学习中心 - 排行榜
getStudyDurationRank(data) {
return http.post({
method: 'dj.pad.api.recommended.staff.study.duration.rank',
projectName: 'pad',
...data
})
},
} }
import sign from './sign.js' import sign from './sign.js'
import { secretKey, pathEnum, domain, djDomain, merchantDomain, djSecretKey } from '../../env' import { secretKey, pathEnum, domain, djDomain, merchantDomain, djSecretKey } from '../../env'
// H5环境下使用相对路径,走代理;其他环境使用完整域名
const isH5 = process.env.VUE_APP_PLATFORM === 'h5'
const HOST = { const HOST = {
scrm: isH5 ? '' : domain, scrm: domain,
dj: isH5 ? '' : djDomain, dj: djDomain,
merchant: isH5 ? '' : merchantDomain, merchant: merchantDomain,
ip: 'http://192.168.1.125:8080' ip: 'http://192.168.1.125:8080'
} }
class Request { class Request {
...@@ -164,5 +161,4 @@ class Request { ...@@ -164,5 +161,4 @@ class Request {
}) })
} }
} }
export default new Request() export default new Request()
\ No newline at end of file \ No newline at end of file
...@@ -48,7 +48,11 @@ ...@@ -48,7 +48,11 @@
.icon-change-account { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-change-account { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.44714407502131287) calc(100vmin * (1173 / 768) * -0.4113384484228474);} background-position: calc(100vmin * (1173 / 768) * -0.44714407502131287) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.icon-clone { width: calc(100vmin * (1173 / 768) * 0.010230179028132993); height: calc(100vmin * (1173 / 768) * 0.010230179028132993); .icon-clone { width: calc(100vmin * (1173 / 768) * 0.010230179028132993); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
<<<<<<< HEAD
background-position: calc(100vmin * (1173 / 768) * -0.25191815856777494) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.25191815856777494) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
=======
background-position: calc(100vmin * (1173 / 768) * -0.283461210571185) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
>>>>>>> 51758c193067464cde678e7ba3a77d7bd7a65c98
.icon-coupon-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-coupon-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.46717817561807334) calc(100vmin * (1173 / 768) * -0.4113384484228474);} background-position: calc(100vmin * (1173 / 768) * -0.46717817561807334) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.icon-coupon { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.015345268542199489); .icon-coupon { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
...@@ -402,7 +406,11 @@ ...@@ -402,7 +406,11 @@
.icon-total { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-total { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.08013640238704177) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.08013640238704177) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-two-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.010230179028132993); .icon-two-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
<<<<<<< HEAD
background-position: calc(100vmin * (1173 / 768) * -0.23358908780903667) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.23358908780903667) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
=======
background-position: calc(100vmin * (1173 / 768) * -0.2651321398124467) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
>>>>>>> 51758c193067464cde678e7ba3a77d7bd7a65c98
.icon-upload-play { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-upload-play { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.07033248081841433) calc(100vmin * (1173 / 768) * -0.6751918158567775);} background-position: calc(100vmin * (1173 / 768) * -0.07033248081841433) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-uploadAdd { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986); .icon-uploadAdd { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
...@@ -418,4 +426,14 @@ ...@@ -418,4 +426,14 @@
.icon-yw-icon { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489); .icon-yw-icon { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.18414322250639387) calc(100vmin * (1173 / 768) * -0.6751918158567775);} background-position: calc(100vmin * (1173 / 768) * -0.18414322250639387) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-zj-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-zj-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
<<<<<<< HEAD
background-position: calc(100vmin * (1173 / 768) * -0.1402387041773231) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.1402387041773231) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
=======
background-position: calc(100vmin * (1173 / 768) * -0.08013640238704177) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-up-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.21014492753623187) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-green-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.22847399829497017) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-normal { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.24680306905370844) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
>>>>>>> 51758c193067464cde678e7ba3a77d7bd7a65c98
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
}, },
startStudy(item, index) { startStudy(item, index) {
let { pageNum, total, nothing = 'nothing', pageSize } = this; let { pageNum, total, nothing = 'nothing', pageSize } = this;
uni.$track.add({ eventCode: 'app_completed_course', businessId: item.id, pagePath: '/pages/boutique/myCourse' }) uni.$track.add({ eventCode: 'app_completed_course', businessId: item.id, pagePath: '/pages/common/studyCenter/myCourse' })
uni.navigateTo({ uni.navigateTo({
url: `/pages/common/studyDetail/detail?type=completed&index=${index}&completedCourseList=${encodeURIComponent(JSON.stringify(this.completedCourseList))}&pageNum=${pageNum}&pageSize=${pageSize}&total=${total}` url: `/pages/common/studyDetail/detail?type=completed&index=${index}&completedCourseList=${encodeURIComponent(JSON.stringify(this.completedCourseList))}&pageNum=${pageNum}&pageSize=${pageSize}&total=${total}`
}) })
......
...@@ -464,22 +464,11 @@ export default { ...@@ -464,22 +464,11 @@ export default {
// 切换到学习中心时显示弹窗 // 切换到学习中心时显示弹窗
if (item.name === 'StudyCenter') { if (item.name === 'StudyCenter') {
const res = await uni.$api.commonApi.startExam()
if (res) {
this.showStudyPopup = true this.showStudyPopup = true
} }
// this.showBeisen = false }
// if (item.isTrack) {
// // this.jumpUrl = jumpUrl
// // if (!this.jumpUrl) {
// // uni.showToast({
// // title: '培训账号未创建',
// // icon: 'none'
// // })
// // return
// // }
// } else {
// this.jumpUrl = ''
// }
}, },
handleFooter (val) { handleFooter (val) {
this.footerBox = val this.footerBox = val
......
const target = ['ip', 'dev', 'uat', 'prod', 'beta'] const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 2 const index = 1
/** /**
* *
0本地 0本地
......
...@@ -124,34 +124,7 @@ ...@@ -124,34 +124,7 @@
"h5" : { "h5" : {
"devServer" : { "devServer" : {
"port" : 8080, "port" : 8080,
"https" : false, "https" : false
"host" : "0.0.0.0",
"disableHostCheck" : true,
"proxy" : {
"^/rop-scrm-" : {
"target" : "https://scrm.test.glsx.com.cn",
"changeOrigin" : true,
"secure" : false
},
"^/rop-dj-" : {
"target" : "https://183.62.222.180",
"changeOrigin" : true,
"secure" : false,
"headers" : {
"Host" : "dj.test.glsx.com.cn"
}
},
"^/gsc-vcp-" : {
"target" : "http://gsc.test.glsx.com.cn",
"changeOrigin" : true,
"secure" : false
},
"^/rop-merchants/" : {
"target" : "https://rop-merchant.test.glsx.com.cn",
"changeOrigin" : true,
"secure" : false
}
}
} }
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -116,25 +116,25 @@ ...@@ -116,25 +116,25 @@
} }
}, },
{ {
"path": "pages/boutique/myTask", "path": "pages/common/studyCenter/myTask",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/boutique/myCourse", "path": "pages/common/studyCenter/myCourse",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/boutique/myExam", "path": "pages/common/studyCenter/myExam",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/boutique/leaderboard", "path": "pages/common/studyCenter/leaderboard",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
......
<template> <template>
<view class="leaderboard-container"> <view class="detail-box">
<!-- 顶部导航 --> <!-- 顶部导航 -->
<view class="header">
<view class="nav-bar"> <view class="nav-bar">
<view class="back" @click="back"> <view class="back" @click="back">
<uni-icons type="left" :size="20" color="#000000"></uni-icons> <uni-icons type="left" :size="20" color="#000000"></uni-icons>
</view> </view>
<view class="title">排行榜</view> <view class="title">排行榜</view>
</view> </view>
</view>
<!-- 左右布局 --> <!-- 左右布局 -->
<view class="content-layout"> <view class="content-layout">
<!-- 左侧排行榜 --> <!-- 左侧排行榜 -->
<view class="left-panel"> <view class="left-panel">
<view class="top-image-wrapper"> <view class="top-image-wrapper">
<image class="panel-image" :src="require('@/assets/images/studyCenter/Leaderboard-bg.png')" mode="scaleToFill" /> <image class="panel-image" :src="require('@/assets/images/studyCenter/Leaderboard-bg.png')"
mode="scaleToFill" />
</view> </view>
<view class="tab-header"> <view class="tab-header">
<view class="tab-list"> <view class="tab-list">
<view <view v-for="(tab, index) in tabList" :key="index" :class="['tab-item', { 'active': currentTab === index }]"
v-for="(tab, index) in tabList" @click="switchTab(index)">
:key="index"
:class="['tab-item', { 'active': currentTab === index }]"
@click="switchTab(index)"
>
<text class="tab-text">{{ tab.label }}</text> <text class="tab-text">{{ tab.label }}</text>
</view> </view>
</view> </view>
<view class="median-text">学习时长中位数:{{ medianTime }}小时</view> <view class="median-text">学习时长中位数:{{ rank.median }}小时</view>
</view> </view>
<view class="rank-list"> <view class="rank-list">
<view <view v-if="rank.currentUserRank" class="rank-item current-user">
v-for="(item, index) in leaderboardList" <view class="rank-left">
:key="index" <view class="rank-badge number has-bg">
:class="['rank-item', { 'current-user': item.isCurrentUser }]" <template v-if="rank.currentUserRank.rank">
> <text class="rank-number">{{ rank.currentUserRank.rank >= 100 ? '99+' : rank.currentUserRank.rank }}</text>
</template>
<text v-else class="rank-number">-</text>
</view>
<text class="user-name">{{ rank.currentUserRank.userName }}</text>
</view>
<text class="study-time">{{ rank.currentUserRank.duration == null ? '-' : rank.currentUserRank.duration }}小时</text>
</view>
<scroll-view class="rank-scroll" scroll-y="true">
<view v-for="(item, index) in rank.rankList" :key="index"
:class="['rank-item']">
<view class="rank-left"> <view class="rank-left">
<view v-if="item.rank <= 3 && !item.isCurrentUser" class="rank-badge medal"> <view v-if="item.rank <= 3" class="rank-badge medal">
<image class="medal-icon" :src="getMedalIcon(item.rank - 1)" mode="aspectFit" /> <image class="medal-icon" :src="getMedalIcon(item.rank - 1)" mode="aspectFit" />
</view> </view>
<view v-else :class="['rank-badge', 'number', { 'has-bg': item.isCurrentUser }, { 'gray-number': item.rank >= 4 && !item.isCurrentUser }]"> <view v-else
:class="['rank-badge', 'number', { 'gray-number': item.rank >= 4 }]">
<text class="rank-number">{{ item.rank >= 100 ? '99+' : item.rank }}</text> <text class="rank-number">{{ item.rank >= 100 ? '99+' : item.rank }}</text>
</view> </view>
<text class="user-name">{{ item.userName }}</text>
<text class="user-name">{{ item.name }}</text>
</view> </view>
<text class="study-time">{{ item.duration == null ? '-' : item.duration }}小时</text>
<text class="study-time">{{ item.hours }}小时</text>
</view> </view>
</scroll-view>
</view> </view>
</view> </view>
<!-- 右侧面板 --> <!-- 右侧面板 -->
<view class="right-panel"> <view class="right-panel">
<view class="developing flex"> <view class="developing flex">
<image <image class="developing-icon" src="../../../assets/images/common/developing.webp" />
class="developing-icon"
src="../../assets/images/common/developing.webp"
/>
功能开发中 功能开发中
</view> </view>
</view> </view>
...@@ -80,17 +82,16 @@ export default { ...@@ -80,17 +82,16 @@ export default {
{ label: '周榜' }, { label: '周榜' },
{ label: '月榜' } { label: '月榜' }
], ],
medianTime: 180, rank: {
leaderboardList: [], median: 0,
currentUser: { currentUserRank: {},
name: '李洪扬', rankList: []
hours: 112 }
},
currentUserRank: 25
} }
}, },
mounted() { mounted() {
this.generateMockData() // this.generateMockData()
this.getStudyDurationRank()
}, },
methods: { methods: {
back() { back() {
...@@ -98,7 +99,7 @@ export default { ...@@ -98,7 +99,7 @@ export default {
}, },
switchTab(index) { switchTab(index) {
this.currentTab = index this.currentTab = index
this.generateMockData() this.getStudyDurationRank()
}, },
getMedalIcon(index) { getMedalIcon(index) {
const medals = [ const medals = [
...@@ -108,28 +109,20 @@ export default { ...@@ -108,28 +109,20 @@ export default {
] ]
return medals[index] return medals[index]
}, },
generateMockData() { // 获取排行榜
const names = ['孟伟', '任小宣', '谭亦云', '李晓夏', '李文歆', '袁佳', '刘轩华', '高强', '张明', '王芳', '李娜', '赵伟', '陈静', '周杰', '吴磊', '郑丽', '黄涛', '徐敏', '孙鹏', '马超'] async getStudyDurationRank() {
this.leaderboardList = [] uni.showLoading({
title: '加载中'
this.leaderboardList.push({
rank: this.currentUserRank,
name: this.currentUser.name,
hours: this.currentUser.hours,
isCurrentUser: true
}) })
try {
let baseHours = 250 const res = await uni.$api.commonApi.getStudyDurationRank({
for (let i = 0; i < 100; i++) { periodType: this.currentTab,
if ((i + 1) === this.currentUserRank) { staffPhone: uni.$storage.get('userInfo').phone
continue
}
this.leaderboardList.push({
rank: i + 1,
name: names[i % names.length] + (i > 19 ? i - 19 : ''),
hours: Math.max(10, baseHours - i * 2 - Math.floor(Math.random() * 5)),
isCurrentUser: false
}) })
console.log(res, 'res')
this.rank = res
} finally {
uni.hideLoading()
} }
} }
} }
...@@ -137,53 +130,42 @@ export default { ...@@ -137,53 +130,42 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.leaderboard-container { .detail-box {
width: 100%;
height: 100vh;
position: relative; position: relative;
overflow: hidden; width: 100vw;
height: 100vh;
&::after { background-image: url('@/assets/images/common/page-bg.webp');
content: ''; background-size: 100%;
background-image: url('@/assets/images/common/home-bg-1.webp'); box-sizing: border-box;
background-size: 100% 100%; padding: toRpx(160) toRpx(64) 0;
background-repeat: no-repeat;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.header {
position: relative;
z-index: 10;
background: transparent;
margin-bottom: toRpx(44);
.nav-bar { .nav-bar {
display: flex; position: fixed;
align-items: center; width: 100%;
justify-content: center; height: toRpx(96);
height: toRpx(88); left: 0;
position: relative; top: toRpx(48);
z-index: 999;
pointer-events: none;
.back { .back {
position: absolute; height: 100%;
left: toRpx(32); aspect-ratio: 1/1;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: toRpx(60); pointer-events: auto;
height: toRpx(60);
} }
.title { .title {
font-size: toRpx(36); position: absolute;
font-weight: 500; top: 50%;
color: #000000; left: 50%;
} transform: translate(-50%, -50%);
font-weight: 700;
font-size: toRpx(32);
color: #1a1a1a;
} }
} }
...@@ -191,7 +173,7 @@ export default { ...@@ -191,7 +173,7 @@ export default {
display: flex; display: flex;
gap: toRpx(32); gap: toRpx(32);
padding: 0 toRpx(40); padding: 0 toRpx(40);
height: calc(100vh - var(--status-bar-height) - toRpx(88) - toRpx(44)); // height: calc(100vh - var(--status-bar-height) - toRpx(88) - toRpx(44));
.left-panel { .left-panel {
width: toRpx(1084); width: toRpx(1084);
...@@ -272,12 +254,13 @@ export default { ...@@ -272,12 +254,13 @@ export default {
.rank-list { .rank-list {
margin-top: toRpx(24); margin-top: toRpx(24);
padding: 0 toRpx(48) toRpx(48);
max-height: toRpx(1050);
overflow-y: auto;
.rank-item { .rank-item {
width: toRpx(988); box-sizing: border-box;
margin: 0 toRpx(48);
// width: toRpx(988);
width: calc(100% - toRpx(96));
height: toRpx(128); height: toRpx(128);
border-radius: toRpx(24); border-radius: toRpx(24);
background: transparent; background: transparent;
...@@ -304,6 +287,7 @@ export default { ...@@ -304,6 +287,7 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-right: toRpx(20); margin-right: toRpx(20);
background-color: #ffffff;
&.medal { &.medal {
background: transparent; background: transparent;
...@@ -316,7 +300,6 @@ export default { ...@@ -316,7 +300,6 @@ export default {
} }
&.number { &.number {
background: transparent;
border: none; border: none;
&.has-bg { &.has-bg {
...@@ -362,6 +345,10 @@ export default { ...@@ -362,6 +345,10 @@ export default {
} }
} }
.rank-scroll {
max-height: toRpx(960);
}
} }
} }
...@@ -395,5 +382,3 @@ export default { ...@@ -395,5 +382,3 @@ export default {
} }
} }
</style> </style>
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
}, },
goToMyTask() { goToMyTask() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/boutique/myTask' url: '/pages/common/studyCenter/myTask'
}) })
}, },
changeType(index, tagIndex) { changeType(index, tagIndex) {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
## 一、页面路径 ## 一、页面路径
### 1. 我的课程页面 ### 1. 我的课程页面
**路径**: `pages/boutique/myCourse.vue` **路径**: `pages/common/studyCenter/myCourse.vue`
**使用的组件**: **使用的组件**:
- `components/HomeFrame/components/Study/RecommendCourse.vue` - 待学习 Tab - `components/HomeFrame/components/Study/RecommendCourse.vue` - 待学习 Tab
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
--- ---
### 2. 我的考试页面 ### 2. 我的考试页面
**路径**: `pages/boutique/myExam.vue` **路径**: `pages/common/studyCenter/myExam.vue`
**使用的组件**: **使用的组件**:
- `components/HomeFrame/components/Study/PassedExam.vue` - 已通过 Tab - `components/HomeFrame/components/Study/PassedExam.vue` - 已通过 Tab
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
--- ---
### 3. 我的任务页面 ### 3. 我的任务页面
**路径**: `pages/boutique/myTask.vue` **路径**: `pages/common/studyCenter/myTask.vue`
**使用的组件**: **使用的组件**:
- `components/HomeFrame/components/Study/LearnStatistics.vue` - 累计学习统计 - `components/HomeFrame/components/Study/LearnStatistics.vue` - 累计学习统计
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
--- ---
### 4. 排行榜页面 ### 4. 排行榜页面
**路径**: `pages/boutique/leaderboard.vue` **路径**: `pages/common/studyCenter/leaderboard.vue`
**使用的图片资源**: **使用的图片资源**:
- `assets/images/studyCenter/Leaderboard-bg.png` - 顶部占位图 - `assets/images/studyCenter/Leaderboard-bg.png` - 顶部占位图
...@@ -163,19 +163,19 @@ ...@@ -163,19 +163,19 @@
### pages.json ### pages.json
```json ```json
{ {
"path": "pages/boutique/myTask", "path": "pages/common/studyCenter/myTask",
"style": { "navigationStyle": "custom" } "style": { "navigationStyle": "custom" }
}, },
{ {
"path": "pages/boutique/myCourse", "path": "pages/common/studyCenter/myCourse",
"style": { "navigationStyle": "custom" } "style": { "navigationStyle": "custom" }
}, },
{ {
"path": "pages/boutique/myExam", "path": "pages/common/studyCenter/myExam",
"style": { "navigationStyle": "custom" } "style": { "navigationStyle": "custom" }
}, },
{ {
"path": "pages/boutique/leaderboard", "path": "pages/common/studyCenter/leaderboard",
"style": { "navigationStyle": "custom" } "style": { "navigationStyle": "custom" }
} }
``` ```
...@@ -186,10 +186,10 @@ ...@@ -186,10 +186,10 @@
| 功能 | 跳转方法 | 页面路径 | 所在文件 | | 功能 | 跳转方法 | 页面路径 | 所在文件 |
|-----|---------|---------|---------| |-----|---------|---------|---------|
| 我的课程 | `goToMyCourse()` | `/pages/boutique/myCourse` | StudyCenter.vue | | 我的课程 | `goToMyCourse()` | `/pages/common/studyCenter/myCourse` | StudyCenter.vue |
| 我的任务 | `goToMyTask()` | `/pages/boutique/myTask` | StudyCenter.vue | | 我的任务 | `goToMyTask()` | `/pages/common/studyCenter/myTask` | StudyCenter.vue |
| 我的考试 | `goToMyExam()` | `/pages/boutique/myExam` | StudyCenter.vue | | 我的考试 | `goToMyExam()` | `/pages/common/studyCenter/myExam` | StudyCenter.vue |
| 排行榜 | `goToLeaderboard()` | `/pages/boutique/leaderboard` | StudyCenter.vue | | 排行榜 | `goToLeaderboard()` | `/pages/common/studyCenter/leaderboard` | StudyCenter.vue |
--- ---
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!