tj
2025-03-17 0b058116985f0b3415f01c69c1735e1f6a7b51ea
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
<template>
  <div class="home-container">
    <div class="carousel-container" style="margin-top:60px;">
      <!-- 上方主要轮播 -->
      <el-carousel ref="mainCarousel" indicator-position="none" trigger="click" height="100vh" :pause-on-hover="false"
        @change="handleMainChange">
        <el-carousel-item v-for="(item, index) in items" :key="index" style="display: flex; justify-content: center;">
          <div class="carousel-content-main" :style="{
            backgroundImage: `url(${item.url})`,
            backgroundSize: 'cover',
            backgroundPosition: 'center',
            width: '100%',
            height: '100%'
          }">
            <!-- {{ item.content }} -->
          </div>
        </el-carousel-item>
      </el-carousel>
 
      <!-- 下方卡片模式轮播 -->
      <el-carousel ref="cardCarousel" :interval="5000" arrow="always" indicator-position="none" trigger="click"
        type="card" height="100px" class="overlay-carousel" @change="handleCardChange">
        <el-carousel-item v-for="(item, index) in items" :key="index">
          <div class="carousel-content">
            <div class="title">{{ item.title }}</div>
            <div class="content">{{ item.content }}</div>
          </div>
        </el-carousel-item>
      </el-carousel>
    </div>
 
    <div class="our-products">
      <div class="our-products-title">
        <h1>我们的产品</h1>
      </div>
      <div class="our-products-carousel">
        <el-carousel :interval="3000" arrow="always">
          <el-carousel-item v-for="item in 4" :key="item">
            <!-- 这里是存放产品信息 -->
            <el-row>
              <el-col :span="6" v-for="o in 4" :key="o">
                <div class="our-products-carousel-product">
                  <el-card>
                    <div class="card-content-div"><span class="card-content-div-title">智慧校园门户网站</span></div>
                    <div class="card-content-div"><span
                        class="card-content-div-content">提供全流程、一体化的数据治理与数据服务提供全流程、一体化的数据治理与数据服务</span></div>
                    <img src="http://192.168.1.201:9000/portal/bg.png"
                      style="width: 100%; height: 100px;object-fit: cover;" />
                  </el-card>
                </div>
              </el-col>
            </el-row>
          </el-carousel-item>
        </el-carousel>
      </div>
    </div>
 
    <div class="third-other">
      <el-row>
        <el-col :span="8">
          <div class="third-other-title">产品中心</div>
          <ul class="footer-list footer-list-menus">
            <li v-for="(item, index) in ProductCenters"><el-link :underline="false" :href="item.url" target="_blank"><span class="f12">{{item.name}}</span></el-link></li>
          </ul>
        </el-col>
        <el-col :span="8">
          <div class="third-other-title">合作过的客户</div>
          <div>
            <img v-for="(item, index) in cooperativeClients" :src="item.url" class="cooperation-img" />
          </div>
        </el-col>
        <el-col :span="8">
          <div class="third-other-title">公司信息</div>
          <div class="contact-us">
            <div class="j-a-c">
              <div class="j-a-c">
                <img :src="companyInfo.logo" alt="云游四方" class="logo-l" />
                <span class="logo-l-text">{{ companyInfo.name }}</span>
              </div>
              <div class="f12 m-10"> {{ companyInfo.desc }}</div>
            </div>
            <!-- <div class="j-a-c">
              <p><span class="f12 m-10">全国热线电话:</span>
                <el-link v-for="(item, index) in companyInfo.phoneHotList" :underline="false" href="tel:400-102-8686"><span class="f12 m-10">{{ item }}</span></el-link>
              </p>
            </div>
            <div class="j-a-c">
              <p><span class="f12 m-10">全国售后电话:</span>
                <el-link v-for="(item, index) in companyInfo.phoneSaleAfterList" :underline="false" href="tel:400-102-8686"><span class="f12 m-10">{{ item }}</span></el-link>
              </p>
            </div> -->
            <div class="j-a-c">
              <p><span class="f12 m-10">地址:{{ companyInfo.address }}</span></p>
            </div>
            <div class="footer-QR-code">
              <div class="j-a-c-column" v-for="(item, index) in companyInfo.qrCodeList"><img :src="item.url" alt="云游四方" class="qr-code-img" /><span>{{ item.name }}</span></div>
            </div>
          </div>
        </el-col>
      </el-row>
    </div>
    <el-backtop :right="20" :bottom="50" style="width: 30px; height: 30px;" />
 
    <!-- 右侧悬浮按钮 -->
 
    <div class="float-buttons">
      <el-popover placement="left" trigger="hover">
        
        <div class="j-a-c">
            <img :src="companyInfo.wechat" alt="微信二维码" class="popover-img" style="width: 100px; height: 100px;" />
        </div>
        <template #reference>
          <div class="j-a-c">
            <img src="http://192.168.1.201:9000/portal/wechat.png" alt="微信" class="xuanfu" />
          </div>
          
        </template>
      </el-popover>
 
      <el-popover placement="left" trigger="hover">
        <p>18913206309</p>
        <template #reference>
          <img src="http://192.168.1.201:9000/portal/phone.png" alt="电话" class="xuanfu" />
        </template>
      </el-popover>
    </div>
 
  </div>
