This commit is contained in:
齐天大圣 2024-06-04 16:14:29 +08:00
parent 5d76fb1352
commit 7160b12ab4
2 changed files with 16 additions and 18 deletions

View File

@ -190,10 +190,10 @@
}).then((res) => { }).then((res) => {
this.numList = res.data.records this.numList = res.data.records
this.order.amount = this.numList.rechargeBalance this.order.amount = this.numList[0].rechargeBalance
this.order.rechargeBalance = this.numList.rechargeBalance this.order.rechargeBalance = this.numList[0].rechargeBalance
this.order.points = this.numList.points this.order.points = this.numList[0].points
this.realyPayBills = this.numList.rechargeBalance this.realyPayBills = this.numList[0].rechargeBalance
}) })
}, },
getmemberId(num, payType) { getmemberId(num, payType) {

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="content"> <view class="content">
<view class="container" v-if="oilOrder"> <view class="container" v-if="oilOrder && type!=1">
<headers :titles="titles"><u-icon name="arrow-left" color="#fff" size="22"></u-icon></headers> <headers :titles="titles"><u-icon name="arrow-left" color="#fff" size="22"></u-icon></headers>
<view class="top_"> <view class="top_">
<image src="../../static/imgs/zfcg.png" mode=""></image> <image src="../../static/imgs/zfcg.png" mode=""></image>
@ -35,32 +35,28 @@
<view class="h-size" v-if="oilOrder.payType=='APPLET_CODE'">小程序码支付</view> <view class="h-size" v-if="oilOrder.payType=='APPLET_CODE'">小程序码支付</view>
</view> </view>
</view> </view>
<view class="container" v-if="balanceOrder"> <view class="container" v-if="balanceOrder && type==1">
<headers :titles="titles"><u-icon name="arrow-left" color="#fff" size="22"></u-icon></headers> <headers :titles="titles"><u-icon name="arrow-left" color="#fff" size="22"></u-icon></headers>
<!-- <view class="top_"> <view class="top_">
<image src="../../static/imgs/zfcg.png" mode=""></image> <image src="../../static/imgs/zfcg.png" mode=""></image>
</view> </view>
<view class="title_">支付成功</view> <view class="title_">支付成功</view>
<!-- <view class="top_" v-if="oilOrder.orderStatus!='paid'"> <view class="b-bs">
<image src="../../static/imgs/zfsb.png" mode=""></image>
</view>
<view class="title_" v-if="oilOrder.orderStatus!='paid'">支付失败</view> -->
<!-- <view class="b-bs">
<view class="h-size">应收金额</view> <view class="h-size">应收金额</view>
<view class="red-size">{{balanceOrder.orderAmount}}</view> <view class="red-size">{{balanceOrder.payAmount}}</view>
</view> </view>
<view class="b-bs"> <view class="b-bs">
<view class="h-size">优惠金额</view> <view class="h-size">优惠金额</view>
<view class="red-size">{{balanceOrder.discountAmount}}</view> <view class="red-size">{{balanceOrder.discount}}</view>
</view> </view>
<view class="b-bs"> <view class="b-bs">
<view class="h-size">实收金额</view> <view class="h-size">实收金额</view>
<view class="red-size">{{balanceOrder.payAmount}}</view> <view class="red-size">{{balanceOrder.payAmount}}</view>
</view> </view>
<view class="b-bs"> <!-- <view class="b-bs">
<view class="h-size">储值卡消费金额</view> <view class="h-size">储值卡消费金额</view>
<view class="red-size">{{balanceOrder.balanceAmount}}</view> <view class="red-size">{{balanceOrder.balanceAmount}}</view>
</view> </view> -->
<view class="b-bs"> <view class="b-bs">
<view class="h-size">支付方式</view> <view class="h-size">支付方式</view>
<view class="h-size" v-if="balanceOrder.payType=='ALIPAY'">支付宝支付</view> <view class="h-size" v-if="balanceOrder.payType=='ALIPAY'">支付宝支付</view>
@ -68,7 +64,7 @@
<view class="h-size" v-if="balanceOrder.payType=='UNIONPAY'">银联二维码支付</view> <view class="h-size" v-if="balanceOrder.payType=='UNIONPAY'">银联二维码支付</view>
<view class="h-size" v-if="balanceOrder.payType=='CASH'">现金支付</view> <view class="h-size" v-if="balanceOrder.payType=='CASH'">现金支付</view>
<view class="h-size" v-if="balanceOrder.payType=='APPLET_CODE'">小程序码支付</view> <view class="h-size" v-if="balanceOrder.payType=='APPLET_CODE'">小程序码支付</view>
</view> --> </view>
</view> </view>
<view class="p-bottom"> <view class="p-bottom">
<view class="anniu" @click="goback()"> <view class="anniu" @click="goback()">
@ -89,10 +85,12 @@
orderNo: "", orderNo: "",
oilOrder: {}, oilOrder: {},
balanceOrder: {}, balanceOrder: {},
type: "",
} }
}, },
onLoad(e) { onLoad(e) {
if (e.type && e.type == 1) { if (e.type && e.type == 1) {
this.type = e.type
this.orderNo = e.orderNo this.orderNo = e.orderNo
this.getBalanceOrder() this.getBalanceOrder()
} else { } else {
@ -134,7 +132,7 @@
}, },
getBalanceOrder() { getBalanceOrder() {
request({ request({
url: 'business/marketingActivity/activeExchange/cardValueOrders/getOneByOrderNos', url: 'business/marketingActivity/activeExchange/cardValueOrders/getOneByOrderNo',
method: 'post', method: 'post',
data: { data: {
orderNo: this.orderNo orderNo: this.orderNo