recharge 新增金币代理类型

This commit is contained in:
tianfeng 2025-09-10 19:42:09 +08:00
parent 90c8e2546a
commit 0b4e4a33b3
4 changed files with 5 additions and 4 deletions

View File

@ -16,7 +16,7 @@ export const getPayAplication = async (applicationId) => {
export const getAppCommodityCard = async (params) => {
try {
const response = await get(
`/order/web/pay/commodity?applicationId=${params.applicationId}&payCountryId=${params.payCountryId}&regionId=${params.regionId}&type=GOLD`
`/order/web/pay/commodity?applicationId=${params.applicationId}&payCountryId=${params.payCountryId}&regionId=${params.regionId}&type=${params.type}`
);
return response;
} catch (error) {

View File

@ -15,7 +15,7 @@ export const searchUser = async (userId) => {
export const searchPayRechargeUser = async (params) => {
try {
const response = await get(
`/order/web/pay/user-profile?sysOrigin=${params.sysOrigin}&account=${params.account}&type=GOLD`
`/order/web/pay/user-profile?sysOrigin=${params.sysOrigin}&account=${params.account}&type=${params.type}`
)
return response
} catch (error) {

View File

@ -166,7 +166,7 @@ const checkUserId = async () => {
const targetUserInfo = await searchUser(targetUserId.value);
console.log("targetUserInfo:", targetUserInfo);
if (targetUserInfo.status && targetUserInfo.body.id) {
router.push({ path: "/recharge-freight-agent", query: { targetUserId: targetUserId.value } });
router.push({ path: "/recharge-freight-agent", query: { targetUserId: targetUserId.value, isFreightAgent: targetUserInfo.body.isFreightAgent } });
} else {
// id
showWarning("User info not found");

View File

@ -241,9 +241,9 @@ onMounted(async () => {
let params = {
sysOrigin: PayAplication.body.appCode,
account: route.query.targetUserId,
type: route.query.isFreightAgent === 'true' ? 'FREIGHT_GOLD' : 'GOLD'
};
const userInfo = await searchPayRechargeUser(params);
console.log("userInfo:", userInfo);
if (userInfo.body && userInfo.body.regionId && userInfo.body.countryList.length != 0) {
userProfile.value = { ...userInfo.body.userProfile, type: "GOLD" };
@ -259,6 +259,7 @@ onMounted(async () => {
applicationId: applicationId.value,
payCountryId: selectedCountry.value.id,
regionId: userInfo.body.regionId,
type: route.query.isFreightAgent === 'true' ? 'FREIGHT_GOLD' : 'GOLD'
};
const appCommodityCard = await getAppCommodityCard(appCommodityCardParams);
console.log("appCommodityCard:", appCommodityCard);