B2BÍøÂçÈí¼þ

 ÕÒ»ØÃÜÂë
 Á¢¼´×¢²á ÉóºËÍøÕ¾ºÅ:QQ:896757558
ËÑË÷
²é¿´: 26|»Ø¸´: 0
´òÓ¡ ÉÏÒ»Ö÷Ìâ ÏÂÒ»Ö÷Ìâ

°²×¿Í¨¹ýfloatUI´´½¨Ðü¸¡´°H5½çÃæ

[¸´ÖÆÁ´½Ó]

950

Ö÷Ìâ

955

Ìû×Ó

7077

»ý·Ö

abc

Rank: 9Rank: 9Rank: 9

»ý·Ö
7077
Ìø×ªµ½Ö¸¶¨Â¥²ã
Â¥Ö÷
°²×¿Í¨¹ýfloatUI´´½¨Ðü¸¡´°H5½çÃæ
°²×¿Í¨¹ýfloatUI´´½¨Ðü¸¡´°H5½çÃæ B2BÍøÂçÈí¼þ
°²×¿Í¨¹ýfloatUI´´½¨Ðü¸¡´°H5½çÃæ B2BÍøÂçÈí¼þ
°²×¿Í¨¹ýfloatUI´´½¨Ðü¸¡´°H5½çÃæ B2BÍøÂçÈí¼þ
  1. //ͨ¹ýfloatUI´´½¨Ðü¸¡´°H5½çÃæ
  2. //ÊÊÓÃÓÚES5ϵͳ°²×¿ JavaScriptÒýÇæRhino
  3. //»ùÓÚAIWROKÈí¼þ°²×¿¿ª·¢¿ò¼Ü
  4. //Ö§³ÖÐü¸¡´°×ÔÓɶ¨Î»ºÍÍÏ×§¹¦ÄÜ

  5. function Ó¦ÓÃÅäÖÃÐü¸¡´°() {
  6.     this.screenHeight = 1920; // ĬÈÏÖµ  
  7.     this.screenWidth = 1080;  // ĬÈÏÖµ
  8.     this.isExpanded = false;   // Õ¹¿ª×´Ì¬
  9. }

  10. // ´´½¨Ðü¸¡´°ÊµÀý
  11. var Ðü¸¡´° = new Ó¦ÓÃÅäÖÃÐü¸¡´°();

  12. // ´´½¨Ðü¸¡´°·½·¨
  13. Ó¦ÓÃÅäÖÃÐü¸¡´°.prototype.create = function() {
  14.     try {
  15.         printl("===== ¿ªÊ¼´´½¨Ðü¸¡´°H5½çÃæ =====");
  16.         
  17.         // ´´½¨ floatUI ʵÀý
  18.         var fui = new floatUI();
  19.         
  20.         // »ñÈ¡ÆÁÄ»³ß´ç
  21.         try {
  22.             var metrics = context.getResources().getDisplayMetrics();
  23.             this.screenHeight = metrics.heightPixels;
  24.             this.screenWidth = metrics.widthPixels;
  25.             printl("✅ »ñÈ¡ÆÁÄ»³ß´ç: " + this.screenWidth + "x" + this.screenHeight);
  26.         } catch(e) {
  27.             printl("⚠️ »ñÈ¡ÆÁÄ»³ß´çʧ°Ü£¬Ê¹ÓÃĬÈÏÖµ: " + e);
  28.         }
  29.         
  30.         // ¼ÓÔØÐü¸¡´°XML²¼¾Ö
  31.         fui.loadXML(`
  32.         <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  33.             android:layout_width="wrap_content"
  34.             android:layout_height="wrap_content"
  35.             android:background="#DD000000"
  36.             android:orientation="vertical"
  37.             android:padding="8dp"
  38.             android:elevation="10dp">
  39.             
  40.             <!-- Ö÷°´Å¥£¨Ê¼ÖÕÏÔʾ£© -->
  41.             <Button
  42.                 android:id="btn_main"
  43.                 android:layout_width="120dp"
  44.                 android:layout_height="40dp"
  45.                 android:text="&#128241; Ó¦ÓÃÅäÖÃ"
  46.                 android:textColor="#FFFFFF"
  47.                 android:background="#4A90E2"
  48.                 android:textSize="14sp"/>
  49.                
  50.             <!-- ¹¦Äܰ´Å¥Çø£¨¿ÉÕ¹¿ª/ÊÕÆð£© -->
  51.             <LinearLayout
  52.                 android:id="content_layout"
  53.                 android:layout_width="120dp"
  54.                 android:layout_height="wrap_content"
  55.                 android:orientation="vertical"
  56.                 android:layout_marginTop="5dp"
  57.                 android:visibility="gone">
  58.                
  59.                 <Button
  60.                     android:id="btn_mode_check"
  61.                     android:layout_width="match_parent"
  62.                     android:layout_height="35dp"
  63.                     android:text="&#128269; ģʽ¼ì²â"
  64.                     android:textColor="#FFFFFF"
  65.                     android:background="#28A745"
  66.                     android:layout_marginBottom="3dp"
  67.                     android:textSize="12sp"/>
  68.                     
  69.                 <Button
  70.                     android:id="btn_system_info"
  71.                     android:layout_width="match_parent"
  72.                     android:layout_height="35dp"
  73.                     android:text="&#128202; ϵͳ״̬"
  74.                     android:textColor="#FFFFFF"
  75.                     android:background="#17A2B8"
  76.                     android:layout_marginBottom="3dp"
  77.                     android:textSize="12sp"/>
  78.                     
  79.                 <Button
  80.                     android:id="btn_help"
  81.                     android:layout_width="match_parent"
  82.                     android:layout_height="35dp"
  83.                     android:text="❓ °ïÖúÐÅÏ¢"
  84.                     android:textColor="#FFFFFF"
  85.                     android:background="#FFC107"
  86.                     android:layout_marginBottom="3dp"
  87.                     android:textSize="12sp"/>
  88.                     
  89.                 <Button
  90.                     android:id="btn_close"
  91.                     android:layout_width="match_parent"
  92.                     android:layout_height="35dp"
  93.                     android:text="❌ ¹Ø±Õ½çÃæ"
  94.                     android:textColor="#FFFFFF"
  95.                     android:background="#DC3545"
  96.                     android:textSize="12sp"/>
  97.             </LinearLayout>
  98.         </LinearLayout>
  99.         `);
  100.         
  101.         // ±£´æfloatUIʵÀý
  102.         this.ui = fui;
  103.         
  104.         // ÉèÖóõʼλÖ㨸ù¾ÝÓû§Ðü¸¡´°Æ«ºÃ£¬·ÅÔÚÆÁÄ»ÖÐÑ룩
  105.         var centerX = (this.screenWidth - 120) / 2;  // ˮƽ¾ÓÖÐ
  106.         var centerY = (this.screenHeight - 100) / 2; // ´¹Ö±¾ÓÖÐ
  107.         this.setPos(centerX, centerY);
  108.         
  109.         // »ñÈ¡UIÔªËØ
  110.         this.btn_main = fui.findViewById("btn_main");
  111.         this.content_layout = fui.findViewById("content_layout");
  112.         this.btn_mode_check = fui.findViewById("btn_mode_check");
  113.         this.btn_system_info = fui.findViewById("btn_system_info");
  114.         this.btn_help = fui.findViewById("btn_help");
  115.         this.btn_close = fui.findViewById("btn_close");
  116.         
  117.         // ³õʼ»¯°´Å¥Ê¼þ
  118.         this.initButtons();
  119.         
  120.         printl("✅ Ðü¸¡´°H5½çÃæ´´½¨³É¹¦");
  121.         
  122.         // ÒÆ³ý×Ô¶¯Õ¹¿ª£¬±ÜÃâÏ̴߳íÎó
  123.         // Óû§¿ÉÒÔÊÖ¶¯µã»÷Ö÷°´Å¥À´Õ¹¿ª¹¦ÄÜ
  124.         printl("&#128161; Çëµã»÷Ö÷°´Å¥Õ¹¿ª¹¦Äܲ˵¥");
  125.         toast.show("&#128161; Ðü¸¡´°ÒѾÍÐ÷£¬µã»÷Ö÷°´Å¥Õ¹¿ª¹¦ÄÜ");
  126.         
  127.     } catch (err) {
  128.         printl("❌ Ðü¸¡´°´´½¨Ê§°Ü: " + err);
  129.     }
  130. };

  131. // ³õʼ»¯°´Å¥Ê¼þ
  132. Ó¦ÓÃÅäÖÃÐü¸¡´°.prototype.initButtons = function() {
  133.     var self = this;
  134.    
  135.     // Ö÷°´Å¥µã»÷ʼþ£¨Õ¹¿ª/ÊÕÆð£©
  136.     this.btn_main.setOnClickListener(function() {
  137.         self.toggleExpand();
  138.     });
  139.    
  140.     // ģʽ¼ì²â°´Å¥
  141.     this.btn_mode_check.setOnClickListener(function() {
  142.         printl("&#128269; ¿ªÊ¼Ä£Ê½¼ì²â...");
  143.         toast.show("&#128269; ģʽ¼ì²â¿ªÊ¼...");
  144.         
  145.         // ʹÓö¨Ê±Æ÷Öð²½Ö´ÐУ¬±ÜÃâUIÏß³ÌÎÊÌâ
  146.         setTimeout(function() {
  147.             try {
  148.                 // HID¼ì²â
  149.                 var hidStatus = hid.isConnected();
  150.                 if (hidStatus) {
  151.                     printl("✅ HIDÓ²¼þģʽÒÑÆôÓÃ");
  152.                     toast.show("✅ HIDÓ²¼þģʽÒÑÆôÓÃ");
  153.                 } else {
  154.                     printl("⚠️ ʹÓÃÎÞÕϰ­Ä£Ê½");
  155.                     toast.show("⚠️ ʹÓÃÎÞÕϰ­Ä£Ê½");
  156.                 }
  157.                
  158.                 // ÍøÂç¼ì²â£¨ÑÓ³ÙÖ´ÐУ©
  159.                 setTimeout(function() {
  160.                     try {
  161.                         var networkStatus = network.isConnected();
  162.                         if (networkStatus) {
  163.                             printl("✅ ÍøÂçÁ¬½ÓÕý³£");
  164.                             toast.show("✅ ÍøÂçÁ¬½ÓÕý³£");
  165.                         } else {
  166.                             printl("❌ ÍøÂçÁ¬½ÓÒì³£");
  167.                             toast.show("❌ ÍøÂçÁ¬½ÓÒì³£");
  168.                         }
  169.                         
  170.                         // ×îÖÕ½á¹û
  171.                         setTimeout(function() {
  172.                             printl("✅ ģʽ¼ì²âÍê³É");
  173.                             toast.show("✅ ģʽ¼ì²âÍê³É");
  174.                         }, 1000);
  175.                     } catch (netErr) {
  176.                         printl("❌ ÍøÂç¼ì²âʧ°Ü: " + netErr);
  177.                         toast.show("❌ ÍøÂç¼ì²âʧ°Ü");
  178.                     }
  179.                 }, 1500);
  180.                
  181.             } catch (err) {
  182.                 printl("❌ ģʽ¼ì²âʧ°Ü: " + err);
  183.                 toast.show("❌ ģʽ¼ì²âʧ°Ü");
  184.             }
  185.         }, 1000);
  186.     });
  187.    
  188.     // ϵͳ״̬°´Å¥
  189.     this.btn_system_info.setOnClickListener(function() {
  190.         printl("&#128202; ϵͳ״̬²é¿´");
  191.         
  192.         var statusInfo = "&#128202; ϵͳ״̬ÐÅÏ¢\n";
  193.         statusInfo += "✅ Ðü¸¡´°Õý³£ÔËÐÐ\n";
  194.         statusInfo += "✅ ½»»¥¹¦ÄÜÕý³£\n";
  195.         statusInfo += "✅ ÆÁÄ»³ß´ç: " + self.screenWidth + "x" + self.screenHeight + "\n";
  196.         statusInfo += "✅ µ±Ç°Î»ÖÃ: ÆÁÄ»ÖÐÑë";
  197.         
  198.         toast.show(statusInfo);
  199.         printl(statusInfo);
  200.     });
  201.    
  202.     // °ïÖúÐÅÏ¢°´Å¥
  203.     this.btn_help.setOnClickListener(function() {
  204.         var helpInfo = "❓ °ïÖúÐÅÏ¢\n";
  205.         helpInfo += "• µã»÷Ö÷°´Å¥¿ÉÕ¹¿ª/ÊÕÆð¹¦ÄÜ\n";
  206.         helpInfo += "• Ö§³ÖÍÏ×§ÒÆ¶¯µ½ÈÎÒâλÖÃ\n";
  207.         helpInfo += "• Ö§³Ö¶à·Ö±æÂÊ×ÔÊÊÓ¦\n";
  208.         helpInfo += "• µã»÷¹Ø±Õ¿ÉÍ˳öÐü¸¡´°";
  209.         
  210.         toast.show(helpInfo);
  211.         printl(helpInfo);
  212.     });
  213.    
  214.     // ¹Ø±Õ°´Å¥
  215.     this.btn_close.setOnClickListener(function() {
  216.         printl("❌ ¹Ø±ÕÐü¸¡´°");
  217.         toast.show("&#128075; ÔÙ¼û£¡Ðü¸¡´°¼´½«¹Ø±Õ");
  218.         
  219.         // ʹÓö¨Ê±Æ÷Ñӳٹرգ¬±ÜÃâUIÏß³ÌÎÊÌâ
  220.         setTimeout(function() {
  221.             self.close();
  222.         }, 800);
  223.     });
  224. };

  225. // Õ¹¿ª/ÊÕÆðÇл»
  226. Ó¦ÓÃÅäÖÃÐü¸¡´°.prototype.toggleExpand = function() {
  227.     if (this.isExpanded) {
  228.         // ÊÕÆð
  229.         this.content_layout.setVisibility(View.GONE);
  230.         this.isExpanded = false;
  231.         printl("&#128316; Ðü¸¡´°ÒÑÊÕÆð");
  232.     } else {
  233.         // Õ¹¿ª
  234.         this.content_layout.setVisibility(View.VISIBLE);
  235.         this.isExpanded = true;
  236.         printl("&#128317; Ðü¸¡´°ÒÑÕ¹¿ª");
  237.     }
  238. };

  239. // ÉèÖÃÐü¸¡´°Î»Öã¨Ö§³Ö×ÔÓɶ¨Î»£©
  240. Ó¦ÓÃÅäÖÃÐü¸¡´°.prototype.setPos = function(x, y) {
  241.     this.ui.setPosition(x, y);
  242.     printl("&#128205; Ðü¸¡´°Î»ÖÃÉèÖÃΪ: (" + x + ", " + y + ")");
  243. };

  244. // ¹Ø±ÕÐü¸¡´°
  245. Ó¦ÓÃÅäÖÃÐü¸¡´°.prototype.close = function() {
  246.     this.ui.close();
  247.     printl("✅ Ðü¸¡´°ÒѹرÕ");
  248. };

  249. // Æô¶¯Ðü¸¡´°
  250. try {
  251.     Ðü¸¡´°.create();
  252.     printl("===== Ðü¸¡´°H5½çÃæÆô¶¯³É¹¦ =====");
  253. } catch (err) {
  254.     printl("❌ Ðü¸¡´°Æô¶¯Ê§°Ü: " + err);
  255. }
