Commit 3076c800 authored by 李智书's avatar 李智书

1

parent 20b258f3
...@@ -597,6 +597,9 @@ ...@@ -597,6 +597,9 @@
accountNo = accountNo.slice(accountNo.length - 4, accountNo = accountNo.slice(accountNo.length - 4,
accountNo accountNo
.length); .length);
let minutes_ = (thiTime.getMinutes().toString().length) < 2 ? (thiTime
.getMinutes().toString().padStart(2, "0")) : (thiTime.getMinutes()
.toString())
switch (bankInfo.accountType) { switch (bankInfo.accountType) {
case 3: case 3:
if (thiTime.getMinutes() + 20 >= 60) { if (thiTime.getMinutes() + 20 >= 60) {
...@@ -619,8 +622,7 @@ ...@@ -619,8 +622,7 @@
}) })
break; break;
case 4: case 4:
str = (thiTime.getHours() + 2) + ':' + thiTime str = (thiTime.getHours() + 2) + ':' + minutes_
.getMinutes()
uni.navigateTo({ uni.navigateTo({
url: `../../recharging/recharging?bankName=${this_.bankInfo_.bindCardName}&bankNumber=${accountNo}&time=${str}&money=${(amount * 1).toFixed(2)}` url: `../../recharging/recharging?bankName=${this_.bankInfo_.bindCardName}&bankNumber=${accountNo}&time=${str}&money=${(amount * 1).toFixed(2)}`
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment