Changes for page Home

Last modified by Iris on 2026/04/14 17:40

From version 31.1
edited by xingzhi lin
on 2026/04/10 10:49
Change comment: There is no comment for this version
To version 12.1
edited by Jiahao Lai
on 2026/03/26 15:46
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.lxz
1 +XWiki.Jim258
Content
... ... @@ -186,100 +186,54 @@
186 186  {{/html}}
187 187  {{/velocity}}
188 188  
189 -= Inverter =
190 190  
191 191  
192 -
193 193  {{html clean="false"}}
194 -<div class="row">
195 -<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
196 -<div class="well">
197 -<div>
198 -<a href="https://docs.we-con.com.cn/bin/view/VFD/VM%20AC%20Drive%20User%20Manual/">
199 -<span class="icon fa fa-file-text-o"></span>
200 -Manual
201 -</a>
202 -</div>
203 -<p class="noitems">
204 -Mainly software configuration manuals
205 -</p>
206 -<ul class="noitems">
207 -<li>
208 -<a href="https://docs.we-con.com.cn/bin/view/VFD/VM%20AC%20Drive%20User%20Manual/" class="wikiexternallink">
209 -Learn more
210 -</a>
211 -</li>
212 -</ul>
213 -</div>
214 -</div>
215 -<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
216 -<div class="well">
217 -<div>
218 -<a href="https://docs.we-con.com.cn/bin/view/VFD/3.%20Demo/">
219 -<span class="icon fa fa-support"></span>
220 -Demo
221 -</a>
222 -</div>
223 -<p class="noitems">
224 -Abundant functions are demonstrated through different demo
225 -</p>
226 -<ul class="noitems">
227 -<li>
228 -<a href="https://docs.we-con.com.cn/bin/view/VFD/3.%20Demo/" class="wikiexternallink">
229 -Learn more
230 -</a>
231 -</li>
232 -</ul>
233 -</div>
234 -</div>
235 -<div class="clearfix visible-sm-block "></div>
236 -<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
237 -<div class="well">
238 -<div>
239 -<a href="https://www.youtube.com/playlist?list=PL_Bpnb2RgaktOITeNo-g3fq0jBFoubYGz">
240 -<span class="icon fa fa-play-circle"></span>
241 -Videos
242 -</a>
243 -</div>
244 -<p class="noitems">
245 -Video shows function more clearly
246 -</p>
247 -<ul class="noitems">
248 -<li>
249 -<a href="https://www.youtube.com/playlist?list=PL_Bpnb2RgaktOITeNo-g3fq0jBFoubYGz" class="wikiexternallink">
250 -Learn more
251 -</a>
252 -</li>
253 -</ul>
254 -</div>
255 -</div>
256 -<div class="clearfix visible-md-block"></div>
257 -<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
258 -<div class="well">
259 -<div>
260 -<a href="https://docs.we-con.com.cn/bin/view/VFD/Download/">
261 -<span class="icon fa fa-download"></span>
262 -Download
263 -</a>
264 -</div>
265 -<p class="noitems">
266 -Software Download
267 -</p>
268 -<ul class="noitems">
269 -<li>
270 -<a href="https://docs.we-con.com.cn/bin/view/VFD/Download/" class="wikiexternallink">
271 -Learn more
272 -</a>
273 -</li>
274 -</ul>
275 -</div>
276 -</div>
277 -</div>
278 -{{/html}}
192 +<div id="llm-chat-widget" style="position:fixed;right:20px;bottom:20px;z-index:9999;"></div>
279 279  
194 +<script>
195 +document.addEventListener('DOMContentLoaded', function() {
196 + setTimeout(async () => {
197 + try {
198 + // 1. 先加载依赖库 marked.js(子 wiki 用的版本)
199 + await new Promise((resolve, reject) => {
200 + const markedScript = document.createElement('script');
201 + markedScript.src = 'https://docs.we-con.com.cn/webjars/wiki%3Awonway/marked/4.0.2/marked.min.js';
202 + markedScript.onload = resolve;
203 + markedScript.onerror = reject;
204 + document.body.appendChild(markedScript);
205 + });
206 + console.log("✅ marked.js 加载成功");
280 280  
208 + // 2. 加载 CSS
209 + await new Promise((resolve) => {
210 + const link = document.createElement('link');
211 + link.rel = 'stylesheet';
212 + link.href = 'https://docs.we-con.com.cn/webjars/wiki%3Awonway/application-ai-llm-chat-webjar/0.7.2/chatWidget.css';
213 + link.onload = resolve;
214 + document.head.appendChild(link);
215 + });
281 281  
282 -<script id="chat-widget"
283 - data-wiki-name="wonway"
284 - src="/webjars/wiki:wonway/application-ai-llm-chat-webjar/0.7.2/chatWidget.js">
217 + // 3. 加载 chatWidget.js
218 + await new Promise((resolve) => {
219 + const script = document.createElement('script');
220 + script.src = 'https://docs.we-con.com.cn/webjars/wiki%3Awonway/application-ai-llm-chat-webjar/0.7.2/chatWidget.js';
221 + script.onload = resolve;
222 + document.body.appendChild(script);
223 + });
224 +
225 + // 4. 启动浮窗
226 + if (window.LLMChatWidget && typeof LLMChatWidget.init === 'function') {
227 + LLMChatWidget.init();
228 + console.log("✅ 浮窗启动成功!");
229 + } else {
230 + throw new Error("LLMChatWidget 未初始化");
231 + }
232 + } catch (e) {
233 + console.error("❌ 加载失败", e);
234 + alert("浮窗加载失败:" + e.message);
235 + }
236 + }, 1000);
237 +});
285 285  </script>
239 +{{/html}}