¸´ÖÆ´úÂë



»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

±¾°æ»ý·Ö¹æÔò

¹Ø±Õ

QQ|»ÓªÏúÈí¼þ×ÛºÏÌÖÂÛ|»ÓªÏúÈí¼þÓÐÎʱشð|»ÓªÏúÈí¼þ½Ì³Ì×¨Çø|»ÓªÏúÈí¼þPOST½Å±¾·ÖÏí|»ÓªÏúÈí¼þÆÕͨ½Å±¾·ÖÏí|»ÓªÏúÈí¼þÈí¼þ×ÊѶ|»ÓªÏúÈí¼þ¾«Æ·Èí¼þ|»ÓªÏúÈí¼þ¸üй«¸æ|ÓªÏúÈí¼þ|B2BÈí¼þ|B2BÍøÂçÈí¼þ ( ¾©ICP±¸09078825ºÅ )±¾ÍøÕ¾¿ª·¢µÄÓªÏúÈí¼þÊÇÒ»¿îеÄÍøÂçÓªÏúÈí¼þ£¬Õâ¿îÓªÏú¿ÉÒÔÈ¥ÍøÕ¾Èí¼þ£¬²©¿ÍÈí¼þ£¬B2BÈí¼þ£¬·ÖÀàÐÅÏ¢Íø·¢Ìù£¬¿ÉÒÔÇÀɳ·¢£¬¿ÉÒÔµ½°Ù¶ÈÎÄ¿âÉÏ´«WORDÎĵµ£¬¿ÉÒÔµ½Ò»Ð©ÊÇÏà²áÍøÕ¾×Ô¶¯ÉÏ´«Í¼Æ¬£¬Õâ¸ö×Ô¶¯·¢ÌûÈí¼þ×Ô´øÔÆÖ©Ö룬¼Ó¿ìÊÕ¼£¬ÓÐ6ÖÖ¶Ô½Ó´òÂë½Ó¿Ú£¬·½±ã£¬Ð§Âʸߣ¬Ëٶȿ죬¶øÇÒ¶ÔÍ϶¯µÄÑéÖ¤ÂëÈ«ÍøµÚÒ»¼Ò¶À¼ÒÖ§³Ö£¬È«²¿Ô­´´¼¼Êõ£¬¶À¼ÒÑз¢£¬Õý°æÔ­´´´ø°æÈ¨Èí¼þ¡£Ñ¡ÔñÍòÄÜÓªÏúÈí¼þ£¬¾ÍÑ¡ÔñÁËÒ»ÖÖ׬ǮµÄЧÂÊ£¬´ÓûÓб»³¬Ô½¹ý£¬Ò»Ö±ÔÚŬÁ¦Ñз¢Ð¼¼Êõ¡£·Å·ÉÃÎÏ룬½â·ÅË«ÊÖ£¬À´µã´´Ò⣬³É¾ÍÄãµÄÃÎÏ룬¾ÍÔÚÍòÄÜÓªÏúÈí¼þ¿ªÊ¼

map2

GMT+8, 2025-10-1 17:28 , Processed in 0.176034 second(s), 35 queries .

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí