Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-admin-discuss
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-admin-discuss
提交
17245d96
提交
17245d96
编写于
12月 26, 2018
作者:
杨广俊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
/替换
上级
3fb5d3f3
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
10 行增加
和
41 行删除
+10
-41
course-list.vue
src/components/business/course-list.vue
+1
-39
result.vue
src/views/result.vue
+9
-2
未找到文件。
src/components/business/course-list.vue
浏览文件 @
17245d96
...
...
@@ -172,51 +172,13 @@ export default {
})
},
//收藏 取消收藏
collectFun
(
status
,
id
,
name
)
{
// alert(this.userToken)
status
=
status
==
1
?
2
:
1
;
this
.
pageBurialPoin
({
menuLevel
:
1
,
menuCode
:
'm_home'
,
functionCode
:
'f_new_course'
,
actionCode
:
'c_collect'
,
labelId
:
id
,
labelValue
:
name
,
})
let
_this
=
this
,
parm
=
{
token
:
_this
.
userToken
,
type
:
status
,
courseId
:
id
,
setEntry
:
'headers'
}
_this
.
POST
(
'contents/favors'
,
parm
).
then
(
function
(
res
)
{
if
(
res
.
code
===
'000000'
)
{
_this
.
handelData
(
id
,
status
);
}
else
{
rocNative
.
showNativeToast
({
message
:
'注册登陆后才能收藏哦'
})
}
})
},
handelData
(
id
,
status
)
{
let
d
=
this
.
parmData
;
for
(
let
i
=
0
;
i
<
d
.
length
;
i
++
)
{
if
(
id
==
d
[
i
].
id
)
{
d
[
i
].
whetherFavors
=
status
;
}
}
},
orderAction
(
orderIndex
)
{
this
.
pageBurialPoin
({
...
m_search_result_course_order
,
labelValue
:
orderIndex
,
createdTime
:
new
Date
().
getTime
(),
})
let
ll
=
this
.
searchForOrder
(
'1'
,
this
.
cSearchText
,
orderIndex
,
this
.
groupNum
,
this
.
parmData
).
then
(
param
=>
{
this
.
searchForOrder
(
'1'
,
this
.
cSearchText
,
orderIndex
,
this
.
groupNum
,
this
.
parmData
).
then
(
param
=>
{
this
.
list
=
param
})
}
...
...
src/views/result.vue
浏览文件 @
17245d96
...
...
@@ -201,7 +201,7 @@ export default {
createdTime
:
new
Date
().
getTime
(),
})
this
.
showLoading
=
true
let
str2
=
(
this
.
searchText
||
''
).
replace
(
/
[\-\_\,\!\|\~\`\(\)\#\$\%\^\&\*\{\}\:\;\"\L
\<
\>\?]
/g
,
''
);
// 去掉特殊字符
let
str2
=
(
this
.
searchText
||
''
).
replace
(
/
[\-\_\,\!\|\~\`\(\)\#\$\%\^\&\*\{\}\:\;\"\L
\<
\>\?
\/
]
/g
,
''
);
// 去掉特殊字符
this
.
setCSearchText
(
str2
)
let
_this
=
this
,
para
=
{
...
...
@@ -231,6 +231,12 @@ export default {
_this
.
contentAppModels
=
this
.
spliceCertenNumData
(
res
.
data
.
contentAppModels
,
4
)
_this
.
contentAppModelsAll
=
res
.
data
.
contentAppModels
_this
.
contentAppModelCount
=
res
.
data
.
contentAppModelCount
+
''
if
(
res
.
data
.
contentAppModelCount
>
100
){
_this
.
searchForOrder
(
'1'
,
str2
,
1
,
res
.
data
.
contentAppModelCount
).
then
(
param
=>
{
_this
.
contentAppModelsAll
=
param
console
.
log
(
'2222'
,
param
)
})
}
if
(
res
.
data
.
contentAppModelCount
===
0
){
this
.
showTab1
=
false
}
...
...
@@ -417,7 +423,8 @@ export default {
width
:
100%
;
flex-direction
:
row
;
text-align
:
center
;
padding
:
px2rem
(
10px
)
0
;
// padding: px2rem(10px) 0;
padding
:
px2rem
(
10px
)
0
px2rem
(
4px
);
background
:
#fff
;
border-bottom
:
1px
solid
#E7E7E7
;
&
-img
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录