merge master
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
<view class="text-center padding-sm">
|
||||
<view class="text-lg">
|
||||
请提醒加油员使用
|
||||
<text class="text-red padding-left-xs padding-right-xs">“{{showtitles}}”</text>
|
||||
<text class="text-blues padding-left-xs padding-right-xs">“{{showtitles}}”</text>
|
||||
进行订单核实
|
||||
</view>
|
||||
</view>
|
||||
<scroll-view scroll-x class=" nav text-center">
|
||||
<view class="cu-item" v-for="(item,index) in channelList" v-if="index==activeCur" :class="index==activeCur?'text-red cur':''" :key="item.channelId"
|
||||
<view class="cu-item" v-for="(item,index) in channelList" v-if="index==activeCur" :class="index==activeCur?'text-blues cur':''" :key="item.channelId"
|
||||
@tap="tabSelect" :data-id="index" :data-channel-code="item.channelCode">
|
||||
<image class="site-icon margin-right-sm" :src="imgURL+'site-'+item.channelCode+'.png'" mode="widthFix">
|
||||
</image>
|
||||
@@ -20,12 +20,12 @@
|
||||
<view class="cu-list menu text-left">
|
||||
<view class="cu-item" v-for="(itemx,index) in oilSitePriceDetailsVo" :key="index" v-if="itemx.sitePrice>0">
|
||||
<label class="flex justify-between align-center flex-sub">
|
||||
<radio class="round red" :class="radio=='radio' + index?'checked':''" :checked= " radio ==index?true : false" :value="index"></radio>
|
||||
<radio class="round blue" :class="radio=='radio' + index?'checked':''" :checked= " radio ==index?true : false" :value="index"></radio>
|
||||
<text class="cu-tag my-tag line-red text-lg">
|
||||
惠
|
||||
</text>
|
||||
<text class="text-bold text-black text-lg">{{itemx.oilProductCode}}</text>
|
||||
<text class="text-bold text-red text-lg">¥{{itemx.sitePrice!=0?itemx.sitePrice:'-.--'}}/L</text>
|
||||
<text class="text-bold text-blues text-lg">¥{{itemx.sitePrice!=0?itemx.sitePrice:'-.--'}}/L</text>
|
||||
<text class="text-delete">¥{{itemx.oilSitePrice}}/L</text>
|
||||
<text class="text-sm">预计每100L节省{{(100*(itemx.oilSitePrice - itemx.sitePrice))|moneyFormat}}元</text>
|
||||
</label>
|
||||
@@ -39,9 +39,9 @@
|
||||
<view class="padding-top-sm">
|
||||
<view class="grid col-5 ">
|
||||
<view v-for="(item,index) in checkBar" class="padding-xs" :key="index">
|
||||
<button class="cu-btn red block" :class="item.checked?'bg-blue':'line-red'" @tap="ChooseBar" :data-value="item.value">
|
||||
<button class="cu-btn red block" :class="item.checked?'bg-blue':'line-blues'" @tap="ChooseBar" :data-value="item.value">
|
||||
{{item.name}}
|
||||
<view class="cu-tag sm round" :class="item.checked?'bg-white text-red':'bg-blue'" v-if="item.hot">HOT</view>
|
||||
<view class="cu-tag sm round" :class="item.checked?'bg-white text-blues':'bg-blue'" v-if="item.hot">HOT</view>
|
||||
</button>
|
||||
|
||||
</view>
|
||||
@@ -107,9 +107,9 @@
|
||||
</view>
|
||||
<view class="grid col-5 padding-sm">
|
||||
<view v-for="(item,index) in checkMoney" class="padding-xs" :key="index">
|
||||
<button class="cu-btn red block" style=" padding: 0;" :class="item.checked?'bg-blue':'line-red'" @tap="ChooseCheckMoney(item.value)" :data-value="item.value">
|
||||
<button class="cu-btn blue block" style=" padding: 0;" :class="item.checked?'bg-blue':'line-blues'" @tap="ChooseCheckMoney(item.value)" :data-value="item.value">
|
||||
{{item.name}}¥
|
||||
<view class="cu-tag sm round" :class="item.checked?'bg-white text-red':'bg-blue'" v-if="item.hot">HOT</view>
|
||||
<view class="cu-tag sm round" :class="item.checked?'bg-white text-blues':'bg-blue'" v-if="item.hot">HOT</view>
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -137,7 +137,7 @@
|
||||
<view v-for="(item,index) in checkVol" class="padding-xs" :key="index">
|
||||
<button class="cu-btn red block" :class="item.checked?'bg-blue':'line-red'" @tap="ChooseCheckVol" :data-value="item.value">
|
||||
{{item.name}}
|
||||
<view class="cu-tag sm round" :class="item.checked?'bg-white text-red':'bg-blue'" v-if="item.hot">HOT</view>
|
||||
<view class="cu-tag sm round" :class="item.checked?'bg-white text-blues':'bg-blue'" v-if="item.hot">HOT</view>
|
||||
</button>
|
||||
|
||||
</view>
|
||||
@@ -164,7 +164,7 @@
|
||||
<view class="margin cu-list pay-bar menu radius solid-top solid-bottom solid-left">
|
||||
<view class="cu-item ">
|
||||
<view class="">
|
||||
合计:<text class="text-red">{{realMoney>0?realMoney:'xxx.x'|moneyFormat}}元</text>
|
||||
合计:<text class="text-blues">{{realMoney>0?realMoney:'xxx.x'|moneyFormat}}元</text>
|
||||
</view>
|
||||
<view class="" @tap="showOrderMsg">
|
||||
明细<text class="cuIcon-unfold padding-left-xs"></text>
|
||||
@@ -181,8 +181,8 @@
|
||||
<view class="margin cu-list pay-bar menu radius solid-top solid-bottom solid-left">
|
||||
<view class="cu-item ">
|
||||
<view class="">
|
||||
合计:<text class="text-red fr" v-if="activeChannelCode!='TY'">{{realMoney>0?realMoney:'xxx.x'|moneyFormat}}</text>
|
||||
<text class="text-red fr" v-else>{{ty.realMoney>0?ty.realMoney-tyRes.depreciateAmount:'xxx.x'|moneyFormat}}</text>
|
||||
合计:<text class="text-blues fr" v-if="activeChannelCode!='TY'">{{realMoney>0?realMoney:'xxx.x'|moneyFormat}}</text>
|
||||
<text class="text-blues fr" v-else>{{ty.realMoney>0?ty.realMoney-tyRes.depreciateAmount:'xxx.x'|moneyFormat}}</text>
|
||||
</view>
|
||||
<view class="" @tap="showOrderMsg">
|
||||
明细<text class="cuIcon-unfold padding-left-xs"></text>
|
||||
@@ -200,7 +200,7 @@
|
||||
<view class="cu-bar bg-white justify-end">
|
||||
<view class="content">订单明细</view>
|
||||
<view class="action" @tap="showOrder=''">
|
||||
<text class="cuIcon-close text-red"></text>
|
||||
<text class="cuIcon-close text-blues"></text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bg-white dashed-top">
|
||||
@@ -224,7 +224,7 @@
|
||||
</view>
|
||||
<view class="padding-tb-xs text-left">
|
||||
星油优惠:
|
||||
<text class="text-red fr">{{discount>0?discount:'xxx.x'|moneyFormat}}</text>
|
||||
<text class="text-blues fr">{{discount>0?discount:'xxx.x'|moneyFormat}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="" v-else>
|
||||
@@ -238,25 +238,25 @@
|
||||
</view>
|
||||
<view class="padding-tb-xs text-left">
|
||||
直降金额:
|
||||
<text class="text-red fr">{{tyRes.depreciateAmount>0?tyRes.depreciateAmount:'xxx.x'|moneyFormat}}</text>
|
||||
<text class="text-blues fr">{{tyRes.depreciateAmount>0?tyRes.depreciateAmount:'xxx.x'|moneyFormat}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="padding-tb-xs text-left">
|
||||
优惠券:
|
||||
<text class="text-red fr">{{'----'}}</text>
|
||||
<text class="text-blues fr">{{'----'}}</text>
|
||||
</view>
|
||||
<view class="padding-tb-xs text-left">
|
||||
合计:
|
||||
<text class="text-red fr" v-if="activeChannelCode!='TY'">{{realMoney>0?realMoney:'xxx.x'|moneyFormat}}</text>
|
||||
<text class="text-red fr" v-else>{{ty.realMoney>0?ty.realMoney:'xxx.x'|moneyFormat}}</text>
|
||||
<text class="text-blues fr" v-if="activeChannelCode!='TY'">{{realMoney>0?realMoney:'xxx.x'|moneyFormat}}</text>
|
||||
<text class="text-blues fr" v-else>{{ty.realMoney>0?ty.realMoney:'xxx.x'|moneyFormat}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="cu-list margin pay-bar menu radius solid-top solid-bottom solid-left">
|
||||
<view class="cu-item ">
|
||||
<view class="">
|
||||
合计:<text class="text-red" v-if="activeChannelCode!='TY'">{{realMoney>0?realMoney:'xxx.x'|moneyFormat}}元</text>
|
||||
<text class="text-red" v-else>{{ty.realMoney>0?ty.realMoney-tyRes.depreciateAmount:'xxx.x'|moneyFormat}}元</text>
|
||||
合计:<text class="text-blues" v-if="activeChannelCode!='TY'">{{realMoney>0?realMoney:'xxx.x'|moneyFormat}}元</text>
|
||||
<text class="text-blues" v-else>{{ty.realMoney>0?ty.realMoney-tyRes.depreciateAmount:'xxx.x'|moneyFormat}}元</text>
|
||||
</view>
|
||||
<view class="" @tap="showOrder=''">
|
||||
明细<text class="cuIcon-fold padding-left-xs"></text>
|
||||
@@ -274,7 +274,7 @@
|
||||
<view class="cu-bar bg-white justify-end">
|
||||
<view class="content">车牌号非必填</view>
|
||||
<view class="action" @tap="showPlate=''">
|
||||
<text class="cuIcon-close text-red"></text>
|
||||
<text class="cuIcon-close text-blues"></text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -587,7 +587,8 @@
|
||||
payType : 'CUSTOMER_ACTIVE',
|
||||
userType:'0',
|
||||
xoilAmountGun:e ,
|
||||
priceId:this.activeSitePrice
|
||||
priceId:this.activeSitePrice,
|
||||
clientBelong: "ZHONGPIN"
|
||||
}
|
||||
this.xoilAmountGun = e
|
||||
oilSiteApi.getOrderDiscountInfo(number).then( res=>{
|
||||
@@ -635,7 +636,8 @@
|
||||
payType : 'CUSTOMER_ACTIVE',
|
||||
userType:'0',
|
||||
xoilAmountGun:e.detail.value,
|
||||
priceId:this.activeSitePrice
|
||||
priceId:this.activeSitePrice,
|
||||
clientBelong: "ZHONGPIN"
|
||||
}
|
||||
this.xoilAmountGun = e.detail.value
|
||||
oilSiteApi.getOrderDiscountInfo(number).then( res=>{
|
||||
@@ -896,6 +898,7 @@
|
||||
'version':1,
|
||||
'xoilAmountGun':this.vol
|
||||
}
|
||||
console.log(orderData,'orderDataorderDataorderDataorderDataorderDataorderDataorderDataorderData');
|
||||
oilOrderApi.createOrder(orderData).then(res => {
|
||||
if (res.code == 20000) {
|
||||
clearTimeout(this.timer)
|
||||
@@ -919,7 +922,10 @@
|
||||
// 获取渠道下价格等信息
|
||||
getNewSitePrice(channelId) {
|
||||
this.oilSitePriceDetailsVo = []
|
||||
oilSiteApi.getNewSitePrice(channelId).then(res => {
|
||||
oilSiteApi.getNewSitePriceZp({
|
||||
channelId:channelId,
|
||||
clientBelong: "ZHONGPIN"
|
||||
}).then(res => {
|
||||
if (res.code == 20000) {
|
||||
this.plateNumbers = res.data.plateNumbers
|
||||
this.oilSitePriceDetailsVo = res.data.oilSitePriceDetailsVo;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="padding-top">
|
||||
<scroll-view scroll-x class=" nav text-center">
|
||||
<view class="cu-item" v-for="(item,index) in channelList" :class="index==TabCur?'text-red cur':''" :key="item.channelId"
|
||||
<view class="cu-item" v-for="(item,index) in channelList" :class="index==TabCur?'text-blues cur':''" :key="item.channelId"
|
||||
@tap="tabSelect" :data-id="index">
|
||||
<image class="site-icon margin-right-sm" :src="imgURL+'site-'+item.channelCode+'.png'" mode="widthFix">
|
||||
</image>
|
||||
@@ -16,7 +16,7 @@
|
||||
惠
|
||||
</text>
|
||||
<text class="text-bold text-black text-lg">{{itemx.oilProductCode}}</text>
|
||||
<text class="text-bold text-red text-lg">¥{{itemx.sitePrice==0?'-.--':itemx.sitePrice}}/L</text>
|
||||
<text class="text-bold text-blues text-lg">¥{{itemx.sitePrice==0?'-.--':itemx.sitePrice}}/L</text>
|
||||
<text class="text-delete">¥{{itemx.oilSitePrice}}/L</text>
|
||||
<text class="text-xs ">预计每100L节省{{(100*(itemx.oilSitePrice - itemx.sitePrice))|moneyFormat}}元</text>
|
||||
<!-- <text class="text-gray text-delete">$市场价</text>
|
||||
@@ -89,6 +89,10 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
},
|
||||
|
||||
methods: {
|
||||
tabSelect(e) {
|
||||
this.TabCur = e.currentTarget.dataset.id;
|
||||
|
||||
@@ -112,7 +112,8 @@
|
||||
getSiteInfo(id) {
|
||||
let data2 = {
|
||||
...uni.getStorageSync('location'),
|
||||
siteId: id
|
||||
siteId: id,
|
||||
clientBelong: "ZHONGPIN"
|
||||
}
|
||||
oilSiteApi.getSiteDetails(data2).then(res => {
|
||||
if (res.code == 20000) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<view>
|
||||
<cu-custom class="main-totextbar bg-main-oil" :isBack="true" bgColor="bg-main-oil">
|
||||
<block slot="backText">返回</block>
|
||||
<block slot="content">佰川收银台</block>
|
||||
<block slot="content">中品收银台</block>
|
||||
</cu-custom>
|
||||
<view class="">
|
||||
<view class="padding-xl text-center">
|
||||
@@ -146,16 +146,16 @@
|
||||
<view class="padding-tb-xs text-left">
|
||||
星油优惠:
|
||||
<text
|
||||
class="text-red fr">{{order.oilDiscountAmount>0?order.oilDiscountAmount:'xxx.x'|moneyFormat}}</text>
|
||||
class="text-blues fr">{{order.oilDiscountAmount>0?order.oilDiscountAmount:'xxx.x'|moneyFormat}}</text>
|
||||
</view>
|
||||
<view class="padding-tb-xs text-left">
|
||||
优惠券:
|
||||
<text
|
||||
class="text-red fr">{{order.couponDiscountAmount>0?order.couponDiscountAmount:'xxx.x'|moneyFormat}}</text>
|
||||
class="text-blues fr">{{order.couponDiscountAmount>0?order.couponDiscountAmount:'xxx.x'|moneyFormat}}</text>
|
||||
</view>
|
||||
<view class="padding-tb-xs text-left">
|
||||
合计:
|
||||
<text class="text-red text-bold text-lg fr">
|
||||
<text class="text-blues text-bold text-lg fr">
|
||||
¥{{order.realAmount>0? moneyIntercept(order.realAmount) :'xxx.x' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -316,9 +316,9 @@
|
||||
orderId: this.order.orderSerialNumber,
|
||||
payClient: 'XOIL_DRIVER_WECHAT_APPLET', //"支付端。安卓XOIL_DRIVER_ANDROID,小程序
|
||||
userIp: (this.userIp?this.userIp:"36.57.160.59") ,
|
||||
merchantNo:'10088997357'
|
||||
merchantNo:'10089027856'
|
||||
}
|
||||
|
||||
console.log(payData,'payDatapayData')
|
||||
oilPayApi.aggregatePay(payData).then(res => {
|
||||
if (res.code == 20000) {
|
||||
uni.requestPayment({
|
||||
@@ -327,10 +327,6 @@
|
||||
success: (res1) => {
|
||||
console.log(res)
|
||||
if (res.code == 20000) {
|
||||
// this.getPayStatus(this.outTradeNo)
|
||||
// this.getLastMoney()
|
||||
// this.getCards()
|
||||
// console.log('success:' + JSON.stringify(res));
|
||||
uni.showToast({
|
||||
title: res.msg
|
||||
})
|
||||
@@ -351,23 +347,9 @@
|
||||
}
|
||||
},
|
||||
fail: function(err) {
|
||||
console.log(res, err, '************')
|
||||
// console.log('fail:' + JSON.stringify(err));
|
||||
}
|
||||
})
|
||||
// uni.showToast({
|
||||
// title: res.msg
|
||||
// })
|
||||
// uni.redirectTo({
|
||||
// url: '/BagStation/pages/makeOrder/payResult?status=success',
|
||||
// fail: (err) => {
|
||||
// console.log(err)
|
||||
// }
|
||||
// })
|
||||
} else {
|
||||
// uni.redirectTo({
|
||||
// url: '/BagStation/pages/makeOrder/payResult?status=fail'
|
||||
// })
|
||||
}
|
||||
|
||||
})
|
||||
@@ -392,7 +374,8 @@
|
||||
"orderSerialNumber": this.order.orderSerialNumber, //类型:String 必有字段 备注:订单编号
|
||||
"payChannel": "BALANCE_PAYMENT", //类型:String 必有字段 备注:支付渠道(BALANCE_PAYMENT:余额支付)
|
||||
"orderMethod": "CUSTOMER_ACTIVE", //类型:String 必有字段 备注:订单产生方式(CUSTOMER_ACTIVE:客户扫码支付:客户扫描油站二维码完成支付)
|
||||
"createSource": "XOIL_DRIVER_WECHAT_APPLET"
|
||||
"createSource": "XOIL_DRIVER_WECHAT_APPLET",
|
||||
merchantNo: '10089027856',
|
||||
}
|
||||
oilOrderApi.payOrder(payData).then(res => {
|
||||
if (res.code == 20000) {
|
||||
|
||||
@@ -273,7 +273,8 @@
|
||||
console.log('进入获取油站信息')
|
||||
let data2 = {
|
||||
...uni.getStorageSync('location'),
|
||||
siteId: id
|
||||
siteId: id,
|
||||
clientBelong: "ZHONGPIN"
|
||||
}
|
||||
oilSiteApi.getSiteDetails(data2).then(res => {
|
||||
console.log('进入获取油站信息getSiteDetails',res)
|
||||
|
||||
Reference in New Issue
Block a user