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

add

上级 e2025ca2
...@@ -39,67 +39,79 @@ export default { ...@@ -39,67 +39,79 @@ export default {
//跳转 //跳转
goToPage(item,parm){ goToPage(item,parm){
let obj = {} console.log(item);
let keyName = '',
val = '',
classNameVal = '';
if(parm == 'list'){ if(parm == 'list'){
obj = { this.$router.push({
menuLevel:1, path: '/teachers'
menuCode:'m_home', })
functionCode:'f_teacher',
actionCode: 'c_more',
}
keyName = '';
val = '';
classNameVal = 'com.picahealth.yunque.activitys.experienceshare.ExperienceShareDetailActivity###SharedExperienceViewController'
}else{ }else{
obj = { this.$router.push({
menuLevel:1, path: '/teachersDetail',
menuCode:'m_home', query:{
functionCode:'f_teacher', id:item.id
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 obj = {}
// let keyName = '',
// val = '',
// classNameVal = '';
let itemData = { // if(parm == 'list'){
"title":item.name, // obj = {
"imageUrl":"", // menuLevel:1,
"appModuleInfo":{ // menuCode:'m_home',
"code":"M200", // functionCode:'f_teacher',
"type":4, // actionCode: 'c_more',
"name":"名师风采个人展示", // }
"paramFlag":1, // keyName = '';
"paramList":[ // val = '';
{ // classNameVal = 'com.picahealth.yunque.activitys.experienceshare.ExperienceShareDetailActivity###SharedExperienceViewController'
"key":"className", // }else{
"value":classNameVal, // obj = {
"type":4, // menuLevel:1,
"seqNo":1 // menuCode:'m_home',
}, // functionCode:'f_teacher',
{ // actionCode:'c_teacher',
"key":keyName, // labelId:item.id,
"value":`${val}`, // labelvalue:item.name,
"type":1, // }
"seqNo":2 // keyName = 'id';
} // val = item.id;
] // classNameVal = 'com.picahealth.yunque.activitys.playvideo.PlayVideoFullScrenActivity###VideoPlayerViewController'
} // }
}; // this.pageBurialPoin(obj)
let paramList = this.setEventByModuleCode(itemData);
rocNative.dispatchEventByModuleCode({ // let itemData = {
modeCode: itemData.appModuleInfo.code, // "title":item.name,
jsonString: paramList // "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
// })
}, },
......
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
if(_this.parmObj.remanentCourseNum == 0){ if(_this.parmObj.remanentCourseNum == 0){
_this.isShow = false; _this.isShow = false;
}else{ }else{
_this.isShow = true || _this.parmObj.showFlag ? true : false; _this.isShow = _this.parmObj.showFlag ? true : false;
} }
} }
}) })
......
...@@ -94,9 +94,16 @@ export default { ...@@ -94,9 +94,16 @@ export default {
if(res.code == '000000'){ if(res.code == '000000'){
_this.parmObj = res.data || {}; _this.parmObj = res.data || {};
_this.isShow = _this.parmObj.showFlag; if(res.data.certificateAcquireNumOfSelf == 0 && res.data.courseOverNumOfSelf == 0 && res.data.examOverNumOfSelf == 0){
let isPullIndex = _this.isShow ? '1' : '2'; _this.isShow = false;
_this.$emit('evluatFun',{isPull:isPullIndex}); _this.$emit('evluatFun',{isPull:'2'});
}else{
_this.isShow = _this.parmObj.showFlag;
let isPullIndex = _this.isShow ? '1' : '2';
_this.$emit('evluatFun',{isPull:isPullIndex});
}
} }
}) })
}, },
......
...@@ -226,12 +226,12 @@ export function pageJumpUrl(){ ...@@ -226,12 +226,12 @@ export function pageJumpUrl(){
// dev地址 // dev地址
// const baseUrl = 'https://dev-sc.yunqueyi.com/' const baseUrl = 'https://dev-sc.yunqueyi.com/'
// const apiUrl = 'https://dev-api.yunqueyi.com/' const apiUrl = 'https://dev-api.yunqueyi.com/'
// test1地址 // test1地址
const baseUrl = 'https://test1-sc.yunqueyi.com/' // const baseUrl = 'https://test1-sc.yunqueyi.com/'
const apiUrl = 'https://test1-api.yunqueyi.com/' // const apiUrl = 'https://test1-api.yunqueyi.com/'
//const devApiUri = 'https://test1-api.yunqueyi.com/' //const devApiUri = 'https://test1-api.yunqueyi.com/'
// // uat地址 // // uat地址
......
...@@ -160,6 +160,7 @@ export default { ...@@ -160,6 +160,7 @@ export default {
watch:{ watch:{
//监听是否收起 //监听是否收起
isShowEvluat:function(n){ isShowEvluat:function(n){
///alert(n);
if(!n && this.isIntStyle == 'font-style pull-up'){ if(!n && this.isIntStyle == 'font-style pull-up'){
///alert("000"); ///alert("000");
rocNative.setTabMiniIcon({ rocNative.setTabMiniIcon({
...@@ -328,7 +329,7 @@ export default { ...@@ -328,7 +329,7 @@ export default {
_this.isIntStyle = 'font-style pull-up'; _this.isIntStyle = 'font-style pull-up';
_this.isShowEvluat = false; _this.isShowEvluat = false;
clearInterval(setTimer) clearInterval(setTimer)
},5000); },20000);
}, },
...@@ -538,10 +539,13 @@ export default { ...@@ -538,10 +539,13 @@ export default {
margin-right: 4%; margin-right: 4%;
text-align: center; text-align: center;
.pathologic-icon{ .pathologic-icon{
vertical-align: middle;
height: px2rem(20px);
img{ img{
width: px2rem(20px); width: px2rem(20px);
height: px2rem(20px); height: px2rem(20px);
vertical-align: middle;
display: inline-block;
} }
} }
.pathologic-txt{ .pathologic-txt{
......
...@@ -319,9 +319,9 @@ body{background: #fff} ...@@ -319,9 +319,9 @@ body{background: #fff}
-webkit-tap-highlight-color:rgba(0,0,0,0); -webkit-tap-highlight-color:rgba(0,0,0,0);
outline: 0; outline: 0;
-webkit-overflow-scrolling : touch; -webkit-overflow-scrolling : touch;
height: px2rem(273px);
.item-new-box{ .item-new-box{
width: px2rem(1000px); width: px2rem(10000000px);
} }
.item-line{ .item-line{
width: px2rem(345px); width: px2rem(345px);
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</div> </div>
<div class="teach-list"> <div class="teach-list">
<div :class="index%2==1?'list-item mr0':'list-item'" v-for="(item,index) in list" @click="goToDetail(item.doctorId)"> <div :class="index%2==1?'list-item mr0':'list-item'" v-for="(item,index) in list" @click="goToDetail(item.doctorId)">
<div class="tea-img"> <div class="tea-img" :style="'background:'+item.bgColor">
<img :src="item.doctorImg"> <img :src="item.doctorImg">
<span class="learn-p">{{item.joinNum}}人已学</span> <span class="learn-p">{{item.joinNum}}人已学</span>
</div> </div>
...@@ -65,6 +65,21 @@ export default { ...@@ -65,6 +65,21 @@ export default {
this.getData() this.getData()
}, },
randomBg(d){
for(let i=0;i<d.length;i++){
if(i%4 == 0){
d[i].bgColor = '#EBF6F1'
}else if(i%4 == 1){
d[i].bgColor = '#EDF3FA'
}else if(i%4 == 2){
d[i].bgColor = '#F0F0FA'
}else if(i%4 == 3){
d[i].bgColor = '#F6EFE6'
}
}
/// console.log(d);
},
getData(){ getData(){
let _this = this, let _this = this,
para = { para = {
...@@ -75,9 +90,12 @@ export default { ...@@ -75,9 +90,12 @@ export default {
let url = '/contents/courseDoctor/getAllTeacher/orderby/'+_this.col+'/dir/'+_this.dir let url = '/contents/courseDoctor/getAllTeacher/orderby/'+_this.col+'/dir/'+_this.dir
this.GET(url, para).then(res => { this.GET(url, para).then(res => {
if(res.code == '000000'){ if(res.code == '000000'){
_this.list = res.data.teacherList || []; _this.list = res.data.teacherList || [];
_this.followCount = res.data.followCount || 0; _this.followCount = res.data.followCount || 0;
_this.studyCount = res.data.studyCount || 0; _this.studyCount = res.data.studyCount || 0;
if(_this.list.length>0){
_this.randomBg(_this.list);
}
} }
}) })
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册