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

add

上级 8190b402
...@@ -41,12 +41,11 @@ export default { ...@@ -41,12 +41,11 @@ export default {
methods: { methods: {
goToPage(itemData){ goToPage(itemData){
let paramList = this.setEventByModuleCode(itemData); let paramList = this.setEventByModuleCode(itemData);
//console.log(paramList) let code = '';
//alert(this.userToken); alert(JSON.stringify(itemData))
if(itemData.appModuleInfo && itemData.appModuleInfo.code == 'M500'){ if(itemData.appModuleInfo && itemData.appModuleInfo.code == 'M500'){
//let url = jumpWebPageUrl+'activity?categoryId=1'; //let url = jumpWebPageUrl+'activity?categoryId=1';
code = 'M300';
let url = ''; let url = '';
if(itemData.appModuleInfo.paramList.length>0){ if(itemData.appModuleInfo.paramList.length>0){
if(itemData.appModuleInfo.paramList[0].value.indexOf('activity') > -1){ if(itemData.appModuleInfo.paramList[0].value.indexOf('activity') > -1){
...@@ -55,17 +54,17 @@ export default { ...@@ -55,17 +54,17 @@ export default {
if(itemData.appModuleInfo.paramList[0].value.indexOf('teachers') > -1){ if(itemData.appModuleInfo.paramList[0].value.indexOf('teachers') > -1){
url = itemData.appModuleInfo.paramList[0].value+'?userToken='+this.userToken; url = itemData.appModuleInfo.paramList[0].value+'?userToken='+this.userToken;
} }
//alert(url); ///alert(url);
} }
itemData.appModuleInfo.code = 'M300'; ///itemData.appModuleInfo.code = 'M300';
let item = { let item = {
"title":"", "title":"",
"imageUrl":"", "imageUrl":"",
"appModuleInfo":{ "appModuleInfo":{
"code":itemData.appModuleInfo.code, "code":code == '' ? itemData.appModuleInfo.code : code,
"type":4, "type":4,
"name":"wwww", "name":"wwww",
"paramFlag":1, "paramFlag":1,
......
...@@ -172,6 +172,7 @@ export default { ...@@ -172,6 +172,7 @@ export default {
_this.getAdjustData(_this.userToken); _this.getAdjustData(_this.userToken);
_this.getNewsData(_this.userToken); _this.getNewsData(_this.userToken);
} }
//alert(_this.isShowEvluat);
//第一次进来及时 //第一次进来及时
if(_this.isShowEvluat && !_this.isRefreshFromBack){ if(_this.isShowEvluat && !_this.isRefreshFromBack){
...@@ -192,7 +193,7 @@ export default { ...@@ -192,7 +193,7 @@ export default {
window.__getUserInfo = function(parm){ window.__getUserInfo = function(parm){
//alert(parm.userToken); alert(parm.userToken);
_this.systemType = parm.systemType; _this.systemType = parm.systemType;
_this.appVersion = parm.appVersion; _this.appVersion = parm.appVersion;
_this.token = parm.userToken; _this.token = parm.userToken;
...@@ -348,17 +349,17 @@ export default { ...@@ -348,17 +349,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;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册