Authored by HF

do modify product detail page commentsUrl and consultsUrl named

@@ -121,11 +121,11 @@ class DetailModel @@ -121,11 +121,11 @@ class DetailModel
121 $build['answer'] = $value['answer']; 121 $build['answer'] = $value['answer'];
122 $result['feedbacks']['consults'][] = $build; 122 $result['feedbacks']['consults'][] = $build;
123 } 123 }
124 - $result['feedbacks']['link'] = Helpers::url('/product/detail/consults', array('product_id' => $productId, 'total' => $result['feedbacks']['consultsNum'])); 124 + $result['feedbacks']['consultsUrl'] = Helpers::url('/product/detail/consults', array('product_id' => $productId, 'total' => $result['feedbacks']['consultsNum']));
125 } 125 }
126 // 暂无咨询 126 // 暂无咨询
127 else { 127 else {
128 - $result['feedbacks']['link'] = Helpers::url('/product/detail/consultform', array('product_id' => $productId)); 128 + $result['feedbacks']['consultsUrl'] = Helpers::url('/product/detail/consultform', array('product_id' => $productId));
129 } 129 }
130 130
131 // 商品评价 131 // 商品评价
@@ -141,8 +141,8 @@ class DetailModel @@ -141,8 +141,8 @@ class DetailModel
141 $build['time'] = $value['createTime']; 141 $build['time'] = $value['createTime'];
142 $result['feedbacks']['comments'][] = $build; 142 $result['feedbacks']['comments'][] = $build;
143 } 143 }
144 - //$result['feedbacks']['link'] = Helpers::url('/product/detail/comments', array('product_id' => $productId, 'total' => $result['feedbacks']['commentsNum']));  
145 - } 144 + $result['feedbacks']['commentsUrl'] = Helpers::url('/product/detail/comments', array('product_id' => $productId, 'total' => $result['feedbacks']['commentsNum']));
  145 + }
146 146
147 // 品牌信息 147 // 品牌信息
148 if (!empty($baseInfo['brand'])) { 148 if (!empty($baseInfo['brand'])) {