Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
039a17af
提交
039a17af
编写于
12月 26, 2018
作者:
杨广俊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
token 收藏
上级
ad6a5beb
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
27 行删除
+15
-27
course-adjust.vue
src/components/business/course-adjust.vue
+13
-25
result.vue
src/views/result.vue
+2
-2
未找到文件。
src/components/business/course-adjust.vue
浏览文件 @
039a17af
...
...
@@ -61,6 +61,7 @@ import GroupTitle from '@/components/business/group-title';
export
default
{
data
()
{
return
{
token
:
''
,
isShowNum
:
false
,
list
:
[],
pageNo
:
2
,
...
...
@@ -104,16 +105,18 @@ export default {
},
},
created
()
{
let
_this
=
this
window
.
__getUserInfo_CA
=
function
(
params
){
_self
.
setUserInfo
(
params
)
_this
.
token
=
params
.
userToken
_this
.
getData
()
_this
.
setUserInfo
(
params
)
}
window
.
__refresh
=
function
(
parm
)
{
_this
.
getUserInfo
();
}
},
mounted
()
{
this
.
getUserInfo
()
},
computed
:
{
...
mapGetters
({
...
...
@@ -210,14 +213,15 @@ export default {
})
let
_this
=
this
,
parm
=
{
token
:
_this
.
userInfo
.
userT
oken
,
token
:
_this
.
t
oken
,
type
:
status
,
courseId
:
id
,
setEntry
:
'headers'
,
}
_this
.
POST
(
'contents/favors'
,
parm
).
then
(
function
(
res
)
{
if
(
res
.
code
===
'000000'
)
{
_this
.
handelData
(
id
,
status
);
// _this.handelData(id, status);
_this
.
getData
()
}
else
{
rocNative
.
showNativeToast
({
message
:
'注册登陆后才能收藏哦'
...
...
@@ -240,31 +244,15 @@ export default {
getData
(
type
)
{
let
_this
=
this
,
parm
=
{
pageNo
:
_this
.
pageNo
,
pageSize
:
_this
.
pageSize
,
token
:
_this
.
userT
oken
,
pageNo
:
1
,
pageSize
:
4
,
token
:
_this
.
t
oken
,
setEntry
:
'headers'
}
_this
.
GET
(
'contents/courses/recommendCourseList'
,
parm
).
then
(
function
(
res
)
{
if
(
res
.
code
===
'000000'
)
{
if
(
res
.
data
==
null
||
res
.
data
.
length
==
0
)
{
res
.
data
=
[];
_this
.
isLoading
=
false
;
_this
.
noMore
=
true
;
_this
.
loading
=
true
;
_this
.
isReauestBack
=
false
;
}
else
{
_this
.
isReauestBack
=
true
;
_this
.
list
=
[...
_this
.
list
,
...
res
.
data
];
_this
.
isLoading
=
true
;
_this
.
noMore
=
false
;
_this
.
loading
=
false
;
_this
.
pageNo
+=
1
;
}
this
.
list
=
res
.
data
||
[]
}
})
}
}
...
...
src/views/result.vue
浏览文件 @
039a17af
...
...
@@ -167,7 +167,7 @@ export default {
let
_this
=
this
;
window
.
__getUserInfo
=
function
(
params
){
_this
.
token
=
params
.
userToken
_this
.
getAdjustData
()
//
_this.getAdjustData()
_this
.
search
()
}
window
.
__refresh
=
function
(){
...
...
@@ -313,7 +313,7 @@ export default {
let
_this
=
this
,
parm
=
{
pageNo
:
1
,
pageSize
:
10
,
pageSize
:
4
,
token
:
_this
.
token
,
setEntry
:
'headers'
,
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录