Authored by Rock Zhang

Merge branch 'develop/wap' into beta/wap

@@ -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,8 +17,9 @@ @@ -17,8 +17,9 @@
17 </div> 17 </div>
18 </div> 18 </div>
19 19
20 - {{# attaches}} 20 + {{#if attaches}}
21 <div class="goodDesc"> 21 <div class="goodDesc">
  22 + {{# attaches}}
22 {{#img}} 23 {{#img}}
23 <img src="{{attachUrl}}" alt="{{attachName}}"> 24 <img src="{{attachUrl}}" alt="{{attachName}}">
24 {{/img}} 25 {{/img}}
@@ -33,8 +34,9 @@ @@ -33,8 +34,9 @@
33 <source src="{{attachUrl}}"/> 34 <source src="{{attachUrl}}"/>
34 </video> 35 </video>
35 {{/video}} 36 {{/video}}
36 - </div>  
37 {{/attaches}} 37 {{/attaches}}
  38 + </div>
  39 + {{/if}}
38 40
39 <div class="bottom"> 41 <div class="bottom">
40 <div class="logo"></div> 42 <div class="logo"></div>
@@ -800,7 +800,7 @@ class DetailModel @@ -800,7 +800,7 @@ class DetailModel
800 switch(intval($attachment['attachType'])) { 800 switch(intval($attachment['attachType'])) {
801 case 1: // 大图文字 801 case 1: // 大图文字
802 $result['img'] = array( 802 $result['img'] = array(
803 - 'attachUrl' => $attachment['attachUrl'], 803 + 'attachUrl' => Helpers::getImageUrl($attachment['attachUrl'], 290, 200),
804 'attachName' => $attachment['attachName'], 804 'attachName' => $attachment['attachName'],
805 'intro' => $attachment['intro'], 805 'intro' => $attachment['intro'],
806 'orderBy' => $attachment['orderBy'] 806 'orderBy' => $attachment['orderBy']
@@ -809,7 +809,8 @@ class DetailModel @@ -809,7 +809,8 @@ class DetailModel
809 case 2: // 视频 809 case 2: // 视频
810 $result['video'] = array( 810 $result['video'] = array(
811 'attachUrl' => $attachment['attachUrl'], 811 'attachUrl' => $attachment['attachUrl'],
812 - 'orderBy' => $attachment['orderBy'] 812 + 'orderBy' => $attachment['orderBy'],
  813 + 'img' => Helpers::getImageUrl($attachment['intro'], 290, 200)
813 ); 814 );
814 break; 815 break;
815 case 3: // 文本类型 816 case 3: // 文本类型