luyanan преди 6 години
родител
ревизия
63b8fdea16

+ 13 - 14
src/common/stylus/listitem.styl

28
        color:$mainFont
28
        color:$mainFont
29
      .info-tag
29
      .info-tag
30
        color:$secondaryFont
30
        color:$secondaryFont
31
        text-ellipsis(1,26px)
31
        text-ellipsis()
32
        line-height:26px
32
      .info-desc
33
      .info-desc
33
        color:$secondaryFont
34
        color:$secondaryFont
34
        text-ellipsis(3,20px)
35
        text-ellipsis-n(3,20px)
35
    &.org-item
36
    &.org-item
36
      height:200px
37
      height:200px
37
      justify-content:center
38
      justify-content:center
38
      text-align:center
39
      text-align:center
39
      .item-block-org
40
      .item-block-org
40
        width:306px
41
        width:306px
41
        display:flex
42
        flex-direction: column
43
        align-items: center
42
        overflow: hidden
44
        .item-pic-org
43
        .item-pic-org
45
          center-items()
44
          center-items()
46
          background-size:cover
45
          background-size:cover
46
          margin:auto
47
        .item-text-org
47
        .item-text-org
48
          margin-top:6px
48
          margin-top:6px
49
          line-height:30px
49
          line-height:30px
50
          display: flex
51
          flex-direction: column
52
          justify-content: center
53
          .item-tit-org
50
          .item-tit-org
54
            display:flex
51
            display:flex
55
            justify-content: center
52
            justify-content: center
60
              text-ellipsis()
57
              text-ellipsis()
61
          .item-tag-org
58
          .item-tag-org
62
            color:$secondaryFont
59
            color:$secondaryFont
63
            text-ellipsis(1,20px)
60
            text-ellipsis()
61
            line-height:20px
64
/*home--cmp、expert*/
62
/*home--cmp、expert*/
65
63
66
/*list--图文*/
64
/*list--图文*/
73
  &:last-child
71
  &:last-child
74
    border-none()
72
    border-none()
75
  .list-head
73
  .list-head
76
    center-items()
74
    center-items(162px,108px)
77
  .list-info
75
  .list-info
78
    flex: 1 1 180px
76
    flex: 1 1 170px
79
    padding-left:15px
77
    padding-left:15px
80
    .list-tit
78
    .list-tit
81
      color:$mainFont
79
      color:$mainFont
82
      font-size:18px
80
      font-size:18px
83
      text-ellipsis(2,26px)
81
      text-ellipsis-n(2,26px)
84
      &.list-topic
82
      &.list-topic
85
        text-ellipsis(1,26px)
83
        text-ellipsis()
84
        line-height:26px
86
    .list-tag
85
    .list-tag
87
      margin-top:10px
86
      margin-top:10px
88
      color:$secondaryFont
87
      color:$secondaryFont
94
      color:$commonFont
93
      color:$commonFont
95
      line-height:30px
94
      line-height:30px
96
    .list-desc
95
    .list-desc
97
      text-ellipsis(2,20px)
96
      text-ellipsis-n(2,20px)
98
      color:$commonFont
97
      color:$commonFont
99
/*list*/
98
/*list*/

+ 7 - 1
src/common/stylus/mixin.styl

53
/*border-about e*/
53
/*border-about e*/
54
54
55
/*text-about s*/
55
/*text-about s*/
56
text-ellipsis($n = 1,$lineH = 30px)
56
text-ellipsis()
57
  line-height: 30px
58
  white-space: nowrap
59
  text-overflow: ellipsis
60
  overflow: hidden
61
62
text-ellipsis-n($n = 1,$lineH = 30px)
57
  display: -webkit-box
63
  display: -webkit-box
58
  line-height: $lineH
64
  line-height: $lineH
59
  max-height: $lineH*$n
65
  max-height: $lineH*$n

+ 1 - 1
src/components/bench-views/abutmentService/ButtService.vue

43
          height: 30px
43
          height: 30px
44
        .headerTag
44
        .headerTag
45
          li
45
          li
46
            text-ellipsis(1)
46
            text-ellipsis()
47
</style>
47
</style>

+ 1 - 1
src/components/bench-views/demandSearch/DemandSearch.vue

39
          height: 30px
39
          height: 30px
40
        .list-tagl
40
        .list-tagl
41
          li
41
          li
42
            text-ellipsis(2)
42
            text-ellipsis-n(2)
43
            color: $commonFont
43
            color: $commonFont
44
        .list-tagy
44
        .list-tagy
45
          li
45
          li

+ 14 - 2
src/components/main-views/ViewHome.vue

254
      this.findServiceSwiper = new Swiper(this.$refs.findService, {
254
      this.findServiceSwiper = new Swiper(this.$refs.findService, {
255
        slidesPerView: 4.8,
255
        slidesPerView: 4.8,
256
        loopedSlides: 20,
256
        loopedSlides: 20,
257
        loop: true,
257
        spaceBetween: 20,
258
        spaceBetween: 20,
259
        autoplay: {
260
          disableOnInteraction: false
261
        },
258
        navigation: {
262
        navigation: {
259
          nextEl: this.$refs.nextService,
263
          nextEl: this.$refs.nextService,
260
          prevEl: this.$refs.prevService
264
          prevEl: this.$refs.prevService
266
      this.findResourceSwiper = new Swiper(this.$refs.findResource, {
270
      this.findResourceSwiper = new Swiper(this.$refs.findResource, {
267
        slidesPerView: 4.8,
271
        slidesPerView: 4.8,
268
        spaceBetween: 20,
272
        spaceBetween: 20,
273
        loopedSlides: 20,
274
        loop: true,
275
        autoplay: {
276
          disableOnInteraction: false
277
        },
269
        navigation: {
278
        navigation: {
270
          nextEl: this.$refs.nextResource,
279
          nextEl: this.$refs.nextResource,
271
          prevEl: this.$refs.prevResource
280
          prevEl: this.$refs.prevResource
535
        width:280px
544
        width:280px
536
        height:420px
545
        height:420px
537
        .content
546
        .content
538
          text-ellipsis(12,28px)
547
          text-ellipsis-n(12,28px)
539
      .full-wrapper
548
      .full-wrapper
540
        width:100%
549
        width:100%
541
        .swiper-container:hover
550
        .swiper-container:hover
595
              text-align:center
604
              text-align:center
596
              text-ellipsis()
605
              text-ellipsis()
597
            .title
606
            .title
607
              color:$mainFont
598
              text-ellipsis()
608
              text-ellipsis()
599
            .desc
609
            .desc
600
              margin-top:3px
610
              margin-top:3px
601
              text-ellipsis(2,20px)
611
              color:$commonFont
612
              text-ellipsis-n(2,20px)
602
            .owner
613
            .owner
603
              margin-top:10px
614
              margin-top:10px
615
              color:$secondaryFont
604
              text-ellipsis()
616
              text-ellipsis()
605
617
606
    .tip-show
618
    .tip-show