pull/2/head
xiaozhiyong 2 years ago
parent 5876735edc
commit cb276d7bef
  1. 1
      App.vue
  2. 4
      BagStation/orderDetail/orderDetail.vue
  3. 10
      BagStation/pages/stationDetail/stationDetail.vue
  4. 1
      components/three-sites.vue
  5. 10
      pages/tabbar/station/stationList.vue
  6. 2
      utils/request.js

@ -144,6 +144,7 @@
} }
// console.log('jumpUrl',jumpUrl) // console.log('jumpUrl',jumpUrl)
if (token && openid) { if (token && openid) {
this.getAmount()
// if(!white.includes(view.route) ){ // if(!white.includes(view.route) ){
// this.getAmount() // this.getAmount()
// } // }

@ -43,7 +43,7 @@
</view> </view>
</view> </view>
<view class="cu-list menu solid-bottom"> <view class="cu-list menu solid-bottom">
<view class="cu-item arrow" @tap="toDetail(order)"> <view class="cu-item " :class="order.zpDisable === 'DISABLE' ? '' :'arrow'" @tap="toDetail(order)">
油站 油站
<text class="fr">{{order.siteName?order.siteName:''}}</text> <text class="fr">{{order.siteName?order.siteName:''}}</text>
</view> </view>
@ -312,6 +312,7 @@
}) })
}, },
toDetail(item) { toDetail(item) {
if(item.zpDisable === 'DISABLE') return
var itemS = JSON.stringify(item) var itemS = JSON.stringify(item)
uni.setStorageSync('siteInfo',itemS) uni.setStorageSync('siteInfo',itemS)
uni.navigateTo({ uni.navigateTo({
@ -325,6 +326,7 @@
}) })
}, },
cancelOrder() { cancelOrder() {
orderApi.cancelOrder(this.id).then(res => { orderApi.cancelOrder(this.id).then(res => {
if (res.code == 20000) { if (res.code == 20000) {
uni.showToast({ uni.showToast({

@ -201,7 +201,7 @@
let originLink = decodeURIComponent(option.q) let originLink = decodeURIComponent(option.q)
let target = this.obtainUrlPathParameterTarget(originLink) let target = this.obtainUrlPathParameterTarget(originLink)
console.log('target',target) console.log('target',target)
if(userInfo && target.siteId) { if(target.siteId) {
this.siteId = target.siteId this.siteId = target.siteId
this.getSiteInfo(target.siteId) this.getSiteInfo(target.siteId)
} }
@ -254,7 +254,7 @@
}); });
}, },
backTohome(){ backTohome(){
innerAudioContext && this.innerAudioContext.stop() this.innerAudioContext && this.innerAudioContext.stop()
uni.switchTab({ uni.switchTab({
url:'../../../pages/tabbar/home/home' url:'../../../pages/tabbar/home/home'
}) })
@ -263,7 +263,7 @@
this.showtitle =false this.showtitle =false
}, },
gotoPay(){ gotoPay(){
innerAudioContext && this.innerAudioContext.stop() this.innerAudioContext && this.innerAudioContext.stop()
uni.navigateTo({ uni.navigateTo({
url: `/BagStation/pages/makeOrder/makeOrder?siteId=${this.siteId}&activeCur=${this.activeCur}` url: `/BagStation/pages/makeOrder/makeOrder?siteId=${this.siteId}&activeCur=${this.activeCur}`
}) })
@ -273,7 +273,7 @@
this.secondChannelCode = sec this.secondChannelCode = sec
}, },
siteQrPay() { siteQrPay() {
innerAudioContext && this.innerAudioContext.stop() this.innerAudioContext && this.innerAudioContext.stop()
uni.navigateTo({ uni.navigateTo({
url: `/BagStation/pages/stationDetail/stieQr?siteId=${this.siteId}&activeChannelCode=${this.activeChannelCode}&secondChannelCode=${this.secondChannelCode}` url: `/BagStation/pages/stationDetail/stieQr?siteId=${this.siteId}&activeChannelCode=${this.activeChannelCode}&secondChannelCode=${this.secondChannelCode}`
}) })
@ -294,7 +294,7 @@
if(this.siteInfo.juli > 1000 ){ if(this.siteInfo.juli > 1000 ){
this.showtitle = true this.showtitle = true
}else{ }else{
innerAudioContext && this.innerAudioContext.stop() this.innerAudioContext && this.innerAudioContext.stop()
uni.navigateTo({ uni.navigateTo({
url: `/BagStation/pages/makeOrder/makeOrder?siteId=${this.siteId}&activeCur=${this.activeCur}` url: `/BagStation/pages/makeOrder/makeOrder?siteId=${this.siteId}&activeCur=${this.activeCur}`
}) })

@ -78,6 +78,7 @@
...uni.getStorageSync('location'), ...uni.getStorageSync('location'),
...this.filterData, ...this.filterData,
comprehensiveSort:1, comprehensiveSort:1,
zpDisable:'ENABLE',
// siteBrand: "", // // ( 1- 2- 3- 4- 5- 6- 7- 8- ) // siteBrand: "", // // ( 1- 2- 3- 4- 5- 6- 7- 8- )
// channelCode: "", // // ( OIL WJY LV TY YDJY) // channelCode: "", // // ( OIL WJY LV TY YDJY)
// oilProductCode: "" // // ( 0# 92# 92#) // oilProductCode: "" // // ( 0# 92# 92#)

@ -384,16 +384,14 @@
siteName: this.siteName, siteName: this.siteName,
...uni.getStorageSync('location'), ...uni.getStorageSync('location'),
// ...this.filterData // ...this.filterData
siteBrand: this.siteName ? '' : this.filterData siteBrand: this.siteName ? '' : this.filterData.siteBrand, // // ( 1- 2- 3- 4- 5- 6- 7- 8- )
.siteBrand, // // ( 1- 2- 3- 4- 5- 6- 7- 8- ) channelCode: this.siteName ? '' : this.filterData.channelCode, // // ( OIL WJY LV TY YDJY)
channelCode: this.siteName ? '' : this.filterData oilProductCode: this.siteName ? '' : this.filterData.oilProductCode, // // ( 0# 92# 92#)
.channelCode, // // ( OIL WJY LV TY YDJY)
oilProductCode: this.siteName ? '' : this.filterData
.oilProductCode, // // ( 0# 92# 92#)
provinceCode: this.filterData.provinceCode, provinceCode: this.filterData.provinceCode,
cityCode: this.filterData.cityCode, cityCode: this.filterData.cityCode,
areaCode: this.filterData.areaCode, areaCode: this.filterData.areaCode,
distance: this.filterData.distance, distance: this.filterData.distance,
zpDisable:'ENABLE',
comprehensiveSort: this.filterData.comprehensiveSort ? this.filterData.comprehensiveSort : 1 comprehensiveSort: this.filterData.comprehensiveSort ? this.filterData.comprehensiveSort : 1
} }

@ -3,7 +3,7 @@ import utils from '@/utils/encode'
// const env = process.env.NODE_ENV // const env = process.env.NODE_ENV
// const env = 'production'/* */ // const env = 'production'/* */
const env = 'product' const env = 'production'
const testUrl = 'http://192.168.110.230:38080' const testUrl = 'http://192.168.110.230:38080'
// const productUrl = 'http://121.196.213.68/adminapi' //预生产 // const productUrl = 'http://121.196.213.68/adminapi' //预生产

Loading…
Cancel
Save