Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
c43378b8
提交
c43378b8
编写于
12月 25, 2018
作者:
杨广俊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cancel
上级
58572dd0
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
3 行增加
和
59 行删除
+3
-59
router.js
src/router/router.js
+1
-2
result.vue
src/views/result.vue
+1
-12
search-index.vue
src/views/search-index.vue
+1
-45
未找到文件。
src/router/router.js
浏览文件 @
c43378b8
import
App
from
'../App'
const
index
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/index'
)),
'index'
)
const
search
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/search-index'
)),
'search'
)
const
result
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/result'
)),
'result'
)
const
details
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/teacher-details'
)),
'details'
)
...
...
@@ -15,7 +14,7 @@ export default [{
},
{
path
:
'/index'
,
component
:
index
component
:
search
},
{
path
:
'/search'
,
...
...
src/views/result.vue
浏览文件 @
c43378b8
...
...
@@ -159,22 +159,14 @@ export default {
},
watch
:
{
searchText
(
val
){
console
.
log
(
val
)
this
.
searchTextSub
=
val
}
// selected(val) {
// this.showIndex(val)
// // this.searchAll(this.searchText, '1', 'contentAppModels', 'contentAppModelsAll')
// }
},
created
(){
this
.
searchText
=
this
.
$route
.
query
.
searchText
||
''
// this.searchText = escape(this.$route.query.searchText || '')
console
.
log
(
this
.
searchText
)
let
_this
=
this
;
window
.
__getUserInfo
=
function
(
params
){
_this
.
token
=
params
.
userToken
// _this.SET_USER_INFO(params)
_this
.
search
()
_this
.
getAdjustData
()
}
...
...
@@ -338,14 +330,11 @@ export default {
let
navConWrapDom
=
document
.
querySelector
(
'#navbar-container-wrapper'
)
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
>
2
){
if
(
scrollTop
>
5
){
this
.
isShowTop
=
true
}
else
{
this
.
isShowTop
=
false
}
console
.
log
(
navConWrapDomOT
)
console
.
log
(
scrollTop
)
},
backTop
()
{
this
.
isShowTop
=
false
...
...
src/views/search-index.vue
浏览文件 @
c43378b8
...
...
@@ -57,60 +57,19 @@ export default {
statusBarHeight
:
'statusBarHeight'
})
},
watch
:
{
statusBarHeight
(
val
)
{
alert
(
'val: '
+
JSON
.
stringify
(
val
))
}
},
created
()
{
let
_self
=
this
;
window
.
__getUserInfo_S
=
function
(
params
){
// alert(JSON.stringify(params))
_self
.
token
=
params
.
userToken
// _self.SET_USER_INFO(params)
_self
.
getData
()
}
window
.
__getStatusBarHeight
=
function
(
param
)
{
// alert('__getStatusBarHeight: ' + JSON.stringify(param))
_self
.
setStatusBarHeight
(
param
)
// if (window.__isAndroid) {
// _this.popHeight = parseInt(parm.statusBarHeight) / 2
// } else {
// _this.popHeight = parm.statusBarHeight
// }
// _this.ptop = _this.popHeight + 'px';
// _this.menuptop = _this.popHeight + 36 + 'px'
}
this
.
getStatusBarHeight
()
},
mounted
(){
// window.__refresh = function(){
// _self.getUserInfo()
// }
// window.__getStatusBarHeight = function(params){
// _self.SET_NAVBAR_HEIGHT(params)
// }
// window.__getStatusBarHeight = function(parm){
// //lert(parm.statusBarHeight)
// if(window.__isAndroid){
// _this.popHeight = parseInt(parm.statusBarHeight)/2.5
// }else{
// _this.popHeight = parm.statusBarHeight
// }
// _this.ptop = _this.popHeight+'px';
// _this.menuptop = _this.popHeight+'px'
// // alert(parm.statusBarHeight);
// }
// _self.getData()
// if(window.__isWeb) {
// _self.getData()
// }
this
.
getUserInfo
()
// this.isFirstTime()
// _self.getStatusBarHeight()
// this.getStatusBarHeight()
},
methods
:
{
...
mapActions
({
...
...
@@ -157,9 +116,6 @@ export default {
let
obj
=
{
}
console
.
log
(
item
);
// let url = pageJumpUrl();
// console.log(url.pageListUrl);
let
itemData
=
{
"imageUrl"
:
""
,
"appModuleInfo"
:
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录