Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
H5_2.0
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
34888d11
authored
May 18, 2023
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
公用GO接口
parent
ca98a992
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
32 deletions
assets/css/classp/map.scss
manifest.json
pages/classp/map.vue
pages/search/search.vue
util/api.js
util/util.js
assets/css/classp/map.scss
0 → 100644
View file @
34888d11
.mapPage
{
.maphead
{
position
:
fixed
;
width
:
100%
;
height
:
88rpx
;
font-size
:
34rpx
;
font-weight
:
500
;
color
:
$uni-color333
;
background
:
#F5F5F7
;
}
}
\ No newline at end of file
manifest.json
View file @
34888d11
...
...
@@ -26,15 +26,6 @@
"/es"
:
""
}
},
"/esgo"
:
{
"target"
:
"https://s.ichunt.com"
,
"changeOrigin"
:
true
,
"secure"
:
true
,
"pathRewrite"
:
{
"/esgo"
:
""
}
},
"/v3"
:
{
"target"
:
"http://www.liexin.com"
,
"changeOrigin"
:
true
,
...
...
pages/classp/map.vue
View file @
34888d11
<
template
>
<view
class=
"page mapPage"
>
asdasda
<div
class=
"maphead row verCenter rowCenter"
>
分类选型
</div>
<bottomNavFixed
actval=
"2"
/>
</view>
</
template
>
...
...
@@ -41,6 +41,7 @@ asdasda
};
</
script
>
<
style
scoped
lang=
"scss"
>
@import
'../../assets/css/
index/index
.scss'
;
@import
'../../assets/css/
classp/map
.scss'
;
</
style
>
\ No newline at end of file
pages/search/search.vue
View file @
34888d11
...
...
@@ -38,17 +38,9 @@
</view>
</view>
<view
class=
"lxbox"
v-show=
"searchVal"
>
<navigator
url=
"#"
class=
"row
"
>
<navigator
:url=
"'/s?k='+item"
class=
"row"
v-for=
"(item,index) in lxlist"
:key=
"index
"
>
<text
class=
"icon iconfont icon-search "
></text>
<text>
lm358dasdasda
</text>
</navigator>
<navigator
url=
"#"
class=
"row"
>
<text
class=
"icon iconfont icon-search "
></text>
<text>
lm358dasdasda
</text>
</navigator>
<navigator
url=
"#"
class=
"row"
>
<text
class=
"icon iconfont icon-search "
></text>
<text>
lm358dasdasda
</text>
<text>
{{
item
}}
</text>
</navigator>
</view>
</view>
...
...
@@ -62,6 +54,7 @@
timeout
:
""
,
//请求延迟定时器
searchVal
:
""
,
//搜索值
searchHistory
:[],
lxlist
:[],
obj
:{
h5_home_hot_search_goods
:[],
h5_home_activity_recommend
:[]
...
...
@@ -80,9 +73,9 @@
},
methods
:
{
getListPOI
(
val_
){
this
.
request
(
Api_ES_Go
+
"/api/think"
,
'POST'
,
{
k
:
val_
},
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
request
(
Api_ES_Go
+
"/api/think"
,
'POST'
,
{
k
:
val_
},
false
,
true
).
then
(
res
=>
{
if
(
res
.
err
or
_code
===
0
)
{
this
.
lxlist
=
res
.
data
||
[]
}
});
},
...
...
util/api.js
View file @
34888d11
...
...
@@ -16,7 +16,7 @@ switch (window.location.hostname) {
Ichunt_Api
=
'/v3'
Api_Url
=
'/apis'
;
Api_Es
=
"/es"
Api_ES_Go
=
"
/esgo
"
Api_ES_Go
=
"
http://192.168.1.237:9008
"
}
...
...
util/util.js
View file @
34888d11
...
...
@@ -2,7 +2,7 @@ import API_BASE from '../util/api.js'
/**
* 请求封装
*/
const
request
=
(
url
=
''
,
type
=
'GET'
,
param
=
{},
Loading
)
=>
{
const
request
=
(
url
=
''
,
type
=
'GET'
,
param
=
{},
Loading
,
headertype
)
=>
{
const
oa_user_id
=
uni
.
getStorageSync
(
'oa_user_id'
)
||
''
;
const
oa_skey
=
uni
.
getStorageSync
(
'oa_skey'
)
||
''
;
...
...
@@ -22,12 +22,14 @@ const request = (url = '', type = 'GET', param = {}, Loading) => {
mask
:
true
});
}
const
header
=
{
"Content-Type"
:
"application/json; charset=utf-8"
,
"source"
:
'h5'
};
let
header
=
{
"Content-Type"
:
"application/json; charset=utf-8"
}
if
(
headertype
)
{
header
=
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
}
return
new
Promise
((
resolve
,
reject
)
=>
{
uni
.
request
({
method
:
type
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment