Authored by 沈志敏

fix bug

@@ -47,9 +47,9 @@ const component = { @@ -47,9 +47,9 @@ const component = {
47 47
48 data = data || {}; 48 data = data || {};
49 if (data.gender === '1') { 49 if (data.gender === '1') {
50 - gender = 'men'; 50 + gender = 'MEN';
51 } else if (data.gender === '2') { 51 } else if (data.gender === '2') {
52 - gender = 'women'; 52 + gender = 'WOMEN';
53 } 53 }
54 54
55 res.render('mydetails', { 55 res.render('mydetails', {
@@ -29,9 +29,9 @@ const search = { @@ -29,9 +29,9 @@ const search = {
29 29
30 for (let k in gender) { 30 for (let k in gender) {
31 if (k.indexOf('1') > -1) { 31 if (k.indexOf('1') > -1) {
32 - gender[k] = 'men'; 32 + gender[k] = 'MEN';
33 } else if (k.indexOf('2') > -1) { 33 } else if (k.indexOf('2') > -1) {
34 - gender[k] = 'women'; 34 + gender[k] = 'WOMEN';
35 } 35 }
36 } 36 }
37 } 37 }
@@ -73,9 +73,9 @@ const _getGoodsList = params => { @@ -73,9 +73,9 @@ const _getGoodsList = params => {
73 73
74 for (let k in gender) { 74 for (let k in gender) {
75 if (k.indexOf('1') > -1) { 75 if (k.indexOf('1') > -1) {
76 - gender[k] = 'men'; 76 + gender[k] = 'MEN';
77 } else if (k.indexOf('2') > -1) { 77 } else if (k.indexOf('2') > -1) {
78 - gender[k] = 'women'; 78 + gender[k] = 'WOMEN';
79 } 79 }
80 } 80 }
81 } 81 }
@@ -3,7 +3,8 @@ @@ -3,7 +3,8 @@
3 {{title.name}} 3 {{title.name}}
4 4
5 <a class="more" href="{{title.moreUrl}}"> 5 <a class="more" href="{{title.moreUrl}}">
6 - <span v-if="title.moreName" class="icon icon-more"></span> 6 + <span v-if="title.moreName === '···'" class="icon icon-more"></span>
  7 + <span v-else>{{{title.moreName}}}</span>
7 </a> 8 </a>
8 </div> 9 </div>
9 </template> 10 </template>
@@ -80,7 +80,7 @@ @@ -80,7 +80,7 @@
80 }, 80 },
81 setAender: function() { 81 setAender: function() {
82 genderSel.show(item => { 82 genderSel.show(item => {
83 - this.gender = item.val.toLowerCase(); 83 + this.gender = item.val;
84 this.saveDetails({ 84 this.saveDetails({
85 nickname: this.nickname, 85 nickname: this.nickname,
86 gender: item.key 86 gender: item.key