AbroadDetailYL.vue 21.7 KB
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 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806
/* 说明:外部链接预览 */
<template>
  <div class="abroad_detail_yl">
    <div class="header">
      <van-swipe class="my-swipe" indicator-color="white" v-if="detailData.coverList && detailData.coverList.length > 0">
        <van-swipe-item v-for="n in detailData.coverList" :key="n.id">
          <video
            v-if="n.cover_url.indexOf('.mp4') > -1"
            id="video"
            :src="n.cover_url"
            poster=""
            controls="controls"
            windowlessvideo="true"
            playsinline="true"
            webkit-playsinline="true"
            x5-playsinline="true"
            x-webkit-airplay="allow"
            width="100%"
            height="260px"
            type="video/mp4"
          ></video>
          <img v-if="n.cover_url.indexOf('.mp4') == -1" :src="n.cover_url" />
        </van-swipe-item>
      </van-swipe>
      <img v-else src="@/assets/service/defCoure.jpg" alt="" />
    </div>
    <div class="uni_text">
      <div class="course_price">
        <span>¥ {{ detailData.showPrice }}</span
        ><span class="redmini">起</span><span class="tint">{{ detailData.productPrice }}</span>
      </div>
      <p class="course_name">{{ detailData.course_name }}</p>
      <p class="course_info">{{ detailData.course_info }}</p>
      <p class="address">
        <van-icon name="location" class="icon" />{{
          detailData.provinceAddress + detailData.cityAddress + detailData.areaAddress + ' ' + detailData.addressDetail
        }}
      </p>
      <div class="rate">
        <div>
          <van-rate v-model="detailData.courseScore" color="#FFCC00" :size="16" readonly />
          <span>{{ detailData.courseScore }}</span>
        </div>
        <span
          >共0个客户评价
          <van-icon name="arrow" />
        </span>
      </div>
      <div class="tag_box">
        <template v-for="(tag, index) in detailData.course_labels">
          <span class="tag" v-if="tag != ''" :key="index">{{ tag }}</span>
        </template>
      </div>
    </div>
    <div class="package top_border">
      <p class="package_title">套餐类型/日期</p>
      <div class="package_box">
        <div class="package_item" v-for="(item, index) in packageArr" :key="index" @click="checkDatePackage(item.date)">
          <p class="date">{{ item.day }}</p>
          <p class="week">{{ item.week }}</p>
          <p class="price"><span>¥</span>{{ item.marketPrice }}</p>
        </div>
        <div class="package_item package_item_more" @click="checkDatePackage()" v-if="packageArr.length > 3">
          <img class="more_icon" src="@/assets/service/more.png" alt="" />
          <p class="more_text">查看更多</p>
        </div>
      </div>
    </div>

    <van-tabs class="tabs top_border" v-model="active" swipeable :ellipsis="false" color="#4092FF" scrollspy sticky>
      <van-tab title="商品详情">
        <div class="tag_item" v-if="detailData.productFeatures">
          <p class="tag_title">商品特色</p>
          <p class="tag_text" v-html="detailData.productFeatures"></p>
        </div>
        <div class="tag_item" v-if="detailData.productDescription">
          <p class="tag_title">商品描述</p>
          <div class="content_box">
            <div class="content_all" :class="isOpen ? 'open' : ''">
              <p v-html="detailData.productDescription"></p>
            </div>
            <div class="extend_wrap" @click="extend_btn">
              <div v-show="!isOpen">
                <p>查看详情</p>
              </div>
              <div v-show="isOpen">
                <p>收起详情</p>
              </div>
            </div>
          </div>
        </div>
        <div class="tag_item" v-if="detailData.courseContentList && detailData.courseContentList[0].content != ''">
          <p class="tag_title">服务内容</p>
          <ul class="courseContent">
            <li v-for="(n, i) in detailData.courseContentList" :key="n.id">
              <span class="left" v-if="n.title">{{ n.title }}</span>
              <h3>{{ n.content }}</h3>
              <div class="item" v-for="(k, j) in n.courseFileList" :key="i + '' + j">
                <div>
                  <video
                    v-if="k.url && k.url.indexOf('.mp4') > -1"
                    id="video"
                    :src="k.url"
                    poster=""
                    controls="controls"
                    windowlessvideo="true"
                    playsinline="true"
                    webkit-playsinline="true"
                    x5-playsinline="true"
                    x-webkit-airplay="allow"
                    width="100%"
                    height="260px"
                    type="video/mp4"
                  ></video>
                </div>
                <div>
                  <img v-if="k.url && k.url.indexOf('.mp4') == -1" :src="k.url" />
                </div>
              </div>
            </li>
          </ul>
        </div>
        <div class="tag_item" v-if="courseTable.length > 0 && showCourseTable">
          <p class="tag_title">课程表</p>
          <div class="cardCont" v-for="(item, index) in courseTable" :key="index">
            <table cellspacing="0" cellpadding="8">
              <tbody v-html="item"></tbody>
            </table>
          </div>
        </div>
        <div class="tag_item" v-if="detailData.extraService">
          <p class="tag_title">附送服务</p>
          <p class="tag_text" v-html="detailData.extraService"></p>
        </div>
        <div class="tag_item" v-if="detailData.serviceGuarantees">
          <p class="tag_title">服务保障和承诺</p>
          <p class="tag_text" v-html="detailData.serviceGuarantees"></p>
        </div>
      </van-tab>
      <van-tab title="费用说明" v-if="detailData.feeDescription">
        <div class="tag_item">
          <p class="tag_title">费用说明</p>
          <p class="tag_text" v-html="detailData.feeDescription"></p>
        </div>
      </van-tab>
      <van-tab title="研学须知" v-if="detailData.notice">
        <div class="tag_item">
          <p class="tag_title">研学须知</p>
          <p class="tag_text" v-html="detailData.notice"></p>
        </div>
      </van-tab>
    </van-tabs>
    <div class="base top_border" v-if="baseData">
      <img v-if="baseData.coverList.length > 0" :src="baseData.coverList[0].cover_url" alt="" />
      <div class="center">
        <p class="basename">{{ baseData.baseName }}</p>
        <p class="address"><van-icon name="location-o" />{{ baseData.city }}{{ baseData.area }}{{ baseData.address }}</p>
        <p class="tag">{{ baseData.baseLabel.join('/') }}</p>
      </div>
    </div>
    <!-- <div class="Collection">
      <div class="box box1">
        <div class="icon" @click="backHome">
          <p>
            <van-icon name="wap-home-o" />
          </p>
          <p>首页</p>
        </div>
        <div class="icon" @click="contactService">
          <p>
            <van-icon name="service-o" />
          </p>
          <p>客服</p>
        </div>
      </div>
      <div class="box box2">
        <span @click="checkDatePackage()">去订购</span>
      </div>
    </div> -->
  </div>
