feat: 新增枚举

This commit is contained in:
2025-08-16 20:05:46 +08:00
parent bed9fef247
commit 53b6577aba
4 changed files with 250 additions and 233 deletions
+6 -4
View File
@@ -96,6 +96,11 @@
"ms": "2.0.0"
}
},
"decimal.js": {
"version": "10.6.0",
"resolved": "https://registry.npmmirror.com/decimal.js/-/decimal.js-10.6.0.tgz",
"integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg=="
},
"delayed-stream": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz",
@@ -114,7 +119,6 @@
"echarts": {
"version": "5.6.0",
"resolved": "https://registry.npmmirror.com/echarts/-/echarts-5.6.0.tgz",
"integrity": "sha512-oTbVTsXfKuEhxftHqL5xprgLoc0k7uScAwtryCgWF6hPYFLRwOUHiFmHGCBKP5NPFNkDVopOieyUqYGH8Fa3kA==",
"requires": {
"tslib": "2.3.0",
"zrender": "5.6.1"
@@ -305,13 +309,11 @@
},
"tslib": {
"version": "2.3.0",
"resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz",
"integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
"resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz"
},
"zrender": {
"version": "5.6.1",
"resolved": "https://registry.npmmirror.com/zrender/-/zrender-5.6.1.tgz",
"integrity": "sha512-OFXkDJKcrlx5su2XbzJvj/34Q3m6PvyCZkVPHGYpcCJ52ek4U/ymZyfuV1nKE23AyBJ51E/6Yr0mhZ7xGTO4ag==",
"requires": {
"tslib": "2.3.0"
}
+1 -1
View File
@@ -76,9 +76,9 @@
"axios": "0.27.2",
"axios-adapter-uniapp": "^0.1.4",
"axios-miniprogram-adapter": "^0.3.4",
"bignumber.js": "^9.3.1",
"crypto-js": "^4.2.0",
"dayjs": "^1.11.13",
"decimal.js": "^10.6.0",
"echarts": "^5.1.2",
"qs": "^6.14.0"
}
@@ -1,5 +1,5 @@
<template>
<view class="purse_log_warp">
<view class="mine_purse_log_warp">
<Header :leftTitle="$t('mine.purse.mine_purse_log.title')" left-path-type="navigateTo"
left-path="/pages/mine_package/mine_purse/mine_purse" />
@@ -45,7 +45,7 @@
</view>
</view>
<view class="ipurse_nfo_right">
<view class="purse_info_title">{{ handleAmount(item.amount) }}</view>
<view class="purse_info_title" style="text-align: end;">{{ handleAmount(item.amount) }}</view>
<view class="purse_info_value">{{ item.remark }}</view>
</view>
</view>
@@ -66,8 +66,7 @@ import Header from '@/components/header.vue';
import { getAcctFlow, getAcctMiningStat, getAcctContribution, getAcctFlowList, getBonusStat, getAcctBalance } from '@/api/finance.js';
import { getValue, BALANCE_TYPE } from '@/utils/enumUtils.js';
import { formatDate, handleAmount } from '@/utils/index.js';
import BigNumber from 'bignumber.js';
import Decimal from 'decimal.js';
export default {
computed: {
@@ -410,8 +409,8 @@ export default {
}
</script>
<style lang="scss" scoped>
.purse_log_warp {
<style lang="scss">
.mine_purse_log_warp {
height: calc(100vh - 58rpx);
overflow-y: hidden;
+16
View File
@@ -243,6 +243,22 @@ export const BALANCE_TYPE = [
key: 21,
value: "退款"
},
{
key: 22,
value: "预分配"
},
{
key: 23,
value: "释放抽奖次数消耗"
},
{
key: 24,
value: "抽奖消耗"
},
{
key: 25,
value: "加速释放转出"
},
]
/**
* 证状证件类型:1-居民身份证,2-护照