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