1007610536_edit.jsp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <html>
  2. <head>
  3. <style>
  4. .CMS-video {
  5. padding: 20px 12px 12px;
  6. text-align: center;
  7. width: 100%;
  8. height: 100%;
  9. box-sizing: border-box;
  10. }
  11. .CMS-video iframe{
  12. width: 100%;
  13. height: 100%;
  14. border: 0;
  15. }
  16. .CMS-video p {
  17. line-height: 26px;
  18. margin: 20px 0;
  19. word-break: break-all;
  20. }
  21. .bottom-div .van-button {
  22. display: inline-block;
  23. }
  24. </style>
  25. </head>
  26. <body>
  27. <div id="space-content">
  28. <div class="content-wrap">
  29. <div class="CMS-video">
  30. <iframe src='@service{ name:`sys.getCMSData`, params:`{cmsid: "${cmsid}", cmsfileid: "${cmsfileid}" }` }@'></iframe>
  31. <!-- <p>{{file.file_name}}</p> -->
  32. <div class="bottom-div">
  33. <van-button type="info" icon="down" block @click="downloadCMSFile">下载({{file.file_size_unit}})</van-button>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. </body>
  39. <script type="text/javascript">
  40. space.vue = new Vue({
  41. el: space.appContent,
  42. data: function() {
  43. return {
  44. file: {},
  45. }
  46. },
  47. methods: {
  48. /**
  49. * 下载文件
  50. */
  51. downloadCMSFile: function () {
  52. window.open('@service{ name: "downloadCMSData", params: `{ cmsid: "${cmsid}", "cmsfileid": "${cmsfileid}" }` }@');
  53. }
  54. }
  55. })
  56. function initFileInfo(file) {
  57. space.vue.$data.file = file;
  58. }
  59. </script>
  60. </html>