Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-admin-discuss
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-admin-discuss
提交
03ab3a1a
提交
03ab3a1a
编写于
11月 13, 2018
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
6cb6c937
变更
14
隐藏空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
158 行增加
和
57 行删除
+158
-57
yqy-adjust.vue
src/components/business-new/yqy-adjust.vue
+6
-1
yqy-category-three-1.vue
src/components/business-new/yqy-category-three-1.vue
+7
-0
yqy-five-minutes.vue
src/components/business-new/yqy-five-minutes.vue
+9
-3
yqy-home-adv.vue
src/components/business-new/yqy-home-adv.vue
+14
-2
yqy-home-banner.vue
src/components/business-new/yqy-home-banner.vue
+9
-1
yqy-home-learn-evaluation.vue
src/components/business-new/yqy-home-learn-evaluation.vue
+10
-2
yqy-teacher-list.vue
src/components/business-new/yqy-teacher-list.vue
+9
-1
topNav.vue
src/components/common/topNav.vue
+2
-2
yqyApp.js
src/store/modules/yqyApp.js
+7
-2
mixins.js
src/utils/mixins.js
+1
-0
activity.vue
src/views/activity/activity.vue
+37
-7
home-new.vue
src/views/home/home-new.vue
+42
-33
detail.vue
src/views/teachers/detail.vue
+1
-1
index.vue
src/views/teachers/index.vue
+4
-2
未找到文件。
src/components/business-new/yqy-adjust.vue
浏览文件 @
03ab3a1a
...
...
@@ -72,6 +72,10 @@ export default {
type
:
Number
,
default
:
0
},
userToken
:{
type
:
String
,
default
:
''
}
},
mounted
(){
this
.
menuHeight
=
this
.
statusBarHeight
+
7
+
40
+
"px"
;
...
...
@@ -178,11 +182,12 @@ export default {
})
let
_this
=
this
,
parm
=
{
token
:
this
.
t
oken
,
token
:
_this
.
userT
oken
,
type
:
status
,
courseId
:
id
,
setEntry
:
'headers'
}
/// alert(this.token)
_this
.
POST
(
'contents/favors'
,
parm
).
then
(
function
(
res
){
if
(
res
.
code
===
'000000'
){
...
...
src/components/business-new/yqy-category-three-1.vue
浏览文件 @
03ab3a1a
...
...
@@ -39,6 +39,12 @@ export default {
mounted
(){
this
.
getData
();
},
props
:{
userToken
:{
type
:
String
,
default
:
''
}
},
methods
:
{
goToPage
(
itemData
){
//console.log(itemData);
...
...
@@ -62,6 +68,7 @@ export default {
para
=
{
category
:
1
,
position
:
3
,
token
:
this
.
userToken
,
setEntry
:
'headers'
}
this
.
GET
(
'contents/HomeColumn/Information'
,
para
).
then
(
res
=>
{
...
...
src/components/business-new/yqy-five-minutes.vue
浏览文件 @
03ab3a1a
...
...
@@ -46,6 +46,12 @@ export default {
id
:
''
}
},
props
:{
userToken
:{
type
:
String
,
default
:
''
}
},
created
(){
let
_this
=
this
;
...
...
@@ -137,13 +143,13 @@ export default {
})
},
//获取
轮播图
数据
//获取数据
getData
(){
let
_this
=
this
,
parm
=
{
pageNo
:
1
,
token
:
_this
.
t
oken
,
token
:
_this
.
userT
oken
,
pageSize
:
10
,
data
:{
setEntry
:
'headers'
...
...
src/components/business-new/yqy-home-adv.vue
浏览文件 @
03ab3a1a
...
...
@@ -35,20 +35,31 @@ export default {
mounted
(){
this
.
getData
();
},
props
:{
userToken
:{
type
:
String
,
default
:
''
}
},
methods
:
{
//跳转
goToPage
(
item
,
parm
){
console
.
log
(
item
);
let
_this
=
this
;
if
(
parm
==
'list'
){
this
.
$router
.
push
({
path
:
'/teachers'
path
:
'/teachers'
,
query
:{
userToken
:
_this
.
userToken
}
})
}
else
{
this
.
$router
.
push
({
path
:
'/teachersDetail'
,
query
:{
id
:
item
.
id
id
:
item
.
id
,
userToken
:
_this
.
userToken
}
})
}
...
...
@@ -121,6 +132,7 @@ export default {
para
=
{
pageNo
:
this
.
pageNo
,
pageSize
:
this
.
pageSize
,
token
:
this
.
userToken
,
setEntry
:
'headers'
}
this
.
GET
(
'contents/HomeLecturer/LecturerInformation'
,
para
).
then
(
res
=>
{
...
...
src/components/business-new/yqy-home-banner.vue
浏览文件 @
03ab3a1a
...
...
@@ -25,6 +25,13 @@ export default {
mounted
(){
this
.
getData
();
},
props
:{
userToken
:{
type
:
String
,
default
:
''
}
},
methods
:
{
goToPage
(
itemData
){
this
.
pageBurialPoin
({
...
...
@@ -50,7 +57,8 @@ export default {
para
=
{
category
:
1
,
position
:
1
,
setEntry
:
'headers'
setEntry
:
'headers'
,
token
:
this
.
userToken
}
this
.
GET
(
'contents/HomeColumn/Information'
,
para
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
...
...
src/components/business-new/yqy-home-learn-evaluation.vue
浏览文件 @
03ab3a1a
...
...
@@ -54,6 +54,10 @@ export default {
default
:
false
,
type
:
Boolean
},
userToken
:{
type
:
String
,
default
:
''
}
},
data
()
{
...
...
@@ -87,9 +91,10 @@ export default {
getData
:
function
(){
let
_this
=
this
,
para
=
{
sysCode
:
27
,
token
:
_this
.
t
oken
,
token
:
_this
.
userT
oken
,
setEntry
:
'headers'
}
this
.
GET
(
'contents/gp/v1/homepage'
,
para
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
...
...
@@ -99,11 +104,14 @@ export default {
_this
.
$emit
(
'evluatFun'
,{
isPull
:
'2'
});
}
else
{
_this
.
isShow
=
_this
.
parmObj
.
showFlag
;
_this
.
isShow
=
_this
.
parmObj
.
showFlag
;
let
isPullIndex
=
_this
.
isShow
?
'1'
:
'2'
;
_this
.
$emit
(
'evluatFun'
,{
isPull
:
isPullIndex
});
}
}
else
{
///alert(res.message);
}
})
},
...
...
src/components/business-new/yqy-teacher-list.vue
浏览文件 @
03ab3a1a
...
...
@@ -42,6 +42,14 @@ export default {
mounted
(){
this
.
getData
()
},
props
:{
userToken
:{
type
:
String
,
default
:
''
}
},
methods
:
{
//跳转
goToPage
(
item
){
...
...
@@ -98,7 +106,7 @@ export default {
})
let
_this
=
this
,
parm
=
{
token
:
this
.
t
oken
,
token
:
this
.
userT
oken
,
type
:
status
,
courseId
:
id
,
setEntry
:
'headers'
...
...
src/components/common/topNav.vue
浏览文件 @
03ab3a1a
...
...
@@ -7,9 +7,9 @@
<img
src=
"../../images/grey-throw.png"
/>
</span>
{{
title
}}
<span
class=
"nav-share"
@
click=
"goShare"
>
<
!--
<
span
class=
"nav-share"
@
click=
"goShare"
>
<img
src=
"../../images/Shape1@2x.png"
/>
</span>
</span>
-->
</div>
</div>
...
...
src/store/modules/yqyApp.js
浏览文件 @
03ab3a1a
const
yqyHome
=
{
state
:
{
userMse
:
{},
},
mutations
:
{
SET_USERMSE
:
(
state
,
userMse
)
=>
{
state
.
userMse
=
userMse
},
},
actions
:
{
setUserMse
({
commit
},
userMse
)
{
commit
(
'SET_USERMSE'
,
userMse
)
},
}
}
...
...
src/utils/mixins.js
浏览文件 @
03ab3a1a
...
...
@@ -102,6 +102,7 @@ module.exports = {
let
path
=
paramList
[
0
][
'key'
];
let
v
=
paramList
[
0
][
'value'
];
let
query
=
this
.
setRouterParm
(
paramList
);
//alert(this.token);
this
.
$router
.
push
({
path
:
v
,
query
:
query
...
...
src/views/activity/activity.vue
浏览文件 @
03ab3a1a
...
...
@@ -32,24 +32,52 @@ export default {
tabName
:
'测试'
,
tabList
:[],
isShowBackTop
:
false
,
pointStyle
:
'activity'
pointStyle
:
'activity'
,
userToken
:
null
}
},
components
:{
TopNav
,
BackTop
},
created
(){
let
_this
=
this
;
window
.
__getUserInfo
=
function
(
parm
){
let
jh
=
JSON
.
stringify
(
parm
)
_this
.
token
=
parm
.
userToken
;
}
this
.
getBaseInfo
();
},
watch
:{
token
:
function
(){
if
(
this
.
token
!=
null
){
this
.
id
=
this
.
$route
.
query
.
categoryId
this
.
getTabData
();
window
.
addEventListener
(
'scroll'
,
this
.
scrollFun
);
}
}
},
mounted
(){
///console.log(this.$route.query);
this
.
id
=
this
.
$route
.
query
.
categoryId
this
.
getTabData
();
window
.
addEventListener
(
'scroll'
,
this
.
scrollFun
);
},
beforeDestroyed
(){
window
.
removeEventListener
(
'scroll'
,
this
.
scrollFun
)
},
methods
:{
//获取版本号
getBaseInfo
(){
rocNative
.
getUserInfo
({
__funcName
:
'__getUserInfo'
})
},
scrollFun
(){
let
scrollTop
=
document
.
documentElement
.
scrollTop
;
this
.
isShowBackTop
=
scrollTop
>
0
?
true
:
false
;
...
...
@@ -81,7 +109,8 @@ export default {
let
_this
=
this
,
parm
=
{
id
:
_this
.
id
,
setEntry
:
'headers'
setEntry
:
'headers'
,
token
:
_this
.
userToken
}
_this
.
GET
(
'contents/contentList/tabById'
,
parm
).
then
(
function
(
res
){
...
...
@@ -104,7 +133,8 @@ export default {
parm
=
{
id
:
_this
.
id
,
tabName
:
_this
.
tabName
,
setEntry
:
'headers'
setEntry
:
'headers'
,
token
:
_this
.
userToken
}
// if(_this.tabName != ''){
// parm.tabName = _this.tabName
...
...
src/views/home/home-new.vue
浏览文件 @
03ab3a1a
<
template
>
<section
:class=
"isIntStyle"
>
<!--展开收起学习评价-->
<YqyTopEvaluat
:
isShowEvluat=
"isShowEvluat"
v-if=
"isShowEvluat
"
v-on:evluatFun=
"getEluatFun"
/>
<YqyTopEvaluat
:
userToken=
"token"
:isShowEvluat=
"isShowEvluat"
v-if=
"isShowEvluat && token
"
v-on:evluatFun=
"getEluatFun"
/>
<section
class=
"home-header"
>
<div
class=
"home-topMenu"
>
...
...
@@ -19,7 +19,7 @@
</div>
</section>
<section
class=
"home-body"
>
<YqyHomeBanner/>
<YqyHomeBanner
:userToken=
"token"
v-if=
"token"
/>
<div
class=
"pathologic-list"
>
<div
class=
"pathologic-item"
v-for=
"(item,index) in listMiddle"
:style=
"index%2==1?'margin-right: 0':''"
@
click=
"goToPatholo(item)"
>
...
...
@@ -33,25 +33,25 @@
</div>
<!--继续学习-->
<YqyHomeKeepon
:userMobile=
"userMobile"
/>
<YqyHomeKeepon
:userMobile=
"userMobile"
:userToken=
"token"
v-if=
"token"
/>
<!--专题分类-->
<YqyCategoryThree1/>
<YqyCategoryThree1
:userToken=
"token"
v-if=
"token"
/>
<!--健康守门人-->
<!--
<YqyHomePorter/>
-->
<!--云雀名师-->
<YqyHomeAdv/>
<YqyHomeAdv
:userToken=
"token"
v-if=
"token"
/>
<!--最新课程-->
<YqyTeacherList/>
<YqyTeacherList
:userToken=
"token"
v-if=
"token"
/>
<!--分钟医学院-->
<YqyFiveMinutes/>
<YqyFiveMinutes
:userToken=
"token"
v-if=
"token"
/>
<!--为你推荐-->
<YqyHomeAdjust
:isFixed=
"isFixed"
:statusBarHeight=
"statusBarHeight"
/>
<YqyHomeAdjust
:isFixed=
"isFixed"
:statusBarHeight=
"statusBarHeight"
v-if=
"token"
:userToken=
"token"
/>
<!--返回顶部-->
<BackTop
v-if=
"isShowBackTop"
/>
...
...
@@ -127,33 +127,38 @@ export default {
_this
.
msgCount
=
params
.
msgNum
||
''
;
}
// window.__getUserInfo = function(parm){
// ///userMobile userName userToken systemType(Andriod: 1, iOS: 2) appVersion doctorId
// _this.systemType = parm.systemType;
// _this.appVersion = parm.appVersion;
// _this.userToken = parm.userToken;
// _this.userMobile = parm.userMobile;
// if(!!_this.systemType && !!_this.appVersion){
// _this.getSwiper();
// }
// }
window
.
__getUserInfo
=
function
(
parm
){
_this
.
systemType
=
parm
.
systemType
;
_this
.
appVersion
=
parm
.
appVersion
;
_this
.
token
=
parm
.
userToken
;
_this
.
userMobile
=
parm
.
userMobile
;
}
///_this.token = 'AF22B142535B440883135309BBF3F3B0'
this
.
getUserInfo
();
window
.
__getStatusBarHeight
=
function
(
parm
){
_this
.
statusBarHeight
=
parm
.
statusBarHeight
}
},
mounted
(){
console
.
log
(
this
);
window
.
addEventListener
(
'scroll'
,
this
.
scrollFun
);
this
.
getStatusHight
();
this
.
getUpdateData
();
this
.
getMiddel
();
if
(
!!
this
.
systemType
&&
!!
this
.
appVersion
){
this
.
getSwiper
();
if
(
this
.
token
!=
null
){
this
.
getStatusHight
();
this
.
getUpdateData
();
this
.
getMiddel
();
if
(
!!
this
.
systemType
&&
!!
this
.
appVersion
){
this
.
getSwiper
();
}
window
.
addEventListener
(
'scroll'
,
this
.
scrollFun
);
}
// this.getSwiper();
},
...
...
@@ -176,8 +181,12 @@ export default {
}
}
},
computed
:{
},
methods
:{
//获取状态栏高度
getStatusHight
(){
rocNative
.
getStatusBarHeight
({
...
...
@@ -187,11 +196,11 @@ export default {
},
//获取版本号
//
getUserInfo(){
//
rocNative.getUserInfo({
//
__funcName: '__getUserInfo'
//
})
//
},
getUserInfo
(){
rocNative
.
getUserInfo
({
__funcName
:
'__getUserInfo'
})
},
//轮播图跳转
goLinkByswiper
(
item
){
...
...
@@ -358,7 +367,7 @@ export default {
para
=
{
version
:
_this
.
appVersion
,
systemType
:
_this
.
systemType
,
token
:
_this
.
userT
oken
,
token
:
_this
.
t
oken
,
data
:{
setEntry
:
'headers'
}
...
...
src/views/teachers/detail.vue
浏览文件 @
03ab3a1a
...
...
@@ -146,7 +146,7 @@ export default {
collectFun
(
status
,
id
){
let
_this
=
this
,
parm
=
{
token
:
this
.
t
oken
,
token
:
_this
.
$route
.
query
.
userT
oken
,
type
:
status
,
courseId
:
id
,
setEntry
:
'headers'
...
...
src/views/teachers/index.vue
浏览文件 @
03ab3a1a
...
...
@@ -51,10 +51,12 @@ export default {
},
methods
:{
goToDetail
(
id
){
let
_this
=
this
;
this
.
$router
.
push
({
path
:
'/teachersDetail'
,
query
:{
id
:
id
id
:
id
,
userToken
:
_this
.
$route
.
query
.
userToken
}
})
},
...
...
@@ -84,7 +86,7 @@ export default {
let
_this
=
this
,
para
=
{
token
:
_this
.
t
oken
,
token
:
_this
.
$route
.
query
.
userT
oken
,
setEntry
:
'headers'
}
let
url
=
'/contents/courseDoctor/getAllTeacher/orderby/'
+
_this
.
col
+
'/dir/'
+
_this
.
dir
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录