This commit is contained in:
zmj 2024-07-03 17:37:41 +08:00
parent eb885777f0
commit e21a81ebd2
2 changed files with 11 additions and 1 deletions

View File

@ -158,3 +158,7 @@ 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);
}

View File

@ -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();