Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-professional-exam
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Culm
pica-professional-exam
提交
5c7c5a01
提交
5c7c5a01
编写于
7月 02, 2020
作者:
yi.li
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev-advert-0629' into 'release'
cme项目添加广告位 code reviewer:李祎 See merge request !13
上级
207b4314
264ae96d
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
446 行增加
和
73 行删除
+446
-73
index.js
config/index.js
+2
-2
cell-list-detail.vue
src/components/business/cell-list-detail.vue
+2
-2
common-advert-img.vue
src/components/common/common-advert-img.vue
+83
-0
merge-detail.vue
src/views/merge-detail.vue
+59
-14
parent-page copy.vue
src/views/parent-page copy.vue
+300
-0
parent-page.vue
src/views/parent-page.vue
+0
-55
未找到文件。
config/index.js
浏览文件 @
5c7c5a01
...
@@ -23,7 +23,7 @@ module.exports = {
...
@@ -23,7 +23,7 @@ module.exports = {
NODE_ENV
:
'"development"'
,
NODE_ENV
:
'"development"'
,
BUILD_ENV
:
'"'
+
process
.
env
.
BUILD_ENV
+
'"'
BUILD_ENV
:
'"'
+
process
.
env
.
BUILD_ENV
+
'"'
},
},
port
:
80
09
,
port
:
80
20
,
assetsSubDirectory
:
'static'
,
assetsSubDirectory
:
'static'
,
assetsPublicPath
:
'/'
,
assetsPublicPath
:
'/'
,
// proxyTable: {
// proxyTable: {
...
@@ -35,7 +35,7 @@ module.exports = {
...
@@ -35,7 +35,7 @@ module.exports = {
context
:
[
//代理路径
context
:
[
//代理路径
'/test'
'/test'
],
],
proxypath
:
'http://localhost:900
0
'
,
proxypath
:
'http://localhost:900
9
'
,
cssSourceMap
:
true
cssSourceMap
:
true
}
}
}
}
\ No newline at end of file
src/components/business/cell-list-detail.vue
浏览文件 @
5c7c5a01
...
@@ -64,8 +64,8 @@
...
@@ -64,8 +64,8 @@
<!--
<div
v-if=
"index+1
<
projectComponent
.
length
"
class=
"line-component"
></div>
-->
<!--
<div
v-if=
"index+1
<
projectComponent
.
length
"
class=
"line-component"
></div>
-->
</div>
</div>
<!--
<NoMoreContent
v-if=
"detailNum > 9"
/>
-->
<!--
<NoMoreContent
v-if=
"detailNum > 9"
/>
-->
<NoMoreContent
/>
<
!--
<
NoMoreContent
/>
<div
v-if=
"detailNum
<
=
9
"
class=
"no-more-bottom"
></div>
<div
v-if=
"detailNum
<
=
9
"
class=
"no-more-bottom"
></div>
-->
<van-dialog
<van-dialog
v-model=
"dialogState"
v-model=
"dialogState"
title=
"标题"
title=
"标题"
...
...
src/components/common/common-advert-img.vue
0 → 100644
浏览文件 @
5c7c5a01
<
template
>
<div
class=
"common-adert-wrapper"
>
<img
:class=
"
{'margin-top-20': needPadTop}" v-if="showInfo.imageUrl" @click="jumpPage" :src="showInfo.imageUrl" alt="">
</div>
</
template
>
<
script
>
import
{
EMLINK
}
from
'constants'
;
export
default
{
name
:
'common-title'
,
data
()
{
return
{
showInfo
:
{
imageUrl
:
''
,
jumpUrl
:
''
}
};
},
props
:
{
advertInfoList
:
{
type
:
Array
,
default
:
()
=>
[]
},
position
:
{
type
:
String
|
Number
,
default
:
0
},
needPadTop
:
{
type
:
Boolean
,
default
:
false
}
},
watch
:
{
advertInfoList
:
{
handler
(
list
)
{
list
.
forEach
(
element
=>
{
if
(
element
.
position
==
this
.
position
)
{
this
.
showInfo
=
element
;
}
});
},
deep
:
true
}
},
created
()
{},
mounted
()
{
},
computed
:
{
},
methods
:
{
// 广告位跳转
jumpPage
()
{
let
paramList
=
[
{
key
:
"pageUrl"
,
value
:
this
.
showInfo
.
jumpUrl
,
type
:
4
,
seqNo
:
1
}
]
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
"M300"
,
jsonString
:
paramList
});
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../style/mixin"
;
.common-adert-wrapper
{
img
{
width
:
100%
;
// padding: px2rem(10px) 0;
// height: px2rem(60px);
}
.margin-top-20
{
margin-top
:
px2rem
(
20px
);
}
}
</
style
>
src/views/merge-detail.vue
浏览文件 @
5c7c5a01
...
@@ -31,6 +31,10 @@
...
@@ -31,6 +31,10 @@
:studyNum=
"project.studyNum"
:studyNum=
"project.studyNum"
:subject=
"project.subject"
:subject=
"project.subject"
/>
/>
<CommonAdertImg
:advertInfoList=
"advertInfoList"
position=
"0"
/>
<!-- 步骤条 -->
<!-- 步骤条 -->
<div
v-if=
"project.cmeType != 2"
>
<div
v-if=
"project.cmeType != 2"
>
<CmeStep
<CmeStep
...
@@ -90,6 +94,15 @@
...
@@ -90,6 +94,15 @@
/>
/>
</div>
</div>
</div>
</div>
<CommonAdertImg
needPadTop
:advertInfoList=
"advertInfoList"
position=
"1"
/>
<NoMoreContent
/>
<div
v-if=
"detailNum
<
=
9
"
class=
"no-more-bottom"
></div>
</div>
</div>
<!-- 弹框 -->
<!-- 弹框 -->
<CommonDialog
<CommonDialog
...
@@ -140,6 +153,8 @@ import TeacterIntro from "@/components/cme/teacter-intro";
...
@@ -140,6 +153,8 @@ import TeacterIntro from "@/components/cme/teacter-intro";
import
CommonDialog
from
"@/components/cme/common-dialog"
;
import
CommonDialog
from
"@/components/cme/common-dialog"
;
import
ExjumperDialog
from
"@/components/cme/exjumper-dialog"
;
import
ExjumperDialog
from
"@/components/cme/exjumper-dialog"
;
import
ExjumperButton
from
"@/components/cme/exjumper-button"
;
import
ExjumperButton
from
"@/components/cme/exjumper-button"
;
import
NoMoreContent
from
"@/components/business/no-more-content"
;
import
CommonAdertImg
from
"@/components/common/common-advert-img"
;
import
{
getWebPageUrl
,
gotoPage
}
from
"@/utils/index"
;
import
{
getWebPageUrl
,
gotoPage
}
from
"@/utils/index"
;
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
...
@@ -241,6 +256,7 @@ export default {
...
@@ -241,6 +256,7 @@ export default {
cardInfo
:
{
cardInfo
:
{
id
:
0
id
:
0
},
},
advertInfoList
:
[],
};
};
},
},
components
:
{
components
:
{
...
@@ -259,7 +275,9 @@ export default {
...
@@ -259,7 +275,9 @@ export default {
CommonDialog
,
CommonDialog
,
ExjumperButton
,
ExjumperButton
,
ExjumperDialog
,
ExjumperDialog
,
CardPopup
CardPopup
,
CommonAdertImg
,
NoMoreContent
},
},
computed
:
{
computed
:
{
...
@@ -270,9 +288,11 @@ export default {
...
@@ -270,9 +288,11 @@ export default {
let
_this
=
this
;
let
_this
=
this
;
this
.
from
=
this
.
$route
.
query
.
from
||
this
.
from
||
"native"
;
this
.
from
=
this
.
$route
.
query
.
from
||
this
.
from
||
"native"
;
this
.
projectId
=
this
.
$route
.
query
.
id
||
1
;
this
.
projectId
=
this
.
$route
.
query
.
id
||
1
;
this
.
courseRequire
=
this
.
$route
.
query
.
courseRequire
;
this
.
provinceId
=
this
.
$route
.
query
&&
this
.
$route
.
query
.
provinceId
||
0
;
// 此两个参数将由接口返回
this
.
organizationId
=
this
.
$route
.
query
&&
this
.
$route
.
query
.
organizationId
||
0
;
// this.courseRequire = this.$route.query.courseRequire;
// this.provinceId = this.$route.query && this.$route.query.provinceId || 0;
// this.organizationId = this.$route.query && this.$route.query.organizationId || 0;
window
.
__getUserInfo64Comp
=
function
(
param
)
{
window
.
__getUserInfo64Comp
=
function
(
param
)
{
// appVersion 安卓 3.2.2 iOS
// appVersion 安卓 3.2.2 iOS
...
@@ -305,6 +325,9 @@ export default {
...
@@ -305,6 +325,9 @@ export default {
param
.
setEntry
=
true
;
param
.
setEntry
=
true
;
_this
.
getProvinceIdByPosition
(
param
);
_this
.
getProvinceIdByPosition
(
param
);
}
}
// 调用广告位接口
this
.
getAdvertInfoList
();
},
},
mounted
()
{
mounted
()
{
window
.
addEventListener
(
"scroll"
,
this
.
scrollFun
);
window
.
addEventListener
(
"scroll"
,
this
.
scrollFun
);
...
@@ -316,6 +339,19 @@ export default {
...
@@ -316,6 +339,19 @@ export default {
methods
:
{
methods
:
{
...
mapActions
([
"setUserInfo"
]),
...
mapActions
([
"setUserInfo"
]),
// 查询教培项目广告位配置信息
getAdvertInfoList
()
{
let
param
=
{
setEntry
:
true
};
this
.
GET
(
`portal/jump/
${
this
.
projectId
}
/1`
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
advertInfoList
=
res
.
data
&&
res
.
data
.
list
||
[];
console
.
log
(
'advertInfoList'
,
this
.
advertInfoList
);
}
});
},
// 点击弹层
// 点击弹层
clickOverlay
()
{
clickOverlay
()
{
console
.
log
(
'clickOverlay'
);
console
.
log
(
'clickOverlay'
);
...
@@ -757,21 +793,25 @@ export default {
...
@@ -757,21 +793,25 @@ export default {
// TODO Add by Anndy Yang
// TODO Add by Anndy Yang
if
(
_this
.
project
.
currentProgress
==
2
)
{
if
(
_this
.
project
.
currentProgress
==
2
)
{
this
.
$nextTick
(()
=>
{
_
this
.
$nextTick
(()
=>
{
window
.
scrollTo
(
0
,
0
);
window
.
scrollTo
(
0
,
0
);
});
});
}
}
_this
.
provinceId
=
res
.
data
.
positionModel
.
provinceId
;
_this
.
organizationId
=
res
.
data
.
positionModel
.
organizationId
;
_this
.
courseRequire
=
res
.
data
.
courseRequire
||
0
;
setTimeout
(
()
=>
{
setTimeout
(
()
=>
{
cataOffsetTop
=
document
.
getElementById
(
"catalogue-content"
).
offsetTop
;
cataOffsetTop
=
document
.
getElementById
(
"catalogue-content"
).
offsetTop
;
intorOffsetTop
=
document
.
getElementById
(
"intro-content"
).
offsetTop
;
intorOffsetTop
=
document
.
getElementById
(
"intro-content"
).
offsetTop
;
console
.
log
(
'getProjectParticularsV2'
,
cataOffsetTop
,
intorOffsetTop
);
console
.
log
(
'getProjectParticularsV2'
,
cataOffsetTop
,
intorOffsetTop
);
// 直接跳转
// 直接跳转
if
(
_this
.
project
.
jumpToContents
)
{
if
(
_this
.
project
.
jumpToContents
)
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
jumpCatalogue
();
this
.
jumpCatalogue
();
},
200
);
},
200
);
}
}
},
200
);
},
200
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
_this
.
showLoading
=
false
;
_this
.
showLoading
=
false
;
...
@@ -957,4 +997,9 @@ export default {
...
@@ -957,4 +997,9 @@ export default {
}
}
}
}
}
}
.no-more-bottom
{
position
:
relative
;
width
:
100%
;
height
:
px2rem
(
40px
);
}
</
style
>
</
style
>
src/views/parent-page copy.vue
0 → 100644
浏览文件 @
5c7c5a01
<
template
>
<!-- 组件详情页面:模块列表及其下面的元件列表 -->
<div
class=
"page-container-parent"
>
<CommonNavbar
:bgColor=
"bgColor"
v-show=
"isShowNavbar"
:isBlack=
"isBlack"
:title=
"navTitle"
:isFixNavbar=
"isFixNavbar"
:burialPoint=
"pointStyle"
borderStyle=
"0px solid #fff"
:backMethod=
"from"
></CommonNavbar>
<div
class=
"page-content list-container"
>
<!--
<img
v-if=
"bannerType == 1"
class=
"banner-img"
src=
"https://files.yunqueyi.com/image/jpeg/common/20190214153449966.jpg"
>
-->
<!--
<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"
>
</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"
></CellListItem>
-->
<div
v-if=
"visibleFlag == 1"
class=
"project-num"
>
共
{{
childrenList
.
length
}}
个项目
</div>
<CoopListItem
v-if=
"visibleFlag == 1"
:paramData=
"childrenList"
:coopType=
"1"
:tabTo=
"3"
:isShow=
"isShow"
></CoopListItem>
<NoPermContent
v-if=
"visibleFlag == 2"
></NoPermContent>
</div>
<Loading
v-show=
"showLoading"
/>
</div>
</
template
>
<
script
>
import
CommonNavbar
from
"@/components/common/common-navbar"
;
import
CommonDescription
from
"@/components/common/common-description"
;
import
CommonSpliteLine
from
"@/components/common/common-splite-line"
;
import
CommonTitle
from
"@/components/common/common-title"
;
import
CommonBannerVideo
from
"@/components/common/common-banner-video"
;
import
CommonTcPlayer
from
"@/components/common/common-tcplayer"
;
import
CoopListItem
from
"@/components/business/coop-list-item"
;
import
NoPermContent
from
"@/components/business/no-perm-content"
;
import
Loading
from
"@/components/common/common-loading"
;
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
import
vueFilters
from
'@/utils/filter'
export
default
{
data
()
{
return
{
from
:
"inner"
,
isBlack
:
false
,
showLoading
:
false
,
projectId
:
1
,
componentId
:
1
,
moduleId
:
1
,
contentList
:
[],
moduleName
:
""
,
bannerType
:
1
,
videoOptions
:
{
mp4
:
""
,
// mp4: "https://pica-pro.oss-cn-shanghai.aliyuncs.com/2019/03/05/movie.mp4",
// "mp4": "http://1258717429.vod2.myqcloud.com/24a74910vodcq1258717429/7c37c18f5285890786204547811/9BFIyaoXYAcA.mp4",
// "m3u8": "http://2157.liveplay.myqcloud.com/2157_358535a.m3u8",
// "flv": "http://2157.liveplay.myqcloud.com/live/2157_358535a.flv", //增加了一个flv的播放地址,用于PC平台的播放 请替换成实际可用的播放地址
autoplay
:
false
,
//iOS下safari浏览器,以及大部分移动端浏览器是不开放视频自动播放这个能力的
coverpic
:
require
(
"../images/video-cover.png"
),
width
:
"415"
,
//视频的显示宽度,请尽量使用视频分辨率宽度
height
:
"210"
//视频的显示高度,请尽量使用视频分辨率高度
},
// projectStatus: 1, //1没有获得证书 2是获得全部证书
pStatus
:
0
,
// 项目状态 1是参加中 5是进行中 10是已结束
projectIntro
:
""
,
projectName
:
""
,
attachmentUrl
:
require
(
"../images/banner-default.png"
),
bgColor
:
"none"
,
navTitle
:
""
,
compTitle
:
"组件名称"
,
isShowNavbar
:
true
,
isShow
:
true
,
isFixNavbar
:
true
,
pointStyle
:
"activity"
,
descTitle
:
"规定从何处开始选取。如果是负数"
,
description
:
"必需。规定从何处开始选取。如果是负数,那么它规定从数组尾部开始算起的位置那么它规定从数组尾部开始算起的位置那么它规定从数组尾部开始算起的位置那么它规定从数组尾部开始算起的位置。也就是说那么它规定从数组尾部开始算起的位置。也就是说那么它规定从数组尾部开始算起的位置。也就是说那么它规定从数组尾部开始算起的位置。也就是说那么它规定从数组尾部开始算起的位置。"
+
" 也就是说那么它规定从数组尾部开始算起的位置。也就是说,必需。规定从何处开始选取。如果是负数,那么它规定从数组尾部开始算起的位置。也就是说,必需。规定从何处开始选取。如果是负数,那么它规定从数组尾部开始算起的位置。也就是说,必需。规定从何处开始选取。如果是负数,那么它规定从数组尾部开始算起的位置。也就是说,必需。规定从何处开始选取。如果是负数,那么它规定从数组尾部开始算起的位置。也就是说,必需。规定从何处开始选取。如果是负数,那么它规定从数组尾部开始算起的位置。也就是说,-1 指最后一个元素,-2 指倒数第二个元素,以此类推第二个元素。"
,
childrenList
:
[],
visibleFlag
:
0
,
entryId
:
0
,
};
},
components
:
{
CommonNavbar
,
CommonDescription
,
CommonSpliteLine
,
CommonTitle
,
CommonBannerVideo
,
Loading
,
CommonTcPlayer
,
CoopListItem
,
NoPermContent
,
},
computed
:
{
...
mapGetters
([
"userInfo"
])
},
created
()
{
let
_this
=
this
;
this
.
from
=
this
.
$route
.
query
.
from
||
this
.
from
||
"native"
;
this
.
projectId
=
this
.
$route
.
query
.
projectId
;
this
.
componentId
=
this
.
$route
.
query
.
componentId
;
this
.
moduleId
=
this
.
$route
.
query
.
moduleId
;
this
.
moduleName
=
this
.
$route
.
query
.
moduleName
;
this
.
entryId
=
this
.
$route
.
query
.
entryId
;
window
.
__getUserInfo4Comp
=
function
(
param
)
{
_this
.
token
=
param
.
userToken
;
_this
.
setUserInfo
(
param
);
_this
.
checkToken
();
// _this.getContentList(_this.moduleId);
// _this.getComponentInfoById(_this.componentId);
_this
.
getChildrenProject
(
_this
.
entryId
);
};
// this.getCoopInfo(this.projectId);
window
.
__refresh
=
function
()
{
// _this.getContentList(_this.moduleId);
_this
.
getChildrenProject
(
_this
.
entryId
);
};
_this
.
getUserInfo
();
},
mounted
()
{
window
.
addEventListener
(
"scroll"
,
this
.
scrollFun
);
},
beforeDestroyed
()
{
window
.
removeEventListener
(
"scroll"
,
this
.
scrollFun
);
},
methods
:
{
...
mapActions
([
"setUserInfo"
]),
//获取用户信息
getUserInfo
()
{
rocNative
.
getUserInfo
({
__funcName
:
"__getUserInfo4Comp"
});
if
(
window
.
__isWeb
&&
process
.
env
.
BUILD_ENV
==
"development"
)
{
console
.
log
(
'projectId'
,
this
.
projectId
);
let
param
=
{
userToken
:
'ED9F3381362641858B2B1F90C92A8050'
,
};
__getUserInfo4Comp
(
param
);
}
},
// 获取单个模块信息
getComponentInfoById
(
componentId
)
{
let
_this
=
this
;
let
param
=
{
componentId
:
componentId
,
token
:
_this
.
userInfo
.
userToken
,
setEntry
:
true
};
this
.
GET
(
"portal/portalApp/component"
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
_this
.
attachmentUrl
=
res
.
data
.
imageUrl
;
_this
.
projectIntro
=
res
.
data
.
introduce
;
_this
.
projectName
=
res
.
data
.
name
;
}
});
},
// 获取单个项目信息
getCoopInfo
(
projectId
)
{
let
_this
=
this
;
let
param
=
{
portalProjectId
:
projectId
,
token
:
_this
.
userInfo
.
userToken
,
setEntry
:
true
};
this
.
GET
(
"portal/portalApp/queryProjectParticulars"
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
// 先设置视频URL再显示视频组件 ------------ BEGIN
if
(
res
.
data
.
attachmentType
==
2
)
{
_this
.
videoOptions
.
mp4
=
res
.
data
.
attachmentUrl
;
}
else
{
_this
.
attachmentUrl
=
res
.
data
.
attachmentUrl
;
}
_this
.
bannerType
=
res
.
data
.
attachmentType
;
// 先设置视频URL再显示视频组件 ------------ END
_this
.
projectIntro
=
res
.
data
.
projectIntro
;
_this
.
projectName
=
res
.
data
.
projectName
;
_this
.
pStatus
=
res
.
data
.
status
;
}
});
},
checkToken
()
{
let
_this
=
this
;
let
param
=
{
token
:
_this
.
userInfo
.
userToken
,
setEntry
:
true
,
};
this
.
GET
(
"campaign/admin/task/checkToken"
,
param
).
then
(
res
=>
{
if
(
res
.
code
!==
'000000'
)
{
//未登录 跳转登录页
console
.
log
(
'跳登录'
);
rocNative
.
gotoLogin
();
}
});
},
getChildrenProject
(
entryId
)
{
let
_this
=
this
;
let
param
=
{
entryId
:
entryId
,
token
:
_this
.
userInfo
.
userToken
,
setEntry
:
true
};
this
.
GET
(
"portal/portalApp/getEntryInfo"
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
_this
.
visibleFlag
=
res
.
data
.
learnableFlag
;
if
(
res
.
data
.
attachmentType
==
2
)
{
_this
.
videoOptions
.
mp4
=
res
.
data
.
attachmentUrl
;
}
else
{
_this
.
attachmentUrl
=
res
.
data
.
attachmentUrl
;
}
_this
.
bannerType
=
res
.
data
.
attachmentType
;
// 先设置视频URL再显示视频组件 ------------ END
_this
.
projectIntro
=
res
.
data
.
entryIntro
;
_this
.
projectName
=
res
.
data
.
entryName
;
_this
.
pStatus
=
res
.
data
.
status
;
_this
.
childrenList
=
res
.
data
.
projectList
;
}
});
},
scrollFun
()
{
let
scrollTop
=
document
.
body
.
scrollTop
||
document
.
documentElement
.
scrollTop
;
if
(
scrollTop
>
20
)
{
this
.
isBlack
=
true
;
this
.
bgColor
=
"#fff"
;
}
else
{
this
.
isBlack
=
false
;
this
.
bgColor
=
"none"
;
}
}
}
};
</
script
>
<
style
lang=
"scss"
>
@import
"../style/mixin"
;
.page-container-parent
{
.nav-top
.nav-title
{
height
:
px2rem
(
0px
);
padding
:
px2rem
(
18px
);
}
.banner-img
{
display
:
inherit
;
width
:
px2rem
(
375px
);
height
:
px2rem
(
210px
);
&
-1
{
position
:
absolute
;
left
:
0
;
top
:
px2rem
(
180px
);
width
:
px2rem
(
76px
);
height
:
px2rem
(
30px
);
}
&
-5
{
position
:
absolute
;
left
:
0
;
top
:
px2rem
(
180px
);
width
:
px2rem
(
76px
);
height
:
px2rem
(
30px
);
}
&
-10
{
position
:
absolute
;
left
:
0
;
top
:
px2rem
(
180px
);
width
:
px2rem
(
148px
);
height
:
px2rem
(
30px
);
}
}
.list-container
{
// margin-bottom: px2rem(40px);
}
.project-num
{
position
:
relative
;
height
:
px2rem
(
18px
);
margin
:
px2rem
(
20px
)
0
px2rem
(
15px
)
px2rem
(
15px
);
font-weight
:
500
;
font-size
:
px2rem
(
18px
);
line-height
:
px2rem
(
18px
);
}
}
</
style
>
\ No newline at end of file
src/views/parent-page.vue
浏览文件 @
5c7c5a01
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
<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"
></CellListItem>
-->
<div
v-if=
"visibleFlag == 1"
class=
"project-num"
>
共
{{
childrenList
.
length
}}
个项目
</div>
<div
v-if=
"visibleFlag == 1"
class=
"project-num"
>
共
{{
childrenList
.
length
}}
个项目
</div>
<CoopListItem
v-if=
"visibleFlag == 1"
:paramData=
"childrenList"
:coopType=
"1"
:tabTo=
"3"
:isShow=
"isShow"
></CoopListItem>
<CoopListItem
v-if=
"visibleFlag == 1"
:paramData=
"childrenList"
:coopType=
"1"
:tabTo=
"3"
:isShow=
"isShow"
></CoopListItem>
<NoPermContent
v-if=
"visibleFlag == 2"
></NoPermContent>
<NoPermContent
v-if=
"visibleFlag == 2"
></NoPermContent>
...
@@ -54,11 +53,7 @@ export default {
...
@@ -54,11 +53,7 @@ export default {
from
:
"inner"
,
from
:
"inner"
,
isBlack
:
false
,
isBlack
:
false
,
showLoading
:
false
,
showLoading
:
false
,
projectId
:
1
,
componentId
:
1
,
moduleId
:
1
,
contentList
:
[],
contentList
:
[],
moduleName
:
""
,
bannerType
:
1
,
bannerType
:
1
,
videoOptions
:
{
videoOptions
:
{
mp4
:
""
,
mp4
:
""
,
...
@@ -109,25 +104,17 @@ export default {
...
@@ -109,25 +104,17 @@ export default {
created
()
{
created
()
{
let
_this
=
this
;
let
_this
=
this
;
this
.
from
=
this
.
$route
.
query
.
from
||
this
.
from
||
"native"
;
this
.
from
=
this
.
$route
.
query
.
from
||
this
.
from
||
"native"
;
this
.
projectId
=
this
.
$route
.
query
.
projectId
;
this
.
componentId
=
this
.
$route
.
query
.
componentId
;
this
.
moduleId
=
this
.
$route
.
query
.
moduleId
;
this
.
moduleName
=
this
.
$route
.
query
.
moduleName
;
this
.
entryId
=
this
.
$route
.
query
.
entryId
;
this
.
entryId
=
this
.
$route
.
query
.
entryId
;
window
.
__getUserInfo4Comp
=
function
(
param
)
{
window
.
__getUserInfo4Comp
=
function
(
param
)
{
_this
.
token
=
param
.
userToken
;
_this
.
token
=
param
.
userToken
;
_this
.
setUserInfo
(
param
);
_this
.
setUserInfo
(
param
);
_this
.
checkToken
();
_this
.
checkToken
();
// _this.getContentList(_this.moduleId);
// _this.getComponentInfoById(_this.componentId);
_this
.
getChildrenProject
(
_this
.
entryId
);
_this
.
getChildrenProject
(
_this
.
entryId
);
};
};
// this.getCoopInfo(this.projectId);
window
.
__refresh
=
function
()
{
window
.
__refresh
=
function
()
{
// _this.getContentList(_this.moduleId);
_this
.
getChildrenProject
(
_this
.
entryId
);
_this
.
getChildrenProject
(
_this
.
entryId
);
};
};
_this
.
getUserInfo
();
_this
.
getUserInfo
();
...
@@ -147,55 +134,13 @@ export default {
...
@@ -147,55 +134,13 @@ 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
);
let
param
=
{
let
param
=
{
userToken
:
'ED9F3381362641858B2B1F90C92A8050'
,
userToken
:
'ED9F3381362641858B2B1F90C92A8050'
,
};
};
__getUserInfo4Comp
(
param
);
__getUserInfo4Comp
(
param
);
}
}
},
},
// 获取单个模块信息
getComponentInfoById
(
componentId
)
{
let
_this
=
this
;
let
param
=
{
componentId
:
componentId
,
token
:
_this
.
userInfo
.
userToken
,
setEntry
:
true
};
this
.
GET
(
"portal/portalApp/component"
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
_this
.
attachmentUrl
=
res
.
data
.
imageUrl
;
_this
.
projectIntro
=
res
.
data
.
introduce
;
_this
.
projectName
=
res
.
data
.
name
;
}
});
},
// 获取单个项目信息
getCoopInfo
(
projectId
)
{
let
_this
=
this
;
let
param
=
{
portalProjectId
:
projectId
,
token
:
_this
.
userInfo
.
userToken
,
setEntry
:
true
};
this
.
GET
(
"portal/portalApp/queryProjectParticulars"
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
// 先设置视频URL再显示视频组件 ------------ BEGIN
if
(
res
.
data
.
attachmentType
==
2
)
{
_this
.
videoOptions
.
mp4
=
res
.
data
.
attachmentUrl
;
}
else
{
_this
.
attachmentUrl
=
res
.
data
.
attachmentUrl
;
}
_this
.
bannerType
=
res
.
data
.
attachmentType
;
// 先设置视频URL再显示视频组件 ------------ END
_this
.
projectIntro
=
res
.
data
.
projectIntro
;
_this
.
projectName
=
res
.
data
.
projectName
;
_this
.
pStatus
=
res
.
data
.
status
;
}
});
},
checkToken
()
{
checkToken
()
{
let
_this
=
this
;
let
_this
=
this
;
let
param
=
{
let
param
=
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录