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

add

上级 330e2a92
...@@ -54,15 +54,18 @@ export default { ...@@ -54,15 +54,18 @@ export default {
//跳转 //跳转
goToPage(item,parm){ goToPage(item,parm){
let _this = this, let _this = this,
url = ''; url = '',action_code = '',label_id = '';
if(parm == 'list'){ if(parm == 'list'){
url = jumpWebPageUrl+'teachers?userToken='+_this.userToken url = jumpWebPageUrl+'teachers?userToken='+_this.userToken;
action_code = 'c_more'
// rocNative.gotoNewWebActivity({ // rocNative.gotoNewWebActivity({
// pageUrl: jumpWebPageUrl+'teachers?userToken='+_this.userToken // pageUrl: jumpWebPageUrl+'teachers?userToken='+_this.userToken
// }) // })
}else{ }else{
url = jumpWebPageUrl+'teachersDetail?id='+item.id+"&from=appHome&userToken="+_this.userToken url = jumpWebPageUrl+'teachersDetail?id='+item.id+"&from=appHome&userToken="+_this.userToken
action_code = 'c_teacher';
label_id = item.id;
// rocNative.gotoNewWebActivity({ // rocNative.gotoNewWebActivity({
// pageUrl: jumpWebPageUrl+'teachersDetail?id='+item.id+"&from=appHome&userToken="+_this.userToken // pageUrl: jumpWebPageUrl+'teachersDetail?id='+item.id+"&from=appHome&userToken="+_this.userToken
// }) // })
...@@ -97,73 +100,23 @@ export default { ...@@ -97,73 +100,23 @@ export default {
} }
}; };
// console.log(itemData)
//alert(JSON.stringify(itemData))
rocNative.dispatchEventByModuleCode({ rocNative.dispatchEventByModuleCode({
modeCode: itemData.appModuleInfo.code, modeCode: itemData.appModuleInfo.code,
jsonString: itemData.appModuleInfo.paramList jsonString: itemData.appModuleInfo.paramList
}) })
// let obj = {}
// let keyName = '',
// val = '',
// classNameVal = '';
// if(parm == 'list'){ this.pageBurialPoin({
// obj = { menuLevel:1,
// menuLevel:1, menuCode:'m_home',
// menuCode:'m_home', functionCode:'f_teacher',
// functionCode:'f_teacher', actionCode:action_code,
// actionCode: 'c_more', labelId:label_id,
// } labelValue :item.name,
// 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)
// 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 { ...@@ -54,7 +54,7 @@ export default {
functionCode:'f_course', functionCode:'f_course',
actionCode:'c_play', actionCode:'c_play',
labelId:item.courseId, labelId:item.courseId,
//labelValue :itemData.name, labelValue :item.name,
}) })
let itemData={ let itemData={
"title":item.name, "title":item.name,
......
...@@ -202,7 +202,7 @@ export default { ...@@ -202,7 +202,7 @@ export default {
if(parm.userMobile != ''){ if(parm.userMobile != ''){
_this.getKeepData(parm.userToken); _this.getKeepData(parm.userToken);
} }
_this.getIconData(parm.userToken);
_this.initByToken(parm.userToken); _this.initByToken(parm.userToken);
} }
...@@ -216,6 +216,8 @@ export default { ...@@ -216,6 +216,8 @@ export default {
// _this.getKeepData(_this.userToken); // _this.getKeepData(_this.userToken);
// _this.initByToken(_this.token); // _this.initByToken(_this.token);
// _this.getIconData(_this.token); // _this.getIconData(_this.token);
// _this.isIntStyle = 'font-style pull-down';
// _this.fiveTimePull();
//_this.getUserInfo(); //_this.getUserInfo();
...@@ -289,7 +291,7 @@ export default { ...@@ -289,7 +291,7 @@ export default {
this.getSwiper() this.getSwiper()
this.getUpdateData(); this.getUpdateData();
this.getMiddel(); this.getMiddel();
this.getIconData();
this.getCategoryData(); this.getCategoryData();
this.getYqDoctorData(); this.getYqDoctorData();
this.getFiveData(); this.getFiveData();
...@@ -346,17 +348,17 @@ export default { ...@@ -346,17 +348,17 @@ export default {
this.GET('contents/gp/v1/homepage', para).then(res => { this.GET('contents/gp/v1/homepage', para).then(res => {
if(res.code == '000000'){ if(res.code == '000000'){
// res.data = { res.data = {
// avatarImageUrl: "https://test-file.yunqueyi.com/File/doctor_default.png", avatarImageUrl: "https://test-file.yunqueyi.com/File/doctor_default.png",
// certificateAcquireNumOfHospital: 10, certificateAcquireNumOfHospital: 10,
// certificateAcquireNumOfSelf: 9, certificateAcquireNumOfSelf: 9,
// courseOverNumOfHospital: 10, courseOverNumOfHospital: 10,
// courseOverNumOfSelf: 5, courseOverNumOfSelf: 5,
// examOverNumOfHospital: 10, examOverNumOfHospital: 10,
// examOverNumOfSelf: 5, examOverNumOfSelf: 5,
// gradePKToHospital: 0.67, gradePKToHospital: 0.67,
// showFlag: true showFlag: true
// } }
_this.evaluctObj = res.data || {}; _this.evaluctObj = res.data || {};
if(res.data.certificateAcquireNumOfSelf == 0 && res.data.courseOverNumOfSelf == 0 && res.data.examOverNumOfSelf == 0){ if(res.data.certificateAcquireNumOfSelf == 0 && res.data.courseOverNumOfSelf == 0 && res.data.examOverNumOfSelf == 0){
_this.isShowEvluat = false; _this.isShowEvluat = false;
...@@ -389,7 +391,7 @@ export default { ...@@ -389,7 +391,7 @@ export default {
}, },
//获取小icon数据 //获取小icon数据
getIconData(userToken){ getIconData(){
let _this = this, let _this = this,
para = { para = {
category: 1, category: 1,
...@@ -401,7 +403,7 @@ export default { ...@@ -401,7 +403,7 @@ export default {
if(res.code == '000000'){ if(res.code == '000000'){
//alert("000"); //alert("000");
_this.iconList = res.data && res.data.iconColumnInformationModels || [] _this.iconList = res.data && res.data.iconColumnInformationModels || []
_this.userToken = userToken //_this.userToken = userToken
} }
}) })
}, },
...@@ -830,10 +832,12 @@ export default { ...@@ -830,10 +832,12 @@ export default {
to {padding-top:0} to {padding-top:0}
} }
.pull-down{ .pull-down{
-webkit-animation: myPullDown 1.2s;
animation: myPullDown 1.2s; animation: myPullDown 1.2s;
padding-top:px2rem(225px) padding-top:px2rem(225px)
} }
.pull-up{ .pull-up{
-webkit-animation: myPullUp 1.2s;
animation: myPullUp 1.2s; animation: myPullUp 1.2s;
padding-top:0 padding-top:0
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册