Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-professional-exam
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-professional-exam
提交
a74f3bff
提交
a74f3bff
编写于
7月 01, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
详情页面改造
上级
36402c8f
变更
3
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
315 行增加
和
67 行删除
+315
-67
merge-detail.vue
src/views/merge-detail.vue
+15
-12
parent-page copy.vue
src/views/parent-page copy.vue
+300
-0
parent-page.vue
src/views/parent-page.vue
+0
-55
未找到文件。
src/views/merge-detail.vue
浏览文件 @
a74f3bff
...
@@ -288,9 +288,11 @@ export default {
...
@@ -288,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
...
@@ -798,17 +800,18 @@ export default {
...
@@ -798,17 +800,18 @@ export default {
_this
.
provinceId
=
res
.
data
.
positionModel
.
provinceId
;
_this
.
provinceId
=
res
.
data
.
positionModel
.
provinceId
;
_this
.
organizationId
=
res
.
data
.
positionModel
.
organizationId
;
_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
;
...
...
src/views/parent-page copy.vue
0 → 100644
浏览文件 @
a74f3bff
此差异已折叠。
点击以展开。
src/views/parent-page.vue
浏览文件 @
a74f3bff
...
@@ -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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录