From 827cb66e35376351e3c3abeda6dab3eab0f859f0 Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Wed, 29 May 2024 17:24:00 +0800 Subject: [PATCH] bug --- .../MemberRecharge/MemberRecharge.vue | 66 +++++++++++++++++-- 1 file changed, 59 insertions(+), 7 deletions(-) diff --git a/pos-uni/pagesHome/MemberRecharge/MemberRecharge.vue b/pos-uni/pagesHome/MemberRecharge/MemberRecharge.vue index 4309839da..044a67053 100644 --- a/pos-uni/pagesHome/MemberRecharge/MemberRecharge.vue +++ b/pos-uni/pagesHome/MemberRecharge/MemberRecharge.vue @@ -43,7 +43,13 @@ - {{item}} + {{item.rechargeBalance}}元 + + + + + + @@ -56,7 +62,7 @@ 微信扫码支付 - + @@ -69,7 +75,7 @@ 支付宝扫码支付 - + @@ -82,7 +88,7 @@ 银联扫码支付 - + @@ -95,7 +101,7 @@ 现金支付 - + @@ -131,6 +137,12 @@ isChooseUser: false, userId: "", userInfo: "", + order: { + paymentType: "WECHAT" + }, + value: "", + realyPayBills: 0, + authCode: "", } }, onLoad(e) { @@ -143,6 +155,7 @@ onShow() { // this.actList = ["1", "1", "1", "1", "1", ] // this.status = "nomore" 底部刷新结束 + this.getRechargeAmount() }, onPullDownRefresh() { console.log("刷新"); @@ -158,9 +171,26 @@ headers }, methods: { - getmemberId(num) { + // 自定义金额 + custom(val) { + this.order.amount = val + }, + // 获取充值金额列表 + getRechargeAmount() { + request({ + url: 'business/marketingActivity/cardFuelDiesel', + method: 'get', + params: { + pageNo: 1, + pageSize: 10000 + } + }).then((res) => { + this.numList = res.data.records + }) + }, + getmemberId(num, payType) { this.memberId = num - console.log(this.memberId); + this.order.paymentType = payType }, // 获取用户信息 getUser() { @@ -180,6 +210,28 @@ this.listindex = index }, govipjs() { + let actualPayment = 0 + if (!this.userInfo) { + uni.showToast({ + title: "请先选择会员", + icon: "none" + }) + } + if (this.order.paymentType == "CASH") actualPayment = this.authCode + // 会员id 会员名字会员手机号码 + this.order.mtUserId = this.userInfo.id + this.order.name = this.userInfo.name + this.order.mobile = this.userInfo.mobile + // 支付码 + this.order.authCode = this.authCode + this.order.realyPayBills = this.realyPayBills + this.order.actualPayment = actualPayment + // if (!this.userInfo){ + // uni.showToast({ + // title:"请先选择会员", + // icon:"none" + // }) + // } // uni.navigateTo({ // url: '/pagesHome/MemberRecharge/list' // })