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

add

上级 e2025ca2
......@@ -39,67 +39,79 @@ export default {
//跳转
goToPage(item,parm){
let obj = {}
let keyName = '',
val = '',
classNameVal = '';
console.log(item);
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'
this.$router.push({
path: '/teachers'
})
}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.$router.push({
path: '/teachersDetail',
query:{
id:item.id
}
})
}
this.pageBurialPoin(obj)
// let obj = {}
// let keyName = '',
// val = '',
// classNameVal = '';
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
})
// 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)
// 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
// })
},
......
......@@ -99,7 +99,7 @@ export default {
if(_this.parmObj.remanentCourseNum == 0){
_this.isShow = false;
}else{
_this.isShow = true || _this.parmObj.showFlag ? true : false;
_this.isShow = _this.parmObj.showFlag ? true : false;
}
}
})
......
......@@ -94,9 +94,16 @@ export default {
if(res.code == '000000'){
_this.parmObj = res.data || {};
_this.isShow = _this.parmObj.showFlag;
let isPullIndex = _this.isShow ? '1' : '2';
_this.$emit('evluatFun',{isPull:isPullIndex});
if(res.data.certificateAcquireNumOfSelf == 0 && res.data.courseOverNumOfSelf == 0 && res.data.examOverNumOfSelf == 0){
_this.isShow = false;
_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(){
// dev地址
// const baseUrl = 'https://dev-sc.yunqueyi.com/'
// const apiUrl = 'https://dev-api.yunqueyi.com/'
const baseUrl = 'https://dev-sc.yunqueyi.com/'
const apiUrl = 'https://dev-api.yunqueyi.com/'
// test1地址
const baseUrl = 'https://test1-sc.yunqueyi.com/'
const apiUrl = 'https://test1-api.yunqueyi.com/'
// const baseUrl = 'https://test1-sc.yunqueyi.com/'
// const apiUrl = 'https://test1-api.yunqueyi.com/'
//const devApiUri = 'https://test1-api.yunqueyi.com/'
// // uat地址
......
......@@ -160,6 +160,7 @@ export default {
watch:{
//监听是否收起
isShowEvluat:function(n){
///alert(n);
if(!n && this.isIntStyle == 'font-style pull-up'){
///alert("000");
rocNative.setTabMiniIcon({
......@@ -328,7 +329,7 @@ export default {
_this.isIntStyle = 'font-style pull-up';
_this.isShowEvluat = false;
clearInterval(setTimer)
},5000);
},20000);
},
......@@ -538,10 +539,13 @@ export default {
margin-right: 4%;
text-align: center;
.pathologic-icon{
vertical-align: middle;
height: px2rem(20px);
img{
width: px2rem(20px);
height: px2rem(20px);
vertical-align: middle;
display: inline-block;
}
}
.pathologic-txt{
......
......@@ -319,9 +319,9 @@ body{background: #fff}
-webkit-tap-highlight-color:rgba(0,0,0,0);
outline: 0;
-webkit-overflow-scrolling : touch;
height: px2rem(273px);
.item-new-box{
width: px2rem(1000px);
width: px2rem(10000000px);
}
.item-line{
width: px2rem(345px);
......
......@@ -11,7 +11,7 @@
</div>
<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="tea-img">
<div class="tea-img" :style="'background:'+item.bgColor">
<img :src="item.doctorImg">
<span class="learn-p">{{item.joinNum}}人已学</span>
</div>
......@@ -65,6 +65,21 @@ export default {
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(){
let _this = this,
para = {
......@@ -75,9 +90,12 @@ export default {
let url = '/contents/courseDoctor/getAllTeacher/orderby/'+_this.col+'/dir/'+_this.dir
this.GET(url, para).then(res => {
if(res.code == '000000'){
_this.list = res.data.teacherList || [];
_this.followCount = res.data.followCount || 0;
_this.studyCount = res.data.studyCount || 0;
_this.list = res.data.teacherList || [];
_this.followCount = res.data.followCount || 0;
_this.studyCount = res.data.studyCount || 0;
if(_this.list.length>0){
_this.randomBg(_this.list);
}
}
})
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册