Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
publich5
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
xuyanwei
publich5
Commits
63577ce2
提交
63577ce2
authored
7月 30, 2020
作者:
zhengyadong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改
上级
b5731783
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
66 行增加
和
18 行删除
+66
-18
App.vue
src/App.vue
+6
-2
login.js
src/api/login.js
+9
-0
main.js
src/main.js
+3
-3
pdf.vue
src/views/business/pdf.vue
+18
-3
match.vue
src/views/moonMatch/match.vue
+1
-1
userView.vue
src/views/moonMatch/userView.vue
+2
-2
viewMatch.vue
src/views/moonMatch/viewMatch.vue
+2
-2
viewMatchReport.vue
src/views/moonMatch/viewMatchReport.vue
+1
-1
index.vue
src/views/play/index.vue
+23
-3
viewPracticeReport.vue
src/views/weekPractice/viewPracticeReport.vue
+1
-1
没有找到文件。
src/App.vue
浏览文件 @
63577ce2
...
...
@@ -8,13 +8,17 @@
</
template
>
<
script
>
import
{
getUserAPI
}
from
'@/api/login'
export
default
{
name
:
'App'
,
data
(){
return
{}
},
created
()
{
created
(){
console
.
log
(
11111
);
getUserAPI
().
then
(
res
=>
{
console
.
log
(
res
,
22
);
})
},
methods
:{
...
...
src/api/login.js
浏览文件 @
63577ce2
...
...
@@ -24,3 +24,12 @@ export function getPhoneCodeAPI(data){
data
})
}
export
function
getUserAPI
()
{
return
request
({
url
:
`
${
requestPath
.
resource
}
/member-center/check/login`
,
method
:
'get'
})
}
src/main.js
浏览文件 @
63577ce2
...
...
@@ -46,9 +46,9 @@ Vue.use(VideoPlayer)
/*import './.xgplayer/skin/index.js';*/
import
valert
from
'./components/alertMess/index.js'
Vue
.
use
(
valert
);
//
import Vconsole from 'vconsole';
//
const vConsole = new Vconsole();
//
export default vConsole;
import
Vconsole
from
'vconsole'
;
const
vConsole
=
new
Vconsole
();
export
default
vConsole
;
/*id图片路径*/
Vue
.
prototype
.
imgLink
=
function
(
id
){
...
...
src/views/business/pdf.vue
浏览文件 @
63577ce2
<
template
>
<div
class=
"pdf_wrap"
>
<!--
<iframe
:src=
"`$
{this.domain}${requestPath.file}?fileName=${this.videoAndPdf}
&
isOnLine=true`" frameborder="0" class="iframe">
</iframe>
-->
<
!--
<div
v-if=
"pdfAndPath"
v-html=
"iframeHtml"
style=
"width:100%;height:100%"
>
--
>
<
!--
</div>
--
>
<
div
v-if=
"pdfAndPath"
v-html=
"iframeHtml"
style=
"width:100%;height:100%"
>
<
/div
>
<ul
class=
"back_btn"
>
<li
@
click=
"collection"
><img
:src=
"`./static/img/icon_soucang_$
{isColl?'sel':'nor'}.png`" alt="">
</li>
<li
@
click=
"goBack"
><img
src=
"../../assets/img/public/fanhui.png"
alt=
""
></li>
...
...
@@ -57,7 +57,12 @@ export default {
// 查询是否已经达到最大积分
let
res1
=
await
this
.
getExceed
()
if
(
!
res1
)
return
if
(
!
res1
)
{
this
.
learnTime
=
setInterval
(()
=>
{
this
.
saveLearn
()
},
5
*
1000
)
return
}
// 保存学习记录
this
.
time
=
setTimeout
(()
=>
{
...
...
@@ -126,6 +131,16 @@ export default {
console
.
log
(
res
.
data
,
'学习时长'
);
})
},
// 超过积分上限保存学习时长
saveLearn
(){
let
form
=
{
id
:
this
.
videoAndPdf
,
studyTime
:(
new
Date
().
getTime
())
-
this
.
startTime
}
saveLearnTimeAPI
(
form
).
then
(
res
=>
{
console
.
log
(
res
.
data
,
'超过积分上限学习时长'
);
})
},
getCollectioncheck
(){
...
...
src/views/moonMatch/match.vue
浏览文件 @
63577ce2
...
...
@@ -375,7 +375,7 @@ export default {
_showDetail
(
startIndex
){
// startIndex 0 代表大题,1代表小题
let
currentObj
=
this
.
currentObj
if
(
currentObj
.
questionType
===
5
||
currentObj
.
questionType
===
6
){
let
list
=
this
.
childrenList
=
this
.
currentObj
.
children
let
list
=
this
.
childrenList
=
this
.
currentObj
.
children
||
[]
let
index
=
startIndex
===
0
?
0
:
list
.
length
-
1
this
.
currentChildrenIndex
=
index
this
.
currentChildrenObj
=
this
.
childrenList
[
index
]
||
{}
...
...
src/views/moonMatch/userView.vue
浏览文件 @
63577ce2
...
...
@@ -201,10 +201,10 @@ export default {
_showDetail
(
startIndex
){
let
currentObj
=
this
.
currentObj
if
(
currentObj
.
questionType
===
5
||
currentObj
.
questionType
===
6
){
let
list
=
this
.
childrenList
=
this
.
currentObj
.
children
let
list
=
this
.
childrenList
=
this
.
currentObj
.
children
||
[]
let
index
=
startIndex
===
0
?
0
:
list
.
length
-
1
this
.
currentChildrenIndex
=
index
this
.
currentChildrenObj
=
this
.
childrenList
[
index
]
this
.
currentChildrenObj
=
this
.
childrenList
[
index
]
||
{}
this
.
_showCom
(
this
.
currentChildrenObj
)
this
.
changeScore
(
this
.
currentChildrenObj
,
this
.
refChildrenObj
)
...
...
src/views/moonMatch/viewMatch.vue
浏览文件 @
63577ce2
...
...
@@ -259,10 +259,10 @@ export default {
_showDetail
(
startIndex
){
let
currentObj
=
this
.
currentObj
if
(
currentObj
.
questionType
===
5
||
currentObj
.
questionType
===
6
){
let
list
=
this
.
childrenList
=
this
.
currentObj
.
children
let
list
=
this
.
childrenList
=
this
.
currentObj
.
children
||
[]
let
index
=
startIndex
===
0
?
0
:
list
.
length
-
1
this
.
currentChildrenIndex
=
index
this
.
currentChildrenObj
=
this
.
childrenList
[
index
]
this
.
currentChildrenObj
=
this
.
childrenList
[
index
]
||
{}
this
.
_showCom
(
this
.
currentChildrenObj
)
this
.
changeScore
(
this
.
currentChildrenObj
,
this
.
refChildrenObj
)
...
...
src/views/moonMatch/viewMatchReport.vue
浏览文件 @
63577ce2
...
...
@@ -47,7 +47,7 @@
<img
src=
""
alt=
""
>
<span
class=
"item-right item-right-integral"
>
积分:
</span>
<span
class=
"item-integral"
>
+
{{
detail
.
integralNum
}}
</span>
<div
class=
"item-bg"
v-if=
"detail.isFirst ==
1
"
>
已领取积分
</div>
</div>
<div
class=
"item-bg"
v-if=
"detail.isFirst ==
0
"
>
已领取积分
</div>
</div>
</div>
</div>
<div
class=
"footer-but"
>
...
...
src/views/play/index.vue
浏览文件 @
63577ce2
...
...
@@ -17,6 +17,7 @@
import
{
getIntegralAPI
,
getExceedAPI
,
saveLearnRecordAPI
,
saveLearnTimeAPI
}
from
'@/api/student'
import
{
getCollectioncheckAPI
,
addCollectionAPI
,
delCollectionAPI
,
getFilePathAPI
}
from
'@/api/xywApi'
;
import
{
getVideo
}
from
'../../utils/global'
;
import
{
log
}
from
'util'
;
export
default
{
name
:
'HelloWorld'
,
data
()
{
...
...
@@ -44,15 +45,23 @@
async
saveStudy
(){
// 查询积分规则
console
.
log
(
1
);
let
result
=
await
this
.
getIntegral
()
let
time
=
Number
(
result
[
1
]
&&
result
[
1
].
value
||
1
)
console
.
log
(
result
,
1
);
// 查询是否已经达到最大积分
let
res1
=
await
this
.
getExceed
()
if
(
!
res1
)
return
console
.
log
(
res1
,
221
);
if
(
!
res1
)
{
this
.
learnTime
=
setInterval
(()
=>
{
this
.
saveLearn
()
},
5
*
1000
)
return
}
console
.
log
(
12
);
// 保存学习记录
this
.
time
=
setTimeout
(()
=>
{
console
.
log
(
1222
);
this
.
saveLearnRecord
()
},
time
*
1000
)
},
...
...
@@ -119,6 +128,17 @@
})
},
// 超过积分上限保存学习时长
saveLearn
(){
let
form
=
{
id
:
this
.
videoAndPdf
,
studyTime
:(
new
Date
().
getTime
())
-
this
.
startTime
}
saveLearnTimeAPI
(
form
).
then
(
res
=>
{
console
.
log
(
res
.
data
,
'超过积分上限学习时长'
);
})
},
...
...
src/views/weekPractice/viewPracticeReport.vue
浏览文件 @
63577ce2
...
...
@@ -37,7 +37,7 @@
<img
src=
""
alt=
""
>
<span
class=
"item-right"
>
积分:
</span>
<span
class=
"item-integral"
>
+
{{
detail
.
integralNum
}}
</span>
<div
class=
"item-bg"
v-if=
"detail.isFirst ==
1
"
>
已领取积分
</div>
<div
class=
"item-bg"
v-if=
"detail.isFirst ==
0
"
>
已领取积分
</div>
</div>
<div
class=
"info-item info-item-1"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论