Authored by 李奇

fixed: 个人中心头像错位和品牌收藏数量未显示

<template>
<div>
<div :class="{'fix-ios-top': needFix}">
<cheader title="我的" class="ghost" fixed ref="header">
<i slot="left"></i>
</cheader>
<div class="fix-top-space" v-if="needFix"></div>
<div class="my-header" v-if="data.nickName">
<a class="user-info auth" id="user-info" href='/me/mydetails'>
<img class="user-avatar" :src="headIco" @error="setEmptyimg">
... ... @@ -140,7 +141,8 @@
floorImgH: 0,
floorHeight: 0,
isShowChannel: false,
curChannel: channelLabel[+cookie.get('_ChannelIndex')] || 'MEN'
curChannel: channelLabel[+cookie.get('_ChannelIndex')] || 'MEN',
needFix: yoho.isiOS
};
},
components: {
... ... @@ -343,6 +345,19 @@
</script>
<style>
.fix-ios-top {
padding-top: 30px;
.fix-top-space {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 30px;
background: #fff;
}
}
.my-page {
color: #444;
background: #f0f0f0;
... ... @@ -378,9 +393,9 @@
}
.user-info {
float: left;
display: block;
position: relative;
top: 56px;
top: 40px;
color: #000;
font-size: 34px;
height: 190px;
... ... @@ -400,10 +415,11 @@
}
.account-mg {
display: inline-block;
position: relative;
top: 10px;
position: absolute;
right: 0;
top: 0;
font-size: 32px;
line-height: 190px;
.icon-right {
margin-left: 10px;
... ...