Browse Source

修正样式

lipengtao 6 years ago
parent
commit
8220594c57

+ 3 - 4
src/pages/h5/views/product/product.vue

@ -1,7 +1,7 @@
1 1
<template>
2 2
  <div class="browse-main">
3 3
    <div class="block-wrapper">
4
        <div style="width:100%">
4
        <div style="width:100%" class="left-main">
5 5
            <div class="content-wrapper" style="padding:0">
6 6
                <div class="content-wrapper" style="padding:0">
7 7
                    <previewMagnify v-if="productInfo.img && productInfo.img.length" :previewImg="productInfo.img"></previewMagnify>
@ -48,6 +48,7 @@
48 48
          
49 49
        </div>
50 50
        <div class="content-wrapper" v-if="otherProducts && otherProducts.length">
51
          <div class="inner-wrapper">
51 52
            <div class="content-title">
52 53
              <span>其他产品</span>
53 54
            </div>
@ -55,6 +56,7 @@
55 56
              <BaseProduct v-for="item in otherProducts" :key="item.index" :itemSingle="item" :noBlank="true"></BaseProduct>
56 57
            </div>
57 58
          </div>
59
         </div> 
58 60
      </div>
59 61
    </div>
60 62
    
@ -160,7 +162,4 @@
160 162
  .browse-main .block-wrapper .content-wrapper{
161 163
    padding: 8px 20px;
162 164
  }
163
  .browse-main .block-wrapper .content-wrapper .content{
164
    margin:-20px;
165
  }
166 165
</style>

+ 16 - 15
src/pages/h5/views/resource/resource.vue

@ -1,7 +1,7 @@
1 1
<template>
2 2
  <div class="browse-main">
3 3
    <div class="block-wrapper">
4
        <div style="width:100%">
4
        <div style="width:100%" class="left-main">
5 5
        <div class="content-wrapper" style="padding:0">
6 6
            <div class="content-wrapper" style="padding:0">
7 7
                <previewMagnify v-if="resourceInfo.img && resourceInfo.img.length" :previewImg="resourceInfo.img"></previewMagnify>
@ -47,19 +47,23 @@
47 47
            </el-row>
48 48
        </div>
49 49
        <div class="content-wrapper" v-if="likeResources && likeResources.length">
50
          <div class="content-title">
51
            <span>您可能感兴趣的资源</span>
52
          </div>
53
          <div class="content content-nf">
54
            <baseResource v-for="item in likeResources" :key="item.index" :itemSingle="item" :noBlank="true"></baseResource>
55
          </div>
56
        </div>
57
        <div class="content-wrapper" v-if="hotResources && hotResources.length">
50
          <div class="inner-wrapper">
58 51
            <div class="content-title">
59
              <span>热门资源</span>
52
              <span>您可能感兴趣的资源</span>
53
            </div>
54
            <div class="content content-nf">
55
              <baseResource v-for="item in likeResources" :key="item.index" :itemSingle="item" :noBlank="true"></baseResource>
60 56
            </div>
61
            <div class="content">
62
                <baseResource v-for="item in hotResources" :key="item.index" :itemSingle="item" :noBlank="true"></baseResource>
57
           </div> 
58
        </div>
59
        <div class="content-wrapper" v-if="hotResources && hotResources.length">
60
            <div class="inner-wrapper">
61
              <div class="content-title">
62
                <span>热门资源</span>
63
              </div>
64
              <div class="content">
65
                  <baseResource v-for="item in hotResources" :key="item.index" :itemSingle="item" :noBlank="true"></baseResource>
66
              </div>
63 67
            </div>
64 68
          </div>
65 69
      </div>
@ -201,7 +205,4 @@
201 205
  .browse-main .block-wrapper .content-wrapper{
202 206
    padding: 8px 20px;
203 207
  }
204
  .browse-main .block-wrapper .content-wrapper .content{
205
    margin:-20px;
206
  }
207 208
</style>

+ 37 - 35
src/pages/h5/views/service/service.vue

@ -1,53 +1,57 @@
1 1
<template>
2 2
  <div class="browse-main">
3 3
    <div class="block-wrapper">
4
      <div style="width:100%">
5
          <div class="content-wrapper" style="padding:0">
6
            <previewMagnify v-if="serveInfo.img && serveInfo.img.length" :previewImg="serveInfo.img"></previewMagnify>
4
      <div style="width:100%" class="left-main">
5
        <div class="content-wrapper" style="padding:0">
6
          <previewMagnify v-if="serveInfo.img && serveInfo.img.length" :previewImg="serveInfo.img"></previewMagnify>
7
        </div>
8
        <div class="content-wrapper">
9
          <div class="show-info">
10
            <div class="info-tit info-tit-big" style="font-size: 20px; line-height:30px; margin-bottom: 4px;">{{serveInfo.name}}</div>
11
            <div class="info-tag">内容:{{serveInfo.cnt}}</div>
7 12
          </div>
8
            <div class="content-wrapper">
9
            <div class="show-info">
10
                <div class="info-tit info-tit-big" style="font-size: 20px; line-height:30px; margin-bottom: 4px;">{{serveInfo.name}}</div>
11
                <div class="info-tag">内容:{{serveInfo.cnt}}</div>
12
              </div>
13 13
        </div>
14 14
        <div class="content-wrapper">
15
            <beyondTo v-if="ownerB.id" :ownerId="ownerB.id" :ownerType="ownerB.type" :styFlag="true"></beyondTo>
15
          <beyondTo v-if="ownerB.id" :ownerId="ownerB.id" :ownerType="ownerB.type" :styFlag="true"></beyondTo>
16 16
        </div>
17 17
        <div class="content-wrapper">
18
            <el-row :gutter="10" class="rel-detail">
19
              <el-col class="rel-item" :span="24" v-if="serveInfo.cooperation">
20
                <div class="rel-tit">合作备注:</div>
21
                <div v-html="serveInfo.cooperation"></div>
22
              </el-col>
23
              <el-col class="rel-item" :span="24" v-if="serveInfo.descp">
24
                <div class="rel-tit">详细介绍:</div>
25
                <div v-html="serveInfo.descp"></div>
26
              </el-col>
27
              <el-col class="rel-item" :span="24" v-if="serveInfo.keywords && serveInfo.keywords.length">
28
                <el-row class="tag-item">
29
                  <el-tag v-for="sub in serveInfo.keywords" :key="sub.index">{{sub}}</el-tag>
30
                </el-row>
31
              </el-col>
32
            </el-row>
18
          <el-row :gutter="10" class="rel-detail">
19
            <el-col class="rel-item" :span="24" v-if="serveInfo.cooperation">
20
              <div class="rel-tit">合作备注:</div>
21
              <div v-html="serveInfo.cooperation"></div>
22
            </el-col>
23
            <el-col class="rel-item" :span="24" v-if="serveInfo.descp">
24
              <div class="rel-tit">详细介绍:</div>
25
              <div v-html="serveInfo.descp"></div>
26
            </el-col>
27
            <el-col class="rel-item" :span="24" v-if="serveInfo.keywords && serveInfo.keywords.length">
28
              <el-row class="tag-item">
29
                <el-tag v-for="sub in serveInfo.keywords" :key="sub.index">{{sub}}</el-tag>
30
              </el-row>
31
            </el-col>
32
          </el-row>
33 33
        </div>
34 34
        <div class="content-wrapper" v-if="likeserves && likeserves.length">
35
          <div class="content-title">
36
            <span>您可能感兴趣的服务</span>
37
          </div>
38
          <div class="content content-nf">
39
            <baseService v-for="item in likeserves" :key="item.index" :itemSingle="item" :noBlank="true"></baseService>
40
          </div>
35
          <div class="inner-wrapper">
36
            <div class="content-title">
37
              <span>您可能感兴趣的服务</span>
38
            </div>
39
            <div class="content content-nf">
40
              <baseService v-for="item in likeserves" :key="item.index" :itemSingle="item" :noBlank="true"></baseService>
41
            </div>
42
          </div>>
41 43
        </div>
42 44
        <div class="content-wrapper" v-if="hotserves && hotserves.length">
45
          <div class="inner-wrapper">
43 46
            <div class="content-title">
44 47
              <span>热门服务</span>
45 48
            </div>
46 49
            <div class="content content-nf">
47
                <baseService v-for="item in hotserves" :key="item.index" :itemSingle="item" :noBlank="true"></baseService>
50
              <baseService v-for="item in hotserves" :key="item.index" :itemSingle="item" :noBlank="true"></baseService>
48 51
            </div>
49 52
          </div>
50 53
        </div>
54
      </div>
51 55
    </div>
52 56
  </div>
53 57
</template>
@ -209,10 +213,8 @@
209 213
</script>
210 214
<style lang="scss" rel="stylesheet/scss">
211 215
  @import '../../style/index';
212
  .browse-main .block-wrapper .content-wrapper{
216
217
  .browse-main .block-wrapper .content-wrapper {
213 218
    padding: 8px 20px;
214 219
  }
215
  .browse-main .block-wrapper .content-wrapper .content{
216
    margin:-20px;
217
  }
218 220
</style>