surprise
2024-04-07 e4b5218fd22247977da5e8f7152ee966a25d89ec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
<!--
 * @Description: 
 * @Author: 王旭
 * @Date: 2023-02-27 11:30:56
 * @LastEditTime: 2023-03-06 15:19:16
 * @LastEditors: 王旭
-->
<template>
  <div class="banner">
    <!-- <img
      class="pcimg"
      src="../assets/img/index/javier-miranda-Jn2EaLLYZfY-unsplash.png"
      alt=""
    />
    <img class="mimg" src="../assets/img/index/pic_banner_1beitu.png" alt="" /> -->
    <div class="banner_bg">
 
      <el-carousel style="height: 100vh;">
        <el-carousel-item v-for="item in carouselOption" :key="item">
 
          <div class="carouselContent" :class="item.clazz">
            <div class="carouselLabel">
              <h1>{{ item.label }}</h1>
              <h2>{{ item.val[0] }}</h2>
              <h3>{{ item.val[1] }}</h3>
            </div>
          </div>
        </el-carousel-item>
      </el-carousel>
    </div>
  </div>
 
  <div class="content_bottom">
    <div class="content_bottom_bg"></div>
    <h3 class="content_bottom_title">应用场景</h3>
    <div class="content_bottom_b">
      <div class="content_bottom_b_c" @click="stMenuClick('/WebGIS')">
        <div class="content_bottom_b_c_b">
          <div class="content_bottom_b_c_b1"></div>
        </div>
        <div class="content_bottom_b_c_n">Web GIS</div>
      </div>
      <div class="content_bottom_b_c" @click="stMenuClick('/CIM')">
        <div class="content_bottom_b_c_b">
          <div class="content_bottom_b_c_b2"></div>
        </div>
        <div class="content_bottom_b_c_n">CIM引擎平台</div>
      </div>
      <div class="content_bottom_b_c" @click="stMenuClick('/ParallelWorld')">
        <div class="content_bottom_b_c_b">
          <div class="content_bottom_b_c_b3"></div>
        </div>
        <div class="content_bottom_b_c_n">Parallel World</div>
      </div>
    </div>
  </div>
</template>
 
<script lang="ts" setup>
import {
  ref,
  onMounted,
  onBeforeUnmount,
  reactive,
  defineProps,
  defineEmits,
} from "vue";
import { useRouter } from "vue-router";
const router = useRouter();
import BScroll from "better-scroll";
import menuTools from '@/assets/js/index.js'
let leftArr = ref(["1", "2", "3", "4"]);
let rightArr = ref([]);
let whichIndex = ref([]);
let rightHeightArr = ref([]);
let rightHeightSumArr = ref([]);
let r = ref([]);
const wrapper = ref(null);
let htmlObj = ref([]);
const carouselOption = ref(null);
 
const SY = () => {
  window.open("https://cim.smartearth.cn/invite/index.html");
};
function getTwoHeightArr() {
  let item1 = document.getElementsByClassName("contentRight_l_c");
 
  // item1.forEach((iitem) => {
  //   rightHeightArr.value.push(item["offsetHeight"]);
  // });
  for (let i = 0; i < item1.length; i++) {
    rightHeightArr.value.push(item1[i].offsetHeight);
  }
 
  let num = 0;
  rightHeightArr.value.forEach((item) => {
    num = num + item;
    rightHeightSumArr.value.push(num);
  });
 
  // 第三步,有了高度滚动条以后,就可以绑定滚动事件了
  bindScrollEvent();
}
function bindScrollEvent() {
  let wrapper = document.getElementById("parent");
 
  // 第四步,绑定滚动事件,看滚动到那个区间里面,思路就是通过右侧的区间去同步左侧的区间
  wrapper.onscroll = () => {
    r.value = wrapper.scrollTop;
    // 看看浏览器滚动的高度落到那个区间,在那个区间,就让对应的项高亮
    const scrollWhichIndex = rightHeightSumArr.value.findIndex(
      (item, index) => {
        return (
          r.value >= rightHeightSumArr.value[index] &&
          r.value < rightHeightSumArr.value[index + 1]
        );
      }
    );
    // console.log("所在区间", scrollWhichIndex);
    // 初始的区间为-1,所以还让其为第一项,即索引为0,当用户往下滑动的时候,所以就会
    // 一直大于负一,所以就让其加上一和左侧的高亮项对应。
    if (scrollWhichIndex > -1) {
      whichIndex.value = scrollWhichIndex + 1;
    } else {
      whichIndex.value = 0;
    }
  };
}
// 第五步,当用户点击的时候再让其滚动,因为滚动和高亮是关联的,所以只要控制滚动,就相当于控制高亮。
// 滚动的距离就是,看用户点击的是哪个菜单项的索引,通过索引找到累加数组对应的那一项,
// 也就是滚动的距离。当为第一项的时候边界值要控制一下
function letItemHighLight(i: number) {
  console.log(wrapper.value);
  if (rightHeightSumArr.value[i - 1] == undefined) {
    wrapper.value.scrollTop = 0;
  } else {
    wrapper.value.scrollTop = rightHeightSumArr.value[i - 1];
  }
}
//移动端判断
var isPc = true;
 
