Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
57768da5
提交
57768da5
编写于
12月 25, 2018
作者:
杨广俊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
__getUserInfo_CA
上级
3360d1a5
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
101 行增加
和
67 行删除
+101
-67
course-adjust.vue
src/components/business/course-adjust.vue
+23
-14
hot-labels.vue
src/components/business/hot-labels.vue
+5
-4
teacher-list.vue
src/components/business/teacher-list.vue
+65
-48
index.js
src/utils/index.js
+4
-0
yqyServerRegister.js
src/utils/yqyServerRegister.js
+4
-1
未找到文件。
src/components/business/course-adjust.vue
浏览文件 @
57768da5
...
...
@@ -43,6 +43,7 @@
</
template
>
<
script
>
import
{
mapGetters
,
mapActions
}
from
'vuex'
import
{
Loadmore
,
Spinner
,
...
...
@@ -51,6 +52,7 @@ import {
import
GroupTitle
from
'@/components/business/group-title'
;
// import { setEventByModuleCode } from '@/utils/index'
// import LOADING from '../../components/common/loading-new';
export
default
{
data
()
{
return
{
...
...
@@ -95,19 +97,34 @@ export default {
type
:
Array
,
default
:
()
=>
[]
},
},
mounted
()
{
},
created
()
{
window
.
__getUserInfo_CA
=
function
(
params
){
_self
.
setUserInfo
(
params
)
}
window
.
__refresh
=
function
(
parm
)
{
_this
.
getUserInfo
();
}
},
mounted
()
{
},
computed
:
{
...
mapGetters
({
userInfo
:
'userInfo'
})
},
components
:
{
GroupTitle
},
methods
:
{
...
mapActions
({
setUserInfo
:
'setUserInfo'
}),
getUserInfo
:
function
()
{
rocNative
.
getUserInfo
({
'__funcName'
:
'__getUserInfo_CA'
})
},
//跳转
goToPage
(
item
)
{
this
.
pageBurialPoin
({
...
...
@@ -154,7 +171,6 @@ export default {
//滑动加载更多
loadMore
()
{
let
_this
=
this
;
if
(
_this
.
isReauestBack
)
{
...
...
@@ -181,7 +197,7 @@ export default {
status
=
status
==
1
?
2
:
1
;
this
.
pageBurialPoin
({
menuLevel
:
1
,
menuCode
:
'm_
home
'
,
menuCode
:
'm_
search
'
,
functionCode
:
'f_recommend'
,
actionCode
:
'c_collect'
,
labelId
:
id
,
...
...
@@ -189,22 +205,15 @@ export default {
})
let
_this
=
this
,
parm
=
{
token
:
_this
.
userToken
,
token
:
_this
.
user
Info
.
user
Token
,
type
:
status
,
courseId
:
id
,
setEntry
:
'headers'
,
data
:
{
token
:
_this
.
userToken
,
}
}
/// alert(this.token)
_this
.
POST
(
'contents/favors'
,
parm
).
then
(
function
(
res
)
{
if
(
res
.
code
===
'000000'
)
{
_this
.
handelData
(
id
,
status
);
}
else
{
//alert(res.message);
rocNative
.
showNativeToast
({
message
:
'注册登陆后才能收藏哦'
})
...
...
src/components/business/hot-labels.vue
浏览文件 @
57768da5
...
...
@@ -15,6 +15,9 @@
</
template
>
<
script
>
import
{
m_search_history_hot_search
}
from
'@/utils/buryingPoint'
import
{
mapMutations
}
from
'vuex'
...
...
@@ -64,12 +67,10 @@ export default {
})
}
this
.
pageBurialPoin
({
menuLevel
:
1
,
menuCode
:
'm_home'
,
functionCode
:
'f_module'
,
actionCode
:
'c_module'
,
...
m_search_history_hot_search
,
labelId
:
itemData
.
id
,
labelValue
:
itemData
.
keyword
,
createdTime
:
new
Date
().
getTime
()
})
},
searchAction
(
searchText
)
{
...
...
src/components/business/teacher-list.vue
浏览文件 @
57768da5
...
...
@@ -6,7 +6,7 @@
<div
class=
"teach-list"
>
<div
:class=
"index % 2 == 1 ? 'list-item mr0' : 'list-item'"
v-for=
"(item, index) in cParamData"
:key=
"index"
@
click=
"goTo
Detail
(item)"
>
@
click=
"goTo
Page
(item)"
>
<div
class=
"tea-img"
:style=
"'background:'+ item.bgColor"
>
<img
:src=
"item.appImageUrl"
>
<span
class=
"learn-p"
>
{{
item
.
joinNum
}}
人已学
</span>
...
...
@@ -27,6 +27,7 @@
<
script
>
import
{
mapGetters
}
from
'vuex'
import
{
jumpWebPageUrl
}
from
'@/utils/index'
import
{
sortParmData
}
from
'@/utils/index'
import
{
...
...
@@ -71,15 +72,6 @@ export default {
}
},
mounted
()
{
let
_this
=
this
this
.
token
=
this
.
$route
.
query
.
userToken
||
this
.
$route
.
query
.
token
// this.getUserInfo()
// this.getData();
// window.__getUserInfo = function(parm){
// // alert('in __getUserInfo')
// _this.token = parm.userToken || _this.$route.query.token;
// this.getData();
// }
window
.
__refresh
=
function
(
parm
)
{
_this
.
getData
();
}
...
...
@@ -88,13 +80,14 @@ export default {
},
computed
:
{
...
mapGetters
({
cSearchText
:
'cSearchText'
cSearchText
:
'cSearchText'
,
userInfo
:
'userInfo'
}),
cParamData
()
{
if
(
this
.
list
&&
this
.
list
.
length
)
{
return
this
.
list
return
this
.
randomBg
(
this
.
list
)
}
else
{
return
this
.
parmData
return
this
.
randomBg
(
this
.
parmData
)
}
}
},
...
...
@@ -113,27 +106,70 @@ export default {
__funcName
:
'__getUserInfo'
})
},
goToDetail
(
item
)
{
let
_this
=
this
;
this
.
$router
.
push
({
path
:
'/details'
,
query
:
{
id
:
item
.
doctorId
,
token
:
_this
.
token
//跳转
goToPage
(
item
){
let
_this
=
this
,
url
=
''
,
action_code
=
''
,
label_id
=
''
;
url
=
jumpWebPageUrl
+
'teachersDetail?id='
+
item
.
id
+
"&from=appHome&userToken="
+
_this
.
userInfo
.
userToken
action_code
=
'c_teacher'
;
label_id
=
item
.
id
;
let
itemData
=
{
"title"
:
""
,
"imageUrl"
:
""
,
"appModuleInfo"
:{
"code"
:
"M300"
,
"type"
:
4
,
"name"
:
"wwww"
,
"paramFlag"
:
1
,
"paramList"
:[
{
"key"
:
"pageUrl"
,
"value"
:
url
,
"type"
:
4
,
"seqNo"
:
1
},{
"key"
:
"showTitle"
,
"value"
:
false
,
"type"
:
1
,
"seqNo"
:
2
},{
"key"
:
"title"
,
"value"
:
''
,
"type"
:
1
,
"seqNo"
:
3
}
]
}
};
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
itemData
.
appModuleInfo
.
code
,
jsonString
:
itemData
.
appModuleInfo
.
paramList
})
this
.
pageBurialPoin
({
...
m_search_result_lecturer_detail
,
labelValue
:
item
.
name
,
createdTime
:
new
Date
().
getTime
(),
labelId
:
label_id
,
labelValue
:
item
.
name
,
createdTime
:
new
Date
().
getTime
()
})
},
//排序
sortFun
()
{
this
.
dir
=
this
.
dir
==
1
?
2
:
1
;
this
.
getData
()
},
// goToDetail(item) {
// let _this = this;
// this.$router.push({
// path: '/details',
// query: {
// id: item.doctorId,
// token: _this.token
// }
// })
// this.pageBurialPoin({
// ...m_search_result_lecturer_detail,
// labelValue: item.name,
// createdTime: new Date().getTime(),
// })
// },
randomBg
(
d
)
{
for
(
let
i
=
0
;
i
<
d
.
length
;
i
++
)
{
...
...
@@ -147,28 +183,9 @@ export default {
d
[
i
].
bgColor
=
'#F6EFE6'
}
}
/// console.log(d);
return
d
},
getData
()
{
let
_this
=
this
,
para
=
{
token
:
_this
.
token
,
setEntry
:
'headers'
}
let
url
=
'contents/courseDoctor/getAllTeacher/orderby/'
+
_this
.
col
+
'/dir/'
+
_this
.
dir
this
.
GET
(
url
,
para
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
_this
.
list
=
res
.
data
.
teacherList
||
[];
_this
.
followCount
=
res
.
data
.
followCount
||
0
;
_this
.
studyCount
=
res
.
data
.
studyCount
||
0
;
if
(
_this
.
list
.
length
>
0
)
{
_this
.
randomBg
(
_this
.
list
);
}
}
})
},
orderAction
(
orderIndex
)
{
this
.
pageBurialPoin
({
...
m_search_result_lecturer_order
,
...
...
src/utils/index.js
浏览文件 @
57768da5
...
...
@@ -87,21 +87,25 @@ export function jumpEvaluatPage(){
// const baseUrl = 'https://dev-sc.yunqueyi.com/'
// const apiUrl = 'https://dev-api.yunqueyi.com/'
// const evaluatPageUrl = 'https://dev-phome.yunqueyi.com/gpr/#/home'
// export const jumpWebPageUrl = 'https://dev-phome.yunqueyi.com/appl/#/'
// test1地址
const
baseUrl
=
'https://test1-sc.yunqueyi.com/'
const
apiUrl
=
'https://test1-api.yunqueyi.com/'
const
evaluatPageUrl
=
'https://test1-phome.yunqueyi.com/gpr/#/home'
export
const
jumpWebPageUrl
=
'https://test1-phome.yunqueyi.com/appl/#/'
// // uat地址
// const baseUrl = 'https://uat-sc.yunqueyi.com/'
// const apiUrl = 'https://uat-api.yunqueyi.com/'
// const evaluatPageUrl = 'https://uat-phome.yunqueyi.com/gpr/#/home'
// export const jumpWebPageUrl = 'https://uat-phome.yunqueyi.com/appl/#/'
// // pro地址
// const baseUrl = 'https://sc.yunqueyi.com/'
// const apiUrl = 'https://api.yunqueyi.com/'
// const evaluatPageUrl = 'https://phome.yunqueyi.com/gpr/#/home'
// export const jumpWebPageUrl = 'https://phome.yunqueyi.com/appl/#/'
// 为每个URL添加应用校验密钥
...
...
src/utils/yqyServerRegister.js
浏览文件 @
57768da5
...
...
@@ -11,7 +11,10 @@
__getUserInfo
(
n
);
}
if
(
t
==
'__getUserInfo_S'
){
__getUserInfo_S
(
n
);
__getUserInfo_S
(
n
)
}
if
(
t
==
'__getUserInfo_CA'
){
__getUserInfo_CA
(
n
)
}
if
(
t
==
'__getStatusBarHeight'
){
__getStatusBarHeight
(
n
);
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录