Authored by 沈志敏

fix bug

... ... @@ -223,6 +223,12 @@ const matchHeader = (path, qs, titleMap) => {
return header;
}
if (/\/me\/provisions$/.test(path)) {
header = titleMap[1];
header.title.des = '隐私条款';
return header;
}
if (/\/me\/records/.test(path)) {
header = titleMap[3];
header.title.des = '浏览记录';
... ...
... ... @@ -4,7 +4,7 @@
</cheader>
<div class="my-header">
<a class="user-info auth" id="user-info" href='/me/mydetails'>
<img class="user-avatar" :src="headIco" @error="imgerror">
<img class="user-avatar" :src="headIco" @error="setEmptyimg">
</a>
<span class="username">{{ data.nickName }}</span>
</div>
... ... @@ -47,7 +47,7 @@
<div class="group-list">
<a class="glist-item auth" href="/me/collection">
我的收藏
<span class="num">商品/品牌/资讯 <span class="icon icon-right"></span></span>
<span class="num">商品/品牌/资讯 <span class="icon icon-right"></span></span>
</a>
<a class="glist-item auth" href="/me/records?type={{recordNum}}">
浏览记录
... ... @@ -103,7 +103,7 @@
cheader
},
methods: {
imgerror() {
setEmptyimg() {
// 图片报错时,给个默认透明图片
this.headIco = 'data:image/png;base64,R0lGODlhFAAUAIAAAP///wAAACH5BAEAAAAALAAAAAAUABQAAAIRhI+py+0Po5y02ouz3rz7rxUAOw==';
},
... ... @@ -141,6 +141,7 @@
this.data = {
nickName: '登录/注册'
};
this.setEmptyimg();
$('.auth').addClass('no-intercept');
$('.auth').on('click', this.authClick);
... ... @@ -323,7 +324,7 @@
}
.order-type {
padding: 20px 0;
padding: 20px 30px;
text-align: center;
height: 150px;
... ... @@ -337,16 +338,16 @@
color: #444;
font-size: 24px;
line-height: 1.5;
width: 75px;
width: 86px;
margin-top: 13px;
margin-left: 130px;
margin-left: 115px;
&.highlight {
background: #eee;
}
&:first-child {
margin-left: 34px;
margin-left: 0;
}
.num {
... ...
... ... @@ -14,7 +14,7 @@
<li>
<label @click="setAender">性别
<span class="details-gender">
<span class="gender">{{ gender }}</span>
<span class="gender">{{ gender ? gender : '选择性别' }}</span>
<span class="icon icon-right"></span>
</span>
</label>
... ... @@ -53,7 +53,7 @@
spanbirthday: function() {
const arr = this.birthday.split('-');
return arr.length === 3 ? `${arr[0]}年${arr[1]}月${arr[2]}日` : '';
return arr.length === 3 ? `${arr[0]}年${arr[1]}月${arr[2]}日` : '1900年01月01日';
}
},
methods: {
... ...