From 3629555911a687476918217716cb83d6897abe0f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=84=E6=B3=BD=E7=BE=A4?= <1986070059@qq.com>
Date: Thu, 15 Jan 2026 08:36:11 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E4=BB=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mine_order_info/mine_order_info.vue | 856 +++++++++---------
.../mine_purse_exchange.vue | 155 ++--
.../mine_purse_recharge.vue | 380 ++++----
.../nine-grid/components/ResultModal.vue | 4 +-
pages/rwa_package/account/withdraw.vue | 17 +
.../qrcode-preview.vue | 0
.../rwa_withdrawal_log/rwa_withdrawal_log.vue | 515 +++++------
utils/payUtils.js | 189 ++--
8 files changed, 1098 insertions(+), 1018 deletions(-)
rename pages/rwa_package/{rwa_withdrawal_log => component}/qrcode-preview.vue (100%)
diff --git a/pages/mine_package/mine_order_info/mine_order_info.vue b/pages/mine_package/mine_order_info/mine_order_info.vue
index 6665967..3c38b8d 100644
--- a/pages/mine_package/mine_order_info/mine_order_info.vue
+++ b/pages/mine_package/mine_order_info/mine_order_info.vue
@@ -1,230 +1,233 @@
-
-
-
-
-
-
-
- 需付款:
- ¥
- {{
+
+
+
+
+
+
+
+ 需付款:
+ ¥
+ {{
orderInfo.sumAmount
}}
- 订单
- {{ formatDate1(orderInfo.expireTime)
- }}
- 自动取消
-
-
- 取消原因:超时未支付
-
-
-
-
-
-
- 订单编号:
- {{
+ 订单
+ {{ formatDate1(orderInfo.expireTime) }}
+ 自动取消
+
+
+ 取消原因:超时未支付
+
+
+
+
+
+
+ 订单编号:
+ {{
orderInfo.orderNum
}}
-
-
-
-
-
-
-
-
-
- {{ orderInfo.name }}
- {{ orderInfo.phone }}
-
-
-
-
- {{ assembleAddress(orderInfo).names }} {{ orderInfo.address }}
-
-
-
+
+
+
+
+
+
+
+
+
+ {{ orderInfo.name }}
+ {{ orderInfo.phone }}
+
+
+
+
+ {{ assembleAddress(orderInfo).names }} {{ orderInfo.address }}
+
+
+
-
-
-
-
-
-
-
-
-
-
- {{ pItem.title }}
- {{ pItem.goodsSpece }}
-
-
- {{ dItem }}
-
-
-
-
- ¥{{ pItem.goodsAmount }}
- x{{ pItem.buyNum }}
-
-
-
-
- 运单号:
-
- {{ pItem.expressNo }}
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ {{ pItem.title }}
+ {{ pItem.goodsSpece }}
+
+
+ {{ dItem }}
+
+
+
+
+ ¥{{ pItem.goodsAmount }}
+ x{{ pItem.buyNum }}
+
+
+
+
+ 运单号:
+
+ {{ pItem.expressNo }}
+
+
+
+
+
+
+
+
+
-
-
-
- 商品总价
- ¥{{ orderInfo.sumAmount }}
- 数字积分{{ orderInfo.buyDeductionValue }} +¥{{ orderInfo.sumAmount }}
-
-
- 快递运费
- ¥{{ orderInfo.postage }}
-
+
+
+
+ 商品总价
+ ¥{{ orderInfo.sumAmount }}
+
+
+ 快递运费
+ ¥{{ orderInfo.postage }}
+
+
+ 平台优惠优惠券
+
+ -¥0.00
+
+
+ 应付款
+ ¥{{ orderInfo.sumAmount + orderInfo.postage }}
+
+
-
- 数字积分
- {{ orderInfo.buyDeductionValue }}数字积分
-
-
-
- 平台优惠优惠券
- -¥0.00
-
-
-
- 应付款
- ¥{{ orderInfo.sumAmount + orderInfo.postage }}
-
-
-
-
- 买家留言
- {{ orderInfo.remark }}
-
-
- 配送方式
- 普通快递
-
-
-
- 下单时间
- {{ formatDate(orderInfo.ctdate) }}
-
-
+
+ 下单时间
+ {{ formatDate(orderInfo.ctdate) }}
+
+
-
-
- 您的订单已接入蚂蚁链溯源
- 扫描二维码或复制下方链接查看溯源信息
-
-
- {{
+
+
+ 您的订单已接入蚂蚁链溯源
+ 扫描二维码或复制下方链接查看溯源信息
+
+
+ {{
`https://chaininsight.antdigital.com/search?unionId=2647&projectName=VBGAKNJB&content=${orderInfo.antChainHash}`
}}
-
-
+
+
+
+
-
-
-
-
-
-
-
-
- 支付方式
-
- {{ getValue(wayOption, wayForm.payway) }}
-
-
-
-
-
-
- 去付款
-
- 确认收货
-
-
-
-
-
-
+ ">
+
+
+
+
-
-
-
-
-
-
-
+
+ 支付方式
+
+ {{ getValue(wayOption, wayForm.payway) }}
+
+
+
+
+
+
+ 去付款
+
+
+ 确认收货
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ .data_item_yd {
+ display: flex;
+ justify-content: left;
+ }
+
\ No newline at end of file
diff --git a/pages/mine_package/mine_purse_exchange/mine_purse_exchange.vue b/pages/mine_package/mine_purse_exchange/mine_purse_exchange.vue
index ee0e961..97e0803 100644
--- a/pages/mine_package/mine_purse_exchange/mine_purse_exchange.vue
+++ b/pages/mine_package/mine_purse_exchange/mine_purse_exchange.vue
@@ -25,7 +25,8 @@
目标账户
-
+
@@ -53,87 +54,95 @@
-
+
\ No newline at end of file
diff --git a/pages/mine_package/mine_purse_recharge/mine_purse_recharge.vue b/pages/mine_package/mine_purse_recharge/mine_purse_recharge.vue
index b93dede..0e10a83 100644
--- a/pages/mine_package/mine_purse_recharge/mine_purse_recharge.vue
+++ b/pages/mine_package/mine_purse_recharge/mine_purse_recharge.vue
@@ -46,191 +46,221 @@
-
+
\ No newline at end of file
diff --git a/pages/other_package/nine-grid/components/ResultModal.vue b/pages/other_package/nine-grid/components/ResultModal.vue
index dc4f39d..9bd3866 100644
--- a/pages/other_package/nine-grid/components/ResultModal.vue
+++ b/pages/other_package/nine-grid/components/ResultModal.vue
@@ -3,7 +3,7 @@
-
+
¥ {{ item.parValue }}
@@ -43,7 +43,7 @@ export default {
}
-
+ ._content_item_left_title {
+ font-weight: bold;
+ font-size: 22rpx;
+ color: #000000;
+ margin-bottom: 10rpx;
+ }
+
+ ._content_item_left_amount {
+ text-align: right;
+ }
+
+ ._content_item_left_exchNo {
+ font-size: 20rpx;
+ color: #9e9e9e;
+ margin-bottom: 10rpx;
+ }
+
+ ._content_item_left_val {
+ font-weight: 400;
+ font-size: 24rpx;
+ color: #999999;
+ }
+
+ ._content_item_left_status {
+ font-weight: 400;
+ font-size: 20rpx;
+ text-align: right;
+ }
+ }
+ }
+ }
+
\ No newline at end of file
diff --git a/utils/payUtils.js b/utils/payUtils.js
index 0925595..dff47d8 100644
--- a/utils/payUtils.js
+++ b/utils/payUtils.js
@@ -1,5 +1,4 @@
-import { feedback } from '@/api/payment.js';
-
+import { feedback } from "@/api/payment.js";
/**
* 微信支付
@@ -8,37 +7,66 @@ import { feedback } from '@/api/payment.js';
* @param {Object} orderNum 支付的订单编号
*/
export function appWxpayFun(alipay, orderId, orderNum) {
- const type = alipay.type;
- const orderStr = alipay.orderStr;
- console.log("微信支付---",alipay)
- if (type === "app") {// app
- const orderInfo = {
- "appid": alipay.appId, // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
- "noncestr": alipay.nonceStr, // 随机字符串
- "package": "Sign=WXPay", // 固定值
- "partnerid": alipay.partnerId, // 微信支付商户号
- "prepayid": alipay.prepayId, // 统一下单订单号
- "timestamp": alipay.timeStamp, // 时间戳(单位:秒)
- "sign": alipay.sign // 签名,这里用的 MD5/RSA 签名
- };
- uni.requestPayment({
- provider: "wxpay",
- orderInfo: orderInfo,
- success: function (res) {
- console.log('success:' + res);
- payFeedbackFun(orderId, orderNum, 1);
- jumpWayOk();
- },
- fail: function (err) {
- console.log('fail:', err);
- jumpWayError();
- }
- });
- } else if (type === "h5") {// h5
- uni.navigateTo({
- url: `/pages/other_package/payment_processing/payment_processing?link=${encodeURIComponent(orderStr)}&orderNum=` + orderNum // 假设有一个专门的支付页面来处理支付链接
- });
- }
+ const type = alipay.type;
+ const orderStr = alipay.orderStr;
+ console.log("微信支付---", alipay,type);
+ if (type === "app") {
+ // app
+ const orderInfo = {
+ appid: alipay.appId, // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
+ noncestr: alipay.nonceStr, // 随机字符串
+ package: "Sign=WXPay", // 固定值
+ partnerid: alipay.partnerId, // 微信支付商户号
+ prepayid: alipay.prepayId, // 统一下单订单号
+ timestamp: alipay.timeStamp, // 时间戳(单位:秒)
+ sign: alipay.sign, // 签名,这里用的 MD5/RSA 签名
+ };
+ uni.requestPayment({
+ provider: "wxpay",
+ orderInfo: orderInfo,
+ success: function (res) {
+ console.log("success:" + res);
+ payFeedbackFun(orderId, orderNum, 1);
+ jumpWayOk();
+ },
+ fail: function (err) {
+ console.log("fail:", err);
+ jumpWayError();
+ },
+ });
+ } else if (type === "wechatMiniProgram") {
+ const orderInfo = {
+ // "appid": alipay.appId, // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
+
+ nonceStr: alipay.nonceStr, // 微信支付商户号
+ package: alipay.packageValue, // 统一下单订单号
+ timeStamp: alipay.timeStamp, // 时间戳(单位:秒)
+ signType: "RSA",
+ paySign: alipay.sign, // 签名,这里用的 MD5/RSA 签名
+ };
+
+ console.log("微信小程序支付---", orderInfo);
+ uni.requestPayment({
+ ...orderInfo,
+ success: function (res) {
+ console.log("success:" + res);
+ payFeedbackFun(orderId, orderNum, 1);
+ jumpWayOk();
+ },
+ fail: function (err) {
+ console.log("fail:", err);
+ jumpWayError();
+ },
+ });
+ } else if (type === "h5") {
+ // h5
+ uni.navigateTo({
+ url:
+ `/pages/other_package/payment_processing/payment_processing?link=${encodeURIComponent(
+ orderStr
+ )}&orderNum=` + orderNum, // 假设有一个专门的支付页面来处理支付链接
+ });
+ }
}
/**
@@ -48,45 +76,50 @@ export function appWxpayFun(alipay, orderId, orderNum) {
* @param {Object} orderNum 支付的订单编号
*/
export function zfbPayFun(alipay, orderId, orderNum) {
- console.log("alipay", alipay);
- const type = alipay.type;
- const orderStr = alipay.orderStr;
- if (type === "h5") {// h5
- uni.navigateTo({
- url: `/pages/other_package/payment_processing/payment_processing?link=${encodeURIComponent(orderStr)}&orderNum=` + orderNum // 假设有一个专门的支付页面来处理支付链接
- });
- } else if (type === "app") { // app
- uni.requestPayment({
- provider: 'alipay',
- orderInfo: orderStr,
- success: function (res) {
- console.log("zfbPayFun res", res);
- payFeedbackFun(orderId, orderNum, 1);
- jumpWayOk();
- },
- fail: function (err) {
- console.error("支付宝支付error", err);
- jumpWayError();
- }
- });
- }
- // return new Promise((resolve, reject) => {
- // resolve(res);
- // // reject(err);
- // });
-};
+ console.log("alipay", alipay);
+ const type = alipay.type;
+ const orderStr = alipay.orderStr;
+ if (type === "h5") {
+ // h5
+ uni.navigateTo({
+ url:
+ `/pages/other_package/payment_processing/payment_processing?link=${encodeURIComponent(
+ orderStr
+ )}&orderNum=` + orderNum, // 假设有一个专门的支付页面来处理支付链接
+ });
+ } else if (type === "app") {
+ // app
+ uni.requestPayment({
+ provider: "alipay",
+ orderInfo: orderStr,
+ success: function (res) {
+ console.log("zfbPayFun res", res);
+ payFeedbackFun(orderId, orderNum, 1);
+ jumpWayOk();
+ },
+ fail: function (err) {
+ console.error("支付宝支付error", err);
+ jumpWayError();
+ },
+ });
+ }
+ // return new Promise((resolve, reject) => {
+ // resolve(res);
+ // // reject(err);
+ // });
+}
// 跳转到支付成功页面
export function jumpWayOk() {
- uni.navigateTo({
- url: "/pages/order_package/order_submit_ok/order_submit_ok",
- })
+ uni.navigateTo({
+ url: "/pages/order_package/order_submit_ok/order_submit_ok",
+ });
}
// 跳转到支付失败页面
export function jumpWayError() {
- uni.navigateTo({
- url: "/pages/order_package/order_submit_error/order_submit_error",
- })
+ uni.navigateTo({
+ url: "/pages/order_package/order_submit_error/order_submit_error",
+ });
}
/**
* 支付结果回调
@@ -95,15 +128,15 @@ export function jumpWayError() {
* @param {Object} status 反馈结果【0:失败,1:成功】
*/
async function payFeedbackFun(orderId, orderNum, status) {
- const params = {
- orderId,
- orderNum,
- status,
- }
- console.log("params", params);
- const response = await feedback(params);
- console.log("payFeedbackFun response", response);
- if (response && response.bizcode !== 100) {
- console.error("反馈结果", response);
- }
-}
\ No newline at end of file
+ const params = {
+ orderId,
+ orderNum,
+ status,
+ };
+ console.log("params", params);
+ const response = await feedback(params);
+ console.log("payFeedbackFun response", response);
+ if (response && response.bizcode !== 100) {
+ console.error("反馈结果", response);
+ }
+}