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
提交
8190b402
提交
8190b402
编写于
11月 16, 2018
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
330e2a92
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
35 行增加
和
78 行删除
+35
-78
yqy-home-adv.vue
src/components/business-new/yqy-home-adv.vue
+15
-62
yqy-home-keepon.vue
src/components/business-new/yqy-home-keepon.vue
+1
-1
home-new.vue
src/views/home/home-new.vue
+19
-15
未找到文件。
src/components/business-new/yqy-home-adv.vue
浏览文件 @
8190b402
...
...
@@ -54,15 +54,18 @@ export default {
//跳转
goToPage
(
item
,
parm
){
let
_this
=
this
,
url
=
''
;
url
=
''
,
action_code
=
''
,
label_id
=
''
;
if
(
parm
==
'list'
){
url
=
jumpWebPageUrl
+
'teachers?userToken='
+
_this
.
userToken
url
=
jumpWebPageUrl
+
'teachers?userToken='
+
_this
.
userToken
;
action_code
=
'c_more'
// rocNative.gotoNewWebActivity({
// pageUrl: jumpWebPageUrl+'teachers?userToken='+_this.userToken
// })
}
else
{
url
=
jumpWebPageUrl
+
'teachersDetail?id='
+
item
.
id
+
"&from=appHome&userToken="
+
_this
.
userToken
action_code
=
'c_teacher'
;
label_id
=
item
.
id
;
// rocNative.gotoNewWebActivity({
// pageUrl: jumpWebPageUrl+'teachersDetail?id='+item.id+"&from=appHome&userToken="+_this.userToken
// })
...
...
@@ -97,73 +100,23 @@ export default {
}
};
// console.log(itemData)
//alert(JSON.stringify(itemData))
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
itemData
.
appModuleInfo
.
code
,
jsonString
:
itemData
.
appModuleInfo
.
paramList
})
// let obj = {}
// let keyName = '',
// val = '',
// classNameVal = '';
// if(parm == 'list'){
// obj = {
// menuLevel:1,
// menuCode:'m_home',
// functionCode:'f_teacher',
// actionCode: 'c_more',
// }
// keyName = '';
// val = '';
// classNameVal = 'com.picahealth.yunque.activitys.experienceshare.ExperienceShareDetailActivity###SharedExperienceViewController'
// }else{
// obj = {
// menuLevel:1,
// menuCode:'m_home',
// functionCode:'f_teacher',
// actionCode:'c_teacher',
// labelId:item.id,
// labelValue :item.name,
// }
// keyName = 'id';
// val = item.id;
// classNameVal = 'com.picahealth.yunque.activitys.playvideo.PlayVideoFullScrenActivity###VideoPlayerViewController'
// }
// this.pageBurialPoin(obj)
this
.
pageBurialPoin
({
menuLevel
:
1
,
menuCode
:
'm_home'
,
functionCode
:
'f_teacher'
,
actionCode
:
action_code
,
labelId
:
label_id
,
labelValue
:
item
.
name
,
})
// let itemData = {
// "title":item.name,
// "imageUrl":"",
// "appModuleInfo":{
// "code":"M200",
// "type":4,
// "name":"名师风采个人展示",
// "paramFlag":1,
// "paramList":[
// {
// "key":"className",
// "value":classNameVal,
// "type":4,
// "seqNo":1
// },
// {
// "key":keyName,
// "value":`${val}`,
// "type":1,
// "seqNo":2
// }
// ]
// }
// };
// let paramList = this.setEventByModuleCode(itemData);
// rocNative.dispatchEventByModuleCode({
// modeCode: itemData.appModuleInfo.code,
// jsonString: paramList
// })
},
...
...
src/components/business-new/yqy-home-keepon.vue
浏览文件 @
8190b402
...
...
@@ -54,7 +54,7 @@ export default {
functionCode
:
'f_course'
,
actionCode
:
'c_play'
,
labelId
:
item
.
courseId
,
//labelValue :itemData
.name,
labelValue
:
item
.
name
,
})
let
itemData
=
{
"title"
:
item
.
name
,
...
...
src/views/home/home-new.vue
浏览文件 @
8190b402
...
...
@@ -202,7 +202,7 @@ export default {
if
(
parm
.
userMobile
!=
''
){
_this
.
getKeepData
(
parm
.
userToken
);
}
_this
.
getIconData
(
parm
.
userToken
);
_this
.
initByToken
(
parm
.
userToken
);
}
...
...
@@ -216,6 +216,8 @@ export default {
// _this.getKeepData(_this.userToken);
// _this.initByToken(_this.token);
// _this.getIconData(_this.token);
// _this.isIntStyle = 'font-style pull-down';
// _this.fiveTimePull();
//_this.getUserInfo();
...
...
@@ -289,7 +291,7 @@ export default {
this
.
getSwiper
()
this
.
getUpdateData
();
this
.
getMiddel
();
this
.
getIconData
();
this
.
getCategoryData
();
this
.
getYqDoctorData
();
this
.
getFiveData
();
...
...
@@ -346,17 +348,17 @@ export default {
this
.
GET
(
'contents/gp/v1/homepage'
,
para
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
//
res.data = {
//
avatarImageUrl: "https://test-file.yunqueyi.com/File/doctor_default.png",
//
certificateAcquireNumOfHospital: 10,
//
certificateAcquireNumOfSelf: 9,
//
courseOverNumOfHospital: 10,
//
courseOverNumOfSelf: 5,
//
examOverNumOfHospital: 10,
//
examOverNumOfSelf: 5,
//
gradePKToHospital: 0.67,
//
showFlag: true
//
}
res
.
data
=
{
avatarImageUrl
:
"https://test-file.yunqueyi.com/File/doctor_default.png"
,
certificateAcquireNumOfHospital
:
10
,
certificateAcquireNumOfSelf
:
9
,
courseOverNumOfHospital
:
10
,
courseOverNumOfSelf
:
5
,
examOverNumOfHospital
:
10
,
examOverNumOfSelf
:
5
,
gradePKToHospital
:
0.67
,
showFlag
:
true
}
_this
.
evaluctObj
=
res
.
data
||
{};
if
(
res
.
data
.
certificateAcquireNumOfSelf
==
0
&&
res
.
data
.
courseOverNumOfSelf
==
0
&&
res
.
data
.
examOverNumOfSelf
==
0
){
_this
.
isShowEvluat
=
false
;
...
...
@@ -389,7 +391,7 @@ export default {
},
//获取小icon数据
getIconData
(
userToken
){
getIconData
(){
let
_this
=
this
,
para
=
{
category
:
1
,
...
...
@@ -401,7 +403,7 @@ export default {
if
(
res
.
code
==
'000000'
){
//alert("000");
_this
.
iconList
=
res
.
data
&&
res
.
data
.
iconColumnInformationModels
||
[]
_this
.
userToken
=
userToken
//
_this.userToken = userToken
}
})
},
...
...
@@ -830,10 +832,12 @@ export default {
to
{
padding-top
:
0
}
}
.pull-down
{
-webkit-animation
:
myPullDown
1
.2s
;
animation
:
myPullDown
1
.2s
;
padding-top
:px2rem
(
225px
)
}
.pull-up
{
-webkit-animation
:
myPullUp
1
.2s
;
animation
:
myPullUp
1
.2s
;
padding-top
:
0
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录