li.shaoyi 1 vuosi sitten
vanhempi
commit
7ad3afcfa4

+ 2 - 2
src/packages/gstj/views/holdbank/holddeposit/components/apply/Index.vue

@@ -92,10 +92,10 @@ const formRules: { [key: string]: FieldRule[] } = {
 const formSubmit = () => {
     fullloading((hideLoading) => {
         getServerTime().then((res) => {
-            const n = moment(res.data, 'HH:mm')
+            const n = moment(res.data)
             const s = moment(start, 'HH:mm')
             const e = moment(end.value, 'HH:mm')
-            if (n.isSameOrBefore(s) && n.isBefore(e)) {
+            if (n.isSameOrBefore(s) && n.isSameOrBefore(e)) {
                 formData.BillAmount = formatDecimal(billAmount.value)
                 onSubmit().then(() => {
                     hideLoading()

+ 2 - 2
src/packages/mobile/views/bank/wallet/components/deposit/Index.vue

@@ -103,10 +103,10 @@ const onUploadSuccess = (filePath: string) => {
 const doDepositWarning = () => {
     fullloading((hideLoading) => {
         getServerTime().then((res) => {
-            const n = moment(res.data, 'HH:mm')
+            const n = moment(res.data)
             const s = moment(start, 'HH:mm')
             const e = moment(end.value, 'HH:mm')
-            if (n.isSameOrAfter(s) && n.isBefore(e)) {
+            if (n.isSameOrAfter(s) && n.isSameOrBefore(e)) {
                 dialog({ message: '是否已在银行端进行入金转账?', showCancelButton: true, confirmButtonText: '确认', cancelButtonText: '取消', }).then(() => {
                     /// 提交
                     formSubmit()

+ 2 - 2
src/packages/mobile/views/bank/wallet/components/withdraw/Index.vue

@@ -100,11 +100,11 @@ const formRules: { [key: string]: FieldRule[] } = {
 const doWithDrawWarning = () => {
     fullloading((hideLoading) => {
         getServerTime().then((res) => {
-            const n = moment(res.data, 'HH:mm')
+            const n = moment(res.data)
             const s = moment(start, 'HH:mm')
             const e = moment(end.value, 'HH:mm')
             // 出金时间必须在开始和结束时间之间
-            if (n.isSameOrAfter(s) && n.isBefore(e)) {
+            if (n.isSameOrAfter(s) && n.isSameOrBefore(e)) {
                 /// 提交
                 formSubmit()
             } else {

+ 2 - 2
src/packages/pc/views/footer/capital/summary/deposit/index.vue

@@ -111,10 +111,10 @@ const doDepositWarning = () => {
         if (valid) {
             loading.value = true
             getServerTime().then((res) => {
-                const n = moment(res.data, 'HH:mm')
+                const n = moment(res.data)
                 const s = moment(start, 'HH:mm')
                 const e = moment(end.value, 'HH:mm')
-                if (n.isSameOrAfter(s) && n.isBefore(e)) {
+                if (n.isSameOrAfter(s) && n.isSameOrBefore(e)) {
                     ElMessageBox.confirm(
                         '是否已在银行端进行入金转账?',
                         '提示',

+ 2 - 2
src/packages/pc/views/footer/capital/summary/withdraw/index.vue

@@ -90,11 +90,11 @@ const doWithDrawWarning = () => {
         if (valid) {
             loading.value = true
             getServerTime().then((res) => {
-                const n = moment(res.data, 'HH:mm')
+                const n = moment(res.data)
                 const s = moment(start, 'HH:mm')
                 const e = moment(end.value, 'HH:mm')
                 // 出金时间必须在开始和结束时间之间
-                if (n.isSameOrAfter(s) && n.isBefore(e)) {
+                if (n.isSameOrAfter(s) && n.isSameOrBefore(e)) {
                     /// 提交
                     formSubmit()
                 } else {