.
This commit is contained in:
@@ -138,8 +138,6 @@ let isBuyP = true
|
||||
let NumP = 0
|
||||
let gatewayP = false
|
||||
const checkNumber = async (_rule: Rule, value: number) => {
|
||||
|
||||
|
||||
if (!value) {
|
||||
return Promise.reject('تعداد محصول را مشخص کنید')
|
||||
}
|
||||
@@ -168,7 +166,6 @@ const checkNumber = async (_rule: Rule, value: number) => {
|
||||
else
|
||||
return Promise.resolve()
|
||||
}
|
||||
|
||||
}
|
||||
const checkNumber2 = async (_rule: Rule, value: number) => {
|
||||
|
||||
@@ -203,6 +200,7 @@ const checkNumber2 = async (_rule: Rule, value: number) => {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export const justNumber2 = (price: number, method?: string, amount?: number, isBuy?: boolean, gateway?: boolean) => {
|
||||
priceP = price
|
||||
methodP = method
|
||||
@@ -214,8 +212,8 @@ export const justNumber2 = (price: number, method?: string, amount?: number, isB
|
||||
validator: checkNumber,
|
||||
trigger: 'change'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export const justNumber3 = (price: number, Num?: number, isBuy?: boolean) => {
|
||||
priceP = price
|
||||
NumP = Num
|
||||
|
||||
@@ -20,7 +20,6 @@ export async function setIntervalGetAllPrice() {
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export async function setIntervalGetLastPrice() {
|
||||
|
||||
@@ -210,7 +210,6 @@ import { useWalletStore } from '@/store/walletStore'
|
||||
import { createOrder } from '@/api/order'
|
||||
import { message } from 'ant-design-vue'
|
||||
import type { Price } from '@/models/home'
|
||||
import { getLastPrice } from '@/api/home'
|
||||
import Icon from '@/components/BasicPacks/BasicIcon.vue'
|
||||
import { useUserStore } from '@/store/userStore'
|
||||
import BasicActionSheet from '@/components/BasicPacks/BasicActionSheet.vue'
|
||||
|
||||
Reference in New Issue
Block a user