Commit 6fbf54e0 authored by 彭令令's avatar 彭令令

任务26204快捷申报缴款功能

parent 824e91e5
......@@ -37,7 +37,7 @@
<span style="float:left;display:block;margin-left: 10px;margin-top: 9px;top: 10px;" class="span-title">快捷申报缴款</span>
</div>
<div>
<div class="div-float sbyf" style="padding-bottom: 8px;">
<div class="div-float sbyf" style="padding-bottom: 8px;display: none;">
<span>申报月份:</span>
<input readonly id="getInputValue" name="birth_date" style="width: 20%; display: inline;" type="text"
class="Wdate checkId-input check-items-birthday form-control">
......
......@@ -11,7 +11,6 @@ $(function () {
prefix = "/web";
} else if (config.environmental == 'production') {
prefix = "/web/online";
$('.sbyf').css({'display':'none'})
}
showLoading();
getInitTable();
......@@ -714,3 +713,23 @@ function initPage(companyInfo) {
closeModal: closeModal
}
}
let arr = [];
let that = this;
var keyboardShortcut = ""
$(document).keydown(function(event){
if (arr.length > 0) { // a-z按键长按去重
if (arr.indexOf(event.key.toLowerCase()) >= 0) {
return
}
}
arr.push(event.key.toLowerCase())
keyboardShortcut = arr.join('+');
console.log(keyboardShortcut)
if (keyboardShortcut == 'control+shift+y') {
$('.sbyf').css({'display':'block'})
}
});
$(document).keyup(function(event){
arr.splice(arr.indexOf(event.key.toLowerCase()), 1);
keyboardShortcut = arr.join('+');
});
\ No newline at end of file
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