add
This commit is contained in:
parent
eb885777f0
commit
e21a81ebd2
|
@ -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);
|
||||
}
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue