From 2b7ac06c691c3ffa2f036ba32ae9c064f32c4dc7 Mon Sep 17 00:00:00 2001
From: dzc <2388224167@qq.com>
Date: Mon, 8 Dec 2025 13:21:42 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E5=85=91=E6=8D=A2=E6=AF=94=E4=BE=8B?=
=?UTF-8?q?=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/wechat/pages/gift/index.vue | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/src/pages/wechat/pages/gift/index.vue b/src/pages/wechat/pages/gift/index.vue
index 8a089246..50b091c3 100644
--- a/src/pages/wechat/pages/gift/index.vue
+++ b/src/pages/wechat/pages/gift/index.vue
@@ -21,7 +21,10 @@
- 注意:用户持有的{{ dictData.unit }}与人民币兑换比例为20:1,即消耗20个{{ dictData.unit }}可抵扣/兑换1人民币等值权益。
+ 注意:用户持有的{{ dictData.unit }}与人民币兑换比例为{{ state.config.giftCashRatio }}:1,即消耗{{ state.config.giftCashRatio
+ }}个{{
+ dictData.unit
+ }}可抵扣/兑换1人民币等值权益。
@@ -53,6 +56,7 @@ import useScroll from '@/sheep/hooks/use-scroll';
import { formatDate } from '@/sheep/helper/utils';
import PayWalletApi from "@/sheep/api/pay/wallet.js"
+import RecentApi from "@/sheep/api/member/recent"
const dictData = {
unit: "缘豆"
@@ -61,12 +65,16 @@ const dictData = {
const state = reactive({
wallet: {
giftBalance: ""
+ },
+ config: {
+ giftCashRatio: 0
}
})
onShow(() => {
refreshList()
getWithdrawableAmount()
+ getChatConfig()
})
const {
@@ -86,4 +94,14 @@ const getWithdrawableAmount = async () => {
console.log("|查询可以提现的礼物金额|,意外的错误error:", error);
}
}
+
+// 获取聊天配置
+const getChatConfig = async () => {
+ try {
+ const { data } = await RecentApi.reportType()
+ state.config = data
+ } catch (error) {
+ console.log("|获取聊天配置|,意外的错误error:", error);
+ }
+}
\ No newline at end of file