| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <html>
- <head>
- <style>
- .wsicon img {
- padding: 0px;
- }
- .cropper-img {
- padding: 6px
- }
- </style>
- </head>
- <body>
- <div id="space-content">
- <div class="space-info-table">
- <table>
- <tr>
- <th>
- 名称
- </th>
- <td>
- ${website.name}
- </td>
- <th>
- 类别
- </th>
- <td>
- <app:codeBookTranslate name="wtcode" filter="{'wtcode':'${website.wtcode }'}" />
- </td>
- </tr>
- <tr>
- <th>
- 协议
- </th>
- <td>
- ${website.protocol}
- </td>
- <th>
- 端口
- </th>
- <td>
- ${website.port}
- </td>
- </tr>
- <tr>
- <th>
- 模板
- </th>
- <td>
- <span>
- <a :href="templatePreviewURL" target="_blank"
- style="text-decoration: underline;color: #409eff;">{{ templateName }}</a>
- </span>
- </td>
- <th>
- 上级
- </th>
- <td>
- <app:codeBookTranslate name="website" filter="{'websiteid':'${website.parentWid }'}" />
- </td>
- </tr>
- <tr>
- <th>
- 网站标题
- </th>
- <td>
- ${website.seoTitle}
- </td>
- <th>
- 网站关键字
- </th>
- <td>
- ${website.seoKeywords}
- </td>
- </tr>
- <tr>
- <th>
- 状态
- </th>
- <td>
- <app:codeBookTranslate name="sys.dcode" filter="{'dcode':'${website.dcode }'}" />
- </td>
- <th>
- 创建时间
- </th>
- <td>
- <app:dateTime type="format" key="yyyy-MM-dd" value="${website.createTime}" />
- </td>
- </tr>
- <tr>
- <th>
- 网站描述
- </th>
- <td colspan="3">
- ${website.seoDescription}
- </td>
- </tr>
- <tr>
- <th>
- 域名
- </th>
- <td>
- <el-link v-for="item in domainsAry" :href="item" target="_blank" style="margin-right: 10px;" type="primary">{{item}}/</el-link>
- </td>
- <th>图标</th>
- <td>
- <space-preview-img paths="${website.seoIcon}"></space-preview-img>
- </td>
- </tr>
- <tr>
- <th>
- 徽标
- </th>
- <td>
- <c:if test="${website.logo != ''}">
- <div class="cropper-img-content" style="max-width: 200px;">
- <space-preview-img paths="${website.logo}">
- </space-preview-img>
- </div>
- </c:if>
- </td>
- <th>
- 纯白徽标
- </th>
- <td>
- <c:if test="${website.whiteLogoFile != ''}">
- <div class="cropper-img-content" style="max-width: 200px;">
- <space-preview-img paths="${website.whiteLogoFile}" color="blue">
- </space-preview-img>
- </div>
- </c:if>
- </td>
- </tr>
- </table>
- </div>
-
- </div>
- </body>
- <script type="text/javascript">
- space.vue = new Vue({
- el: space.appContent,
- data() {
- return {
- templateName: '',
- templatePreviewURL: '',
- domainsAry: []
- }
- },
- created: function () {
- space.utils.formatDateByEls('yyyy-MM-dd hh:mm', $("span.c_date"));
- var _this = this;
- space.utils.ajax({
- url: '@service{ name:`websiteTemplate_info`, params: `{"wtid": "${website.wtid}"}` }@',
- dataType: 'json',
- callback: function (data) {
- _this.templateName = data.data.name;
- _this.templatePreviewURL = data.data.previewUrl;
- }
- })
-
- this.initDomainAry();
- },
- methods: {
- initDomainAry: function() {
- this.domainsAry = [];
- var protocol = '${website.protocol}://';
- var port = '${website.port}' == 80 ? '' : ':${website.port}';
- var domainList = '${website.domains}'.split(';');
-
- for (var i = 0;i < domainList.length;i++) {
- if (domainList[i]) {
- var url = protocol + domainList[i] + port;
- this.domainsAry.push(url);
- }
- }
- }
- }
- })
- </script>
- </html>
|