中小
xiaozhiyong 4 months ago
parent 5848de68fa
commit 90ebfec3e9
  1. 2
      BagStation/pages/components/price-select-tab.vue
  2. 2
      BagStation/pages/makeOrder/makeOrder.vue
  3. 10
      BagStation/pages/routePlainMap/routePlainMap.vue
  4. 4
      BagStation/pages/stationDetail/stationDetail.vue
  5. 2
      BagStation/pages/stationDetail/stieQr.vue
  6. 2
      BagStation/pages/stationMap/stationMap.vue
  7. 25
      api/oil-site.js
  8. 3
      components/three-sites.vue
  9. 1
      pages/index/startPage/startPage.vue
  10. 8
      pages/tabbar/home/home.vue
  11. 2
      pages/tabbar/qrCenter/qrCenter.vue
  12. 12
      pages/tabbar/station/stationList.vue
  13. 14
      utils/request.js

@ -952,7 +952,7 @@
//
getNewSitePrice(channelId) {
this.oilSitePriceDetailsVo = []
oilSiteApi.getNewSitePriceZp({
oilSiteApi.getSitePriceKAByBelong({
channelId: channelId,
clientBelong: "ZHONGPIN"
}).then(res => {

@ -148,7 +148,7 @@
clientBelong: "ZHONGPIN"
}
oilSiteApi.getSiteDetails(data2).then(res => {
oilSiteApi.getSiteDetailsByKA(data2).then(res => {
if (res.code == 20000) {
this.siteInfo = res.data
}

@ -497,10 +497,10 @@
})
},
markerTap(res){
console.log('这类似点击marker点',res)
console.log('这类似点击marker点匹配',this.coverDatas)
// console.log('marker',res)
// console.log('marker',this.coverDatas)
let site = this.coverDatas.filter(item=>Number(item.id.substr(0,8)) == res.detail.markerId );
console.log('*++++++++++++++++++++++++++++++*',site)
// console.log('*++++++++++++++++++++++++++++++*',site)
this.siteInfo = site[0]
if(this.siteInfo){
let userLocation = uni.getStorageSync('userLocation')
@ -512,8 +512,8 @@
latitude:latitude ,
longitude: longitude ,
}
console.log('点击获取obj',obj)
oilSiteApi.getSiteDetails(obj).then(res=>{
// console.log('obj',obj)
oilSiteApi.getSiteDetailsByKA(obj).then(res=>{
if(res.code == 20000){
console.log(res)
this.oliSiteInfo = res.data

@ -211,6 +211,8 @@
}
this.location = uni.getStorageSync('location')
// console.log('option',option)
if (!option.item) {
let siteInfos = uni.getStorageSync('siteInfo')
@ -293,7 +295,7 @@
}
let user = uni.getStorageSync('user');
if (user) {
oilSiteApi.getSiteDetails(data2).then(res => {
oilSiteApi.getSiteDetailsByKA(data2).then(res => {
if (res.code == 20000) {
this.siteInfo = Object.assign(item, res.data);
}

@ -283,7 +283,7 @@
...uni.getStorageSync('location'),
siteId: this.siteId
}
oilSiteApi.getSiteDetails(data2).then(res => {
oilSiteApi.getSiteDetailsByKA(data2).then(res => {
if (res.code == 20000) {
this.siteInfo = res.data
}

@ -152,7 +152,7 @@ export default {
...uni.getStorageSync('location'),
siteId: id
}
oilSiteApi.getSiteDetails(data2).then(res => {
oilSiteApi.getSiteDetailsByKA(data2).then(res => {
if (res.code == 20000) {
this.siteInfo = res.data
}

@ -45,6 +45,14 @@ export default {
data: data
})
},
// 中小客户调度管理系统
findKASiteInfoByPage(data) {
return request({
url: `/oil-site/oilSiteAppInfo/findKASiteInfoByPage`,
method: 'post',
data: data
})
},
getSiteDetails(data) {
return request({
url: `/${service_name}/${group_name}/getSiteDetails`,
@ -52,6 +60,14 @@ export default {
data: data
})
},
// 中小企业油站详情
getSiteDetailsByKA(data) {
return request({
url: `/${service_name}/${group_name}/getSiteDetailsByKA`,
method: 'post',
data: data
})
},
// 未登录查询油站
readOnlySites(data) {
return request({
@ -89,6 +105,7 @@ export default {
method: 'get'
})
},
// 中品 下单 -- 获取最新油站价格、司机、加油员相关信息
getNewSitePriceZp(data) {
return request({
@ -97,6 +114,14 @@ export default {
data:data
})
},
// 中小企业
getSitePriceKAByBelong(data) {
return request({
url: `/${service_name}/${group_name}/getSitePriceKAByBelong`,
method: 'post',
data:data
})
},
//根据地址获取详细地址信息
getGeoByAddress(address) {
return request({

@ -79,13 +79,14 @@
...this.filterData,
comprehensiveSort:1,
zpDisable:'ENABLE',
// parentCompanyId
// siteBrand: "", // // ( 1- 2- 3- 4- 5- 6- 7- 8- )
// channelCode: "", // // ( OIL WJY LV TY YDJY)
// oilProductCode: "" // // ( 0# 92# 92#)
}
}
oilSiteApi.getSiteLists(data1).then(res => {
oilSiteApi.findKASiteInfoByPage(data1).then(res => {
if (res.code == 20000) {
this.siteList = res.data.list;
(this.siteList.length>3)&&(this.siteList.length = 3)

@ -96,6 +96,7 @@
})
}
}
// handle()
interstitialAd.onClose(handle)
interstitialAd.onError((err) => {
console.log('onError', err)

@ -72,7 +72,7 @@
</view> -->
<view>
<view v-if="siteList.length>0">
<site-item :location='location' v-for="(item,index) in siteList" :key="item.id" :site-item="item"
<site-item :location='location' v-for="(item,index) in siteList" :key="index" :site-item="item"
:first="index==0" :listHeight="listHeight" class="cu-list menu-avatar cu-item"
@tap="toDetail(item)">
</site-item>
@ -454,7 +454,7 @@
}
};
oilSiteApi.getSiteLists(params).then(res => {
oilSiteApi.findKASiteInfoByPage(params).then(res => {
if (res.code == 20000) {
this.siteList = res.data.list
}
@ -462,6 +462,7 @@
},
toDetail(item) {
// console.log('siteList',this.siteList)
let user = uni.getStorageSync("user");
if (!user) {
uni.showModal({
@ -477,6 +478,7 @@
});
return;
}
// console.log('item',item)
let itemS = encodeURIComponent(JSON.stringify(item));
uni.navigateTo({
url: `/BagStation/pages/stationDetail/stationDetail?item=${itemS}`
@ -495,7 +497,7 @@
...uni.getStorageSync('location'),
siteId: id
}
oilSiteApi.getSiteDetails(data2).then(res => {
oilSiteApi.getSiteDetailsByKA(data2).then(res => {
if (res.code == 20000) {
this.siteInfo = res.data
if (res.data.oilSiteChannelDetailsVos.length == 1 && res.data.oilSiteChannelDetailsVos[0]

@ -89,7 +89,7 @@
...uni.getStorageSync('location'),
siteId: id
}
oilSiteApi.getSiteDetails(data2).then(res => {
oilSiteApi.getSiteDetailsByKA(data2).then(res => {
if (res.code == 20000) {
this.siteInfo = res.data
if (res.data.oilSiteChannelDetailsVos.length == 1 && res.data.oilSiteChannelDetailsVos[0]

@ -38,7 +38,7 @@
<!-- <sl-filter reflexTitle ref="slFilter" @result="filterRes" :menuList="menuList"></sl-filter> -->
</view>
<view class="bg-white min-height-50 padding-top" v-if="siteList.length>0">
<site-item v-for="(item,index) in siteList" :key="item.id" :site-item="item" :first="index==0"
<site-item v-for="(item,index) in siteList" :key="index" :site-item="item" :first="index==0"
:listHeight="listHeight" class="cu-list menu-avatar cu-item" @tap="toDetail(item)">
</site-item>
<view class="placeholder-hidden">
@ -405,18 +405,20 @@
}
}
oilSiteApi.getSiteLists(parameter).then(res => {
oilSiteApi.findKASiteInfoByPage(parameter).then(res => {
if (res.code == 20000) {
this.siteList = this.siteList.concat(res.data.list)
if(this.currentPage == 1) {
this.siteList = res.data.list
}else this.siteList = this.siteList.concat(res.data.list)
if (res.data.list.length < 10) { //
this.loadStatus = 'nomore'
} else {
this.currentPage++
this.loadStatus = 'load'
}
}
}K
})
},
toDetail(item) {
let user = uni.getStorageSync("user");

@ -7,8 +7,8 @@ const env = 'production'/* */
const testUrl = 'http://192.168.110.77:38080'
// const productUrl = 'http://121.196.213.68/adminapi' //预生产
const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
// const productUrl = 'http://uat.xingoil.com/adminapi' // 生产,加密 new
// const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
const productUrl = 'http://uat.xingoil.com/adminapi' // 生产,加密 new
const service = axios.create({
baseURL: env == 'production' ? productUrl : testUrl,
// baseURL: testUrl,
@ -34,6 +34,16 @@ service.interceptors.request.use(
config.headers['accountSources'] = accountSources
config.headers['imei'] = unionId
config.headers['dataSources'] = 'MP'
if(['/oil-site/oilSiteAppInfo/findKASiteInfoByPage','/oil-site/oilSiteAppInfo/getSiteDetailsByKA','/oil-site/oilSiteAppInfo/getSitePriceKAByBelong'].includes(config.url)) {
let parentCompanyId = config.baseURL === 'https://www.xingoil.com/adminapi' ? '1812649739013771264' : '1810568376122056704'
if(config.data.params) {
config.data.params['parentCompanyId'] = parentCompanyId
}else config.data['parentCompanyId'] = parentCompanyId
}
if (env === 'production') {
// 生产环境,加密,不输出任何东西

Loading…
Cancel
Save