Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
36135a29
提交
36135a29
编写于
12月 23, 2018
作者:
杨广俊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test1
上级
e36d6610
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
39 行增加
和
30 行删除
+39
-30
backTop.vue
src/components/common/backTop.vue
+20
-18
index.js
src/utils/index.js
+9
-9
result.vue
src/views/result.vue
+8
-3
search-index.vue
src/views/search-index.vue
+2
-0
未找到文件。
src/components/common/backTop.vue
浏览文件 @
36135a29
...
...
@@ -8,42 +8,44 @@
</
template
>
<
script
>
import
{
m_search_result_colligation_top
}
from
'@/utils/buryingPoint'
export
default
{
data
(){
return
{
objPoint
:{}
return
{
objPoint
:{}
}
},
props
:{
props
:
{
burialPoint
:{
default
:
''
,
type
:
String
}
},
// computed: {
// cNeedShow() {
// return this.needShow
// }
// },
mounted
(){
if
(
this
.
burialPoint
==
'activity'
){
this
.
objPoint
=
{
menuLevel
:
2
,
menuFromCode
:
'm_home'
,
menuCode
:
'm_content_list'
,
functionCode
:
'f_activity'
,
actionCode
:
'c_top'
}
}
},
methods
:
{
backTop
:
function
(){
if
(
this
.
burialPoint
==
'activity'
){
this
.
pageBurialPoin
(
this
.
objPoint
);
}
backTop
:
function
(){
this
.
pageBurialPoin
({
...
m_search_result_colligation_top
,
labelValue
:
''
,
createdTime
:
new
Date
().
getTime
(),
})
var
osTop
=
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
if
(
osTop
>
0
){
document
.
documentElement
.
scrollTop
=
document
.
body
.
scrollTop
=
0
;
this
.
$emit
(
'backTop'
)
// this.needShow = false
}
}
},
...
...
src/utils/index.js
浏览文件 @
36135a29
...
...
@@ -250,17 +250,17 @@ export function jumpEvaluatPage(){
}
//
//
dev地址
// dev地址
// const baseUrl = 'http://10.177.10.149:8080/'
// //
const baseUrl = 'https://dev-sc.yunqueyi.com/'
//
const apiUrl = 'https://dev-api.yunqueyi.com/'
//
const evaluatPageUrl = 'https://dev-phome.yunqueyi.com/gpr/#/home'
const
baseUrl
=
'https://dev-sc.yunqueyi.com/'
const
apiUrl
=
'https://dev-api.yunqueyi.com/'
const
evaluatPageUrl
=
'https://dev-phome.yunqueyi.com/gpr/#/home'
// test1地址
// const baseUrl = 'http://10.177.10.149:8080/'
const
baseUrl
=
'https://test1-sc.yunqueyi.com/'
const
apiUrl
=
'https://test1-api.yunqueyi.com/'
const
evaluatPageUrl
=
'https://test1-phome.yunqueyi.com/gpr/#/home'
//
//
test1地址
//
//
const baseUrl = 'http://10.177.10.149:8080/'
//
const baseUrl = 'https://test1-sc.yunqueyi.com/'
//
const apiUrl = 'https://test1-api.yunqueyi.com/'
//
const evaluatPageUrl = 'https://test1-phome.yunqueyi.com/gpr/#/home'
// // uat地址
// const baseUrl = 'https://uat-sc.yunqueyi.com/'
...
...
src/views/result.vue
浏览文件 @
36135a29
...
...
@@ -67,7 +67,7 @@
</div>
</article>
<Loading
v-show=
"showLoading"
/>
<BackTop
v-show=
"isShowTop"
/>
<BackTop
@
backTop=
"backTop"
v-show=
"isShowTop"
/>
</section>
</
template
>
...
...
@@ -95,7 +95,7 @@ import BackTop from '@/components/common/backTop'
export
default
{
data
()
{
return
{
isShowTop
:
tru
e
,
isShowTop
:
fals
e
,
// token: '',
navIndex
:
'0'
,
showLoading
:
false
,
...
...
@@ -313,11 +313,16 @@ export default {
let
navConWrapDomOT
=
document
.
querySelector
(
'#navbar-container-wrapper'
).
offsetParent
.
offsetTop
;
let
scrollTop
=
document
.
body
.
scrollTop
||
document
.
documentElement
.
scrollTop
;
console
.
log
(
'this'
,
this
,
scrollTop
>
50
)
if
(
scrollTop
>
50
){
if
(
scrollTop
>
2
){
this
.
isShowTop
=
true
}
else
{
this
.
isShowTop
=
false
}
console
.
log
(
navConWrapDomOT
)
console
.
log
(
scrollTop
)
},
backTop
()
{
this
.
isShowTop
=
false
}
},
}
...
...
src/views/search-index.vue
浏览文件 @
36135a29
<
template
>
<div>
<!--
<SearchHeader
@
search=
"search"
:searchText=
"searchText"
/>
-->
<form
@
submit
.
prevent=
"search"
>
<mt-search
v-model=
"searchText"
></mt-search>
...
...
@@ -10,6 +11,7 @@
<div
class=
"mt-100"
></div>
<HistoryLabels/>
<HotLabels/>
dev 环境
<img
src=
"https://test1-file.yunqueyi.com/image/HJ_B001_YD_002_A.jpg"
@
click=
"gotoPage"
>
</div>
</
template
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录