add
This commit is contained in:
parent
eb885777f0
commit
e21a81ebd2
|
@ -158,3 +158,7 @@ export const getVipInfoByPhone = (data) => {
|
||||||
export const checkInventoryApi = (data) => {
|
export const checkInventoryApi = (data) => {
|
||||||
return request.post('/order/order/checkInventory', 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"
|
} from "@/api/address.js"
|
||||||
import {
|
import {
|
||||||
vipRechargeApi,
|
vipRechargeApi,
|
||||||
|
isUserShipApi,
|
||||||
rechargeCountApi,
|
rechargeCountApi,
|
||||||
reVipRechargeApi,
|
reVipRechargeApi,
|
||||||
rechargeListsApi,
|
rechargeListsApi,
|
||||||
|
@ -817,6 +818,12 @@
|
||||||
// }, 10000)
|
// }, 10000)
|
||||||
// })
|
// })
|
||||||
// return
|
// return
|
||||||
|
formData.user_ship = formData.label_id
|
||||||
|
await isUserShipApi({
|
||||||
|
user_ship: formData.user_ship,
|
||||||
|
village: formData.village,
|
||||||
|
brigade: formData.brigade
|
||||||
|
})
|
||||||
uni.scanCode({
|
uni.scanCode({
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
if (String(res.result.length) != 18) return uni.$u.toast('二维码未扫描完整');
|
if (String(res.result.length) != 18) return uni.$u.toast('二维码未扫描完整');
|
||||||
|
@ -825,7 +832,6 @@
|
||||||
});
|
});
|
||||||
formData.auth_code = res.result
|
formData.auth_code = res.result
|
||||||
formData.recharge_type = 'INDUSTRYMEMBERS'
|
formData.recharge_type = 'INDUSTRYMEMBERS'
|
||||||
formData.user_ship = formData.label_id
|
|
||||||
vipRechargeApi(formData).then(res => {
|
vipRechargeApi(formData).then(res => {
|
||||||
timerInvol = setTimeout(() => {
|
timerInvol = setTimeout(() => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
|
|
Loading…
Reference in New Issue