2025-01-16 16:25:17 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @data 查询参数 获取钱包余额
|
|
|
|
|
*/
|
|
|
|
|
export function getWalletBalanceAPI(data) {
|
|
|
|
|
return request({
|
2025-02-19 09:34:34 +08:00
|
|
|
url: '/smart-canteen/api/v4/app/account/wallet/balance',
|
2025-01-16 16:25:17 +08:00
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @data 查询参数 获取 个人二维码
|
|
|
|
|
*/
|
|
|
|
|
export function getOrderQRCodeAPI(data) {
|
|
|
|
|
return request({
|
2025-02-19 09:34:34 +08:00
|
|
|
url: '/smart-canteen/custInfo/getOrderQRCode',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
2025-01-16 16:25:17 +08:00
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @data 充值参数 充值费用
|
|
|
|
|
*/
|
|
|
|
|
export function accountChargeAPI(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/leopen/account/charge',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-02-19 09:34:34 +08:00
|
|
|
/**
|
|
|
|
|
* @data 充值记录-分页
|
|
|
|
|
*/
|
|
|
|
|
export function chargeRecordApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/api/v3/app/accInfo/queryTradeAppPage',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @data 小程序个人钱包充值
|
|
|
|
|
*/
|
|
|
|
|
export function personalRechargeForAppApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/api/v3/app/accInfo/personalRechargeForApp',
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
"custId": uni.getStorageSync('custId'),
|
|
|
|
|
"openid": uni.getStorageSync('openId'),
|
|
|
|
|
"source-type": "7",
|
|
|
|
|
},
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @data 查询账户(基础信息+余额)
|
|
|
|
|
*/
|
|
|
|
|
export function getAccountInfoApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/api/v4/app/account/info',
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
"custId": uni.getStorageSync('custId'),
|
|
|
|
|
"openid": uni.getStorageSync('openId'),
|
|
|
|
|
"source-type": "7",
|
|
|
|
|
},
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @data 查询食堂所有开启的支付方式
|
|
|
|
|
*/
|
|
|
|
|
export function listAvailPayTypeApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/api/v2/alloc/canteen/list-avail-pay-type',
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
"custId": uni.getStorageSync('custId'),
|
|
|
|
|
"openid": uni.getStorageSync('openId'),
|
|
|
|
|
"source-type": "7",
|
|
|
|
|
},
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @data 查询充值结果-状态
|
|
|
|
|
*/
|
|
|
|
|
export function getRechargeResultApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/api/v3/app/accInfo/personalRecharge/result',
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
"custId": uni.getStorageSync('custId'),
|
|
|
|
|
"openid": uni.getStorageSync('openId'),
|
|
|
|
|
"source-type": "7",
|
|
|
|
|
},
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @data 查询充值结果-充值超时重新查询充值结果
|
|
|
|
|
*/
|
|
|
|
|
export function getRechargeQueryResultApi(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smart-canteen/api/v3/app/accInfo/recharge/overtime/query-result',
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: {
|
|
|
|
|
"custId": uni.getStorageSync('custId'),
|
|
|
|
|
"openid": uni.getStorageSync('openId'),
|
|
|
|
|
"source-type": "7",
|
|
|
|
|
},
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|