</template>
<script>
export default {
  name: 'ServiceAbroadDetail',
  data() {
    return {
      isOpen: false,
      courseId: '',
      detailData: '',
      active: 0,
      courseTable: [], //课程表
      packageData: [], //未处理过格式的套餐表
      packageArr: [], //套餐时间价格
      baseData: '', //基地信息
      showCourseTable: true,
    }
  },
  mounted() {
    this.courseId = this.$route.query.courseId
    this.GetCourseDetail()
  },
  methods: {
    // 展开关闭院校简介
    extend_btn() {
      this.isOpen = !this.isOpen
    },

    // 点击预约
    checkDatePackage(date) {
      return //外部链接预览不需要点击事件
      let query = {}
      if (date || date === 0) {
        query = { date: date }
      }
      // console.log(query)
      this.$router.push({ name: 'ServiceDatePackage', query: query })
    },
    // 获取商品详情
    GetCourseDetail() {
      this.$toast.loading({
        message: '加载中...',
        duration: 0,
        forbidClick: true,
      })
      this.yxAxios.get(`${this.yanxueUrl}/api/StudiesWap/GetCourseDetail?id=${this.courseId}&cs=绍兴市`).then((res) => {
        this.$toast.clear()
        if (res.data.data) {
          let detailData = res.data.data
          // console.log(detailData)
          detailData.course_labels = detailData.course_labels?.split(',')
          this.detailData = detailData
          localStorage.setItem(
            'showCourseData',
            JSON.stringify({
              course_name: detailData.course_name,
              id: detailData.id,
              marketPrice: detailData.marketPrice,
              price: detailData.price,
            })
          )
          this.getPackageData() //获取套餐列表
          this.$nextTick(() => {
            this.GetOneBase(detailData.baseId) //获取单个基地
            // this.setPackageArr();//设置套餐
            for (let i in detailData.courseScheduleList) {
              this.getWeekCard(i)
            }
          })
        }
      })
    },
    // 获取套餐列表
    getPackageData() {
      let startDate = this.Moment().format('YYYY-MM-DD')
      let endDate = this.Moment().add(60, 'days').format('YYYY-MM-DD')
      this.yxAxios
        .post(`${this.yanxueUrl}/api/Product/DateComboBindList/ByTime/List`, {
          bindId: this.$route.query.bindId,
          productId: this.detailData.id,
          startDate: startDate,
          endDate: endDate,
        })
        .then((res) => {
          // console.log(res.data.data)
          if (res.data.data) {
            let allPackage = res.data.data
            let usefulPackage = []
            for (let i in allPackage) {
              if (allPackage[i]?.comboList?.length > 0) {
                usefulPackage.push(allPackage[i])
              }
            }
            this.packageData = usefulPackage
            localStorage.setItem('packageData', JSON.stringify(usefulPackage))
            this.setPackageArr()
          }
        })
    },
    // 设置套餐价格
    setPackageArr() {
      let packageArr = []
      for (let i in this.packageData) {
        let packageDate = this.Moment(new Date(this.packageData[i]?.dayName.replace(/\-/g, '/')))
        let week = packageDate.format('d')
        week =
          week == 1
            ? '周一'
            : week == 2
            ? '周二'
            : week == 3
            ? '周三'
            : week == 4
            ? '周四'
            : week == 5
            ? '周五'
            : week == 6
            ? '周六'
            : week == 0
            ? '周日'
            : ''
        //超出部分不显示
        if (packageArr.length > 3) {
          this.packageArr = packageArr
          return
        }
        packageArr.push({
          day: packageDate.format('M/D'),
          date: packageDate.format('YYYY-MM-DD'),
          week: week,
          marketPrice: this.packageData[i]?.comboList[0]?.actualPrice,
        })
      }
      this.packageArr = packageArr
    },
    // 获取单个基地
    GetOneBase(baseId) {
      this.yxAxios.get(`${this.yanxueUrl}/api/Manage/GetOneBase?id=${baseId}`).then((res) => {
        // console.log(res.data.data)
        if (res.data.data) {
          this.baseData = res.data.data
        }
      })
    },
    // 设置第几天的课程表
    getWeekCard(index) {
      var data = this.detailData.courseScheduleList[index].courseScheduleList
      var morning = []
      var afternoon = []
      var night = []
      data.forEach(function (k, j) {
        if (k.type == 1 && k.content != '') {
          morning.push(k)
        } else if (k.type == 2 && k.content != '') {
          afternoon.push(k)
        } else if (k.type == 3 && k.content != '') {
          night.push(k)
        }
      })
      if (morning.length == 0 && afternoon.length == 0 && night.length == 0) {
        this.showCourseTable = false
      }
      var strMorning = '',
        strAfternoon = '',
        strNight = ''
      if (morning.length > 0) {
        strMorning = `<tr>
								<td class="td_left" rowspan="${morning.length}">上午</td>
								<td style="text-align: left;">${morning[0].content ? morning[0].content : '无安排'}</td>
							</tr>`
        morning.forEach(function (k, j) {
          if (j > 0) {
            strMorning += `<tr>
								<td style="text-align: left;">${k.content ? k.content : '无安排'}</td>
							</tr>`
          }
        })
      }
      if (afternoon.length > 0) {
        strAfternoon = `<tr>
								<td class="td_left" rowspan="${afternoon.length}">下午</td>
								<td style="text-align: left;">${afternoon[0].content ? afternoon[0].content : '无安排'}</td>
							</tr>`
        afternoon.forEach(function (k, j) {
          if (j > 0) {
            strAfternoon += `<tr>
								<td style="text-align: left;">${k.content ? k.content : '无安排'}</td>
							</tr>`
          }
        })
      }
      if (night.length > 0) {
        strNight = `<tr>
								<td class="td_left" rowspan="${night.length}">晚上</td>
								<td style="text-align: left;">${night[0].content ? night[0].content : '无安排'}</td>
							</tr>`
        night.forEach(function (k, j) {
          if (j > 0) {
            strNight += `<tr>
								<td style="text-align: left;">${k.content ? k.content : '无安排'}</td>
							</tr>`
          }
        })
      }
      this.courseTable.push(strMorning + strAfternoon + strNight)
    },
    // 联系客服
    contactService() {
      if (this.detailData.mobiles) {
        location.href = 'tel://' + this.detailData.mobiles.split(',')[0]
      }
    },
    // 返回首页
    backHome() {
      this.$router.push({ name: 'Home' })
    },
  },
}
</script>
<style lang="scss">
.abroad_detail_yl {
  padding-bottom: 200px;
  .header {
    img {
      width: 100%;
    }
  }
  .uni_text {
    width: 100%;
    background: #fff;
    padding: 24px 34px;
    box-sizing: border-box;
    .course_price {
      font-size: 38px;
      font-weight: bold;
      color: red;
      .redmini {
        font-size: 25px;
      }
      .tint {
        font-size: 25px;
        font-weight: normal;
        color: #909399;
        margin-left: 2vw;
        text-decoration: line-through;
      }
    }
    .course_name {
      font-size: 34px;
      font-weight: bold;
    }
    .course_info {
      font-size: 24px;
      color: #999;
      margin-top: 16px;
    }
    .address {
      font-size: 24px;
      color: #999;
      margin-top: 16px;
      .icon {
        color: #000;
      }
    }
    .rate {
      margin-top: 20px;
      display: flex;
      justify-content: space-between;
      div > span {
        font-size: 30px;
        color: #ffcc00;
        margin-left: 30px;
      }
      > span {
        font-size: 26px;
      }
    }
    .tag_box {
      padding-top: 10px;
      .tag {
        display: inline-block;
        margin-top: 10px;
        margin-right: 12px;
        color: #4092ff;
        font-size: 24px;
        border-radius: 8px;
        border: 2px solid #4092ff;
        padding: 2px 10px;
      }
    }
  }
  .package {
    padding: 18px 22px;
    .package_title {
      font-size: 28px;
      color: #999;
    }
    .package_box {
      white-space: nowrap;
      margin-top: 22px;
      .package_item {
        width: 128px;
        height: 152px;
        border-radius: 12px;
        border: 2px solid #dde3ef;
        box-sizing: border-box;
        display: inline-flex;
        align-content: center;
        justify-content: center;
        flex-wrap: wrap;
        vertical-align: top;
        margin-right: 16px;
        p {
          width: 100%;
          margin: 0;
          text-align: center;
        }
        .more_icon {
          width: 36px;
          margin-top: 10px;
        }
        .more_text {
          font-size: 22px;
          color: #fff;
          margin-top: 22px;
        }
        .date {
          font-size: 32px;
          font-weight: bold;
        }
        .week {
          font-size: 22px;
          color: #999;
        }
        .price {
          font-size: 28px;
          color: #ff2b2b;
          margin-top: 14px;
          span {
            font-size: 20px;
          }
        }
      }
      .package_item_more {
        background: #3f92ff;
        border: 2px solid #3f92ff;
        box-shadow: 6px 12px 16px 0px rgba(63, 146, 255, 0.29);
        margin-right: 0;
      }
    }
  }
  .content_box {
    position: relative;
    .content_all {
      overflow: hidden;
      height: 580px;
      font-size: 26px;
      line-height: 36px;
      letter-spacing: 1.6px;
      color: #666;
      // padding-bottom: 130px;
      img {
        width: 100%;
      }
    }

    /* 展开 */
    .open {
      height: auto;
    }

    .extend_wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 26px;
      padding: 40px 0;
      color: #4092ff;
      margin-top: -40px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 1) 100%);
      width: 100%;
      position: absolute;
      bottom: 0;
      left: 0;
    }
  }

  .tag_item {
    padding: 22px;
    .tag_title {
      font-size: 34px;
      font-weight: bold;
      margin-bottom: 32px;
    }
    .tag_text {
      font-size: 24px;
      line-height: 40px;
      padding: 16px 0;
      img {
        max-width: 100%;
      }
    }
  }
  .cardCont {
    font-size: 24px;
    table {
      border-radius: 5px;
      width: 100%;
      border: 1px solid #dde3ef;
      td {
        border: 1px solid #dde3ef;
        text-align: center;
        background: rgb(245, 246, 250);
      }
      .td_left {
        width: 132px;
        background: #fff;
        box-sizing: border-box;
      }
    }
  }
  .courseContent {
    li:not(:last-child) {
      border-bottom: 1px solid #eee;
    }
    li:first-child {
      .left {
        color: #fa9b00;
        border: 1px solid #fa9b00;
        background-color: #fef4d9;
      }
    }
    li:nth-child(3n + 1) {
      .left {
        color: #fa9b00;
        border: 1px solid #fa9b00;
        background-color: #fef4d9;
      }
    }
    li:nth-child(3n-1) {
      .left {
        color: #fa008c;
        border: 1px solid #fa008c;
        background-color: #ffeffc;
      }
    }
    li:nth-child(3n) {
      .left {
        color: #0076fa;
        border: 1px solid #0076fa;
        background-color: #efffff;
      }
    }
    li {
      position: relative;
      margin-top: 20px;
      padding-bottom: 10px;
      .left {
        position: absolute;
        top: 0;
        left: 0;
        width: 120px;
        font-size: 26px;
        text-align: center;
        border-radius: 3px;
        padding: 3px;
        box-sizing: border-box;
        font-weight: 600;
      }
      h3 {
        color: #202228;
        font-size: 32px;
        font-weight: 400;
        margin: 0;
        padding-left: 160px;
        word-break: break-all;
      }
      .item {
        margin-top: 10px;
        img {
          width: 100%;
        }
        p {
          margin: 0;
          margin-top: 10px;
          color: #a7a7aa;
          font-size: 28px;
          b {
            font-size: 32px;
            font-weight: 400;
            color: #000000;
            margin-right: 10px;
          }
          span {
            font-size: 24px;
          }
        }
      }
    }
  }
  .base {
    padding: 28px 24px;
    img {
      width: 98px;
      height: 98px;
      display: inline-block;
      vertical-align: top;
      border-radius: 12px;
    }
    .center {
      width: 550px;
      display: inline-block;
      margin-left: 20px;
      .basename {
        font-size: 32px;
        font-weight: bold;
      }
      .address {
        font-size: 24px;
        margin-top: 10px;
      }
      .tag {
        display: inline-block;
        font-size: 24px;
        margin-top: 14px;
        background: #f5f6fa;
        border-radius: 6px;
        padding: 6px 20px;
      }
    }
  }
  .top_border {
    border-top: 16px solid #f6f7fa;
  }
  .popup_content {
    width: 408px;
    height: 346px;
    overflow: hidden;
    img {
      display: block;
      width: 86px;
      height: 86px;
      margin: 0 auto;
      margin-top: 64px;
    }
    p:first-of-type {
      text-align: center;
      margin-top: 46px;
      font-size: 36px;
    }
    p:last-of-type {
      text-align: center;
      margin-top: 16px;
      font-size: 26px;
      color: #999;
    }
  }
  .Collection {
    background-color: white;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 28px 22px;
    box-sizing: border-box;
    padding-bottom: 50px;
    z-index: 500;
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.34);
    .box1 {
      width: 40%;
    }
    .box2 {
      width: 60%;
    }
    .box {
      display: inline-block;
      vertical-align: middle;
      color: #666666;
      .icon {
        display: inline-block;
        width: 45%;
        text-align: center;
        font-size: 24px;
        p {
          // margin: 0;
          color: #999999;
          margin-top: 8px;
        }
        i {
          font-size: 48px;
          color: rgb(45, 45, 45);
          font-weight: bold;
        }
      }
      .icon.active {
        color: 0ce39d;
        i {
          color: #0ce39d;
        }
      }
      span {
        display: inline-block;
        width: 100%;
        line-height: 92px;
        box-sizing: border-box;
        border-radius: 100px;
        color: white;
        font-size: 32px;
        background: #4092ff;
        text-align: center;
        box-shadow: 0px 10px 40px 0px #a0c9ff;
        b {
          display: inline-block;
          vertical-align: middle;
          margin-left: 20px;
          color: white;
        }
        i {
          vertical-align: middle;
          font-size: 44px;
          font-weight: bold;
        }
      }
    }
  }
}
</style>