Authored by biao

修复分享详情页样式问题

@@ -63,6 +63,15 @@ @@ -63,6 +63,15 @@
63 63
64 .goodDesc { 64 .goodDesc {
65 margin-top: 1rem; 65 margin-top: 1rem;
  66 +
  67 + p {
  68 + font-size: 0.6rem;
  69 + line-height: 1rem;
  70 + }
  71 +
  72 + img {
  73 + margin: 0.3rem 0;
  74 + }
66 } 75 }
67 76
68 .bottom { 77 .bottom {
@@ -63,6 +63,18 @@ @@ -63,6 +63,18 @@
63 63
64 .goodDesc { 64 .goodDesc {
65 margin-top: 1rem; 65 margin-top: 1rem;
  66 + padding: 0.5rem;
  67 + border-top: 1px solid #e6e6e6;
  68 + background-color: #fff;
  69 +
  70 + p {
  71 + font-size: 0.6rem;
  72 + line-height: 1rem;
  73 + }
  74 +
  75 + img {
  76 + margin: 0.3rem 0;
  77 + }
66 } 78 }
67 79
68 .bottom { 80 .bottom {
@@ -17,24 +17,26 @@ @@ -17,24 +17,26 @@
17 </div> 17 </div>
18 </div> 18 </div>
19 19
20 - {{# attaches}} 20 + {{#if attaches}}
21 <div class="goodDesc"> 21 <div class="goodDesc">
22 - {{#img}}  
23 - <img src="{{attachUrl}}" alt="{{attachName}}">  
24 - {{/img}} 22 + {{# attaches}}
  23 + {{#img}}
  24 + <img src="{{attachUrl}}" alt="{{attachName}}">
  25 + {{/img}}
25 26
26 - {{#text}}  
27 - <p class="desc">{{intro}}</p>  
28 - {{/text}} 27 + {{#text}}
  28 + <p class="desc">{{intro}}</p>
  29 + {{/text}}
29 30
30 - {{#video}}  
31 - <video poster="{{img}}" controls="controls" controls="controls" preload="metadata" loop="loop" width="100%" name="media">  
32 - <source src="{{attachUrl}}" type="video/ogg;codecs=" theora,vorbis"" media="screen" />  
33 - <source src="{{attachUrl}}"/>  
34 - </video>  
35 - {{/video}} 31 + {{#video}}
  32 + <video poster="{{img}}" controls="controls" controls="controls" preload="metadata" loop="loop" width="100%" name="media">
  33 + <source src="{{attachUrl}}" type="video/ogg;codecs=" theora,vorbis"" media="screen" />
  34 + <source src="{{attachUrl}}"/>
  35 + </video>
  36 + {{/video}}
  37 + {{/attaches}}
36 </div> 38 </div>
37 - {{/attaches}} 39 + {{/if}}
38 40
39 <div class="bottom"> 41 <div class="bottom">
40 <div class="logo"></div> 42 <div class="logo"></div>