Skip to content

Commit bb59459

Browse files
committed
钱包 - 优化
支付应用 - 证书模式增加应用私钥
1 parent e187c55 commit bb59459

File tree

4 files changed

+21
-27
lines changed

4 files changed

+21
-27
lines changed

src/api/pay/wallet/balance/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import request from '@/config/axios'
33
/** 用户钱包查询参数 */
44
export interface PayWalletUserReqVO {
55
userId: number
6-
userType: number
76
}
87
/** 钱包 VO */
98
export interface WalletVO {

src/views/member/user/detail/UserAccountInfo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const getUserWallet = async () => {
6565
wallet.value = WALLET_INIT_DATA
6666
return
6767
}
68-
const params = { userId: props.user.id, userType: UserTypeEnum.MEMBER }
68+
const params = { userId: props.user.id }
6969
wallet.value = (await WalletApi.getWallet(params)) || WALLET_INIT_DATA
7070
}
7171

src/views/pay/app/components/channel/AlipayChannelForm.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@
6969
</el-form-item>
7070
</div>
7171
<div v-if="formData.config.mode === 2">
72+
<el-form-item label-width="180px" label="应用私钥" prop="config.privateKey">
73+
<el-input
74+
type="textarea"
75+
:autosize="{ minRows: 8, maxRows: 8 }"
76+
v-model="formData.config.privateKey"
77+
placeholder="请输入应用私钥"
78+
clearable
79+
:style="{ width: '100%' }"
80+
/>
81+
</el-form-item>
7282
<el-form-item label-width="180px" label="商户公钥应用证书" prop="config.appCertContent">
7383
<el-input
7484
v-model="formData.config.appCertContent"

src/views/pay/wallet/balance/index.vue

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,15 @@
88
:inline="true"
99
label-width="68px"
1010
>
11-
<el-form-item label="用户编号" prop="userId">
11+
<el-form-item label="用户昵称" prop="nickname">
1212
<el-input
13-
v-model="queryParams.userId"
14-
placeholder="请输入用户编号"
13+
v-model="queryParams.nickname"
14+
placeholder="请输入用户昵称"
1515
clearable
1616
@keyup.enter="handleQuery"
1717
class="!w-240px"
1818
/>
1919
</el-form-item>
20-
<el-form-item label="用户类型" prop="userType">
21-
<el-select
22-
v-model="queryParams.userType"
23-
placeholder="请选择用户类型"
24-
clearable
25-
class="!w-240px"
26-
>
27-
<el-option
28-
v-for="dict in getIntDictOptions(DICT_TYPE.USER_TYPE)"
29-
:key="dict.value"
30-
:label="dict.label"
31-
:value="dict.value"
32-
/>
33-
</el-select>
34-
</el-form-item>
3520
<el-form-item label="创建时间" prop="createTime">
3621
<el-date-picker
3722
v-model="queryParams.createTime"
@@ -54,7 +39,12 @@
5439
<ContentWrap>
5540
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
5641
<el-table-column label="编号" align="center" prop="id" />
57-
<el-table-column label="用户编号" align="center" prop="userId" />
42+
<el-table-column label="用户昵称" align="center" prop="nickname" />
43+
<el-table-column label="头像" align="center" prop="avatar" width="80px">
44+
<template #default="scope">
45+
<img :src="scope.row.avatar" style="width: 40px" />
46+
</template>
47+
</el-table-column>
5848
<el-table-column label="用户类型" align="center" prop="userType">
5949
<template #default="scope">
6050
<dict-tag :type="DICT_TYPE.USER_TYPE" :value="scope.row.userType" />
@@ -116,12 +106,7 @@ const list = ref([]) // 列表的数据
116106
const queryParams = reactive({
117107
pageNo: 1,
118108
pageSize: 10,
119-
userId: null,
120-
userType: null,
121-
balance: null,
122-
totalExpense: null,
123-
totalRecharge: null,
124-
freezePrice: null,
109+
nickname: null,
125110
createTime: []
126111
})
127112
const queryFormRef = ref() // 搜索的表单

0 commit comments

Comments
 (0)