var userAgentInfo = navigator.userAgent; //获取bai游览器请求的用户代理头的值du
var Agents = [
  "Android",
  "iPhone",
  "SymbianOS",
  "Windows Phone",
  "iPad",
  "iPod",
]; //定义移动设备数zhi组
for (var v = 0; v < Agents.length; v++) {
  //判断是否是移动设备
  if (userAgentInfo.indexOf(Agents[v]) > 0) {
    isPc = false;
    break;
  }
}
if (isPc) {
  htmlObj.value = [
    {
      className: "contentRight_l",
      html: "<div class='contentRight_l_rgiht'><video class=\"pcvideo\" poster='./video/第三人民医院3_00000.png' src='./video/加载大量BIM.m4v' width='880' height='495'   autoplay=\"autoplay\" muted=\"muted\" loop    x5-video-player-type=\"h5\" x5-video-player-fullscreen=\"true\"></video></div><div style='clear: both'></div><div class='contentRight_l_left'><h3><span>/</span>海量BIM模型上传</h3><p>免切片,无需轻量化,完整上传BIM模型构件;上传多少加载多少,从此再无性能焦虑。</p><div class='contentRight_num1 contentRight_num'></div></div>",
    },
    {
      className: "contentRight_R",
      html: '<div class="contentRight_l_left"><h3><span>/</span>BIM模型在线编辑</h3><p>前后端同步更新,实时编辑构件信息、属性信息,随时随地修改模型。</p><div class="contentRight_num2 contentRight_num"></div></div><div style="clear: both"></div><div class="contentRight_l_rgiht"><video class="pcvideo" poster="./video/属性编辑序列帧_00000.png" src="./video/属性序列帧.m4v" width="880" height="495"   autoplay="autoplay" muted="muted" loop    x5-video-player-type="h5" x5-video-player-fullscreen="true"></video></div>',
    },
    {
      className: "contentRight_l",
      html: "<div class='contentRight_l_rgiht'><video class=\"pcvideo\" poster='./video/语义融合1_00000.png' src='./video/语义融合.m4v' width='880' height='495'   autoplay=\"autoplay\" muted=\"muted\" loop    x5-video-player-type=\"h5\" x5-video-player-fullscreen=\"true\"></video></div><div style='clear: both'></div><div class='contentRight_l_left'><h3><span>/</span>实景三维+BIM数据融合</h3><p>BIM模型不再孤独,建筑信息与环境信息无缝融合,数据世界全要素精准表达。</p><div class='contentRight_num3 contentRight_num'></div></div>",
    },
    {
      className: "contentRight_R",
      html: '<div class="contentRight_l_left"><h3><span>/</span>多方案对比</h3><p>多重方案切换展示,多角度展现产品理念,多元化展现设计思路。</p><div class="contentRight_num4 contentRight_num"></div></div><div style="clear: both"></div><div class="contentRight_l_rgiht"><video class="pcvideo" poster="./video/方案切换功能_00000.png" src="./video/多方案.m4v" width="880" height="495"   autoplay="autoplay" muted="muted" loop    x5-video-player-type="h5" x5-video-player-fullscreen="true"></video></div>',
    },
  ];
} else {
  htmlObj.value = [
    {
      className: "contentRight_l",
      html: "<div class='contentRight_l_rgiht'><img src='./gif/大容量加载.gif'  alt=''></div><div style='clear: both'></div><div class='contentRight_l_left'><h3><span>/</span>海量BIM模型上传</h3><p>免切片,无需轻量化,完整上传BIM模型构件;上传多少加载多少,从此再无性能焦虑。</p><div class='contentRight_num1 contentRight_num'></div></div>",
    },
    {
      className: "contentRight_R",
      html: '<div class="contentRight_l_left"><h3><span>/</span>BIM模型在线编辑</h3><p>前后端同步更新,实时编辑构件信息、属性信息,随时随地修改模型。</p><div class="contentRight_num2 contentRight_num"></div></div><div style="clear: both"></div><div class="contentRight_l_rgiht"><img src="./gif/属性编辑.gif"  alt=""></div>',
    },
    {
      className: "contentRight_l",
      html: "<div class='contentRight_l_rgiht'><img src='./gif/BIM+GIS融合.gif'  alt=''></div><div style='clear: both'></div><div class='contentRight_l_left'><h3><span>/</span>实景三维+BIM数据融合</h3><p>BIM模型不再孤独,建筑信息与环境信息无缝融合,数据世界全要素精准表达。</p><div class='contentRight_num3 contentRight_num'></div></div>",
    },
    {
      className: "contentRight_R",
      html: '<div class="contentRight_l_left"><h3><span>/</span>多方案对比</h3><p>多重方案切换展示,多角度展现产品理念,多元化展现设计思路。</p><div class="contentRight_num4 contentRight_num"></div></div><div style="clear: both"></div><div class="contentRight_l_rgiht"><img src="./gif/方案切换.gif"  alt=""></div>',
    },
  ];
}
const stMenuClick = (res) => {
  router.push({ path: res });
 
  window.scrollTo(0, 0)
}
const setMenuOptionStart = () => {
  var obj = menuTools.homePageData;
  carouselOption.value = obj;
}
onMounted(() => {
  setMenuOptionStart();
});
onBeforeUnmount(() => { });
</script>
<style lang="less">
.banner {
  width: 100%;
  height: 100vh;
  position: relative;
  cursor: pointer;
  background-size: cover;
 
  .pcimg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
  }
 
  .banner_bg {
    width: 100%;
    height: 100%;
    position: relative;
 
    background: rgba(0, 0, 0, 0.4);
 
    .el-carousel__container {
      height: 100%;
    }
 
    .carouselContent {
      width: 100%;
      height: 100%;
 
      display: flex;
      justify-content: center
    }
 
    .carouselLabel {
      color: white;
      bottom: 0.3rem;
      position: absolute;
      text-align: center;
 
      h1 {
        font-size: 60px;
        font-family: inherit;
        font-weight: 500;
        margin-bottom: 0.1rem;
      }
 
    }
 
    .carousel1 {
      background: url("../assets/img/banner/home1.jpg") no-repeat;
      background-size: 100% 100%;
    }
 
    .carousel2 {
      background: url("../assets/img/banner/web4.png") no-repeat;
      background-size: 100% 100%;
    }
 
    .carousel3 {
      background: url("../assets/img/banner/PW7.jpg") no-repeat;
      background-size: 100% 100%;
    }
 
    .carousel4 {
      background: url("../assets/img/banner/home4.jpg") no-repeat;
      background-size: 100% 100%;
    }
  }
 
  .title {
    position: absolute;
    top: 39%;
    left: 200px;
 
    h3 {
      font-size: 60px;
      font-family: WDCHT;
      color: #ffffff;
      text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.8);
      margin: 0;
      padding-bottom: 10px;
    }
 
    p {
      font-size: 30px;
      font-family: MicrosoftYaHei;
      color: #ffffff;
      padding-top: 20px;
    }
  }
 
  .QRcode {
    position: absolute;
    right: 200px;
    bottom: 6%;
 
    img {
      width: 164px;
      height: 164px;
    }
 
    .QRcode_title {
      font-size: 18px;
      color: #fff;
      font-weight: bold;
      padding-bottom: 20px;
      text-align: center;
    }
  }
}
 
