File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ hostname = *.jd.com, *.*.jd.com
1414*/
1515const $ = new Env ( '京东助手' ) ;
1616const clickClassNames = $ . getData ( 'id77_vConsole_clickClassNames' ) || '' ;
17+ const clickClassNames2 = $ . getData ( 'id77_vConsole_clickClassNames2' ) || '' ;
1718const clickInterval = $ . getData ( 'id77_vConsole_clickInterval' ) || 70 ; // ms
1819const clickNum = $ . getData ( 'id77_vConsole_clickNum' ) || 1 ; // 点击次数
1920const cancelDisabled =
@@ -390,7 +391,7 @@ try {
390391 strDate = "0" + strDate;
391392 }
392393
393- let taskDate = date.getFullYear() + separator + nowMonth + separator + strDate + " ${ timingRunningTime } ";
394+ let taskDate = date.getFullYear() + separator + nowMonth + separator + strDate + " " + date.getHours() + " ${ timingRunningTime } ";
394395 let needTask = new Date(taskDate) >= new Date() ? true : false;
395396
396397 if (needTask) {
@@ -408,9 +409,12 @@ try {
408409 for (let n = 0; n < $clickDoms.length; n++) {
409410 const $element = $clickDoms[n];
410411
411- let intervalId = setInterval(() => $element.click(),${ Number (
412- clickInterval
413- ) } );
412+ let intervalId = setInterval(() => {
413+ $element.click()
414+ if ("${ clickClassNames2 } " !== "") {
415+ document.querySelector("${ clickClassNames2 } ").click();
416+ }
417+ },${ Number ( clickInterval ) } );
414418
415419 setTimeout(() => clearInterval(intervalId), ${
416420 ( Number ( clickNum ) + 1 ) * clickInterval
Original file line number Diff line number Diff line change 2525 "placeholder" : " #id或div.class" ,
2626 "desc" : " 一定要包含id或class(#或.)"
2727 },
28+ {
29+ "id" : " id77_vConsole_clickClassNames2" ,
30+ "name" : " 二次确认DOM选择器" ,
31+ "val" : " " ,
32+ "type" : " text" ,
33+ "placeholder" : " #id或div.class" ,
34+ "desc" : " 一定要包含id或class(#或.)"
35+ },
2836 {
2937 "id" : " id77_vConsole_cancelDisabled" ,
3038 "name" : " disabled" ,
7381 "name" : " 定时运行时间" ,
7482 "val" : " " ,
7583 "type" : " text" ,
76- "placeholder" : " 07:07:07 " ,
77- "desc" : " 时分秒 ;建议提前3秒钟进入页面,页面加载需要时间"
84+ "placeholder" : " 07:07" ,
85+ "desc" : " 分:秒 ;建议提前3秒钟进入页面,页面加载需要时间"
7886 }
7987 ],
8088 "author" : " @id77" ,
You can’t perform that action at this time.
0 commit comments