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 @@
"/es": ""
}
},
"/esgo": {
"target": "https://s.ichunt.com",
"changeOrigin": true,
"secure": true,
"pathRewrite": {
"/esgo": ""
}
},
"/v3": {
"target": "http://www.liexin.com",
"changeOrigin": true,
......
<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
......@@ -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.error_code === 0) {
this.lxlist=res.data||[]
}
});
},
......
......@@ -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"
}
......
......@@ -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,
......
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