From e21a81ebd2ce83c18115c90601767714817c9908 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Wed, 3 Jul 2024 17:37:41 +0800 Subject: [PATCH] add --- api/user.js | 4 ++++ pageQuota/vipUser/index.vue | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/api/user.js b/api/user.js index bd5b2fc..c84bb05 100644 --- a/api/user.js +++ b/api/user.js @@ -157,4 +157,8 @@ export const getVipInfoByPhone = (data) => { export const checkInventoryApi = (data) => { return request.post('/order/order/checkInventory', data); +} + +export const isUserShipApi = (data) => { + return request.post('/user_ship/UserShip/is_user_ship', data); } \ No newline at end of file diff --git a/pageQuota/vipUser/index.vue b/pageQuota/vipUser/index.vue index 66f3f2c..a756253 100644 --- a/pageQuota/vipUser/index.vue +++ b/pageQuota/vipUser/index.vue @@ -337,6 +337,7 @@ } from "@/api/address.js" import { vipRechargeApi, + isUserShipApi, rechargeCountApi, reVipRechargeApi, rechargeListsApi, @@ -817,6 +818,12 @@ // }, 10000) // }) // return + formData.user_ship = formData.label_id + await isUserShipApi({ + user_ship: formData.user_ship, + village: formData.village, + brigade: formData.brigade + }) uni.scanCode({ success: function(res) { if (String(res.result.length) != 18) return uni.$u.toast('二维码未扫描完整'); @@ -825,7 +832,6 @@ }); formData.auth_code = res.result formData.recharge_type = 'INDUSTRYMEMBERS' - formData.user_ship = formData.label_id vipRechargeApi(formData).then(res => { timerInvol = setTimeout(() => { uni.hideLoading();