Commit 16788dc5b24444d2b21fe8938c6b9345ef258631
1 parent
ec57c15f
update...
Showing
1 changed file
with
13 additions
and
0 deletions
src/main/resources/fatso/handle_real_ctl.js
| ... | ... | @@ -25,6 +25,7 @@ var pName = 'bsth_control' |
| 25 | 25 | |
| 26 | 26 | var mainFile = dest + _static + sp + 'real_control_v2'+sp+'main.html'; |
| 27 | 27 | var aloneMapWrapFile = dest + _static + sp + 'real_control_v2'+sp+'alone_page'+sp+'map'+sp+'alone_wrap.html'; |
| 28 | +var aloneHomeWrapFile = dest + _static + sp + 'real_control_v2'+sp+'alone_page'+sp+'home'+sp+'alone_wrap.html'; | |
| 28 | 29 | var mapFile = dest + _static + sp + 'real_control_v2'+sp+'mapmonitor'+sp+'real.html'; |
| 29 | 30 | var realCtl = { |
| 30 | 31 | /** |
| ... | ... | @@ -63,7 +64,19 @@ var realCtl = { |
| 63 | 64 | handleCss($, function () { |
| 64 | 65 | handleJs($, aloneMapWrapFile, cb); |
| 65 | 66 | }); |
| 67 | + }, | |
| 68 | + /** | |
| 69 | + * 处理单屏主页 | |
| 70 | + * @param cb | |
| 71 | + */ | |
| 72 | + handleAlonePage: function (cb) { | |
| 73 | + var data = fs.readFileSync(aloneHomeWrapFile, 'utf-8'); | |
| 74 | + var $ = cheerio.load(data); | |
| 75 | + handleCss($, function () { | |
| 76 | + handleJs($, aloneHomeWrapFile, cb); | |
| 77 | + }); | |
| 66 | 78 | } |
| 79 | + | |
| 67 | 80 | }; |
| 68 | 81 | |
| 69 | 82 | /** | ... | ... |