From b2fce5019097bb749cf14a8207ef195d3a596a22 Mon Sep 17 00:00:00 2001 From: Devil Date: Thu, 29 Jul 2021 15:05:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=9F=A5=E7=B3=BB=E7=BB=9F=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=8F=90=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/admin/default/js/index.js | 71 ++++++++++++++----------- 1 file changed, 40 insertions(+), 31 deletions(-) diff --git a/public/static/admin/default/js/index.js b/public/static/admin/default/js/index.js index 881658a8c..9ab0e4d7e 100755 --- a/public/static/admin/default/js/index.js +++ b/public/static/admin/default/js/index.js @@ -281,40 +281,49 @@ $(function() { // html内容处理 // 基础信息 - var html = '

'; - html += ''; - html += ''+result.data.title+''; - html += '

'; - html += '
'; - html += '更新版本:'+result.data.version_new+''; - html += '更新日期:'+result.data.add_time+''; - // 是否带指定链接和链接名称 - if((result.data.go_title || null) != null && (result.data.go_url || null) != null) - { - html += ''+result.data.go_title+''; - } - html += '
'; - - // 提示信息 - if((result.data.tips || null) != null) - { - html += '
'; - html += '

'+result.data.tips+'

'; - html += '
'; - } - - // 更新内容介绍 - if((result.data.content || null) != null && result.data.content.length > 0) - { - html += '
'; - html += ''; html += '
'; - } + + // 提示信息 + if((result.data.tips || null) != null) + { + html += '
'; + html += '

'+result.data.tips+'

'; + html += '
'; + } + + // 更新内容介绍 + if((result.data.content || null) != null && result.data.content.length > 0) + { + html += '
'; + html += ''; + html += '
'; + } + } else { + var html = '

'; + html += ''; + html += ''+result.msg+''; + html += '

'; + } $inspect_upgrade_popup.find('.upgrade-content').html(html); // 是否支持在线自动更新