江投页面
This commit is contained in:
@@ -569,21 +569,16 @@
|
||||
otherUser = uni.getStorageSync('otherUserInfo'),
|
||||
companyId = JSON.parse(uni.getStorageSync('companyCard')).companyId
|
||||
if (otherUser) {
|
||||
// console.log('这里是卡里')
|
||||
this.isOtherUser = true
|
||||
} else {
|
||||
// console.log('这里是非卡力')
|
||||
}
|
||||
console.log('oilItem', oilItem)
|
||||
this.showtitles = oilItem.listTag;
|
||||
this.init()
|
||||
console.log(companyId)
|
||||
this.getCompanyConfig(companyId)
|
||||
},
|
||||
watch: {
|
||||
activeChannelCode: {
|
||||
handler(newval) {
|
||||
// console.log('activeChannelCode')
|
||||
this.oilBar = ''
|
||||
setTimeout(async () => {
|
||||
this.checkBar = (this.typeChenk()) ? await this.dynamic() : this.calcBar()
|
||||
@@ -592,7 +587,6 @@
|
||||
},
|
||||
priceId: {
|
||||
handler(newval) {
|
||||
// console.log('priceId')
|
||||
this.oilBar = ''
|
||||
setTimeout(async () => {
|
||||
this.checkBar = (this.typeChenk()) ? await this.dynamic() : this.calcBar()
|
||||
@@ -628,14 +622,8 @@
|
||||
}
|
||||
},
|
||||
totalMoney() {
|
||||
// // console.log('this.oilSitePriceDetailsVo[this.radio]', this.oilSitePriceDetailsVo[this.radio])
|
||||
if (this.vol > 0 && this.oilSitePriceDetailsVo[this.radio]) {
|
||||
// console.log('+++++++++++')
|
||||
// console.log(this.vol)
|
||||
// console.log(this.oilSitePriceDetailsVo[this.radio])
|
||||
// console.log('+++++++++++')
|
||||
let numb = this.vol * this.oilSitePriceDetailsVo[this.radio].oilSitePrice
|
||||
// console.log('++++++',numb)
|
||||
return this.vol * this.oilSitePriceDetailsVo[this.radio].oilSitePrice
|
||||
}
|
||||
},
|
||||
@@ -767,7 +755,6 @@
|
||||
})
|
||||
},
|
||||
checkMoneyVol(e) {
|
||||
console.log(e)
|
||||
if (e == '') {
|
||||
uni.showToast({
|
||||
title: '请输入金额',
|
||||
@@ -791,14 +778,12 @@
|
||||
}
|
||||
this.xoilAmountGun = e
|
||||
oilSiteApi.getOrderDiscountInfo(number).then(res => {
|
||||
console.log(res)
|
||||
this.realMoney = res.data.payRealAmount
|
||||
this.discount = res.data.oilDiscountAmount
|
||||
this.vlom = res.data.volume
|
||||
})
|
||||
},
|
||||
ChooseCheckMoney(e) {
|
||||
console.log(e)
|
||||
this.vol = e + ''
|
||||
this.checkMoneyVol(this.vol)
|
||||
},
|
||||
@@ -840,7 +825,6 @@
|
||||
}
|
||||
this.xoilAmountGun = e.detail.value
|
||||
oilSiteApi.getOrderDiscountInfo(number).then(res => {
|
||||
console.log(res)
|
||||
this.realMoney = res.data.payRealAmount
|
||||
this.discount = res.data.oilDiscountAmount
|
||||
this.vlom = res.data.volume
|
||||
@@ -868,8 +852,6 @@
|
||||
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
||||
// sourceType: ['album'], //从相册选择
|
||||
success: function(res) {
|
||||
console.log(res)
|
||||
console.log('进入1')
|
||||
const JSESSIONID = utils.uuid()
|
||||
uni.uploadFile({
|
||||
// https://www.xingoil.com/adminapi
|
||||
@@ -892,8 +874,6 @@
|
||||
'token': utils.md5Salt(JSESSIONID)
|
||||
},
|
||||
success(e) {
|
||||
console.log('进入2')
|
||||
console.log(e)
|
||||
let obj = JSON.parse(e.data),
|
||||
url = obj.data.publicUrl
|
||||
if (type == 'car') {
|
||||
@@ -901,17 +881,14 @@
|
||||
plateNumberImage: obj.data.publicUrl
|
||||
}
|
||||
_that.PlateNumberImages = url
|
||||
console.log('这里是司机车牌', url)
|
||||
_that.isPlateNumber = false
|
||||
oilSiteApi.plateNumberRecognition(data).then((res) => {
|
||||
let obj = JSON.parse(res.data)
|
||||
console.log(obj)
|
||||
_that.plateNumber = obj.NUMBER
|
||||
})
|
||||
} else {
|
||||
_that.refuellerImages = url
|
||||
_that.isUefueller = false
|
||||
console.log('这里是油站图片', _that.refuellerImages, url)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1079,7 +1056,6 @@
|
||||
},
|
||||
checkInfo() {
|
||||
this.tsetPlate(this.plateNumber ? this.plateNumber : this.plateNumberSel)
|
||||
console.log(this.plateNumber)
|
||||
if (!this.testPlateResult) {
|
||||
this.plateNumber = ''
|
||||
uni.showToast({
|
||||
@@ -1224,14 +1200,11 @@
|
||||
this.showtitle = true
|
||||
return
|
||||
}
|
||||
// console.log('这里是beforeMake end')
|
||||
this.makerOrder()
|
||||
},
|
||||
// 下单
|
||||
makerOrder() {
|
||||
// console.log('这里是beforeMake')
|
||||
let otherUser = uni.getStorageSync('otherUserInfo')
|
||||
// console.log(otherUser, '+++++++++++++++')
|
||||
if (otherUser) {
|
||||
// console.log('这里是卡力+++++++++++')
|
||||
let PlateNumberImages = this.PlateNumberImages,
|
||||
@@ -1327,7 +1300,6 @@
|
||||
}
|
||||
|
||||
}
|
||||
// console.log(orderData)
|
||||
let location = uni.getStorageSync('location') || {
|
||||
longitude: '',
|
||||
latitude: ''
|
||||
@@ -1343,7 +1315,6 @@
|
||||
}))) || res.data
|
||||
if (otherUser) {
|
||||
// console.log('这里是卡力订单创建')
|
||||
// console.log(data)
|
||||
uni.setStorageSync('orderMade', data)
|
||||
uni.redirectTo({
|
||||
url: '/BagStation/pages/SeparateProcess/orderPaying?payMethod=' + res.data
|
||||
@@ -1369,7 +1340,6 @@
|
||||
getNewSitePrice(channelId) {
|
||||
this.oilSitePriceDetailsVo = []
|
||||
oilSiteApi.getNewSitePrice(channelId).then(res => {
|
||||
console.log('getNewSitePrice ++++= ', res)
|
||||
if (res.code == 20000) {
|
||||
this.radio = 0
|
||||
this.plateNumbers = res.data.plateNumbers
|
||||
@@ -1385,7 +1355,6 @@
|
||||
pickPlate(e) {
|
||||
this.plateIndex = e.detail.value
|
||||
this.plateNumber = this.plateNumberSel
|
||||
console.log(this.plateIndex, this.plateNumber)
|
||||
},
|
||||
showOrderMsg() {
|
||||
this.showOrder = 'show'
|
||||
@@ -1403,7 +1372,6 @@
|
||||
}
|
||||
},
|
||||
ChooseBar(e) {
|
||||
console.log(e)
|
||||
let items = this.checkBar;
|
||||
let values = e.value;
|
||||
this.oilBar = values
|
||||
@@ -1416,7 +1384,6 @@
|
||||
}
|
||||
},
|
||||
changePrice(e) {
|
||||
console.log(e)
|
||||
this.radio = e.detail.value
|
||||
this.ty.realMoney = null
|
||||
this.tyRes.liter = 0
|
||||
@@ -1424,12 +1391,9 @@
|
||||
this.activeSitePrice = this.oilSitePriceDetailsVo[this.radio].priceId
|
||||
this.realMoney = '--'
|
||||
this.xoilAmountGun = ''
|
||||
// // console.log(this.radio)
|
||||
// // console.log(this.oilSitePriceDetailsVo[this.radio])
|
||||
},
|
||||
tabSelect(e) {
|
||||
this.activeChannelCode = e.currentTarget.dataset.channelCode;
|
||||
// console.log('ty activeChannelCode', this.activeChannelCode)
|
||||
this.activeCur = e.currentTarget.dataset.id;
|
||||
this.scrollLeft = (e.currentTarget.dataset.id - 1) * 60
|
||||
}
|
||||
@@ -1437,9 +1401,7 @@
|
||||
filters: {
|
||||
moneyIntercept(value) {
|
||||
if (value != 'xxx.x') {
|
||||
console.log(value)
|
||||
let valus = (parseInt(value * 100) / 100).toFixed(2)
|
||||
console.log(valus)
|
||||
return valus
|
||||
} else {
|
||||
return value
|
||||
@@ -1479,18 +1441,6 @@
|
||||
}
|
||||
},
|
||||
moneyFormat(value) {
|
||||
console.log(value)
|
||||
// if (value != 'xxx.x') {
|
||||
// console.log('old:',value)
|
||||
// let realAmount = Math.floor(value * 100) / 100
|
||||
// console.log('new:',realAmount)
|
||||
// return realAmount
|
||||
// } else {
|
||||
// // console.log('old:',value)
|
||||
// let realAmount = Math.floor(value * 100) / 100
|
||||
// // console.log('new:',realAmount)
|
||||
// return realAmount
|
||||
// }
|
||||
if (value != 'xxx.x') {
|
||||
let realAmount = (parseInt(value * 100) / 100).toFixed(2)
|
||||
return realAmount
|
||||
|
||||
Reference in New Issue
Block a user