Authored by Rock Zhang

修复限购商品分享闲情页显示的bug

@@ -4,6 +4,7 @@ namespace Product; @@ -4,6 +4,7 @@ namespace Product;
4 4
5 use LibModels\Wap\Product\DetailData; 5 use LibModels\Wap\Product\DetailData;
6 use Plugin\Helpers; 6 use Plugin\Helpers;
  7 +use Plugin\Images;
7 8
8 /** 9 /**
9 * 商品详情页模板相关的数据模型 10 * 商品详情页模板相关的数据模型
@@ -771,7 +772,7 @@ class DetailModel @@ -771,7 +772,7 @@ class DetailModel
771 // 发售日期 772 // 发售日期
772 $result['releaseDate'] = $product['saleTime'] . '发售'; 773 $result['releaseDate'] = $product['saleTime'] . '发售';
773 // baner 774 // baner
774 - $result['banner'] = $product['defaultUrl']; 775 + $result['banner'] = Helpers::getImageUrl($product['defaultUrl'], 750, '');
775 $result['description'] = $product['description']; 776 $result['description'] = $product['description'];
776 777
777 // 附件 778 // 附件
@@ -799,7 +800,7 @@ class DetailModel @@ -799,7 +800,7 @@ class DetailModel
799 switch(intval($attachment['attachType'])) { 800 switch(intval($attachment['attachType'])) {
800 case 1: // 大图文字 801 case 1: // 大图文字
801 $result['img'] = array( 802 $result['img'] = array(
802 - 'attachUrl' => Helpers::getImageUrl($attachment['attachUrl'], 290, 200), 803 + 'attachUrl' => Helpers::getImageUrl($attachment['attachUrl'], 750, ''),
803 'attachName' => $attachment['attachName'], 804 'attachName' => $attachment['attachName'],
804 'intro' => $attachment['intro'], 805 'intro' => $attachment['intro'],
805 'orderBy' => $attachment['orderBy'] 806 'orderBy' => $attachment['orderBy']
@@ -809,7 +810,7 @@ class DetailModel @@ -809,7 +810,7 @@ class DetailModel
809 $result['video'] = array( 810 $result['video'] = array(
810 'attachUrl' => $attachment['attachUrl'], 811 'attachUrl' => $attachment['attachUrl'],
811 'orderBy' => $attachment['orderBy'], 812 'orderBy' => $attachment['orderBy'],
812 - 'img' => Helpers::getImageUrl($attachment['intro'], 290, 200) 813 + 'img' => Helpers::getImageUrl($attachment['intro'], 750, '')
813 ); 814 );
814 break; 815 break;
815 case 3: // 文本类型 816 case 3: // 文本类型
@@ -823,7 +824,7 @@ class DetailModel @@ -823,7 +824,7 @@ class DetailModel
823 } 824 }
824 825
825 if(count($result) > 1) { 826 if(count($result) > 1) {
826 - Helpers::sortArrByField($result, 'orderBy'); 827 + Helpers::sortArrByField($result, 'orderBy', true);
827 } 828 }
828 829
829 return $result; 830 return $result;