diff --git a/api/user.js b/api/user.js index 6bd46be..f7bd28c 100644 --- a/api/user.js +++ b/api/user.js @@ -719,6 +719,15 @@ export function writeOffRecord(data) { export function vipExchangeCode(data) { return request.post("sVip/vipExchangeCode", data); } +// 兑换码 - 信息获取 +export function vipExchangeCodeInfo(data) { + return request.get("sVip/vipExchangeCodeInfo", data); +} +// 兑换码 - 开通支付 +export function vipExchangeCodePayment(data) { + return request.post("sVip/vipExchangeCodePayment", data); +} + // 分销商 - 申请转正信息提交 export function brokerageApplyFormalPost(data) { return request.post("user/brokerage_formal_info", data); @@ -727,11 +736,12 @@ export function brokerageApplyFormalPost(data) { export function brokerageApplyFormalGet() { return request.get("user/brokerage_formal_info"); } + // 邀请码 - 信息获取 export function inviteCodeInfo(data) { return request.get("sVip/getInviteInfo", data); } -// 邀请码 - 信息获取 +// 邀请码 - 绑定支付 export function inviteCodePayment(data) { return request.get("sVip/invitePayment", data); } @@ -739,6 +749,7 @@ export function inviteCodePayment(data) { export function inviteCodeConfirmUse(data) { return request.get("sVip/inviteUse", data); } + // 提现账号管理 - 获取列表 export function withdrawalAccountList() { return request.get("withdrawalAccount/list"); diff --git a/pages.json b/pages.json index 3ba1302..a69e731 100644 --- a/pages.json +++ b/pages.json @@ -617,6 +617,12 @@ "navigationBarTitleText": "邀请码使用" } }, + { + "path": "invitation_code/exchange", + "style": { + "navigationBarTitleText": "兑换码使用" + } + }, { "path": "shareholders/index", "style": { diff --git a/pages/user/index.vue b/pages/user/index.vue index 2c07a7d..6a722fa 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -883,6 +883,12 @@ break; // 兑换码 case 'exchange': + uni.navigateTo({ + url: '/pages/users/invitation_code/exchange?code=' + params.code + }) + /* + // 线下缴费 这里直接免费开通 已于2024-6-19 弃用 + uni.showModal({ title: '确认使用!', content: '使用后当前兑换码将立即生效!是否确认使用?', @@ -912,7 +918,7 @@ console.log("取消") } } - }); + });*/ break; } }, diff --git a/pages/users/invitation_code/exchange.vue b/pages/users/invitation_code/exchange.vue new file mode 100644 index 0000000..c2a6f17 --- /dev/null +++ b/pages/users/invitation_code/exchange.vue @@ -0,0 +1,767 @@ + + + + +