更新
This commit is contained in:
@@ -233,7 +233,7 @@
|
||||
getOrderInfo() {
|
||||
orderApi.selOrder(this.id).then(res => {
|
||||
if (res.code == 20000) {
|
||||
uni.setStorageSync('oilItem', res.data)
|
||||
// uni.setStorageSync('oilItem', res.data)
|
||||
this.order = res.data
|
||||
this.getOrderQrCode()
|
||||
}
|
||||
@@ -270,7 +270,12 @@
|
||||
makePay() {
|
||||
orderApi.getOrderPayInfo(this.id).then(res => {
|
||||
if (res.code == 20000) {
|
||||
// console.log('oilItem',uni.getStorageSync('oilItem'))
|
||||
if(res.data.secondChannelCode === 'SQ' && res.data.sqSiteBelong === 'JKJY') {
|
||||
res.data.listTag = '集卡加油'
|
||||
}
|
||||
uni.setStorageSync('orderMade', res.data)
|
||||
uni.setStorageSync('oilItem', res.data)
|
||||
uni.navigateTo({
|
||||
url: '/BagStation/pages/makeOrder/orderPaying'
|
||||
})
|
||||
|
||||
@@ -286,12 +286,13 @@
|
||||
this.findUreaAccount()
|
||||
}else{
|
||||
let oilItem = uni.getStorageSync('oilItem')
|
||||
// console.log
|
||||
this.order = uni.getStorageSync('orderMade')
|
||||
this.type = 'oil'
|
||||
this.showtitles = oilItem.listTag
|
||||
if(option.payMethod == null){
|
||||
this.payMethod =oilItem.payMethod
|
||||
console.log(this.payMethod )
|
||||
// console.log(this.payMethod )
|
||||
}else {
|
||||
this.payMethod =option.payMethod
|
||||
}
|
||||
|
||||
@@ -217,9 +217,11 @@
|
||||
this.innerAudioContext?.stop()
|
||||
},
|
||||
onLoad(option) {
|
||||
if(option.siteId) {
|
||||
this.siteId = option.siteId
|
||||
this.getSiteInfo(option.siteId)
|
||||
let siteId = uni.getStorageSync('siteId') || option.siteId
|
||||
if(siteId) {
|
||||
uni.setStorageSync('siteId',siteId)
|
||||
this.siteId = siteId
|
||||
this.getSiteInfo(siteId)
|
||||
return
|
||||
}
|
||||
// console.log(option)
|
||||
|
||||
Reference in New Issue
Block a user