master
2022-04-20 7f1640ad12c63b692a8a4a7deaef46768adde198
public/hn3d/example/00_hn_new.html
@@ -36,6 +36,10 @@
      width: 120px;
      text-align: center
    }
    .disable {
      pointer-events: none;
    }
  </style>
</head>
@@ -60,9 +64,7 @@
    <button type="button" id="meipeng_pati_madao" class="btn btn-primary" style="width: 100%;">爬梯马道</button>
    <button type="button" id="meipeng_tiejia" class="btn btn-primary" style="width: 100%;">钢结构架</button>
    <button type="button" id="meipeng_dimian" class="btn btn-primary" style="width: 100%;">煤棚地面</button>
    <!-- <button type="button" id="dou_move" class="btn btn-primary" style="width: 100%;">移动</button>
    <button type="button" id="dou_rote" class="btn btn-primary" style="width: 100%;">旋转</button>
    <button type="button" id="dou_work" class="btn btn-primary" style="width: 100%;">挖煤</button> -->
    <button type="button" id="test_btn" class="btn btn-primary" style="width: 100%;">测试</button>
    <button type="button" id="point_btn" class="btn btn-primary" style="width: 100%;">煤堆</button>
  </div>
@@ -362,6 +364,7 @@
      // 请求数据库数据,对斗轮机模型进行操作
      $("#test_btn").click(function () {
        $("#test_btn").addClass("disable");
        console.log(dou_params)
        if (model_no < dou_params.length - 1) {
          model_no++
@@ -371,6 +374,9 @@
        let item = dou_params[model_no]
        console.log(item)
        dou_move(item.longitude, item.latitude, item.elevation, item.heading_angle)
        setTimeout(function () {
          $("#test_btn").removeClass("disable");
        }, 5000);
      })
@@ -506,7 +512,7 @@
      $("#point_btn").click(function () {
        var data_path = 'http://112.74.77.127:9100/hn/pointcloud/hn4.txt'
        var data_path = 'http://112.74.77.127:9100/hn/pointcloud/hn.txt'
        console.log("我点击了")
        $.ajax({
          url: data_path,