Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
沈志敏
8 years ago
Commit
357eeb83142ae2f430d63fb27a6158ee1d1eb4c7
1 parent
0453b468
fix bug
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
9 deletions
public/js/common/intercept-click.js
public/vue/me/home.vue
public/vue/me/mydetails.vue
public/js/common/intercept-click.js
View file @
357eeb8
...
...
@@ -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
=
'浏览记录'
;
...
...
public/vue/me/home.vue
View file @
357eeb8
...
...
@@ -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:
75
px;
width:
86
px;
margin-top: 13px;
margin-left: 1
30
px;
margin-left: 1
15
px;
&.highlight {
background: #eee;
}
&:first-child {
margin-left:
34px
;
margin-left:
0
;
}
.num {
...
...
public/vue/me/mydetails.vue
View file @
357eeb8
...
...
@@ -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: {
...
...
Please
register
or
login
to post a comment