From 60873cc299ff1acd06b51b9189abdcaec42995a7 Mon Sep 17 00:00:00 2001 From: duhe <226547893@qq.com> Date: 星期二, 08 四月 2025 10:04:52 +0800 Subject: [PATCH] 1 --- WebTM/views/home/console.html | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/WebTM/views/home/console.html b/WebTM/views/home/console.html index 5420be7..3c710da 100644 --- a/WebTM/views/home/console.html +++ b/WebTM/views/home/console.html @@ -313,6 +313,17 @@ var liStr = ''; //閬嶅巻鐢熸垚涓昏彍鍗� for (var i = 0; i < data.length; i++) { + + //鍒ゆ柇涓绘帶鍙板綋鍓嶇櫥褰曠殑璇█绫诲瀷 + var HTranslationText = ""; + if (sessionStorage["HTranSlate"] == "1") { + HTranslationText = data[i].HCaption; + } else if (sessionStorage["HTranSlate"] == "2") { + HTranslationText = data[i].HTranslationText_English; + } else if (sessionStorage["HTranSlate"] == "3") { + HTranslationText = data[i].HTranslationText_Spain; + } + if (i == 0) { liStr += '<ul class="layui-row layui-col-space10 layui-this">'; } else if (i % 8 == 0) { @@ -329,7 +340,7 @@ liStr += '<i id="' + data[i]["HSubFuncID"] + '" class="' + data[i]["HPicNum"] + '"></i>'; } - liStr += '<cite>' + data[i]["HCaption"] + '</cite>'; + liStr += '<cite>' + HTranslationText + '</cite>'; liStr += '</a>'; -- Gitblit v1.9.1