.title_btn {
  padding-top: 80px;
 
  .btn {
    width: 160px;
    height: 44px;
    // background: #6889d8;
    border-radius: 0;
    color: #fff;
    border: 0;
    font-size: 16px;
  }
}
 
@media (max-width: 1125px) {
  .banner {
    width: 100%;
    height: 360px;
    background: url("../assets/img/index/pic_banner_1beitu.png") no-repeat center;
    background-size: cover;
  }
 
  .title_btn {
    padding-top: 10px;
    // .btn {
    //   width: 160px;
    //   height: 44px;
    // }
  }
}
 
.content {
  width: 1530px;
  margin: 0 auto;
  // height: 600px;
  margin-top: 160px;
  margin-bottom: 160px;
  // padding-left: 200px;
  // padding-right: 200px;
  // box-sizing: border-box;
  position: relative;
 
  .parent {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    // flex-direction: row-reverse;
    // overflow-y: auto;
    // -ms-overflow-style: none;
    // overflow: -moz-scrollbars-none;
  }
 
  .contentLeft {
    position: absolute;
    top: 0px;
    left: 0;
 
    .left_top {
      width: 200px;
      height: 44px;
      background: #192236;
      font-size: 22px;
      font-family: Times-Roman, Times;
      font-weight: normal;
      color: #ffffff;
      text-align: center;
      line-height: 44px;
      margin-bottom: 30px;
    }
 
    .left_top_title {
      padding-left: 16px;
      font-size: 30px;
      font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
      font-weight: bold;
      color: #192236;
      margin-bottom: 40px;
    }
 
    .left_ul {
      padding-left: 50px;
 
      li {
        width: 20px;
        height: 20px;
        border: 1px solid rgba(25, 34, 54, 0.5);
        border-radius: 50%;
        text-align: center;
        line-height: 20px;
        font-size: 12px;
        font-family: Times-Bold, Times;
        font-weight: bold;
        color: rgba(25, 34, 54, 0.5);
        margin-bottom: 12px;
        cursor: pointer;
      }
 
      .highLight {
        background: rgba(25, 34, 54, 1);
        color: #fff;
      }
 
      li:hover {
        background-color: rgba(25, 34, 54, 1);
        color: #fff;
      }
    }
  }
 
  .contentRight {
 
    // width: 100%;
    .contentRight_l {
      // width: 100%;
      display: flex;
      // align-items: center;
      // justify-content: space-around;
      flex-direction: row-reverse;
      margin-bottom: 160px;
 
      .contentRight_l_left {
        width: calc(300px + 100px);
        position: relative;
        margin-right: 60px;
 
        h3 {
          font-size: 28px;
          font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
          font-weight: bold;
          color: #192236;
          padding-bottom: 20px;
 
          span {
            font-size: 26px;
            font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
            font-weight: bold;
            color: #6889d8;
            padding-right: 10px;
          }
        }
 
        p {
          font-size: 24px;
          font-family: MicrosoftYaHei;
          color: rgba(25, 34, 54, 0.6);
          text-align: justify;
          text-align-last: auto;
        }
 
        .contentRight_num1 {
          position: absolute;
          width: 189px;
          height: 344px;
          top: 110px;
          left: 0;
          background: url("../assets/img/index/1.png") no-repeat center;
          background-size: 100% 100%;
        }
 
        .contentRight_num3 {
          position: absolute;
          width: 189px;
          height: 344px;
          top: 110px;
          left: 0;
          background: url("../assets/img/index/3.png") no-repeat center;
          background-size: 100% 100%;
        }
      }
 
      .contentRight_l_rgiht {
        width: 908px;
        height: 523px;
        background: url("../assets/img/index/sign_waikuang_da.png") no-repeat center;
        background-size: 100% 100%;
        display: flex;
        align-items: center;
        justify-content: center;
 
        img {
          width: 880px;
          height: 495px;
        }
      }
    }
 
    .contentRight_R {
      display: flex;
      // align-items: center;
      // justify-content: space-between;
 
      flex-direction: row-reverse;
      // margin-bottom: 180px;
      margin-bottom: 160px;
 
      .contentRight_l_left {
        width: calc(300px + 100px);
        position: relative;
        margin-left: 60px;
        margin-right: 0;
 
        h3 {
          font-size: 28px;
          font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
          font-weight: bold;
          color: #192236;
          padding-bottom: 20px;
 
          span {
            font-size: 26px;
            font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
            font-weight: bold;
            color: #6889d8;
            padding-right: 10px;
          }
        }
 
        p {
          font-size: 24px;
          font-family: MicrosoftYaHei;
          color: rgba(25, 34, 54, 0.6);
          text-align: justify;
          text-align-last: auto;
        }
 
        .contentRight_num2 {
          position: absolute;
          width: 189px;
          height: 344px;
          top: 110px;
          left: 0;
          background: url("../assets/img/index/2.png") no-repeat center;
          background-size: 100% 100%;
        }
 
        .contentRight_num4 {
          position: absolute;
          width: 189px;
          height: 344px;
          top: 110px;
          left: 0;
          background: url("../assets/img/index/4.png") no-repeat center;
          background-size: 100% 100%;
        }
      }
 
      .contentRight_l_rgiht {
        width: 908px;
        height: 523px;
        background: url("../assets/img/index/sign_waikuang_da.png") no-repeat center;
        background-size: 100% 100%;
        display: flex;
        align-items: center;
        justify-content: center;
 
        img {
          width: 880px;
          height: 495px;
        }
      }
    }
 
    // .contentRight_l:nth-child(2) {
    //   margin-bottom: 0;
    //   padding-bottom: 80px;
    // }
    // .contentRight_l:nth-child(3) {
    //   margin-bottom: 0;
    //   padding-bottom: 80px;
    // }
    .contentRight_R:last-child {
      margin-bottom: 0;
      // padding-bottom: 80px;
    }
 
    .pcvideo {
      width: 880px;
      height: 495px;
      object-fit: fill;
    }
  }
}
 
