Authored by weiqingting

提交

... ... @@ -142,6 +142,6 @@
</div>
</div>
</div>
<input id="shopIds" value="[[myshopsId||shopIds]]" type="hidden" for="checkbox">
<input id="shopIds" value="[[shopIds]]" type="hidden" for="checkbox">
[[/if]]
</script>
\ No newline at end of file
... ...
... ... @@ -142,18 +142,20 @@ common.util.__ajax({
if (productExtBo.shopIdList && productExtBo.shopIdList.length > 0) {
//如有选择店铺
productExtBo.shopIds = productExtBo.shopIdList ? productExtBo.shopIdList.join('|') : '';
} else if (res.data.length > 0) {
//如没有已选择店铺,默认选择全部
$.each(res.data, function(i, value) {
productExtBo.shopIds += value.shopsId + '|';
});
}
// else if (res.data.length > 0) {
// //如没有已选择店铺,默认选择全部
// $.each(res.data, function(i, value) {
// productExtBo.shopIds += value.shopsId + '|';
// });
// }
else{
productExtBo.shopIds=$("#myshopsId").val();
}
//
productExtBo.myshopsId=$("#myshopsId").val();
$('#product-ext').html(common.util.__template2($('#productExtBoTemp').html(), productExtBo));
e.init();
}, true);
productExtBo.myshopsId=$("#myshopsId").val();
$('#product-ext').html(common.util.__template2($('#productExtBoTemp').html(), productExtBo));
//如果是info页,所有input btn置灰
... ...
... ... @@ -244,7 +244,7 @@
<input type="radio" name="isOutLets" value="Y"></label>
<label class="radio-inline">
<input type="radio" name="isOutLets" value="N"></label>
<input type="hidden" id="isOutLets" value="[[isOutLets == 'B' ? 'N' : (isOutLets||'N')]]" for="radio" />
<input type="hidden" id="isOutLets" value="[[isOutLets||'N']]" for="radio" />
</div>
... ...
... ... @@ -142,6 +142,6 @@
</div>
</div>
</div>
<input id="shopIds" value="[[myshopsId||shopIds]]" type="hidden" for="checkbox">
<input id="shopIds" value="[[shopIds]]" type="hidden" for="checkbox">
[[/if]]
</script>
\ No newline at end of file
... ...