feat:兑换比例配置
This commit is contained in:
1 parent
630bf8518c
commit
2b7ac06c69
1 file changed
+19
-1
@@ -21,7 +21,10 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="mt-10rpx text-xs">
|
||||
注意:用户持有的{{ dictData.unit }}与人民币兑换比例为20:1,即消耗20个{{ dictData.unit }}可抵扣/兑换1人民币等值权益。
|
||||
注意:用户持有的{{ dictData.unit }}与人民币兑换比例为{{ state.config.giftCashRatio }}:1,即消耗{{ state.config.giftCashRatio
|
||||
}}个{{
|
||||
dictData.unit
|
||||
}}可抵扣/兑换1人民币等值权益。
|
||||
</view>
|
||||
</view>
|
||||
<view class="mt-30rpx mx-30rpx rounded-12rpx">
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in new issue
Block a user