Authored by biao

update for disable size

... ... @@ -156,7 +156,6 @@ const _calcStatusRate = (num, total) => {
*/
const submitChange = (data, uid) => {
return returnsAPI.changeSubmitAsync(data, uid).then(result => {
console.log(result);
return result;
});
};
... ... @@ -731,7 +730,6 @@ const getExchangeDetailData = (id, uid) => {
if (result[0] && result[0].data) {
let data = result[0].data;
// console.log(data)
_.forEach(data.goods_list, function(value) {
_.forEach(value.evidence_images, function(list, index) {
value.evidence_images[index] = list.substring(0, list.indexOf('?'));
... ...
... ... @@ -144,6 +144,11 @@ function bindSizeEvent() {
var id = $this.data('size');
var $s = $this.closest('.group.size').find('.size-text');
if ($this.hasClass('disable')) {
return false;
}
$this.parent().find('.active').removeClass('active');
$this.addClass('active');
... ...
... ... @@ -123,12 +123,13 @@
}
.good-info {
width: 377px;
height: 154px;
display: inline-block;
box-sizing: border-box;
border: 1px solid $borderColor;
border-top: none;
font-weight: normal;
width: 377px;
.iconfont {
font-weight: normal;
... ...
... ... @@ -230,6 +230,12 @@
color: #fff;
border-color: #1b1b1b;
}
&.disable {
background-color: #d1d1d1;
color: #fff;
cursor: not-allowed;
}
}
}
}
... ...
... ... @@ -2,7 +2,7 @@
{{#goodsList}}
<div class="{{#unless @first}}hide{{/unless}} size-list" data-index="{{@index}}">
{{#sizeList}}
<span data-size="{{sizeName}}" data-sku="{{productSku}}" data-id="{{goodsId}}">{{sizeName}}</span>
<span data-size="{{sizeName}}" data-sku="{{productSku}}" data-id="{{goodsId}}" {{#unless storageNumber}}class="disable"{{/unless}}>{{sizeName}}</span>
{{/sizeList}}
</div>
{{/goodsList}}
... ...