From 7f02dffebeafc7a19b42531655ee73dce29bde30 Mon Sep 17 00:00:00 2001 From: zhouhefeng Date: Mon, 10 Mar 2025 20:08:15 +0800 Subject: [PATCH] commit --- .../MemberPaymentMineController.java | 6 +- .../views/platform/membercost/mine/index.html | 56 ++++++++++--------- 2 files changed, 34 insertions(+), 28 deletions(-) diff --git a/src/main/java/io/v/nutz/zhgh/memberCost/controller/MemberPaymentMineController.java b/src/main/java/io/v/nutz/zhgh/memberCost/controller/MemberPaymentMineController.java index 3e46303..4ba5373 100644 --- a/src/main/java/io/v/nutz/zhgh/memberCost/controller/MemberPaymentMineController.java +++ b/src/main/java/io/v/nutz/zhgh/memberCost/controller/MemberPaymentMineController.java @@ -90,7 +90,7 @@ public class MemberPaymentMineController { @RequiresPermissions("member.payment.mine") public Object pcOrderPay(Integer paymentMoney) { WxPayNeedParamVo paramVo = new WxPayNeedParamVo(); - paramVo.setDescription("会费缴纳支付"); + paramVo.setDescription(ShiroUtil.getPlatformUsername() + "会费缴纳支付"); paramVo.setAttach(""); paramVo.setAmount(new Amount().setTotal(paymentMoney)); return wxPayCommonService.nativePay(paramVo); @@ -100,8 +100,8 @@ public class MemberPaymentMineController { @At @RequiresPermissions("member.payment.mine") public Object getIsPay(String paymentInfoId) { - MemberPaymentInfo info = memberPaymentService.dao().fetch(MemberPaymentInfo.class, + int count = memberPaymentService.dao().count(MemberPaymentInfo.class, Cnd.where("id", "=", paymentInfoId).and("isPayment", "=", 1)); - return Result.success(info); + return Result.success().addData(count); } } diff --git a/src/main/resources/views/platform/membercost/mine/index.html b/src/main/resources/views/platform/membercost/mine/index.html index 21a7412..6e97877 100644 --- a/src/main/resources/views/platform/membercost/mine/index.html +++ b/src/main/resources/views/platform/membercost/mine/index.html @@ -79,9 +79,6 @@ layout("/layouts/platform.html"){ 缴费 - 缴费 - @@ -167,28 +164,33 @@ layout("/layouts/platform.html"){
- -
-
- +
+
+
+
+ +
+
+ 支付成功! +
+
-
支付成功!
+ + {{formData.tradingOrderNo}} + + +
¥ {{formData.paymentMoney}} +
+
- - {{viewInfo.tradingOrderNo}} - - -
¥ {{viewInfo.paymentMoney}}
-
-
关 闭 - 下一步
@@ -249,14 +251,15 @@ layout("/layouts/platform.html"){ const data = JSON.parse(resp.data) this.$nextTick(() => { $("#qrcode").html("") - $("#qrcode").qrcode({ //设置css - render: "canvas", //二维码的生成方式 - width: $("#qrcode").width(), //生成二维码的宽度 - height: $("#qrcode").width(), //生成二维码的高度 + $("#qrcode").qrcode({ + render: "canvas", + width: $("#qrcode").width(), + height: $("#qrcode").width(), text: data.code_url, - correctLevel: 3 //容错级别,默认为2,最高为3,为了让用户扫码最快,容错级别应当设为最低 + correctLevel: 3 }) }) + this.formData.tradingOrderNo = data.tradingOrderNo await this.getIsPay() } this.qrcodeLoading = false @@ -267,12 +270,14 @@ layout("/layouts/platform.html"){ const resp = await $.get(loc() + "/getIsPay", { paymentInfoId: this.formData.paymentInfoId }) if (resp.code === 0) { if (resp.data) { - this.payInfo = resp.data this.payActive = 3 + this.submitLoading = true clearInterval(this.intervalTimer) + setTimeout(() => { + this.submitLoading = false + }, 1500) } } - }, 4000) }, changePayModeValue() { @@ -282,6 +287,7 @@ layout("/layouts/platform.html"){ this.$set(this.formData, "paymentMoney", parseFloat((paymentMoney * 0.005 * this.formData.paymentMonth).toFixed(2))) }, openPay(row) { + this.payActive = 0 const payStandards = JSON.parse(row.payStandards) const payStandard = payStandards.find(p => p.payPersonnel === row.payPersonnel && p.personType === row.personType) this.$set(this.formData, "paymentMonth", row.paymentMonth)