From e4f5cc85199604653ce5304081d9591b85d7a353 Mon Sep 17 00:00:00 2001
From: gyq <875626088@qq.com>
Date: Sat, 22 Nov 2025 10:15:00 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=99=BA=E6=85=A7=E5=85=85?=
=?UTF-8?q?=E5=80=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/my-components/my-shop-select.vue | 9 +-
http/api/market/index.js | 24 +
pageRecharge/add-recharge-item.vue | 954 ++++++++++----------
pageRecharge/index.vue | 465 ++++++----
4 files changed, 788 insertions(+), 664 deletions(-)
diff --git a/components/my-components/my-shop-select.vue b/components/my-components/my-shop-select.vue
index a2334d0..a1b0b5d 100644
--- a/components/my-components/my-shop-select.vue
+++ b/components/my-components/my-shop-select.vue
@@ -1,6 +1,6 @@
-
+
@@ -44,7 +44,7 @@ const customStyle = ref({
});
const show = ref(false);
-const selShops = defineModel('selShops', {
+let selShops = defineModel('selShops', {
default: () => [],
type: Array
});
@@ -63,6 +63,11 @@ const useTypeList = [
}
];
+const emits = defineEmits(['useTypeChange']);
+function useTypeChange(e) {
+ emits('useTypeChange', e);
+}
+
function returnShopName(shopId) {
const item = list.value.find((v) => v.shopId == shopId);
return item?.shopName || '';
diff --git a/http/api/market/index.js b/http/api/market/index.js
index d452018..1e37574 100644
--- a/http/api/market/index.js
+++ b/http/api/market/index.js
@@ -152,4 +152,28 @@ export function couponGetRecord(params) {
method: 'get',
params
});
+}
+
+/**
+ * 智慧充值规/配置信息修改
+ * @param {Object} data
+ */
+export function shopRechargePost(data) {
+ return request({
+ url: `${urlType}/admin/shopRecharge`,
+ method: 'post',
+ data
+ });
+}
+
+/**
+ * 智慧充值规/配置信息获取
+ * @param {Object} parmas
+ */
+export function shopRechargeGet(parmas) {
+ return request({
+ url: `${urlType}/admin/shopRecharge`,
+ method: 'get',
+ parmas
+ });
}
\ No newline at end of file
diff --git a/pageRecharge/add-recharge-item.vue b/pageRecharge/add-recharge-item.vue
index 7c32113..d553df6 100644
--- a/pageRecharge/add-recharge-item.vue
+++ b/pageRecharge/add-recharge-item.vue
@@ -1,87 +1,93 @@
-
-
+
+
-
+
-
-
+
+
-
-
+
+
-
-
- 赠送券
- 赠送数量
-
-
-
+
+ 赠送券
+ 赠送数量
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
+
+
-
-
+
-
-
-
+
添加
-
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
+
+
-
-
+
-
-
+
添加
-
-
-
-
@@ -194,430 +197,431 @@
保存
- 取消
+ 取消
-
+
\ No newline at end of file
+.option-item {
+ margin-bottom: 10rpx;
+}
+
diff --git a/pageRecharge/index.vue b/pageRecharge/index.vue
index 74c663e..7bdd61b 100644
--- a/pageRecharge/index.vue
+++ b/pageRecharge/index.vue
@@ -5,52 +5,77 @@
-
+
-
-
+
+
添加充值面额
-
+
-
+
-
-
-
+
+
+
+
+
+ 自定义金额不参与赠送优惠
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 开启后,订单支付页面显示充值选项
+
+
+
充值说明
-
+
-
-
+
+
+ 保存
-
-
-
+
-
+
充值时间
@@ -58,31 +83,30 @@
- 状态
+ 状态
-
+
-
+
-
+
-
+
+
+
取消
-
-
-
- {{item}}
-
+
+
+
+ {{ item }}
+
-
+
-
@@ -100,7 +124,7 @@
充值总额
0.00
-
+
充值人次
0
@@ -110,189 +134,256 @@
退款总额
0.00
-
+
退款金额
0
-
-
+
\ No newline at end of file
+}
+