Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
b86d1ca7
提交
b86d1ca7
编写于
12月 21, 2018
作者:
杨广俊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test
上级
5d7507fe
变更
8
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
48 行增加
和
30 行删除
+48
-30
.DS_Store
src/.DS_Store
+0
-0
health-comics.vue
src/components/business/health-comics.vue
+5
-6
history-labels.vue
src/components/business/history-labels.vue
+3
-2
hot-labels.vue
src/components/business/hot-labels.vue
+6
-1
index.js
src/utils/index.js
+9
-9
mixins.js
src/utils/mixins.js
+4
-4
result.vue
src/views/result.vue
+18
-6
search-index.vue
src/views/search-index.vue
+3
-2
未找到文件。
src/.DS_Store
浏览文件 @
b86d1ca7
无法预览此类型文件
src/components/business/health-comics.vue
浏览文件 @
b86d1ca7
...
@@ -133,17 +133,16 @@ export default {
...
@@ -133,17 +133,16 @@ export default {
}
}
]
]
this
.
pageBurialPoin
({
...
m_search_result_health_cartoon_detail
,
labelValue
:
orderIndex
,
createdTime
:
new
Date
().
getTime
(),
})
let
paramList
=
this
.
setEventByModuleCode
(
itemData
);
let
paramList
=
this
.
setEventByModuleCode
(
itemData
);
rocNative
.
dispatchEventByModuleCode
({
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
itemData
.
appModuleInfo
.
code
,
modeCode
:
itemData
.
appModuleInfo
.
code
,
jsonString
:
paramList
jsonString
:
paramList
})
})
this
.
pageBurialPoin
({
...
m_search_result_health_cartoon_detail
,
labelValue
:
item
.
id
,
createdTime
:
new
Date
().
getTime
(),
})
},
},
orderAction
(
orderIndex
)
{
orderAction
(
orderIndex
)
{
...
...
src/components/business/history-labels.vue
浏览文件 @
b86d1ca7
...
@@ -61,9 +61,10 @@ export default {
...
@@ -61,9 +61,10 @@ export default {
// _self.SET_USER_INFO(params)
// _self.SET_USER_INFO(params)
_self
.
getData
()
_self
.
getData
()
}
}
if
(
window
.
__isWeb
)
{
// if(window.__isWeb) {
// alert(window.__isWeb)
_self
.
getData
()
_self
.
getData
()
}
//
}
_self
.
getUserInfo
()
_self
.
getUserInfo
()
},
},
methods
:
{
methods
:
{
...
...
src/components/business/hot-labels.vue
浏览文件 @
b86d1ca7
...
@@ -35,10 +35,15 @@ export default {
...
@@ -35,10 +35,15 @@ export default {
gotoPage
(
itemData
){
gotoPage
(
itemData
){
console
.
log
(
'itemData'
,
itemData
)
console
.
log
(
'itemData'
,
itemData
)
// 如果没有跳转信息,则直接到搜索结果页面
// 如果没有跳转信息,则直接到搜索结果页面
if
(
!
itemData
.
appModuleInfo
){
if
(
!
itemData
.
appModuleInfo
||
!
(
itemData
.
appModuleInfo
.
code
===
'M300'
||
itemData
.
appModuleInfo
.
code
===
'M400'
||
itemData
.
appModuleInfo
.
code
===
'M500'
)){
console
.
log
(
'不支持的中转。。。'
)
this
.
searchAction
(
itemData
.
keyword
)
this
.
searchAction
(
itemData
.
keyword
)
return
return
}
}
// if(!itemData.appModuleInfo || (itemData.appModuleInfo.code === 'M100' )){
// this.searchAction(itemData.keyword)
// return
// }
let
paramList
=
this
.
setEventByModuleCode
(
itemData
);
let
paramList
=
this
.
setEventByModuleCode
(
itemData
);
if
(
paramList
!==
'NO'
)
{
if
(
paramList
!==
'NO'
)
{
rocNative
.
dispatchEventByModuleCode
({
rocNative
.
dispatchEventByModuleCode
({
...
...
src/utils/index.js
浏览文件 @
b86d1ca7
...
@@ -244,17 +244,17 @@ export function jumpEvaluatPage(){
...
@@ -244,17 +244,17 @@ export function jumpEvaluatPage(){
}
}
//
//
dev地址
// dev地址
//
const baseUrl = 'http://10.177.10.149:8080/'
const
baseUrl
=
'http://10.177.10.149:8080/'
//
//
const baseUrl = 'https://dev-sc.yunqueyi.com/'
// const baseUrl = 'https://dev-sc.yunqueyi.com/'
//
const apiUrl = 'https://dev-api.yunqueyi.com/'
const
apiUrl
=
'https://dev-api.yunqueyi.com/'
//
const evaluatPageUrl = 'https://dev-phome.yunqueyi.com/gpr/#/home'
const
evaluatPageUrl
=
'https://dev-phome.yunqueyi.com/gpr/#/home'
// test1地址
// test1地址
// const baseUrl = 'http://10.177.10.149:8080/'
//
//
const baseUrl = 'http://10.177.10.149:8080/'
const
baseUrl
=
'https://test1-sc.yunqueyi.com/'
//
const baseUrl = 'https://test1-sc.yunqueyi.com/'
const
apiUrl
=
'https://test1-api.yunqueyi.com/'
//
const apiUrl = 'https://test1-api.yunqueyi.com/'
const
evaluatPageUrl
=
'https://test1-phome.yunqueyi.com/gpr/#/home'
//
const evaluatPageUrl = 'https://test1-phome.yunqueyi.com/gpr/#/home'
// // uat地址
// // uat地址
// const baseUrl = 'https://uat-sc.yunqueyi.com/'
// const baseUrl = 'https://uat-sc.yunqueyi.com/'
...
...
src/utils/mixins.js
浏览文件 @
b86d1ca7
...
@@ -128,7 +128,7 @@ module.exports = {
...
@@ -128,7 +128,7 @@ module.exports = {
// 通用GET请求
// 通用GET请求
GET
(
api
,
para
,
callback
,
str
)
{
GET
(
api
,
para
,
callback
,
str
)
{
para
.
token
=
para
.
token
||
this
.
token
||
'0
0175A13D70D4234822D90AC3C74202C
'
para
.
token
=
para
.
token
||
this
.
token
||
'0
CDA688FFBD541E482A77D7A07DD35FA
'
let
url
=
api
+
this
.
getUrlPara
(
para
)
let
url
=
api
+
this
.
getUrlPara
(
para
)
return
fetch
({
return
fetch
({
url
:
getBaseUrl
(
url
),
url
:
getBaseUrl
(
url
),
...
@@ -139,7 +139,7 @@ module.exports = {
...
@@ -139,7 +139,7 @@ module.exports = {
// 通用POST请求
// 通用POST请求
POST
(
api
,
para
,
callback
)
{
POST
(
api
,
para
,
callback
)
{
para
.
token
=
para
.
token
||
this
.
token
||
'0
0175A13D70D4234822D90AC3C74202C
'
para
.
token
=
para
.
token
||
this
.
token
||
'0
CDA688FFBD541E482A77D7A07DD35FA
'
return
fetch
({
return
fetch
({
url
:
getBaseUrl
(
api
),
url
:
getBaseUrl
(
api
),
method
:
'post'
,
method
:
'post'
,
...
@@ -149,7 +149,7 @@ module.exports = {
...
@@ -149,7 +149,7 @@ module.exports = {
// 通用GET请求
// 通用GET请求
API_GET
(
api
,
para
,
callback
)
{
API_GET
(
api
,
para
,
callback
)
{
para
.
token
=
para
.
token
||
this
.
token
||
'0
0175A13D70D4234822D90AC3C74202C
'
//'AF3DFCF2DD4B4115AC47ACA25D5420E9''F90DF48D3EFA49DFAE1267A67DBEFB18'//token
para
.
token
=
para
.
token
||
this
.
token
||
'0
CDA688FFBD541E482A77D7A07DD35FA
'
//'AF3DFCF2DD4B4115AC47ACA25D5420E9''F90DF48D3EFA49DFAE1267A67DBEFB18'//token
let
url
=
api
+
this
.
getUrlPara
(
para
)
let
url
=
api
+
this
.
getUrlPara
(
para
)
return
fetch
({
return
fetch
({
url
:
getApiUrl
(
url
),
url
:
getApiUrl
(
url
),
...
@@ -160,7 +160,7 @@ module.exports = {
...
@@ -160,7 +160,7 @@ module.exports = {
// 通用POST请求
// 通用POST请求
API_POST
(
api
,
para
,
callback
)
{
API_POST
(
api
,
para
,
callback
)
{
para
.
token
=
para
.
token
||
this
.
token
||
'0
0175A13D70D4234822D90AC3C74202C
'
//'AF3DFCF2DD4B4115AC47ACA25D5420E9''F90DF48D3EFA49DFAE1267A67DBEFB18'//token
para
.
token
=
para
.
token
||
this
.
token
||
'0
CDA688FFBD541E482A77D7A07DD35FA
'
//'AF3DFCF2DD4B4115AC47ACA25D5420E9''F90DF48D3EFA49DFAE1267A67DBEFB18'//token
return
fetch
({
return
fetch
({
url
:
getApiUrl
(
api
),
url
:
getApiUrl
(
api
),
method
:
'post'
,
method
:
'post'
,
...
...
src/views/result.vue
浏览文件 @
b86d1ca7
...
@@ -142,12 +142,13 @@ export default {
...
@@ -142,12 +142,13 @@ export default {
},
},
created
(){
created
(){
this
.
searchText
=
this
.
$route
.
query
.
searchText
||
''
this
.
searchText
=
this
.
$route
.
query
.
searchText
||
''
// this.searchText = escape(this.$route.query.searchText || '')
console
.
log
(
this
.
searchText
)
console
.
log
(
this
.
searchText
)
let
_this
=
this
;
let
_this
=
this
;
window
.
__getUserInfo
=
function
(
params
){
window
.
__getUserInfo
=
function
(
params
){
_this
.
token
=
params
.
userToken
_this
.
token
=
params
.
userToken
// _this.SET_USER_INFO(params)
// _this.SET_USER_INFO(params)
_this
.
search
()
//
_this.search()
_this
.
getAdjustData
()
_this
.
getAdjustData
()
}
}
if
(
window
.
__isWeb
)
{
if
(
window
.
__isWeb
)
{
...
@@ -159,7 +160,8 @@ export default {
...
@@ -159,7 +160,8 @@ export default {
}
}
},
},
mounted
(){
mounted
(){
// this.search()
this
.
getUserInfo
()
this
.
search
()
// this.searchAll(this.searchText, '1', 'contentAppModels', 'contentAppModelsAll')
// this.searchAll(this.searchText, '1', 'contentAppModels', 'contentAppModelsAll')
},
},
methods
:
{
methods
:
{
...
@@ -305,13 +307,22 @@ export default {
...
@@ -305,13 +307,22 @@ export default {
}
}
</
script
>
</
script
>
<
style
>
<
style
>
.mint-search
{
/*
.mint-search {
position: fixed;
position: fixed;
top: 0px;
top: 0px;
z-index: 3 !important;
z-index: 3 !important;
height: 66px;
height: 66px;
width: 100%;
width: 100%;
border-bottom: 1px solid #E7E7E7 !important;
border-bottom: 1px solid #E7E7E7 !important;
} */
.mint-search
{
position
:
fixed
;
top
:
0px
;
z-index
:
3
;
height
:
66px
;
width
:
100%
;
/* margin: 0 20px; */
border-bottom
:
1px
solid
#E7E7E7
!important
;
}
}
.mint-searchbar
{
.mint-searchbar
{
position
:
relative
;
position
:
relative
;
...
@@ -338,15 +349,16 @@ export default {
...
@@ -338,15 +349,16 @@ export default {
/* border-radius: 15px; */
/* border-radius: 15px; */
}
}
.mint-searchbar-core
{
.mint-searchbar-core
{
color
:
#555555
;
background
:
#F5F6F6
;
background
:
#F5F6F6
;
}
}
</
style
>
</
style
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
'../style/mixin.scss'
;
@import
'../style/mixin.scss'
;
.search-form
{
//
.search-form {
position
:
relative
;
// //
position: relative;
}
//
}
.navbar-container
{
.navbar-container
{
width
:
100%
;
width
:
100%
;
height
:
px2rem
(
57px
);
height
:
px2rem
(
57px
);
...
...
src/views/search-index.vue
浏览文件 @
b86d1ca7
...
@@ -82,7 +82,7 @@ export default {
...
@@ -82,7 +82,7 @@ export default {
]),
]),
// 跳转到结果页面,并
// 跳转到结果页面,并
search
()
{
search
()
{
if
(
!
this
.
searchText
)
return
;
//
if(!this.searchText) return;
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/result'
,
path
:
'/result'
,
query
:
{
query
:
{
...
@@ -124,7 +124,7 @@ export default {
...
@@ -124,7 +124,7 @@ export default {
z-index
:
2
;
z-index
:
2
;
height
:
66px
;
height
:
66px
;
width
:
100%
;
width
:
100%
;
margin
:
0
20px
;
/* margin: 0 20px; */
border-bottom
:
1px
solid
#E7E7E7
!important
;
border-bottom
:
1px
solid
#E7E7E7
!important
;
}
}
.mint-searchbar
{
.mint-searchbar
{
...
@@ -151,6 +151,7 @@ export default {
...
@@ -151,6 +151,7 @@ export default {
background
:
#F5F6F6
;
background
:
#F5F6F6
;
}
}
.mint-searchbar-core
{
.mint-searchbar-core
{
color
:
#555555
;
background
:
#F5F6F6
;
background
:
#F5F6F6
;
}
}
</
style
>
</
style
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录