Authored by 姜枫

fix bugs

... ... @@ -37,7 +37,7 @@
{{#each this}}
{{#if more}}
<div class="goods-more">
<a href="/product/shop/{{../../brandDomain}}{{#if shopId}}?shopId={{shopId}}{{/if}}">
<a href="/product/shop/{{../../brandDomain}}{{#if ../../shopId}}?shopId={{../../shopId}}{{/if}}" target="_blank">
<div class="more-text">MORE</div>
<p>查看更多</p>
</a>
... ...
... ... @@ -86,7 +86,7 @@
{{/each}}
</div>
</div>
<div class="brand-btns hide">
<div class="brand-btns">
<span class="btn disable large confirm">确定</span>
<span class="btn large cancel">取消</span>
</div>
... ... @@ -178,7 +178,7 @@
{{/each}}
</div>
</div>
<div class="style-btns hide">
<div class="style-btns">
<span class="btn disable large confirm">确定</span>
<span class="btn large cancel">取消</span>
</div>
... ...
... ... @@ -32,6 +32,9 @@ var jQuery = require('yoho-jquery');
$('.iconfont', this).removeClass('radio').removeClass('checkbox').addClass(options.type);
$('.iconfont', this).html(_checked ? options.checkedHtml : options.uncheckedHtml);
if (_checked) {
$('.iconfont', this).addClass('checked');
}
if (options.group) {
$(this).addClass('check-group-' + options.group);
... ...
... ... @@ -299,6 +299,7 @@ var YohoListPage = {
});
},
openBrandMulitChoose: function() {
console.log(1);
$('.yoho-product-list .mulit-choose').hide();
$('.input-radio', this.brandsDoc).check({
type: 'checkbox'
... ... @@ -308,10 +309,8 @@ var YohoListPage = {
},
closeBrandMulitChoose: function() {
$('.yoho-product-list .mulit-choose').show();
$('.yoho-product-list .brand-btns').addClass('hide');
$('.yoho-product-list .brand-list .input-radio').check('unCheckAll');
YohoListPage.mulitBrand = false;
$('.input-radio', this.brandsDoc).check({
type: 'radio'
});
... ... @@ -320,6 +319,8 @@ var YohoListPage = {
type: 'radio',
checked: true
});
YohoListPage.mulitBrand = false;
$('.yoho-product-list .brand-btns').hide();
},
openStyleMulit: function() {
... ... @@ -342,7 +343,7 @@ var YohoListPage = {
},
showBrandMulitBtn: function() {
$('.brand-btns', this.rootDoc).removeClass('hide');
$('.yoho-product-list .brand-btns').show();
if (YohoListPage.getSelectBrands().length > 0) {
$('.brand-btns .confirm', this.rootDoc).removeClass('disable');
} else {
... ... @@ -373,7 +374,7 @@ var YohoListPage = {
getSelectBrands: function() {
var brands = [];
$('.input-radio .checkbox', this.brandsDoc).each(function() {
$('.input-radio .iconfont', this.brandsDoc).each(function() {
if ($(this).hasClass('checked')) {
brands.push($(this).parent().data('value'));
}
... ...
... ... @@ -127,6 +127,7 @@
.style-btns {
text-align: center;
margin-top: 10px;
display: none;
.btn {
margin: 0 10px;
... ...