xiaozy_二维码 #2

Merged
caoliancun merged 11 commits from xiaozy_二维码 into master 2023-07-05 18:35:57 +08:00
6 changed files with 15 additions and 13 deletions
Showing only changes of commit cb276d7bef - Show all commits

View File

@@ -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()
// } // }

View File

@@ -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({

View File

@@ -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}`
}) })

View File

@@ -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#)

View File

@@ -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
} }

View File

@@ -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' //预生产