Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-cooperation-cme
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-cooperation-cme
提交
9415c442
提交
9415c442
编写于
5月 16, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
版本判断问题
上级
4f642c63
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
19 行增加
和
8 行删除
+19
-8
mixins.js
src/utils/mixins.js
+1
-1
merge-detail.vue
src/views/merge-detail.vue
+18
-7
未找到文件。
src/utils/mixins.js
浏览文件 @
9415c442
...
@@ -13,7 +13,7 @@ module.exports = {
...
@@ -13,7 +13,7 @@ module.exports = {
query
=
this
.
$route
.
query
query
=
this
.
$route
.
query
}
}
// alert('this.token' + this.token)
// alert('this.token' + this.token)
this
.
token
=
this
.
getUrlKey
(
'token'
)
||
(
query
&&
query
.
token
)
||
'
1CC1781670274318B1BE87171244F05D
'
this
.
token
=
this
.
getUrlKey
(
'token'
)
||
(
query
&&
query
.
token
)
||
'
413649EAAF9D4C719DA183FB49E1911F
'
},
},
mounted
()
{
mounted
()
{
...
...
src/views/merge-detail.vue
浏览文件 @
9415c442
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<span
:class=
"
{'focus': tabFlag}" @click="jumpIntro">简介
</span>
<span
:class=
"
{'focus': tabFlag}" @click="jumpIntro">简介
</span>
<span
:class=
"
{'focus': !tabFlag}" @click="jumpCatalogue">目录
</span>
<span
:class=
"
{'focus': !tabFlag}" @click="jumpCatalogue">目录
</span>
</div>
</div>
<div
v-
if=
"fixedFlag"
style=
"height: 60px;
"
></div>
<div
v-
show=
"fixedFlag"
class=
"fixed-flag-height
"
></div>
<div
id=
"intro-content"
class=
"intro-content"
>
<div
id=
"intro-content"
class=
"intro-content"
>
<BasicInfo
<BasicInfo
:projectNo=
"project.projectNo"
:projectNo=
"project.projectNo"
...
@@ -259,6 +259,7 @@ export default {
...
@@ -259,6 +259,7 @@ export default {
this
.
courseRequire
=
this
.
$route
.
query
.
courseRequire
;
this
.
courseRequire
=
this
.
$route
.
query
.
courseRequire
;
window
.
__getUserInfo64Comp
=
function
(
param
)
{
window
.
__getUserInfo64Comp
=
function
(
param
)
{
// appVersion 安卓 3.2.2 iOS
console
.
log
(
'__getUserInfo64Comp'
,
param
);
console
.
log
(
'__getUserInfo64Comp'
,
param
);
_this
.
token
=
param
.
userToken
;
_this
.
token
=
param
.
userToken
;
_this
.
setUserInfo
(
param
);
_this
.
setUserInfo
(
param
);
...
@@ -282,8 +283,6 @@ export default {
...
@@ -282,8 +283,6 @@ export default {
// action: "打开页面",
// action: "打开页面",
component_tag
:
`211#0#
${
this
.
projectId
}
#0`
component_tag
:
`211#0#
${
this
.
projectId
}
#0`
});
});
Toast
(
'请您下载新版本App'
);
},
},
mounted
()
{
mounted
()
{
...
@@ -315,7 +314,13 @@ export default {
...
@@ -315,7 +314,13 @@ export default {
// 跳转到第三方考试页面
// 跳转到第三方考试页面
jumpToExamAction
()
{
jumpToExamAction
()
{
this
.
isShowEJDialog
=
false
;
// 判断版本号,如果小于3.4.0,则只做提示
let
appVersion
=
this
.
userInfo
.
appVersion
;
let
appVersionNum
=
appVersion
.
split
(
'.'
).
join
(
''
);
if
(
appVersionNum
<
340
)
{
Toast
(
'请您下载新版本App'
);
return
;
}
let
paramList
=
[
let
paramList
=
[
{
{
key
:
"pageUrl"
,
key
:
"pageUrl"
,
...
@@ -345,7 +350,9 @@ export default {
...
@@ -345,7 +350,9 @@ export default {
setEntry
:
true
setEntry
:
true
};
};
this
.
NEW_POST
(
`cme/project/
${
_this
.
projectId
}
/firstIntoExam`
,
param
).
then
(
res
=>
{
this
.
NEW_POST
(
`cme/project/
${
_this
.
projectId
}
/firstIntoExam`
,
param
).
then
(
res
=>
{
console
.
log
(
'in isFirstIntoExam back'
,
res
);
if
(
res
.
code
==
"000000"
)
{
this
.
project
.
firstIntoExam
=
false
;
}
});
});
},
},
...
@@ -363,8 +370,9 @@ export default {
...
@@ -363,8 +370,9 @@ export default {
const
catalogue
=
document
.
getElementById
(
"catalogue-content"
);
const
catalogue
=
document
.
getElementById
(
"catalogue-content"
);
const
intro
=
document
.
getElementById
(
"intro-content"
);
const
intro
=
document
.
getElementById
(
"intro-content"
);
console
.
log
(
`intor.offsetTop intro.offsetTop`
,
intro
.
offsetTop
,
intro
.
offsetTop
);
console
.
log
(
`catalogue.offsetHeight catalogue.offsetHeight`
,
catalogue
.
offsetHeight
,
catalogue
.
offsetHeight
);
console
.
log
(
`scrollTop intor.offsetTop catalogue.offsetTop`
,
scrollTop
,
intro
.
offsetTop
,
catalogue
.
offsetTop
);
// console.log(`catalogue.offsetHeight catalogue.offsetHeight`, catalogue.offsetTop, catalogue.offsetTop);
// const h = catalogue.offsetTop - 600;
// const h = catalogue.offsetTop - 600;
...
@@ -770,6 +778,9 @@ export default {
...
@@ -770,6 +778,9 @@ export default {
margin-bottom
:
px2rem
(
16px
);
margin-bottom
:
px2rem
(
16px
);
}
}
}
}
.fixed-flag-height
{
height
:
px2rem
(
50px
);
}
}
}
}
}
</
style
>
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录