Authored by 周少峰

Merge branch 'master' into release/5.1

@@ -537,7 +537,7 @@ const _getProductComfort = (data) => { @@ -537,7 +537,7 @@ const _getProductComfort = (data) => {
537 * 基础商品描述 537 * 基础商品描述
538 */ 538 */
539 const _getBasicDescription = (productDescBo) => { 539 const _getBasicDescription = (productDescBo) => {
540 - let sex = (function(gender) { 540 + let sex = (function (gender) {
541 if (gender === 1) { 541 if (gender === 1) {
542 return '男款'; 542 return '男款';
543 } else if (gender === 2) { 543 } else if (gender === 2) {
@@ -639,7 +639,7 @@ const _getSizeData = (sizeInfo) => { @@ -639,7 +639,7 @@ const _getSizeData = (sizeInfo) => {
639 let boyReference = _.get(sizeInfo, 'productExtra.boyReference', false); 639 let boyReference = _.get(sizeInfo, 'productExtra.boyReference', false);
640 let girlReference = _.get(sizeInfo, 'productExtra.girlReference', false); 640 let girlReference = _.get(sizeInfo, 'productExtra.girlReference', false);
641 let gender = _.get(sizeInfo, 'productDescBo.gender', 3); 641 let gender = _.get(sizeInfo, 'productDescBo.gender', 3);
642 - let referenceName = (function() { 642 + let referenceName = (function () {
643 if (gender === 3 && boyReference) { 643 if (gender === 3 && boyReference) {
644 return '参考尺码(男)'; 644 return '参考尺码(男)';
645 } else if (gender === 3 && girlReference) { 645 } else if (gender === 3 && girlReference) {
@@ -890,7 +890,7 @@ const _getSizeAttrByMaxSortId = (maxSortId, sizeList) => { @@ -890,7 +890,7 @@ const _getSizeAttrByMaxSortId = (maxSortId, sizeList) => {
890 } 890 }
891 891
892 // 不同分类,取得属性值不同 892 // 不同分类,取得属性值不同
893 - let attributeIds = (function(id) { 893 + let attributeIds = (function (id) {
894 if (id === 1 && id === 2) { 894 if (id === 1 && id === 2) {
895 return [3, 4]; 895 return [3, 4];
896 } else if (id === 3) { 896 } else if (id === 3) {
@@ -1145,7 +1145,11 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { @@ -1145,7 +1145,11 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => {
1145 // 上市期 1145 // 上市期
1146 if (propOrigin('expect_arrival_time')) { 1146 if (propOrigin('expect_arrival_time')) {
1147 result.arrivalDate = `${propOrigin('expect_arrival_time')}`; 1147 result.arrivalDate = `${propOrigin('expect_arrival_time')}`;
1148 - result.presalePrice = propOrigin('format_sales_price'); 1148 +
  1149 + if (propOrigin('format_sales_price', '0') !== '0') {
  1150 + result.presalePrice = propOrigin('format_sales_price');
  1151 + }
  1152 +
1149 delete result.salePrice; 1153 delete result.salePrice;
1150 result.hasOtherPrice = false; 1154 result.hasOtherPrice = false;
1151 } 1155 }
@@ -119,7 +119,7 @@ @@ -119,7 +119,7 @@
119 <ul class="left-list"> 119 <ul class="left-list">
120 {{#each list}} 120 {{#each list}}
121 <li> 121 <li>
122 - <a target="_blank" href="{{url}}"><img src="{{img}}" alt="{{title}}" /></a> 122 + <a target="_blank" href="{{url}}"><img src="{{img}}" alt="{{title}}" width="100%" /></a>
123 </li> 123 </li>
124 {{/each}} 124 {{/each}}
125 </ul> 125 </ul>