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

直接传projectId给原生

上级 e9e4d1fe
......@@ -97,7 +97,7 @@ const sendBuriedDataMap = {
23: "8823"
}
export default {
name: "cell-list-item",
name: "cell-list-detail-share",
data() {
return {
appVersion: "200",
......
......@@ -96,7 +96,7 @@ const sendBuriedDataMap = {
23: "8823"
}
export default {
name: "cell-list-item",
name: "cell-list-detail",
data() {
return {
appVersion: "200",
......@@ -242,6 +242,12 @@ export default {
type: 4,
seqNo: 1
},
{
key: "projectId",
value: this.projectId,
type: 4,
seqNo: 1
},
];
console.log(paramList);
rocNative.dispatchEventByModuleCode({
......
......@@ -77,6 +77,10 @@ export default {
courseRequire: {
type: Number,
default: 0,
},
projectId: {
type: Number | String,
default: 0,
}
},
computed: {
......@@ -143,6 +147,12 @@ export default {
type: 4,
seqNo: 1
},
{
key: "projectId",
value: this.projectId,
type: 4,
seqNo: 1
},
];
rocNative.dispatchEventByModuleCode({
modeCode: "M200",
......
......@@ -19,20 +19,25 @@
>-->
<!-- <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 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 == 10" class="banner-img-10" src="../images/status-end.png">
<img class="banner-img" :src="attachmentUrl" />
<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 == 10" class="banner-img-10" src="../images/status-end.png" />
</div>
<!-- <CommonBannerVideo v-if="bannerType == 1" :videoOptions="videoOptions"></CommonBannerVideo> -->
<CommonTcPlayer v-if="bannerType == 2" style="flex" :options="videoOptions"></CommonTcPlayer>
<CommonDescription :descTitle="projectName" :value="projectIntro"></CommonDescription>
<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> -->
</div>
<Loading v-show="showLoading"/>
<Loading v-show="showLoading" />
</div>
</template>
<script>
......@@ -46,7 +51,7 @@ import CommonBannerVideo from "@/components/common/common-banner-video";
import CommonTcPlayer from "@/components/common/common-tcplayer";
import Loading from "@/components/common/common-loading";
import { mapGetters, mapActions } from "vuex";
import vueFilters from '@/utils/filter'
import vueFilters from "@/utils/filter";
export default {
data() {
return {
......@@ -139,9 +144,9 @@ export default {
__funcName: "__getUserInfo4Comp"
});
if (window.__isWeb && process.env.BUILD_ENV == "development") {
console.log('projectId',this.projectId);
console.log("projectId", this.projectId);
let param = {
userToken: 'ED9F3381362641858B2B1F90C92A8050',
userToken: "ED9F3381362641858B2B1F90C92A8050"
};
__getUserInfo4Comp(param);
}
......@@ -190,20 +195,20 @@ export default {
},
setContent(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 certificate = list[i].certificateFlag;
if(len > 30 && certificate == 2) {
if (len > 30 && certificate == 2) {
list[i].height = "2";
} else if (len > 30 && certificate != 2) {
list[i].height = 2;
} else if (len <= 30 && certificate == 2) {
list[i].height = "1";
} else if(len <= 30 && certificate != 2) {
} else if (len <= 30 && certificate != 2) {
list[i].height = 1;
}
}
console.log('contentList!',list);
console.log("contentList!", list);
return list;
},
// 获取内容列表
......@@ -213,7 +218,7 @@ export default {
moduleId: _this.moduleId,
token: _this.userInfo.userToken,
setEntry: true,
projectId: _this.projectId,
projectId: _this.projectId
};
_this.showLoading = true;
this.GET("portal/portalApp/contentList", param).then(res => {
......@@ -239,39 +244,39 @@ export default {
</script>
<style lang="less" >
.page-container-comp {
.nav-top .nav-title {
height: 0px;
padding: 18px;
}
.banner-img {
display: inherit;
width: 375px;
height: 210px;
&-1 {
position: absolute;
left: 0;
top: 180px;
width: 76px;
height: 30px;
.nav-top .nav-title {
height: 0px;
padding: 18px;
}
&-5 {
position: absolute;
left: 0;
top: 180px;
width: 76px;
height: 30px;
.banner-img {
display: inherit;
width: 375px;
height: 210px;
&-1 {
position: absolute;
left: 0;
top: 180px;
width: 76px;
height: 30px;
}
&-5 {
position: absolute;
left: 0;
top: 180px;
width: 76px;
height: 30px;
}
&-10 {
position: absolute;
left: 0;
top: 180px;
width: 148px;
height: 30px;
}
}
&-10 {
position: absolute;
left: 0;
top: 180px;
width: 148px;
height: 30px;
.list-container {
margin-bottom: 40px;
}
}
.list-container {
margin-bottom: 40px;
}
}
</style>
......@@ -1198,10 +1198,6 @@ export default {
return;
}
let paramList = []
// let limitTimes = this.limitTimes - 0;
// if(this.hasBindCard) {
// limitTimes = -1;
// }
paramList = [
{
key: "className",
......@@ -1227,12 +1223,6 @@ export default {
type: 4,
seqNo: 1
},
// {
// key: "limitTimes",
// value: limitTimes,
// type: 4,
// seqNo: 1
// },
];
console.log('gotoCourse', paramList);
rocNative.dispatchEventByModuleCode({
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册