提交 65a0cb11 编写于 作者: guangjun.yang's avatar guangjun.yang

Merge branch 'dev-jump-with-pID-0902' into 'release'

传递项目ID给原生:code reviewer:杨广俊

传递项目ID给原生:code reviewer:杨广俊

See merge request !16
...@@ -97,7 +97,7 @@ const sendBuriedDataMap = { ...@@ -97,7 +97,7 @@ const sendBuriedDataMap = {
23: "8823" 23: "8823"
} }
export default { export default {
name: "cell-list-item", name: "cell-list-detail-share",
data() { data() {
return { return {
appVersion: "200", appVersion: "200",
......
...@@ -96,7 +96,7 @@ const sendBuriedDataMap = { ...@@ -96,7 +96,7 @@ const sendBuriedDataMap = {
23: "8823" 23: "8823"
} }
export default { export default {
name: "cell-list-item", name: "cell-list-detail",
data() { data() {
return { return {
appVersion: "200", appVersion: "200",
...@@ -242,8 +242,14 @@ export default { ...@@ -242,8 +242,14 @@ export default {
type: 4, type: 4,
seqNo: 1 seqNo: 1
}, },
{
key: "projectId",
value: this.projectId,
type: 4,
seqNo: 1
},
]; ];
console.log(paramList); console.log('gotoCourse', paramList);
rocNative.dispatchEventByModuleCode({ rocNative.dispatchEventByModuleCode({
modeCode: "M200", modeCode: "M200",
jsonString: paramList jsonString: paramList
......
...@@ -77,6 +77,10 @@ export default { ...@@ -77,6 +77,10 @@ export default {
courseRequire: { courseRequire: {
type: Number, type: Number,
default: 0, default: 0,
},
projectId: {
type: Number | String,
default: 0,
} }
}, },
computed: { computed: {
...@@ -143,7 +147,14 @@ export default { ...@@ -143,7 +147,14 @@ export default {
type: 4, type: 4,
seqNo: 1 seqNo: 1
}, },
{
key: "projectId",
value: this.projectId,
type: 4,
seqNo: 1
},
]; ];
console.log('gotoCourse', paramList);
rocNative.dispatchEventByModuleCode({ rocNative.dispatchEventByModuleCode({
modeCode: "M200", modeCode: "M200",
jsonString: paramList jsonString: paramList
......
<template> <template>
<div class="teacter-intro-container"> <div class="teacter-intro-container">
<div class="basic-title">讲师介绍</div> <div class="basic-title">讲师介绍</div>
<div class="leader-info" v-for="(item,index) in doctorList" :key="index"> <div class="leader-info" v-for="(item,index) in current" :key="index">
<img :src="item.appImageUrl"/> <img :src="item.appImageUrl" />
<div class="leader-text"> <div class="leader-text">
<div class="leader-con"> <div class="leader-con">
<span>{{item.name}}</span> <span>{{item.name}}</span>
...@@ -11,6 +11,11 @@ ...@@ -11,6 +11,11 @@
<div class="address">{{item.hospital}}</div> <div class="address">{{item.hospital}}</div>
</div> </div>
</div> </div>
<div v-show="doctorList.length > 1" class="toggle-btn" @click="toggle">
<span class="btn">{{ isUp ? '展开更多' : '向上收起'}}</span>
<img v-if="isUp" src="../../images/cme/arrow-grey-down.png" />
<img v-if="!isUp" src="../../images/cme/arrow-grey-up.png" />
</div>
</div> </div>
</template> </template>
<script> <script>
...@@ -23,19 +28,29 @@ export default { ...@@ -23,19 +28,29 @@ export default {
}, },
data() { data() {
return { return {
isUp: true,
} one: [],
}, all: [],
created() { current: []
};
}, },
created() {},
mounted() { mounted() {
this.one = this.doctorList.slice(0, 1);
this.current = this.one;
this.all = this.doctorList.slice(0);
}, },
methods: { methods: {
toggle() {
this.isUp = !this.isUp;
if (this.isUp) {
this.current = this.one;
} else {
this.current = this.all;
} }
} }
}
};
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.teacter-intro-container { .teacter-intro-container {
...@@ -79,9 +94,9 @@ export default { ...@@ -79,9 +94,9 @@ export default {
} }
.leader-title { .leader-title {
width: 220px; width: 220px;
overflow : hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space:nowrap; white-space: nowrap;
line-height: 16px; line-height: 16px;
margin-left: 10px; margin-left: 10px;
} }
...@@ -91,10 +106,26 @@ export default { ...@@ -91,10 +106,26 @@ export default {
font-size: 13px; font-size: 13px;
color: #979899; color: #979899;
width: 240px; width: 240px;
overflow : hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space:nowrap; white-space: nowrap;
}
}
}
.toggle-btn {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin-bottom: 20px;
& > span {
font-size: 14px;
color: #979899;
font-weight: 400;
} }
& > img {
width: 15px;
height: 15px;
} }
} }
} }
......
...@@ -19,20 +19,25 @@ ...@@ -19,20 +19,25 @@
>--> >-->
<!-- <div v-if="bannerType == 1" class="page-content-img-container"> --> <!-- <div v-if="bannerType == 1" class="page-content-img-container"> -->
<div v-if="bannerType == 1" class="page-content-img-container"> <div v-if="bannerType == 1" class="page-content-img-container">
<img class="banner-img" :src="attachmentUrl"> <img class="banner-img" :src="attachmentUrl" />
<img v-show="pStatus == 1" class="banner-img-1" src="../images/status-join.png"> <img v-show="pStatus == 1" class="banner-img-1" src="../images/status-join.png" />
<img v-show="pStatus == 5" class="banner-img-5" src="../images/status-keep-on.png"> <img v-show="pStatus == 5" class="banner-img-5" src="../images/status-keep-on.png" />
<img v-show="pStatus == 10" class="banner-img-10" src="../images/status-end.png"> <img v-show="pStatus == 10" class="banner-img-10" src="../images/status-end.png" />
</div> </div>
<!-- <CommonBannerVideo v-if="bannerType == 1" :videoOptions="videoOptions"></CommonBannerVideo> --> <!-- <CommonBannerVideo v-if="bannerType == 1" :videoOptions="videoOptions"></CommonBannerVideo> -->
<CommonTcPlayer v-if="bannerType == 2" style="flex" :options="videoOptions"></CommonTcPlayer> <CommonTcPlayer v-if="bannerType == 2" style="flex" :options="videoOptions"></CommonTcPlayer>
<CommonDescription :descTitle="projectName" :value="projectIntro"></CommonDescription> <CommonDescription :descTitle="projectName" :value="projectIntro"></CommonDescription>
<CommonSpliteLine></CommonSpliteLine> <CommonSpliteLine></CommonSpliteLine>
<CellListItem :paramData="contentList" :moduleName="moduleName" :courseRequire="courseRequire"></CellListItem> <CellListItem
:paramData="contentList"
:moduleName="moduleName"
:courseRequire="courseRequire"
:projectId="projectId"
></CellListItem>
<!-- <CellListDetail :paramData="contentList" :moduleName="moduleName"></CellListDetail> --> <!-- <CellListDetail :paramData="contentList" :moduleName="moduleName"></CellListDetail> -->
</div> </div>
<Loading v-show="showLoading"/> <Loading v-show="showLoading" />
</div> </div>
</template> </template>
<script> <script>
...@@ -46,7 +51,7 @@ import CommonBannerVideo from "@/components/common/common-banner-video"; ...@@ -46,7 +51,7 @@ import CommonBannerVideo from "@/components/common/common-banner-video";
import CommonTcPlayer from "@/components/common/common-tcplayer"; import CommonTcPlayer from "@/components/common/common-tcplayer";
import Loading from "@/components/common/common-loading"; import Loading from "@/components/common/common-loading";
import { mapGetters, mapActions } from "vuex"; import { mapGetters, mapActions } from "vuex";
import vueFilters from '@/utils/filter' import vueFilters from "@/utils/filter";
export default { export default {
data() { data() {
return { return {
...@@ -139,9 +144,9 @@ export default { ...@@ -139,9 +144,9 @@ export default {
__funcName: "__getUserInfo4Comp" __funcName: "__getUserInfo4Comp"
}); });
if (window.__isWeb && process.env.BUILD_ENV == "development") { if (window.__isWeb && process.env.BUILD_ENV == "development") {
console.log('projectId',this.projectId); console.log("projectId", this.projectId);
let param = { let param = {
userToken: 'ED9F3381362641858B2B1F90C92A8050', userToken: "ED9F3381362641858B2B1F90C92A8050"
}; };
__getUserInfo4Comp(param); __getUserInfo4Comp(param);
} }
...@@ -190,20 +195,20 @@ export default { ...@@ -190,20 +195,20 @@ export default {
}, },
setContent(data) { setContent(data) {
let list = data; let list = data;
for(let i=0;i<list.length;i++) { for (let i = 0; i < list.length; i++) {
let len = vueFilters.strLength(list[i].name); let len = vueFilters.strLength(list[i].name);
let certificate = list[i].certificateFlag; let certificate = list[i].certificateFlag;
if(len > 30 && certificate == 2) { if (len > 30 && certificate == 2) {
list[i].height = "2"; list[i].height = "2";
} else if (len > 30 && certificate != 2) { } else if (len > 30 && certificate != 2) {
list[i].height = 2; list[i].height = 2;
} else if (len <= 30 && certificate == 2) { } else if (len <= 30 && certificate == 2) {
list[i].height = "1"; list[i].height = "1";
} else if(len <= 30 && certificate != 2) { } else if (len <= 30 && certificate != 2) {
list[i].height = 1; list[i].height = 1;
} }
} }
console.log('contentList!',list); console.log("contentList!", list);
return list; return list;
}, },
// 获取内容列表 // 获取内容列表
...@@ -213,7 +218,7 @@ export default { ...@@ -213,7 +218,7 @@ export default {
moduleId: _this.moduleId, moduleId: _this.moduleId,
token: _this.userInfo.userToken, token: _this.userInfo.userToken,
setEntry: true, setEntry: true,
projectId: _this.projectId, projectId: _this.projectId
}; };
_this.showLoading = true; _this.showLoading = true;
this.GET("portal/portalApp/contentList", param).then(res => { this.GET("portal/portalApp/contentList", param).then(res => {
...@@ -239,11 +244,11 @@ export default { ...@@ -239,11 +244,11 @@ export default {
</script> </script>
<style lang="less" > <style lang="less" >
.page-container-comp { .page-container-comp {
.nav-top .nav-title { .nav-top .nav-title {
height: 0px; height: 0px;
padding: 18px; padding: 18px;
} }
.banner-img { .banner-img {
display: inherit; display: inherit;
width: 375px; width: 375px;
height: 210px; height: 210px;
...@@ -268,10 +273,10 @@ export default { ...@@ -268,10 +273,10 @@ export default {
width: 148px; width: 148px;
height: 30px; height: 30px;
} }
} }
.list-container { .list-container {
margin-bottom: 40px; margin-bottom: 40px;
} }
} }
</style> </style>
...@@ -1198,10 +1198,6 @@ export default { ...@@ -1198,10 +1198,6 @@ export default {
return; return;
} }
let paramList = [] let paramList = []
// let limitTimes = this.limitTimes - 0;
// if(this.hasBindCard) {
// limitTimes = -1;
// }
paramList = [ paramList = [
{ {
key: "className", key: "className",
...@@ -1227,12 +1223,6 @@ export default { ...@@ -1227,12 +1223,6 @@ export default {
type: 4, type: 4,
seqNo: 1 seqNo: 1
}, },
// {
// key: "limitTimes",
// value: limitTimes,
// type: 4,
// seqNo: 1
// },
]; ];
console.log('gotoCourse', paramList); console.log('gotoCourse', paramList);
rocNative.dispatchEventByModuleCode({ rocNative.dispatchEventByModuleCode({
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册