更新
This commit is contained in:
@@ -233,7 +233,7 @@
|
|||||||
getOrderInfo() {
|
getOrderInfo() {
|
||||||
orderApi.selOrder(this.id).then(res => {
|
orderApi.selOrder(this.id).then(res => {
|
||||||
if (res.code == 20000) {
|
if (res.code == 20000) {
|
||||||
uni.setStorageSync('oilItem', res.data)
|
// uni.setStorageSync('oilItem', res.data)
|
||||||
this.order = res.data
|
this.order = res.data
|
||||||
this.getOrderQrCode()
|
this.getOrderQrCode()
|
||||||
}
|
}
|
||||||
@@ -270,7 +270,12 @@
|
|||||||
makePay() {
|
makePay() {
|
||||||
orderApi.getOrderPayInfo(this.id).then(res => {
|
orderApi.getOrderPayInfo(this.id).then(res => {
|
||||||
if (res.code == 20000) {
|
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('orderMade', res.data)
|
||||||
|
uni.setStorageSync('oilItem', res.data)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/BagStation/pages/makeOrder/orderPaying'
|
url: '/BagStation/pages/makeOrder/orderPaying'
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -286,12 +286,13 @@
|
|||||||
this.findUreaAccount()
|
this.findUreaAccount()
|
||||||
}else{
|
}else{
|
||||||
let oilItem = uni.getStorageSync('oilItem')
|
let oilItem = uni.getStorageSync('oilItem')
|
||||||
|
// console.log
|
||||||
this.order = uni.getStorageSync('orderMade')
|
this.order = uni.getStorageSync('orderMade')
|
||||||
this.type = 'oil'
|
this.type = 'oil'
|
||||||
this.showtitles = oilItem.listTag
|
this.showtitles = oilItem.listTag
|
||||||
if(option.payMethod == null){
|
if(option.payMethod == null){
|
||||||
this.payMethod =oilItem.payMethod
|
this.payMethod =oilItem.payMethod
|
||||||
console.log(this.payMethod )
|
// console.log(this.payMethod )
|
||||||
}else {
|
}else {
|
||||||
this.payMethod =option.payMethod
|
this.payMethod =option.payMethod
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -217,9 +217,11 @@
|
|||||||
this.innerAudioContext?.stop()
|
this.innerAudioContext?.stop()
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
if(option.siteId) {
|
let siteId = uni.getStorageSync('siteId') || option.siteId
|
||||||
this.siteId = option.siteId
|
if(siteId) {
|
||||||
this.getSiteInfo(option.siteId)
|
uni.setStorageSync('siteId',siteId)
|
||||||
|
this.siteId = siteId
|
||||||
|
this.getSiteInfo(siteId)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// console.log(option)
|
// console.log(option)
|
||||||
|
|||||||
@@ -138,7 +138,7 @@
|
|||||||
this.getOrder('')
|
this.getOrder('')
|
||||||
},
|
},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
console.log('这里是onPullDownRefresh')
|
// console.log('这里是onPullDownRefresh')
|
||||||
this.currentPage = 1
|
this.currentPage = 1
|
||||||
this.list= []
|
this.list= []
|
||||||
if(this.TabHead == 1){
|
if(this.TabHead == 1){
|
||||||
@@ -151,7 +151,7 @@
|
|||||||
// }, 1000);
|
// }, 1000);
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
console.log('这里是onReachBottom')
|
// console.log('这里是onReachBottom')
|
||||||
if(this.TabHead == 1){
|
if(this.TabHead == 1){
|
||||||
// this.nextPageUrea()
|
// this.nextPageUrea()
|
||||||
if(this.status.loadOrderStatus !='nomore' ){
|
if(this.status.loadOrderStatus !='nomore' ){
|
||||||
@@ -169,6 +169,9 @@
|
|||||||
makePay(id) {
|
makePay(id) {
|
||||||
orderApi.getOrderPayInfo(id).then(res => {
|
orderApi.getOrderPayInfo(id).then(res => {
|
||||||
if (res.code == 20000) {
|
if (res.code == 20000) {
|
||||||
|
if(res.data.secondChannelCode === 'SQ' && res.data.sqSiteBelong === 'JKJY') {
|
||||||
|
res.data.listTag = '集卡加油'
|
||||||
|
}
|
||||||
uni.setStorageSync('orderMade', res.data)
|
uni.setStorageSync('orderMade', res.data)
|
||||||
uni.setStorageSync('oilItem', res.data)
|
uni.setStorageSync('oilItem', res.data)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@@ -242,9 +245,9 @@
|
|||||||
|
|
||||||
|
|
||||||
tabSelectUrea(value,i) {
|
tabSelectUrea(value,i) {
|
||||||
console.log(value,'1564155555666666666666666666')
|
// console.log(value,'1564155555666666666666666666')
|
||||||
this.list = []
|
this.list = []
|
||||||
console.log(this.list)
|
// console.log(this.list)
|
||||||
this.currentPage = 1
|
this.currentPage = 1
|
||||||
this.UreaTabCur = i
|
this.UreaTabCur = i
|
||||||
this.ativeUrea = value
|
this.ativeUrea = value
|
||||||
|
|||||||
Reference in New Issue
Block a user