</template>
 
<script lang="ts" setup>
import { ref } from 'vue'
import type { ElCarousel } from "element-plus";
// import { CarouselItem } from '@/models/carouselItem'; 
// import { CooperativeClient } from '@/models/cooperativeClient'; 
import { CarouselItem,CooperativeClient,ProductCenter,CompanyInfo, CompanyQrCodeInfo } from '@/models/portalModels'; 
 
 
// const items = ref([0, 1, 2, 3]); // 轮播项
const mainCarousel = ref<InstanceType<typeof ElCarousel> | null>(null);
const cardCarousel = ref<InstanceType<typeof ElCarousel> | null>(null);
 
 // 创建数据列表
const items = ref<CarouselItem[]>([
  new CarouselItem('http://192.168.1.201:9000/portal/bg.png', '智慧校园', '智慧校园信息门户'),
  new CarouselItem('http://192.168.1.201:9000/portal/bg.png', '统一认证', '统一身份认证平台'),
  new CarouselItem('http://192.168.1.201:9000/portal/bg.png', '数据管理', '数据管理中心平台')
]);
 
const handleMainChange = (index: number) => {
  if (cardCarousel.value) {
    cardCarousel.value.setActiveItem(index); // 同步下方轮播
  }
};
const handleCardChange = (index: number) => {
  if (mainCarousel.value) {
    mainCarousel.value.setActiveItem(index); // 同步上方轮播
  }
};
 
const cooperativeClients = ref<CooperativeClient[]>([
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c29.png', '图片2', '图片2'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c34.png', '图片2', '图片2'),
 
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c1.png', '图片1', '图片1'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c22.png', '图片2', '图片2'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c23.png', '图片2', '图片2'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c24.png', '图片2', '图片2'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c25.png', '图片2', '图片2'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c26.png', '图片2', '图片2'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c27.png', '图片2', '图片2'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c28.png', '图片2', '图片2'),
  // new CooperativeClient('http://192.168.1.201:9000/portal/customers/c29.png', '图片2', '图片2'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c30.png', '图片2', '图片2'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c31.png', '图片2', '图片2'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c32.png', '图片2', '图片2'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c33.png', '图片2', '图片2'),
  // new CooperativeClient('http://192.168.1.201:9000/portal/customers/c34.png', '图片2', '图片2'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c35.png', '图片2', '图片2'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c36.png', '图片2', '图片2'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c37.png', '图片2', '图片2'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c38.png', '图片2', '图片2'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c39.png', '图片2', '图片2'),
  new CooperativeClient('http://192.168.1.201:9000/portal/customers/c40.png', '图片2', '图片2'),
])
 
 
const ProductCenters = ref<ProductCenter[]>([
  new ProductCenter('http://192.168.1.201:9000/portal/product-center/LIMS系统介绍方案.pdf', 'LIMS实验室管理系统', 'LIMS实验室管理系统'),
  new ProductCenter('http://192.168.1.201:9000/portal/product-center/外部供应商管理系统介绍.pdf', '供应商管理系统', '供应商管理系统'),
  new ProductCenter('', 'TQS企业培训系统', 'TQS企业培训系统'),
  new ProductCenter('http://192.168.1.201:9000/portal/product-center/花满芫小程序产品介绍.pdf', 'S2B2B小程序平台', 'S2B2B小程序平台'),
  new ProductCenter('http://192.168.1.201:9000/portal/product-center/FJIT系统介绍.pdf', 'JIT系统', 'JIT系统'),
  new ProductCenter('http://192.168.1.201:9000/portal/product-center/CPTM软件产品介绍.pdf', 'CPTM企业能力管理系统', 'CPTM企业能力管理系统'),
])
 
 
const companyInfo = ref<CompanyInfo>({
  logo: "http://192.168.1.201:9000/portal/logo.png",
  name: "云游四方",
  desc: "专注于智能化解决方案",
  address: "江苏省苏州市虎丘区华云路1号桑田岛科创园",
  wechat:"http://192.168.1.201:9000/portal/company-info/联系微信.png",
  phoneHotList: ["400-123-4567", "010-88889999"],
  phoneSaleAfterList: ["400-987-6543", "010-66667777"],
  qrCodeList: [
    new CompanyQrCodeInfo("http://192.168.1.201:9000/portal/company-info/服务号.jpg", "服务号"),
    new CompanyQrCodeInfo("http://192.168.1.201:9000/portal/company-info/联系微信.png", "联系微信"),
  ]
});
 
 
</script>
 
<style scoped>
.home-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
 
 
 
.el-menu--horizontal {
  --el-menu-horizontal-height: 40px;
}
 
.logo-container {
  display: flex;
  align-items: center;
}
 
.logo {
  height: 40px;
  margin-right: 10px;
}
 
.logo-text {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}
 
 
 
.main-content {
  width: 100%;
  margin-top: 60px;
  /* 为固定的header留出空间 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px;
  /* height: 600px; */
  width: 100%;
}
 
