Authored by 沈志敏

fix bug

@@ -223,6 +223,12 @@ const matchHeader = (path, qs, titleMap) => { @@ -223,6 +223,12 @@ const matchHeader = (path, qs, titleMap) => {
223 return header; 223 return header;
224 } 224 }
225 225
  226 + if (/\/me\/provisions$/.test(path)) {
  227 + header = titleMap[1];
  228 + header.title.des = '隐私条款';
  229 + return header;
  230 + }
  231 +
226 if (/\/me\/records/.test(path)) { 232 if (/\/me\/records/.test(path)) {
227 header = titleMap[3]; 233 header = titleMap[3];
228 header.title.des = '浏览记录'; 234 header.title.des = '浏览记录';
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 </cheader> 4 </cheader>
5 <div class="my-header"> 5 <div class="my-header">
6 <a class="user-info auth" id="user-info" href='/me/mydetails'> 6 <a class="user-info auth" id="user-info" href='/me/mydetails'>
7 - <img class="user-avatar" :src="headIco" @error="imgerror"> 7 + <img class="user-avatar" :src="headIco" @error="setEmptyimg">
8 </a> 8 </a>
9 <span class="username">{{ data.nickName }}</span> 9 <span class="username">{{ data.nickName }}</span>
10 </div> 10 </div>
@@ -47,7 +47,7 @@ @@ -47,7 +47,7 @@
47 <div class="group-list"> 47 <div class="group-list">
48 <a class="glist-item auth" href="/me/collection"> 48 <a class="glist-item auth" href="/me/collection">
49 我的收藏 49 我的收藏
50 - <span class="num">商品/品牌/资讯 <span class="icon icon-right"></span></span> 50 + <span class="num">商品/品牌/资讯 <span class="icon icon-right"></span></span>
51 </a> 51 </a>
52 <a class="glist-item auth" href="/me/records?type={{recordNum}}"> 52 <a class="glist-item auth" href="/me/records?type={{recordNum}}">
53 浏览记录 53 浏览记录
@@ -103,7 +103,7 @@ @@ -103,7 +103,7 @@
103 cheader 103 cheader
104 }, 104 },
105 methods: { 105 methods: {
106 - imgerror() { 106 + setEmptyimg() {
107 // 图片报错时,给个默认透明图片 107 // 图片报错时,给个默认透明图片
108 this.headIco = 'data:image/png;base64,R0lGODlhFAAUAIAAAP///wAAACH5BAEAAAAALAAAAAAUABQAAAIRhI+py+0Po5y02ouz3rz7rxUAOw=='; 108 this.headIco = 'data:image/png;base64,R0lGODlhFAAUAIAAAP///wAAACH5BAEAAAAALAAAAAAUABQAAAIRhI+py+0Po5y02ouz3rz7rxUAOw==';
109 }, 109 },
@@ -141,6 +141,7 @@ @@ -141,6 +141,7 @@
141 this.data = { 141 this.data = {
142 nickName: '登录/注册' 142 nickName: '登录/注册'
143 }; 143 };
  144 + this.setEmptyimg();
144 145
145 $('.auth').addClass('no-intercept'); 146 $('.auth').addClass('no-intercept');
146 $('.auth').on('click', this.authClick); 147 $('.auth').on('click', this.authClick);
@@ -323,7 +324,7 @@ @@ -323,7 +324,7 @@
323 } 324 }
324 325
325 .order-type { 326 .order-type {
326 - padding: 20px 0; 327 + padding: 20px 30px;
327 text-align: center; 328 text-align: center;
328 height: 150px; 329 height: 150px;
329 330
@@ -337,16 +338,16 @@ @@ -337,16 +338,16 @@
337 color: #444; 338 color: #444;
338 font-size: 24px; 339 font-size: 24px;
339 line-height: 1.5; 340 line-height: 1.5;
340 - width: 75px; 341 + width: 86px;
341 margin-top: 13px; 342 margin-top: 13px;
342 - margin-left: 130px; 343 + margin-left: 115px;
343 344
344 &.highlight { 345 &.highlight {
345 background: #eee; 346 background: #eee;
346 } 347 }
347 348
348 &:first-child { 349 &:first-child {
349 - margin-left: 34px; 350 + margin-left: 0;
350 } 351 }
351 352
352 .num { 353 .num {
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 <li> 14 <li>
15 <label @click="setAender">性别 15 <label @click="setAender">性别
16 <span class="details-gender"> 16 <span class="details-gender">
17 - <span class="gender">{{ gender }}</span> 17 + <span class="gender">{{ gender ? gender : '选择性别' }}</span>
18 <span class="icon icon-right"></span> 18 <span class="icon icon-right"></span>
19 </span> 19 </span>
20 </label> 20 </label>
@@ -53,7 +53,7 @@ @@ -53,7 +53,7 @@
53 spanbirthday: function() { 53 spanbirthday: function() {
54 const arr = this.birthday.split('-'); 54 const arr = this.birthday.split('-');
55 55
56 - return arr.length === 3 ? `${arr[0]}年${arr[1]}月${arr[2]}日` : ''; 56 + return arr.length === 3 ? `${arr[0]}年${arr[1]}月${arr[2]}日` : '1900年01月01日';
57 } 57 }
58 }, 58 },
59 methods: { 59 methods: {