提交 8190b402 编写于 作者: chendeli's avatar chendeli

add

上级 330e2a92
......@@ -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
// })
},
......
......@@ -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,
......
......@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册