.parent::-webkit-scrollbar {
  width: 0 !important;
}
 
.content_bottom {
  width: 100%;
  // height: 884px;
  background: rgba(25, 34, 54, 1);
  position: relative;
  padding-bottom: 100px;
   cursor: pointer;
  .content_bottom_bg {
    width: 100%;
    position: absolute;
    height: 537px;
    background: url("../assets/img/index/bg_changjing.png") no-repeat center;
    background-size: 100% 100%;
    top: 0;
    left: 0;
    z-index: 0;
  }
 
  .content_bottom_title {
    position: relative;
    font-size: 36px;
    // font-family: WDCHT;
    color: #ffffff;
    padding-top: 140px;
    text-align: center;
    padding-bottom: 85px;
  }
 
  .content_bottom_b {
    width: 100%;
 
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
  }
 
  .content_bottom_b_c {
    width: 536px;
  }
 
  .content_bottom_b_c:hover {
    transform: scale(1.1);
  }
 
  .content_bottom_b_c_b {
    width: 536px;
    height: 312px;
    background: url("../assets/img/index/sign_waikuang_xiao.png") no-repeat center;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
 
    .content_bottom_b_c_b1 {
      width: 512px;
      height: 288px;
      background: url("../assets/img/banner/web4.png") no-repeat center;
      background-size: 100% 100%;
    }
 
    .content_bottom_b_c_b2 {
      width: 512px;
      height: 288px;
      background: url("../assets/img/banner/PW7.jpg") no-repeat center;
      background-size: 100% 100%;
    }
 
    .content_bottom_b_c_b3 {
      width: 512px;
      height: 288px;
      background: url("../assets/img/banner/home4.jpg") no-repeat center;
      background-size: 100% 100%;
    }
  }
 
  .content_bottom_b_c_n {
    padding-top: 16px
      /* 16/192 */
    ;
    font-size: 30px;
    font-weight: bolder;
    font-family: inherit;
 
    color: #ffffff;
    text-align: center;
  }
}
</style>