| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <html>
- <head>
- <style>
- .CMS-video {
- padding: 20px 12px 12px;
- text-align: center;
- width: 100%;
- height: 100%;
- box-sizing: border-box;
- }
- .CMS-video iframe{
- width: 100%;
- height: 100%;
- border: 0;
- }
- .CMS-video p {
- line-height: 26px;
- margin: 20px 0;
- word-break: break-all;
- }
- .bottom-div .van-button {
- display: inline-block;
- }
- </style>
- </head>
- <body>
- <div id="space-content">
- <div class="content-wrap">
- <div class="CMS-video">
- <iframe src='@service{ name:`sys.getCMSData`, params:`{cmsid: "${cmsid}", cmsfileid: "${cmsfileid}" }` }@'></iframe>
- <!-- <p>{{file.file_name}}</p> -->
- <div class="bottom-div">
- <van-button type="info" icon="down" block @click="downloadCMSFile">下载({{file.file_size_unit}})</van-button>
- </div>
- </div>
- </div>
- </div>
- </body>
- <script type="text/javascript">
- space.vue = new Vue({
- el: space.appContent,
- data: function() {
- return {
- file: {},
- }
- },
- methods: {
- /**
- * 下载文件
- */
- downloadCMSFile: function () {
- window.open('@service{ name: "downloadCMSData", params: `{ cmsid: "${cmsid}", "cmsfileid": "${cmsfileid}" }` }@');
- }
- }
- })
- function initFileInfo(file) {
- space.vue.$data.file = file;
- }
- </script>
-
- </html>
|