HomeLease/api/user/mockData.js
2025-08-19 14:22:25 +08:00

115 lines
2.5 KiB
JavaScript

// 用户相关模拟数据
export const mockUserInfo = {
userId: '1',
nickName: '超级管理员',
phonenumber: '15888888888',
avatar: 'https://api.ccttiot.com/FhzRBfWKKOWOMJA1vV3sxMw_nVZ',
email: null,
sex: null,
status: '0',
createTime: null,
updateTime: null,
}
export const mockFinancialData = {
balance: 10000.00,
waitBalance: 0,
withdrawBalance: 0,
withdrawedBalance: 0,
}
export const mockAgentStats = {
userNum: 4,
deviceNum: 1,
rentAmount: 2,
}
export const mockAgentList = [
{
userId: '28',
nickName: '李四',
avatar: '',
totalAmount: 730.00,
deviceNum: 2,
orders: [
{
id: '3',
userId: '28',
name: '派大星',
phone: '13777777777',
address: '广西南宁市西乡塘区',
detailed: '详细地址',
typeName: '单头灶',
suitName: '一年',
suitDay: '365',
amount: 365.00,
status: '2',
leaseTime: '2025-08-15 10:50:22',
expirationTime: '2025-11-15 10:50:25',
orderNumber: '123456789101114',
},
{
id: '4',
userId: '28',
name: '派大星',
phone: '137777777777',
address: '测试',
detailed: '测试',
typeName: '单头灶',
suitName: '一年',
suitDay: '365',
amount: 365.00,
status: '2',
leaseTime: '2025-08-18 14:10:26',
expirationTime: '2025-10-01 14:10:29',
orderNumber: '123456789101115',
}
]
}
]
export const mockWithdrawInfo = {
balance: 10000.00,
waitVerify: 0,
available: 10000.00,
unsettled: 0,
fee: 1.00, // 提现手续费
minAmount: 100.00, // 最小提现金额
maxAmount: 50000.00, // 最大提现金额
}
export const mockBanks = [
{
id: '1',
name: '建设银行',
icon: 'https://api.ccttiot.com/image-1755503384639.png',
cardNumber: '**** **** **** 1234'
},
{
id: '2',
name: '工商银行',
icon: 'https://api.ccttiot.com/image-1755503384639.png',
cardNumber: '**** **** **** 5678'
},
{
id: '3',
name: '农业银行',
icon: 'https://api.ccttiot.com/image-1755503384639.png',
cardNumber: '**** **** **** 9012'
},
{
id: '4',
name: '中国银行',
icon: 'https://api.ccttiot.com/image-1755503384639.png',
cardNumber: '**** **** **** 3456'
}
]
// 模拟API响应格式
export const createMockResponse = (data, code = 200, msg = '操作成功') => {
return {
code,
msg,
data,
}
}