recharge 新增金币代理类型
This commit is contained in:
parent
90c8e2546a
commit
0b4e4a33b3
@ -16,7 +16,7 @@ export const getPayAplication = async (applicationId) => {
|
|||||||
export const getAppCommodityCard = async (params) => {
|
export const getAppCommodityCard = async (params) => {
|
||||||
try {
|
try {
|
||||||
const response = await get(
|
const response = await get(
|
||||||
`/order/web/pay/commodity?applicationId=${params.applicationId}&payCountryId=${params.payCountryId}®ionId=${params.regionId}&type=GOLD`
|
`/order/web/pay/commodity?applicationId=${params.applicationId}&payCountryId=${params.payCountryId}®ionId=${params.regionId}&type=${params.type}`
|
||||||
);
|
);
|
||||||
return response;
|
return response;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@ -15,7 +15,7 @@ export const searchUser = async (userId) => {
|
|||||||
export const searchPayRechargeUser = async (params) => {
|
export const searchPayRechargeUser = async (params) => {
|
||||||
try {
|
try {
|
||||||
const response = await get(
|
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
|
return response
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@ -166,7 +166,7 @@ const checkUserId = async () => {
|
|||||||
const targetUserInfo = await searchUser(targetUserId.value);
|
const targetUserInfo = await searchUser(targetUserId.value);
|
||||||
console.log("targetUserInfo:", targetUserInfo);
|
console.log("targetUserInfo:", targetUserInfo);
|
||||||
if (targetUserInfo.status && targetUserInfo.body.id) {
|
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 {
|
} else {
|
||||||
// 信息提示id有误
|
// 信息提示id有误
|
||||||
showWarning("User info not found");
|
showWarning("User info not found");
|
||||||
|
|||||||
@ -241,9 +241,9 @@ onMounted(async () => {
|
|||||||
let params = {
|
let params = {
|
||||||
sysOrigin: PayAplication.body.appCode,
|
sysOrigin: PayAplication.body.appCode,
|
||||||
account: route.query.targetUserId,
|
account: route.query.targetUserId,
|
||||||
|
type: route.query.isFreightAgent === 'true' ? 'FREIGHT_GOLD' : 'GOLD'
|
||||||
};
|
};
|
||||||
const userInfo = await searchPayRechargeUser(params);
|
const userInfo = await searchPayRechargeUser(params);
|
||||||
console.log("userInfo:", userInfo);
|
|
||||||
|
|
||||||
if (userInfo.body && userInfo.body.regionId && userInfo.body.countryList.length != 0) {
|
if (userInfo.body && userInfo.body.regionId && userInfo.body.countryList.length != 0) {
|
||||||
userProfile.value = { ...userInfo.body.userProfile, type: "GOLD" };
|
userProfile.value = { ...userInfo.body.userProfile, type: "GOLD" };
|
||||||
@ -259,6 +259,7 @@ onMounted(async () => {
|
|||||||
applicationId: applicationId.value,
|
applicationId: applicationId.value,
|
||||||
payCountryId: selectedCountry.value.id,
|
payCountryId: selectedCountry.value.id,
|
||||||
regionId: userInfo.body.regionId,
|
regionId: userInfo.body.regionId,
|
||||||
|
type: route.query.isFreightAgent === 'true' ? 'FREIGHT_GOLD' : 'GOLD'
|
||||||
};
|
};
|
||||||
const appCommodityCard = await getAppCommodityCard(appCommodityCardParams);
|
const appCommodityCard = await getAppCommodityCard(appCommodityCardParams);
|
||||||
console.log("appCommodityCard:", appCommodityCard);
|
console.log("appCommodityCard:", appCommodityCard);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user