Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
901087ed
提交
901087ed
编写于
12月 18, 2018
作者:
杨广俊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
埋点
上级
445e3cce
变更
13
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
1058 行增加
和
114 行删除
+1058
-114
yqy-five-minutes.vue
src/components/business-new的副本/yqy-five-minutes.vue
+1
-1
yqy-teacher-list.vue
src/components/business-new的副本/yqy-teacher-list.vue
+1
-1
course-adjust.vue
src/components/business/course-adjust.vue
+1
-1
course-list.1.vue
src/components/business/course-list.1.vue
+1
-1
course-list.2.vue
src/components/business/course-list.2.vue
+1
-1
course-list.3.vue
src/components/business/course-list.3.vue
+539
-0
course-list.vue
src/components/business/course-list.vue
+46
-83
five-minutes.vue
src/components/business/five-minutes.vue
+19
-2
health-comics.vue
src/components/business/health-comics.vue
+29
-3
teacher-list.vue
src/components/business/teacher-list.vue
+24
-1
buryingPoint-old.js
src/utils/buryingPoint-old.js
+359
-0
index.js
src/utils/index.js
+14
-1
mixins.js
src/utils/mixins.js
+23
-19
未找到文件。
src/components/business-new的副本/yqy-five-minutes.vue
浏览文件 @
901087ed
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</div>
-->
</div>
-->
<div
:class=
"index>1 && (index+1 == list.length)?'teacher-item item-end' : 'teacher-item'"
:key=
"index"
v-for=
"(item,index) in list"
@
click=
"goToPage(item)"
>
<div
:class=
"index>1 && (index+1 == list.length)?'teacher-item item-end' : 'teacher-item'"
:key=
"index"
v-for=
"(item,index) in list"
@
click=
"goToPage(item)"
>
<div
class=
"teacher-itemimg"
>
<div
class=
"teacher-itemimg"
>
<img
v-lazy
=
"item.appImageUrl"
/>
<img
:src
=
"item.appImageUrl"
/>
</div>
</div>
<div
class=
"five-text"
>
<div
class=
"five-text"
>
<div
class=
"teacher-itemname fs14"
>
{{
item
.
title
}}
</div>
<div
class=
"teacher-itemname fs14"
>
{{
item
.
title
}}
</div>
...
...
src/components/business-new的副本/yqy-teacher-list.vue
浏览文件 @
901087ed
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
:class=
"index % 2 == 1 ? 'course-item end-left' : 'course-item'"
:class=
"index % 2 == 1 ? 'course-item end-left' : 'course-item'"
v-show=
"index
<
4
"
v-for=
"(item, index) in parmData"
:key=
"index"
>
v-show=
"index
<
4
"
v-for=
"(item, index) in parmData"
:key=
"index"
>
<div
class=
"course-pic"
@
click=
"goToPage(item)"
>
<div
class=
"course-pic"
@
click=
"goToPage(item)"
>
<img
v-lazy
=
"item.courseInfoUrl"
class=
"pic-tec"
/>
<img
:src
=
"item.courseInfoUrl"
class=
"pic-tec"
/>
<span
class=
"course-tag"
>
{{
item
.
disName
}}
</span>
<span
class=
"course-tag"
>
{{
item
.
disName
}}
</span>
</div>
</div>
<p
class=
"course-txt"
>
<p
class=
"course-txt"
>
...
...
src/components/business/course-adjust.vue
浏览文件 @
901087ed
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<div
class=
"couse-list"
infinite-scroll-disabled=
"loading"
infinite-scroll-distance=
"10"
:style=
"'height:'+clientHeight"
>
<div
class=
"couse-list"
infinite-scroll-disabled=
"loading"
infinite-scroll-distance=
"10"
:style=
"'height:'+clientHeight"
>
<div
v-show=
"index
<
4
"
:class=
"index%2==1 ? 'course-item end-left' : 'course-item'"
:key=
"index"
v-for=
"(item,index) in parmData"
>
<div
v-show=
"index
<
4
"
:class=
"index%2==1 ? 'course-item end-left' : 'course-item'"
:key=
"index"
v-for=
"(item,index) in parmData"
>
<div
class=
"course-pic"
@
click=
"goToPage(item)"
>
<div
class=
"course-pic"
@
click=
"goToPage(item)"
>
<img
v-lazy
=
"item.courseInfoUrl"
class=
"pic-tec"
/>
<img
:src
=
"item.courseInfoUrl"
class=
"pic-tec"
/>
<span
class=
"course-tag"
>
{{
item
.
disName
}}
</span>
<span
class=
"course-tag"
>
{{
item
.
disName
}}
</span>
</div>
</div>
<p
class=
"course-txt"
>
<p
class=
"course-txt"
>
...
...
src/components/business/course-list.1.vue
浏览文件 @
901087ed
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
:class=
"index % 2 == 1 ? 'course-item end-left' : 'course-item'"
:class=
"index % 2 == 1 ? 'course-item end-left' : 'course-item'"
v-for=
"(item, index) in parmData"
:key=
"index"
>
v-for=
"(item, index) in parmData"
:key=
"index"
>
<div
class=
"course-pic"
@
click=
"goToPage(item)"
>
<div
class=
"course-pic"
@
click=
"goToPage(item)"
>
<img
v-lazy
=
"item.courseInfoUrl"
class=
"pic-tec"
/>
<img
:src
=
"item.courseInfoUrl"
class=
"pic-tec"
/>
<span
class=
"course-tag"
>
{{
item
.
disName
}}
</span>
<span
class=
"course-tag"
>
{{
item
.
disName
}}
</span>
</div>
</div>
<p
class=
"course-txt"
>
<p
class=
"course-txt"
>
...
...
src/components/business/course-list.2.vue
浏览文件 @
901087ed
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
:class=
"index % 2 == 1 ? 'course-item end-left' : 'course-item'"
:class=
"index % 2 == 1 ? 'course-item end-left' : 'course-item'"
v-for=
"(item, index) in cParmData"
:key=
"index"
>
v-for=
"(item, index) in cParmData"
:key=
"index"
>
<div
class=
"course-pic"
@
click=
"goToPage(item)"
>
<div
class=
"course-pic"
@
click=
"goToPage(item)"
>
<img
v-lazy
=
"item.courseInfoUrl"
class=
"pic-tec"
/>
<img
:src
=
"item.courseInfoUrl"
class=
"pic-tec"
/>
<span
class=
"course-tag"
>
{{
item
.
disName
}}
</span>
<span
class=
"course-tag"
>
{{
item
.
disName
}}
</span>
</div>
</div>
<!--
<p
class=
"course-txt"
>
<!--
<p
class=
"course-txt"
>
...
...
src/components/business/course-list.3.vue
0 → 100644
浏览文件 @
901087ed
<
template
>
<section>
<GroupTitle
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
/>
<div
class=
"hot-teacher"
>
<!--
<div
:class=
"index>1 && (index+1 == cParmData.length)?'teacher-item item-end' : 'teacher-item'"
:key=
"index"
--
>
<div
:class=
"index>1 && (index+1 == cParmData.length)?'teacher-item item-end' : 'teacher-item'"
:key=
"index"
v-for=
"(item,index) in cParmData"
@
click=
"goToPage(item)"
>
<div
class=
"teacher-itemimg"
>
<img
:src=
"item.courseInfoUrl"
/>
</div>
<div
class=
"five-text"
>
<div
class=
"teacher-itemname fs14 ellipsis-2"
>
<span
v-show=
"item.typeName"
class=
"teacher-itemname-tag"
>
{{
item
.
typeName
}}
</span>
<span
class=
"teacher-itemname-name"
v-html=
"item.highLightName"
></span>
</div>
<div
class=
"fs13 ellipsis-1"
>
<span
class=
"five-text-shourtcut"
>
{{
item
.
shortcut
}}
</span>
</div>
<div
class=
"fs13 five-text-teacher"
>
<img
src=
"../../images/teacher-icon.png"
/><span
class=
"five-text-teacher-name"
v-for=
"(doctor, dIndex) in item.doctors"
:key=
"dIndex"
>
{{
doctor
.
doctorName
}}
<!--
{{
item
.
doctors
[
0
].
doctorName
}}
-->
</span>
</div>
</div>
</div>
</div>
</section>
</
template
>
<
script
>
//import { setEventByModuleCode } from '@/utils/index'
import
{
m_search_result_course_detail1
,
m_search_result_course_order
,
m_search_result_course_more
,
m_search_result_course_top
}
from
'@/utils/buryingPoint'
import
GroupTitle
from
'@/components/business/group-title'
;
let
mapDesc
=
[
''
,
'课程名'
,
'关键字'
,
'一句话简介'
,
'章'
,
'节'
]
export
default
{
name
:
'CourseList'
,
data
()
{
return
{
list
:
[],
title
:
'最新课程'
,
pageNo
:
1
,
pageSize
:
6
,
needShow
:
true
// parmData: []
}
},
props
:
{
userToken
:
{
type
:
String
,
default
:
''
},
parmData
:
{
type
:
Array
,
default
:
()
=>
[]
},
groupNum
:
{
type
:
String
,
default
:
'0'
},
showTitle
:
{
type
:
Boolean
,
default
:
true
},
showOrder
:
{
type
:
Boolean
,
default
:
false
}
},
computed
:
{
cParmData
()
{
return
this
.
parmData
.
map
(
function
(
item
){
let
cItem
=
Object
.
assign
({},
item
)
if
(
cItem
.
highLightField
)
{
cItem
.
highLightName
=
cItem
.
highLightName
+
' ('
+
mapDesc
[
cItem
.
highLightField
]
+
')'
}
return
cItem
})
},
// groupNum() {
// return this.parmData.length + ''
// }
},
components
:
{
GroupTitle
},
mounted
()
{
// this.getData()
// this.list = this.parmData;
},
// filters: {
// filterName(name, highLightField){
// return name + highLightField
// }
// },
methods
:
{
getDescByMap
(
index
)
{
},
showAllItem
(
index
)
{
// this.needShow = !this.needShow
},
//跳转
goToPage
(
item
)
{
this
.
$emit
(
"setRefrshParm"
,
{
isclick
:
true
})
this
.
pageBurialPoin
({
menuLevel
:
1
,
menuCode
:
'm_home'
,
functionCode
:
'f_new_course'
,
actionCode
:
'c_course'
,
labelId
:
item
.
id
,
labelValue
:
item
.
name
,
})
let
itemData
=
{};
if
(
item
==
''
)
{
itemData
=
{
"title"
:
item
.
name
,
"imageUrl"
:
""
,
"appModuleInfo"
:
{
"code"
:
"M200"
,
"type"
:
4
,
"name"
:
"课程介绍页"
,
"paramFlag"
:
1
,
"paramList"
:
[{
"key"
:
"className"
,
"value"
:
"com.picahealth.yunque.activitys.famousteacherschool.AllDiseaseActivity###MicroProfessionMoreTableController"
,
"type"
:
4
,
"seqNo"
:
1
},
{
"key"
:
"disCategoryId"
,
"value"
:
'-1'
,
"type"
:
1
,
"seqNo"
:
2
}
]
}
};
}
else
{
itemData
=
{
"title"
:
item
.
name
,
"imageUrl"
:
""
,
"appModuleInfo"
:
{
"code"
:
"M200"
,
"type"
:
4
,
"name"
:
"课程介绍页"
,
"paramFlag"
:
1
,
"paramList"
:
[{
"key"
:
"className"
,
"value"
:
"com.picahealth.yunque.activitys.courseplaynew.CourseIntroduceActivity###WeexCourseIntroViewController"
,
"type"
:
4
,
"seqNo"
:
1
},
{
"key"
:
"courseId"
,
"value"
:
`
${
item
.
id
}
`
,
"type"
:
1
,
"seqNo"
:
2
}
]
}
};
}
let
paramList
=
this
.
setEventByModuleCode
(
itemData
);
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
itemData
.
appModuleInfo
.
code
,
jsonString
:
paramList
})
},
//收藏 取消收藏
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
;
}
}
},
getData
()
{
//alert("最新课程");
let
_this
=
this
,
parm
=
{
pageNo
:
_this
.
pageNo
,
pageSize
:
_this
.
pageSize
,
token
:
_this
.
userToken
,
setEntry
:
'headers'
}
_this
.
GET
(
'/contents/HomeNewCourse/NewCourseInformation'
,
parm
).
then
(
function
(
res
)
{
if
(
res
.
code
===
'000000'
)
{
_this
.
parmData
=
res
.
data
.
contentAppModels
||
[];
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
'../../style/global.scss'
;
@import
'../../style/mixin.scss'
;
.course-list
{
margin
:
0
px2rem
(
15px
);
&
-item
{
display
:
flex
;
flex-direction
:
row
;
img
{
height
:
px2rem
(
56px
);
width
:
px2rem
(
100px
);
margin-right
:
px2rem
(
10px
);
border-radius
:
px2rem
(
6px
);
}
&
-desc
{
display
:
flex
;
flex-direction
:
column
;
position
:
relative
;
// span {
// display: inline-flex;
// }
&
-type
{
display
:
inline-flex
;
height
:
px2rem
(
18px
);
width
:
px2rem
(
30px
);
padding
:
0
px2rem
(
2px
);
margin-right
:
px2rem
(
5px
);
font-size
:
px2rem
(
11px
);
border-radius
:
px2rem
(
2px
);
background-color
:
#6A9FE9
;
color
:
#fff
;
}
&
-name
{
display
:
inline-flex
;
font-size
:
px2rem
(
16px
);
height
:
px2rem
(
16px
);
width
:
px2rem
(
200px
);
line-height
:
px2rem
(
16px
);
color
:
#333333
;
}
}
}
}
</
style
>
<
style
lang=
"scss"
scoped
>
@import
'../../style/mixin.scss'
;
@import
'../../style/global.scss'
;
.hot-teacher
{
width
:
100%
;
background-color
:
#fff
;
padding
:
0
px2rem
(
15px
)
0
;
.img
{
width
:
px2rem
(
109px
);
height
:
px2rem
(
22px
);
}
.thorw-icon
{
width
:
px2rem
(
8px
);
height
:
px2rem
(
8px
);
}
.five-more
{
border
:
1px
solid
RGBA
(
169
,
174
,
183
,
1
);
border-radius
:
px2rem
(
16px
);
height
:
px2rem
(
16px
);
line-height
:
px2rem
(
16px
);
padding
:
0
px2rem
(
5px
)
0
px2rem
(
6px
);
vertical-align
:
middle
;
}
.teacher-item
{
width
:
100%
;
height
:
px2rem
(
106px
);
position
:
relative
;
margin
:
px2rem
(
4px
)
0
px2rem
(
15px
);
padding-top
:
px2rem
(
4px
);
&
:not
(
:last-child
)
{
border-bottom
:
1px
solid
RGBA
(
240
,
240
,
240
,
1
);
}
.teacher-itemimg
{
width
:
px2rem
(
100px
);
height
:
px2rem
(
56px
);
margin-right
:
px2rem
(
10px
);
border-radius
:
px2rem
(
3px
);
box-shadow
:
0
px2rem
(
2px
)
px2rem
(
3px
)
RGBA
(
0
,
78
,
64
,
0
.1
);
float
:
left
;
img
{
width
:
100%
;
height
:
100%
;
display
:
inline-block
;
border-radius
:
px2rem
(
3px
);
}
}
.five-text
{
margin-left
:
px2rem
(
70px
);
height
:
px2rem
(
38px
);
&
-shourtcut
{
font-size
:
px2rem
(
14px
);
color
:
#777
;
}
&
-teacher
{
margin-top
:
px2rem
(
4px
);
height
:
px2rem
(
20px
);
line-height
:
px2rem
(
20px
);
margin-left
:
px2rem
(
40px
);
img
{
width
:
px2rem
(
10px
);
height
:
px2rem
(
10px
);
margin-right
:
px2rem
(
2px
);
color
:
#777
;
}
&
-name
{
// margin-left:40px;
// padding-top:10px;
margin-left
:
0
!
important
;
padding-left
:
0
;
font-size
:
px2rem
(
13px
);
color
:
#999
;
}
}
}
.teacher-itemname
{
color
:
RGBA
(
102
,
102
,
102
,
1
);
height
:
px2rem
(
36px
);
line-height
:
px2rem
(
19px
);
font-size
:
px2rem
(
13px
);
margin-bottom
:
px2rem
(
5px
);
&
-tag
{
vertical-align
:
top
;
height
:
px2rem
(
20px
);
line-height
:
px2rem
(
20px
);
padding
:
px2rem
(
2px
)
px2rem
(
3px
)
px2rem
(
1px
);
border-radius
:
px2rem
(
2px
);
font-size
:
px2rem
(
12px
);
color
:
#fff
;
background
:
rgba
(
106
,
159
,
233
,
1
);
}
&
-name
{
height
:
px2rem
(
18px
);
line-height
:
px2rem
(
18px
);
font-size
:
px2rem
(
16px
);
color
:
#333
;
}
}
.five-tag
{
position
:
relative
;
padding-right
:
px2rem
(
25px
);
.m-tag
{
height
:
px2rem
(
17px
);
line-height
:
px2rem
(
17px
);
padding
:
0
px2rem
(
5px
);
color
:
#BF9E15
;
border-radius
:
0
px2rem
(
3px
)
px2rem
(
3px
)
px2rem
(
3px
);
background
:
#FFFDFA
;
/* background-color: px2rem(17px);*/
border
:
1px
solid
#FAE5AF
;
}
}
.m-play
{
width
:
px2rem
(
28px
);
height
:
px2rem
(
28px
);
display
:
inline-block
;
position
:
absolute
;
right
:
0
;
bottom
:
0
;
.play-opt
{
position
:
relative
;
width
:
px2rem
(
28px
);
height
:
px2rem
(
28px
);
border
:
1px
solid
#56c3bb
;
border-radius
:
50%
;
span
{
width
:
px2rem
(
3px
);
height
:
px2rem
(
5px
);
bottom
:
px2rem
(
5px
);
position
:
absolute
;
background
:
#56c3bb
;
border-radius
:
2px
2px
0
0
;
}
}
.play-stop
{
span
:first-child
{
left
:
px2rem
(
8px
);
height
:
px2rem
(
5px
);
}
span
:nth-child
(
2
)
{
left
:
px2rem
(
12px
);
height
:
px2rem
(
15px
);
}
span
:nth-child
(
3
)
{
left
:
px2rem
(
16px
);
height
:
px2rem
(
10px
);
}
}
.play-start
{
span
{
-webkit-animation
:
bodong
0
.5s
infinite
ease-in-out
alternate
;
animation
:
bodong
0
.5s
infinite
ease-in-out
alternate
;
}
span
:first-child
{
left
:
px2rem
(
8px
);
-webkit-animation-delay
:
.1s
;
animation-delay
:
.1s
;
}
span
:nth-child
(
2
)
{
left
:
px2rem
(
12px
);
-webkit-animation-delay
:
.3s
;
animation-delay
:
.3s
;
}
span
:nth-child
(
3
)
{
left
:
px2rem
(
16px
);
-webkit-animation-delay
:
.5s
;
animation-delay
:
.5s
;
}
@-webkit-keyframes
bodong
{
0
%
{
height
:
px2rem
(
5px
);
}
30
%
{
height
:
px2rem
(
10px
);
}
60
%
{
height
:
px2rem
(
15px
);
}
80
%
{
height
:
px2rem
(
10px
);
}
100
%
{
height
:
px2rem
(
5px
);
}
}
@keyframes
bodong
{
0
%
{
height
:
px2rem
(
5px
);
}
30
%
{
height
:
px2rem
(
10px
);
}
60
%
{
height
:
px2rem
(
15px
);
}
80
%
{
height
:
px2rem
(
10px
);
}
100
%
{
height
:
px2rem
(
5px
);
}
}
}
img
{
width
:
100%
;
height
:
100%
;
display
:
block
;
}
}
}
.item-end
{
height
:
px2rem
(
92px
);
}
}
.ellipsis-1
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
1
;
white-space
:
nowrap
;
}
.ellipsis-2
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
2
;
// white-space: nowrap;
}
</
style
>
src/components/business/course-list.vue
浏览文件 @
901087ed
<
template
>
<
template
>
<section>
<section>
<GroupTitle
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
/>
<GroupTitle
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
@
order=
"orderAction"
/>
<!--
<div
class=
"cource-teach"
>
<div
class=
"hot-teacher"
>
<div
class=
"couse-list"
>
<!--
<div
:class=
"index>1 && (index+1 == cParmData.length)?'teacher-item item-end' : 'teacher-item'"
:key=
"index"
--
>
<div
<div
:class=
"index>1 && (index+1 == cParmData.length)?'teacher-item item-end' : 'teacher-item'"
:key=
"index"
:class=
"index % 2 == 1 ? 'course-item end-left' : 'course-item'"
v-for=
"(item,index) in cParmData"
@
click=
"goToPage(item)"
>
v-for=
"(item, index) in cParmData"
:key=
"index"
>
<div
class=
"teacher-itemimg"
>
<div
class=
"course-pic"
@
click=
"goToPage(item)"
>
<img
:src=
"item.courseInfoUrl"
/>
<img
v-lazy=
"item.courseInfoUrl"
class=
"pic-tec"
/>
<span
class=
"course-tag"
>
{{
item
.
disName
}}
</span>
</div>
</div>
<p
class=
"course-txt"
v-html=
"item.name"
>
<div
class=
"five-text"
>
<div
class=
"teacher-itemname fs14 ellipsis-2"
>
</p>
<span
v-show=
"item.typeName"
class=
"teacher-itemname-tag"
>
{{
item
.
typeName
}}
</span>
<div
class=
"course-opt"
>
<span
class=
"teacher-itemname-name"
v-html=
"item.highLightName"
></span>
<span
class=
"opt-info"
>
{{
!
item
.
showTime
?
''
:
item
.
showTime
+
' |'
}}
{{
item
.
joinNum
}}
人已学
</span>
</div>
<span
:class=
"item.whetherFavors==2?'opt collect':'opt collected'"
@
click=
"collectFun(item.whetherFavors,item.id,item.name)"
>
<div
class=
"fs13 ellipsis-1"
>
{{
item
.
whetherFavors
==
2
?
'收藏'
:
'已收藏'
}}
<span
class=
"five-text-shourtcut"
>
{{
item
.
shortcut
}}
</span>
</span>
</div>
<div
class=
"fs13 five-text-teacher"
>
</div>
<img
src=
"../../images/teacher-icon.png"
/><span
class=
"five-text-teacher-name"
v-for=
"(doctor, dIndex) in item.doctors"
:key=
"dIndex"
>
</div>
{{
doctor
.
doctorName
}}
</div>
<!--
{{
item
.
doctors
[
0
].
doctorName
}}
-->
<div
v-if=
"cParmData.length==0"
class=
"noSource"
>
暂无最新教程数据
</div>
</span>
</div>
-->
<!--
<article
class=
"course-list"
>
<div
class=
"course-list-item"
v-for=
"(item, index) in cParmData"
:key=
"index"
>
<img
v-lazy=
"item.courseInfoUrl"
/>
<div
class=
"course-list-item-desc"
>
<span
style=
"line-height:20px;position:relative;top:-8px"
>
<span
class=
"course-list-item-desc-type"
>
{{
item
.
typeName
}}
</span><div
class=
"course-list-item-desc-name"
v-html=
"item.name"
></div>
</span>
<span>
1
</span>
<span>
12
</span>
</div>
</div>
</article>
-->
<div
class=
"hot-teacher"
>
<!--
<div
:class=
"index>1 && (index+1 == cParmData.length)?'teacher-item item-end' : 'teacher-item'"
:key=
"index"
--
>
<div
:class=
"index>1 && (index+1 == cParmData.length)?'teacher-item item-end' : 'teacher-item'"
:key=
"index"
v-for=
"(item,index) in cParmData"
@
click=
"goToPage(item)"
>
<div
class=
"teacher-itemimg"
>
<img
v-lazy=
"item.courseInfoUrl"
/>
</div>
</div>
<div
class=
"five-text"
>
<div
class=
"teacher-itemname fs14 ellipsis-2"
>
<span
v-show=
"item.typeName"
class=
"teacher-itemname-tag"
>
{{
item
.
typeName
}}
</span>
<span
class=
"teacher-itemname-name"
v-html=
"item.highLightName"
></span>
</div>
<div
class=
"fs13 ellipsis-1"
>
<span
class=
"five-text-shourtcut"
>
{{
item
.
shortcut
}}
</span>
</div>
<div
class=
"fs13 five-text-teacher"
>
<img
src=
"../../images/teacher-icon.png"
/><span
class=
"five-text-teacher-name"
v-for=
"(doctor, dIndex) in item.doctors"
:key=
"dIndex"
>
{{
doctor
.
doctorName
}}
<!--
{{
item
.
doctors
[
0
].
doctorName
}}
-->
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
//import { setEventByModuleCode } from '@/utils/index'
//import { sortParmData } from '@/utils/index'
import
{
m_search_result_course_detail1
,
m_search_result_course_order
,
m_search_result_course_more
,
m_search_result_course_top
}
from
'@/utils/buryingPoint'
import
GroupTitle
from
'@/components/business/group-title'
;
import
GroupTitle
from
'@/components/business/group-title'
;
let
mapDesc
=
[
''
,
'课程名'
,
'关键字'
,
'一句话简介'
,
'章'
,
'节'
]
let
mapDesc
=
[
''
,
'课程名'
,
'关键字'
,
'一句话简介'
,
'章'
,
'节'
]
export
default
{
export
default
{
...
@@ -106,14 +75,13 @@ export default {
...
@@ -106,14 +75,13 @@ export default {
},
},
computed
:
{
computed
:
{
cParmData
()
{
cParmData
()
{
let
cParmDataw
=
this
.
parmData
.
map
(
function
(
item
){
return
this
.
parmData
.
map
(
function
(
item
){
let
cItem
=
Object
.
assign
({},
item
)
let
cItem
=
Object
.
assign
({},
item
)
if
(
cItem
.
highLightField
)
{
if
(
cItem
.
highLightField
)
{
cItem
.
highLightName
=
cItem
.
highLightName
+
' ('
+
mapDesc
[
cItem
.
highLightField
]
+
')'
cItem
.
highLightName
=
cItem
.
highLightName
+
' ('
+
mapDesc
[
cItem
.
highLightField
]
+
')'
}
}
return
cItem
return
cItem
})
})
return
cParmDataw
},
},
// groupNum() {
// groupNum() {
// return this.parmData.length + ''
// return this.parmData.length + ''
...
@@ -124,32 +92,17 @@ export default {
...
@@ -124,32 +92,17 @@ export default {
},
},
mounted
()
{
mounted
()
{
// this.getData()
// this.getData()
// this.list = this.parmData;
},
},
// filters: {
// filterName(name, highLightField){
// return name + highLightField
// }
// },
methods
:
{
methods
:
{
getDescByMap
(
index
)
{
},
showAllItem
(
index
)
{
// this.needShow = !this.needShow
},
//跳转
//跳转
goToPage
(
item
)
{
goToPage
(
item
)
{
this
.
$emit
(
"setRefrshParm"
,
{
//
this.$emit("setRefrshParm", {
isclick
:
true
//
isclick: true
})
//
})
this
.
pageBurialPoin
({
this
.
pageBurialPoin
({
menuLevel
:
1
,
...
m_search_result_course_detail1
,
menuCode
:
'm_home'
,
functionCode
:
'f_new_course'
,
actionCode
:
'c_course'
,
labelId
:
item
.
id
,
labelValue
:
item
.
name
,
labelValue
:
item
.
name
,
createdTime
:
new
Date
().
getTime
(),
})
})
let
itemData
=
{};
let
itemData
=
{};
...
@@ -209,7 +162,6 @@ export default {
...
@@ -209,7 +162,6 @@ export default {
modeCode
:
itemData
.
appModuleInfo
.
code
,
modeCode
:
itemData
.
appModuleInfo
.
code
,
jsonString
:
paramList
jsonString
:
paramList
})
})
},
},
//收藏 取消收藏
//收藏 取消收藏
...
@@ -264,8 +216,19 @@ export default {
...
@@ -264,8 +216,19 @@ export default {
_this
.
parmData
=
res
.
data
.
contentAppModels
||
[];
_this
.
parmData
=
res
.
data
.
contentAppModels
||
[];
}
}
})
})
},
orderAction
(
orderIndex
)
{
this
.
pageBurialPoin
({
...
m_search_result_course_order
,
labelValue
:
orderIndex
,
createdTime
:
new
Date
().
getTime
(),
})
if
(
orderIndex
==
1
)
{
this
.
parmData
=
sortParmData
(
this
.
parmData
,
'joinNum'
,
-
1
)
}
else
{
this
.
parmData
=
sortParmData
(
this
.
parmData
,
'modifyTime'
,
-
1
)
}
}
}
}
}
}
}
</
script
>
</
script
>
...
...
src/components/business/five-minutes.vue
浏览文件 @
901087ed
<
template
>
<
template
>
<section>
<section>
<GroupTitle
groupTitle=
"5分钟医学院"
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
/>
<GroupTitle
groupTitle=
"5分钟医学院"
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
@
order=
"orderAction"
/>
<div
class=
"hot-teacher"
>
<div
class=
"hot-teacher"
>
<div
:class=
"index>1 && (index+1 == parmData.length)?'teacher-item item-end' : 'teacher-item'"
:key=
"index"
<div
:class=
"index>1 && (index+1 == parmData.length)?'teacher-item item-end' : 'teacher-item'"
:key=
"index"
v-for=
"(item,index) in parmData"
@
click=
"goToPage(item)"
>
v-for=
"(item,index) in parmData"
@
click=
"goToPage(item)"
>
<div
class=
"teacher-itemimg"
>
<div
class=
"teacher-itemimg"
>
<img
v-lazy
=
"item.appImageUrl"
/>
<img
:src
=
"item.appImageUrl"
/>
</div>
</div>
<div
class=
"five-text"
>
<div
class=
"five-text"
>
<div
class=
"teacher-itemname fs14"
v-html=
"item.highLightTitle"
>
{{
item
.
title
}}
</div>
<div
class=
"teacher-itemname fs14"
v-html=
"item.highLightTitle"
>
{{
item
.
title
}}
</div>
...
@@ -33,6 +33,11 @@
...
@@ -33,6 +33,11 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
m_search_result_five_minutes_detail
,
m_search_result_five_minutes_order
,
m_search_result_five_minutes_top
,
}
from
'@/utils/buryingPoint'
import
{
pageJumpUrl
}
from
'@/utils/index'
import
{
pageJumpUrl
}
from
'@/utils/index'
import
GroupTitle
from
'@/components/business/group-title'
;
import
GroupTitle
from
'@/components/business/group-title'
;
...
@@ -234,6 +239,18 @@ export default {
...
@@ -234,6 +239,18 @@ export default {
d
[
i
].
play
=
'0'
;
d
[
i
].
play
=
'0'
;
}
}
return
d
;
return
d
;
},
orderAction
(
orderIndex
)
{
this
.
pageBurialPoin
({
...
m_search_result_five_minutes_order
,
labelValue
:
orderIndex
,
createdTime
:
new
Date
().
getTime
(),
})
if
(
orderIndex
==
1
)
{
this
.
parmData
=
sortParmData
(
this
.
parmData
,
'joinNum'
,
-
1
)
}
else
{
this
.
parmData
=
sortParmData
(
this
.
parmData
,
'publishTime'
,
-
1
)
}
}
}
},
},
...
...
src/components/business/health-comics.vue
浏览文件 @
901087ed
<
template
>
<
template
>
<section>
<section>
<GroupTitle
groupTitle=
"健康漫画"
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
/>
<GroupTitle
groupTitle=
"健康漫画"
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
@
order=
"orderAction"
/>
<div
class=
"font-style"
>
<div
class=
"font-style"
>
<div
class=
"teach-opt"
>
<div
class=
"teach-opt"
>
<div
class=
"teach-list"
>
<div
class=
"teach-list"
>
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
v-for=
"(item, index) in parmData"
:key=
"index"
v-for=
"(item, index) in parmData"
:key=
"index"
@
click=
"goToPage(item)"
>
@
click=
"goToPage(item)"
>
<div
class=
"tea-img"
:style=
"'background:'+ item.bgColor"
>
<div
class=
"tea-img"
:style=
"'background:'+ item.bgColor"
>
<img
v-lazy
=
"item.imageUrl"
>
<img
:src
=
"item.imageUrl"
>
<!--
<span
class=
"learn-p"
>
{{
item
.
joinNum
}}
人已学
</span>
-->
<!--
<span
class=
"learn-p"
>
{{
item
.
joinNum
}}
人已学
</span>
-->
<!--
<span
class=
"learn-p"
>
{{
item
.
joinNum
|
yLocalString
}}
人已学
</span>
-->
<!--
<span
class=
"learn-p"
>
{{
item
.
joinNum
|
yLocalString
}}
人已学
</span>
-->
</div>
</div>
...
@@ -35,6 +35,11 @@
...
@@ -35,6 +35,11 @@
// teacher,
// teacher,
// teacherother
// teacherother
// } from '../../utils/buryingPoint';
// } from '../../utils/buryingPoint';
import
{
m_search_result_health_cartoon_detail
,
m_search_result_health_cartoon_order
,
m_search_result_health_cartoon_top
,
}
from
'@/utils/buryingPoint'
import
GroupTitle
from
'@/components/business/group-title'
;
import
GroupTitle
from
'@/components/business/group-title'
;
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -150,7 +155,11 @@ export default {
...
@@ -150,7 +155,11 @@ export default {
}
}
]
]
this
.
pageBurialPoin
(
obj
)
this
.
pageBurialPoin
({
...
m_search_result_health_cartoon_detail
,
labelValue
:
orderIndex
,
createdTime
:
new
Date
().
getTime
(),
})
let
paramList
=
this
.
setEventByModuleCode
(
itemData
);
let
paramList
=
this
.
setEventByModuleCode
(
itemData
);
// alert(itemData.appModuleInfo.code)
// alert(itemData.appModuleInfo.code)
...
@@ -170,6 +179,11 @@ export default {
...
@@ -170,6 +179,11 @@ export default {
token
:
_this
.
token
token
:
_this
.
token
}
}
})
})
this
.
pageBurialPoin
({
...
m_search_result_health_cartoon_detail
,
labelValue
:
orderIndex
,
createdTime
:
new
Date
().
getTime
(),
})
// this.appBuryingPointEntrust({
// this.appBuryingPointEntrust({
// ...teacher,
// ...teacher,
// labelId: item.doctorId,
// labelId: item.doctorId,
...
@@ -225,6 +239,18 @@ export default {
...
@@ -225,6 +239,18 @@ export default {
// labelId: _this.dir,
// labelId: _this.dir,
// labelValue: _this.dir === 1 ? '升序' : '降序'
// labelValue: _this.dir === 1 ? '升序' : '降序'
// })
// })
},
orderAction
(
orderIndex
)
{
this
.
pageBurialPoin
({
...
m_search_result_health_cartoon_order
,
labelValue
:
orderIndex
,
createdTime
:
new
Date
().
getTime
(),
})
if
(
orderIndex
==
1
)
{
this
.
parmData
=
sortParmData
(
this
.
parmData
,
'joinNum'
,
-
1
)
}
else
{
this
.
parmData
=
sortParmData
(
this
.
parmData
,
'modifyTime'
,
-
1
)
}
}
}
}
}
...
...
src/components/business/teacher-list.vue
浏览文件 @
901087ed
<
template
>
<
template
>
<section>
<section>
<GroupTitle
groupTitle=
"讲师"
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
/>
<GroupTitle
groupTitle=
"讲师"
:groupNum=
"groupNum"
:showTitle=
"showTitle"
:showOrder=
"showOrder"
@
order=
"orderAction"
/>
<div
class=
"font-style"
>
<div
class=
"font-style"
>
<div
class=
"teach-opt"
>
<div
class=
"teach-opt"
>
<div
class=
"teach-list"
>
<div
class=
"teach-list"
>
...
@@ -34,6 +34,11 @@
...
@@ -34,6 +34,11 @@
// teacher,
// teacher,
// teacherother
// teacherother
// } from '../../utils/buryingPoint';
// } from '../../utils/buryingPoint';
import
{
m_search_result_lecturer_detail
,
m_search_result_lecturer_order
,
m_search_result_lecturer_top
,
}
from
'@/utils/buryingPoint'
import
GroupTitle
from
'@/components/business/group-title'
;
import
GroupTitle
from
'@/components/business/group-title'
;
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -115,6 +120,12 @@ export default {
...
@@ -115,6 +120,12 @@ export default {
token
:
_this
.
token
token
:
_this
.
token
}
}
})
})
this
.
pageBurialPoin
({
...
m_search_result_lecturer_detail
,
labelValue
:
item
.
name
,
createdTime
:
new
Date
().
getTime
(),
})
// this.appBuryingPointEntrust({
// this.appBuryingPointEntrust({
// ...teacher,
// ...teacher,
// labelId: item.doctorId,
// labelId: item.doctorId,
...
@@ -170,6 +181,18 @@ export default {
...
@@ -170,6 +181,18 @@ export default {
// labelId: _this.dir,
// labelId: _this.dir,
// labelValue: _this.dir === 1 ? '升序' : '降序'
// labelValue: _this.dir === 1 ? '升序' : '降序'
// })
// })
},
orderAction
(
orderIndex
)
{
this
.
pageBurialPoin
({
...
m_search_result_lecturer_order
,
labelValue
:
orderIndex
,
createdTime
:
new
Date
().
getTime
(),
})
if
(
orderIndex
==
1
)
{
this
.
parmData
=
sortParmData
(
this
.
parmData
,
'joinNum'
,
-
1
)
}
else
{
this
.
parmData
=
sortParmData
(
this
.
parmData
,
'modifyTime'
,
-
1
)
}
}
}
}
}
...
...
src/utils/buryingPoint-old.js
0 → 100644
浏览文件 @
901087ed
module
.
exports
=
{
// 搜索首页
m_search_search
:
{
menuCode
:
'm_search'
,
menuLevel
:
2
,
functionCode
:
'f_search'
,
actionCode
:
'c_search'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'f_home'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_history_search_hs
:
{
menuCode
:
'm_search'
,
menuLevel
:
2
,
functionCode
:
'f_history_search'
,
actionCode
:
'c_history_search'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'f_home'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_history_search_db
:
{
menuCode
:
'm_search'
,
menuLevel
:
2
,
functionCode
:
'f_history_search'
,
actionCode
:
'c_delete_button'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'f_home'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_history_search_d
:
{
menuCode
:
'm_search'
,
menuLevel
:
2
,
functionCode
:
'f_history_search'
,
actionCode
:
'c_delete'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'f_home'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_history_search_da
:
{
menuCode
:
'm_search'
,
menuLevel
:
2
,
functionCode
:
'f_history_search'
,
actionCode
:
'c_delete_all'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'f_home'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_history_search_dc
:
{
menuCode
:
'm_search'
,
menuLevel
:
2
,
functionCode
:
'f_history_search'
,
actionCode
:
'c_delete_confirm'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'f_home'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_history_hot_search
:
{
menuCode
:
'm_search'
,
menuLevel
:
2
,
functionCode
:
'f_hot_search'
,
actionCode
:
'c_hot_search'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'f_home'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_history_no_search_result_d
:
{
menuCode
:
'm_search'
,
menuLevel
:
2
,
functionCode
:
'f_no_search_result'
,
actionCode
:
'c_detail'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'f_home'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
// 暂时不做
m_search_history_no_search_result_m
:
{
menuCode
:
'm_search'
,
menuLevel
:
2
,
functionCode
:
'f_no_search_result'
,
actionCode
:
'c_more'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'f_home'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
// 搜索结果
m_search_result_tab_switch
:
{
menuCode
:
'm_search_result'
,
menuLevel
:
3
,
functionCode
:
'f_tab_switch'
,
actionCode
:
'c_switch'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'm_search'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
// 综合
m_search_result_colligation_detail
:
{
menuCode
:
'm_search_result'
,
menuLevel
:
3
,
functionCode
:
'f_colligation'
,
actionCode
:
'c_detail'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'm_search'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_result_colligation_all
:
{
menuCode
:
'm_search_result'
,
menuLevel
:
3
,
functionCode
:
'f_colligation'
,
actionCode
:
'c_all'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'm_search'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_result_colligation_top
:
{
menuCode
:
'm_search_result'
,
menuLevel
:
3
,
functionCode
:
'f_colligation'
,
actionCode
:
'c_top'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'm_search'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
// 课程
m_search_result_course_detail
:
{
menuCode
:
'm_search_result'
,
menuLevel
:
3
,
functionCode
:
'f_course'
,
actionCode
:
'c_detail'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'm_search'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_result_course_order
:
{
menuCode
:
'm_search_result'
,
menuLevel
:
3
,
functionCode
:
'f_course'
,
actionCode
:
'c_order'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'm_search'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_result_course_more
:
{
menuCode
:
'm_search_result'
,
menuLevel
:
3
,
functionCode
:
'f_course'
,
actionCode
:
'c_more'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'm_search'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_result_course_top
:
{
menuCode
:
'm_search_result'
,
menuLevel
:
3
,
functionCode
:
'f_course'
,
actionCode
:
'c_top'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'm_search'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
// 五分钟
m_search_result_five_minutes_detail
:
{
menuCode
:
'm_search_result'
,
menuLevel
:
3
,
functionCode
:
'f_five_minutes'
,
actionCode
:
'c_detail'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'm_search'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_result_five_minutes_order
:
{
menuCode
:
'm_search_result'
,
menuLevel
:
3
,
functionCode
:
'f_five_minutes'
,
actionCode
:
'c_order'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'm_search'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_result_five_minutes_top
:
{
menuCode
:
'm_search_result'
,
menuLevel
:
3
,
functionCode
:
'f_five_minutes'
,
actionCode
:
'c_top'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'm_search'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
// 讲师
m_search_result_lecturer_detail
:
{
menuCode
:
'm_search_result'
,
menuLevel
:
3
,
functionCode
:
'f_lecturer'
,
actionCode
:
'c_detail'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'm_search'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_result_lecturer_order
:
{
menuCode
:
'm_search_result'
,
menuLevel
:
3
,
functionCode
:
'f_lecturer'
,
actionCode
:
'c_order'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'm_search'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_result_lecturer_top
:
{
menuCode
:
'm_search_result'
,
menuLevel
:
3
,
functionCode
:
'f_lecturer'
,
actionCode
:
'c_top'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'm_search'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
// 健康漫画
m_search_result_health_cartoon_detail
:
{
menuCode
:
'm_search_result'
,
menuLevel
:
3
,
functionCode
:
'f_health_cartoon'
,
actionCode
:
'c_detail'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'm_search'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_result_health_cartoon_order
:
{
menuCode
:
'm_search_result'
,
menuLevel
:
3
,
functionCode
:
'f_health_cartoon'
,
actionCode
:
'c_order'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'm_search'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
m_search_result_health_cartoon_top
:
{
menuCode
:
'm_search_result'
,
menuLevel
:
3
,
functionCode
:
'f_health_cartoon'
,
actionCode
:
'c_top'
,
labelId
:
''
,
labelValue
:
''
,
duration
:
1
,
menuFromCode
:
'm_search'
,
params
:
''
,
session
:
''
,
createdTime
:
new
Date
().
getTime
(),
},
}
\ No newline at end of file
src/utils/index.js
浏览文件 @
901087ed
...
@@ -221,6 +221,19 @@ export function pageJumpUrl(){
...
@@ -221,6 +221,19 @@ export function pageJumpUrl(){
return
url
;
return
url
;
}
}
/*
oriData : 原数据
sortField : 排序字段
orderType : 排序类型 1.升序 -1.降序
*/
export
function
sortParmData
(
oriData
,
sortField
,
orderType
)
{
if
(
orderType
!==
1
&&
orderType
!==
-
1
)
orderType
=
1
oriData
.
sort
(
(
a
,
b
)
=>
{
return
(
a
[
sortField
]
-
b
[
sortField
])
*
orderType
})
return
oriData
}
//跳转个人评价页面
//跳转个人评价页面
export
function
jumpEvaluatPage
(){
export
function
jumpEvaluatPage
(){
return
evaluatPageUrl
return
evaluatPageUrl
...
@@ -228,7 +241,7 @@ export function jumpEvaluatPage(){
...
@@ -228,7 +241,7 @@ export function jumpEvaluatPage(){
// dev地址
// dev地址
// const baseUrl = 'http://192.168.140.14:10201/'
// const baseUrl = 'http://192.168.140.14:10201/'
const
baseUrl
=
'http://10.177.10.149:
10201
/'
const
baseUrl
=
'http://10.177.10.149:
8080
/'
// const baseUrl = 'http://192.168.140.14:10201/'
// const baseUrl = 'http://192.168.140.14:10201/'
// const baseUrl = 'https://dev-sc.yunqueyi.com/'
// const baseUrl = 'https://dev-sc.yunqueyi.com/'
const
apiUrl
=
'https://dev-api.yunqueyi.com/'
const
apiUrl
=
'https://dev-api.yunqueyi.com/'
...
...
src/utils/mixins.js
浏览文件 @
901087ed
...
@@ -34,26 +34,30 @@ module.exports = {
...
@@ -34,26 +34,30 @@ module.exports = {
}
}
return
''
return
''
},
},
pageBurialPoin
(
options
){
//
pageBurialPoin(options){
let
opt
=
{
// let opt = {
menuLevel
:
options
.
menuLevel
||
''
,
// menuLevel:options.menuLevel || '',
functionCode
:
options
.
functionCode
||
''
,
// functionCode:options.functionCode || '',
actionCode
:
options
.
actionCode
||
''
,
// actionCode: options.actionCode || '',
// label:options.label || '',
// // label:options.label || '',
labelId
:
options
.
labelId
||
''
,
// labelId:options.labelId || '',
labelValue
:
options
.
labelValue
||
''
,
// labelValue :options.labelValue || '',
createdTime
:
options
.
createdTime
||
new
Date
().
getTime
(),
// createdTime: options.createdTime || new Date().getTime(),
//type: options.type || '0',
// //type: options.type || '0',
menuCode
:
options
.
menuCode
||
''
,
// menuCode: options.menuCode || '',
// menuToCode:options.menuToCode || '',
// // menuToCode:options.menuToCode || '',
duration
:
options
.
duration
||
0
,
// duration: options.duration || 0,
menuFromCode
:
options
.
menuFromCode
||
''
,
// menuFromCode:options.menuFromCode ||'',
params
:
options
.
params
||
''
,
// params:options.params || '',
session
:
options
.
session
||
''
,
// session:options.session || '',
}
// }
console
.
log
(
opt
);
// console.log(opt);
rocNative
.
appBuryingPointEntrust
(
opt
)
// rocNative.appBuryingPointEntrust(opt)
// },
pageBurialPoin
(
options
){
rocNative
.
appBuryingPointEntrust
(
options
)
},
},
setRouterParm
(
paramList
){
setRouterParm
(
paramList
){
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录