Authored by biao

优化skn获取代码

... ... @@ -11,7 +11,7 @@ var $ = require('jquery'),
var productId = $('#productId').val();
var skn = $('#preferenceUrl').val().split('?')[1].split('&')[0].split('=')[1],
var skn = $('#productSkn').val(),
productCode = $('#limitProductCode').val();
$('#likeBtn').on('touchstart', function() {
... ...
... ... @@ -177,6 +177,8 @@
<input id="preferenceUrl" type="hidden" value="{{preferenceUrl}}">
{{/if}}
<input id="productSkn" type="hidden" value="{{productSkn}}">
{{#loginUrl}}
<input type="hidden" name="loginUrl" id="loginUrl" value="{{.}}">
{{/loginUrl}}
... ...
... ... @@ -169,6 +169,8 @@ class DetailModel
$result['preferenceUrl'] = Helpers::url('/product/detail/preference', array('productSkn' => $baseInfo['erpProductId'], 'brandId' => $baseInfo['brand']['id']), '');
}
$result['productSkn'] = $baseInfo['erpProductId'];
// 商品信息
if (!empty($baseInfo['goodsList'])) {
$colorGroup = array();
... ...