Authored by 李奇

fixed: ios顶部top修改

... ... @@ -82,9 +82,11 @@
cookie.set('_Channel', this.channel[index].channel);
cookie.set('_ChannelIndex', index);
yoho.setChannel({
channel_id: setAppChannel[id]
});
if(yoho.isApp) {
yoho.setChannel({
channel_id: setAppChannel[id]
});
}
}
},
watch: {
... ...
<template>
<div class="new-single-image">
<a class="image" v-blk-href="floor.list && floor.list[0].url">
<img v-img-src="{src: floor.list && floor.list[0].src, width: 750, height: 364}">
<img v-img-src="{src: floor.list && floor.list[0].src, width: floor.imageWidth, height: floor.imageHeight}">
</a>
</div>
</template>
... ...
<template>
<div>
<cheader :title="sortName" class="list-header"></cheader>
<filter-box :val="order" :filter="filterConfig" v-if="enableOrder"></filter-box>
<filter-box :val="order" :filter="filterConfig" v-if="enableOrder" :fix-ios-top="fixIosTop"></filter-box>
<product-list :data="productList" :state="listState" class="list-items"></product-list>
<shopping-bag :cart-count="cartCount" v-if="isApp"></shopping-bag>
</div>
... ... @@ -48,7 +48,9 @@
// state
inSearching: false, // 请求中
enableOrder: false,
cartCount: 0
cartCount: 0,
fixIosTop: false
};
},
computed: {
... ... @@ -180,6 +182,9 @@
bus.$on('app.shoppingcart.refresh', this.refreshCart);
}
if(yoho.isiOS) {
this.fixIosTop = true;
}
}
};
... ...