Commit 34888d11 by 肖康

公用GO接口

parent ca98a992
.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
...@@ -26,15 +26,6 @@ ...@@ -26,15 +26,6 @@
"/es": "" "/es": ""
} }
}, },
"/esgo": {
"target": "https://s.ichunt.com",
"changeOrigin": true,
"secure": true,
"pathRewrite": {
"/esgo": ""
}
},
"/v3": { "/v3": {
"target": "http://www.liexin.com", "target": "http://www.liexin.com",
"changeOrigin": true, "changeOrigin": true,
......
<template> <template>
<view class="page mapPage"> <view class="page mapPage">
asdasda <div class="maphead row verCenter rowCenter">分类选型</div>
<bottomNavFixed actval="2" /> <bottomNavFixed actval="2" />
</view> </view>
</template> </template>
...@@ -41,6 +41,7 @@ asdasda ...@@ -41,6 +41,7 @@ asdasda
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
@import '../../assets/css/index/index.scss'; @import '../../assets/css/classp/map.scss';
</style> </style>
\ No newline at end of file
...@@ -38,17 +38,9 @@ ...@@ -38,17 +38,9 @@
</view> </view>
</view> </view>
<view class="lxbox" v-show="searchVal"> <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 class="icon iconfont icon-search "></text>
<text>lm358dasdasda</text> <text>{{item}}</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>
</navigator> </navigator>
</view> </view>
</view> </view>
...@@ -62,6 +54,7 @@ ...@@ -62,6 +54,7 @@
timeout:"",//请求延迟定时器 timeout:"",//请求延迟定时器
searchVal:"",//搜索值 searchVal:"",//搜索值
searchHistory:[], searchHistory:[],
lxlist:[],
obj:{ obj:{
h5_home_hot_search_goods:[], h5_home_hot_search_goods:[],
h5_home_activity_recommend:[] h5_home_activity_recommend:[]
...@@ -80,9 +73,9 @@ ...@@ -80,9 +73,9 @@
}, },
methods: { methods: {
getListPOI(val_){ getListPOI(val_){
this.request(Api_ES_Go + "/api/think", 'POST', {k:val_}, ).then(res => { this.request(Api_ES_Go + "/api/think", 'POST', {k:val_},false,true ).then(res => {
if (res.err_code === 0) { if (res.error_code === 0) {
this.lxlist=res.data||[]
} }
}); });
}, },
......
...@@ -16,7 +16,7 @@ switch (window.location.hostname) { ...@@ -16,7 +16,7 @@ switch (window.location.hostname) {
Ichunt_Api = '/v3' Ichunt_Api = '/v3'
Api_Url= '/apis'; Api_Url= '/apis';
Api_Es="/es" Api_Es="/es"
Api_ES_Go="/esgo" Api_ES_Go="http://192.168.1.237:9008"
} }
......
...@@ -2,7 +2,7 @@ import API_BASE from '../util/api.js' ...@@ -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_user_id = uni.getStorageSync('oa_user_id') || '';
const oa_skey = uni.getStorageSync('oa_skey') || ''; const oa_skey = uni.getStorageSync('oa_skey') || '';
...@@ -22,12 +22,14 @@ const request = (url = '', type = 'GET', param = {}, Loading) => { ...@@ -22,12 +22,14 @@ const request = (url = '', type = 'GET', param = {}, Loading) => {
mask: true mask: true
}); });
} }
let header={
const header = { "Content-Type": "application/json; charset=utf-8"
"Content-Type": "application/json; charset=utf-8", }
"source": 'h5' if (headertype) {
}; header={
'Content-Type': 'application/x-www-form-urlencoded'
}
}
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.request({ uni.request({
method: type, method: type,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment