修改体检页面,新增特殊时段不让缴费

This commit is contained in:
sangchengzhi
2026-01-13 16:27:42 +08:00
parent 04324d5362
commit aaf244eed6
5 changed files with 506 additions and 52 deletions

View File

@@ -357,6 +357,18 @@ export default {
if( _this.yuyue.m > 0 && _this.radiovalue1 == ''){
Toast("请选择支付方式");
return;
}
// 检查当前时间是否在23:48-00:01之间这个时间段内禁止充值
const now = new Date();
const hours = now.getHours();
const minutes = now.getMinutes();
if ((hours === 23 && minutes >= 48) || (hours === 0 && minutes <= 1)) {
Toast({
message: '当前时间段(23:48-00:01)正在对账暂不支持支付操作请0点过后再试',
duration: 5000
});
return;
}
console.log("card",_this.card.cardNo);
if(_this.radiovalue1 == "微信医保支付" && _this.card.cardNo !="90120746" ){