.banner {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 60px);
  /* 减去header高度 */
  background: linear-gradient(to bottom, #1a237e, #3949ab);
  color: white;
  /* padding: 40px 0; */
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}
 
.logos-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 30px 0;
}
 
.cert-logo,
.company-logo {
  height: 80px;
}
 
.main-title {
  font-size: 36px;
  text-align: center;
  margin: 40px 0;
}
 
.organizers {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}
 
.org-item {
  display: flex;
  align-items: center;
}
 
.org-label {
  color: #ccc;
  margin-right: 5px;
}
 
.org-name {
  color: white;
}
 
.location {
  margin: 40px 0;
}
 
.location h2 {
  font-size: 32px;
  text-align: center;
}
 
.info-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 80%;
  margin-top: 40px;
  margin-bottom: 40px;
  /* 添加底部间距 */
  flex-wrap: wrap;
  /* 在小屏幕上允许换行 */
}
 
.info-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 5px;
  flex: 1;
  min-width: 250px;
  /* 确保在小屏幕上有最小宽度 */
}
 
.card-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: white;
}
 
.card-desc {
  color: #ddd;
  font-size: 14px;
}
 
.float-buttons {
  position: fixed;
  right: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
 
.float-btn {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}
 
.btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
}
 
.product-btn {
  background-color: #fff;
  color: #333;
}
 
.service-btn {
  background-color: #fff;
  color: #333;
}
 
.top-btn {
  background-color: #fff;
  color: #333;
}
 
/* 添加响应式设计 */
@media (max-width: 768px) {
  .organizers {
    flex-direction: column;
    align-items: center;
  }
 
  .info-cards {
    width: 90%;
  }
 
  .main-title {
    font-size: 28px;
    padding: 0 15px;
  }
}
</style>
 
 
<style scoped>
.demonstration {
  color: var(--el-text-color-secondary);
}
 
.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
  text-align: center;
}
 
.el-carousel__item:nth-child(2n) {
  /* background-color: #FFFFFF; */
}
 
.el-carousel__item:nth-child(2n + 1) {
  /* background-color: #FFFFFF; */
}
</style>
 
<style scoped>
.carousel-container {
  position: relative;
  margin-top: 30px;
  min-height: calc(100vh - 60px);
}
.carousel-content-main{
  height: 100%;
}
 
.overlay-carousel {
  position: absolute;
  top: 500px;
  /* 调整此值控制重叠程度 */
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  /* 适当调整宽度 */
}
 
.our-products {
  margin-top: 50px;
  width: 100%;
  display: flex;
  flex-direction: column;
  /* 设置子元素垂直排列 */
  align-items: center;
  /* 可选:将子元素水平居中 */
  padding: 0 50px;
 
}
 
.our-products-title {
  width: 100%;
  height: 50px;
  text-align: center;
}
 
.our-products-carousel {
  margin-top: 30px;
  width: 80%;
  /* height: 300px; */
}
 
.our-products-carousel-product {
  width: 100%;
  display: flex;
  flex-direction: column;
  /* 设置子元素垂直排列 */
  align-items: center;
  /* 可选:将子元素水平居中 */
  padding: 0 5px;
}
 
.card-content-div {
  text-align: center;
  margin: 10px;
}
 
.card-content-div-title {
  font-weight: 500;
}
 
.card-content-div-content {
  color: gray;
  font-size: 14px;
}
 
.third-other {
  width: 100%;
  text-align: center;
  margin-top: 30px;
  background-color: #F2F5FA;
  padding: 20px;
}
 
 
.third-other-title {
  margin: 0 20px;
}
 
 
.footer-list {
  display: flex;
  flex-wrap: wrap;
  /* Allow wrapping to new lines */
}
 
.footer-list li {
  width: 48%;
  /* Adjust this value to control the width of each item */
  margin-bottom: 5px;
  /* Optional: Adds space between rows */
  text-align: left;
}
 
.f12 {
  font-size: 12px;
  color: #2B2B2B;
}
 
ul,
ol,
li {
  list-style: none;
}
 
ul {
  margin: 0;
}
 
ol,
ul {
  margin-top: 0;
  margin-bottom: 10px;
}
 
.cooperation-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin: 5px;
}
 
.contact-us {
  margin: 10px;
}
 
.j-a-c {
  display: flex;
  /* justify-content: center; */
  align-items: center;
}
 
.j-a-c-column{
  display: flex;
  align-items: center;
  flex-direction: column;
}
 
.logo-l {
  height: 20px;
}
 
.logo-l-text {
  font-size: 12px;
  font-weight: bold;
  color: #333;
}
 
.m-10 {
  margin-left: 10px;
}
 
.footer-QR-code {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}
 
.qr-code-img {
  width: 60px;
  height: 60px;
}
 
.xuanfu {
  width: 30px;
  height: 30px;
}
 
/* 
::v-deep .el-carousel__mask {
 
  height: 100%;
  left: 0;
  opacity: .24;
  position: absolute;
  top: 0;
  transition: var(--el-transition-duration-fast);
  width: 100%;
} */
 
.carousel-content {
  /* width: 50%;
    background-color: #FFFFFF; */
  text-align: center;
}
</style>