Authored by 沈志敏

fix bug

... ... @@ -47,9 +47,9 @@ const component = {
data = data || {};
if (data.gender === '1') {
gender = 'men';
gender = 'MEN';
} else if (data.gender === '2') {
gender = 'women';
gender = 'WOMEN';
}
res.render('mydetails', {
... ...
... ... @@ -29,9 +29,9 @@ const search = {
for (let k in gender) {
if (k.indexOf('1') > -1) {
gender[k] = 'men';
gender[k] = 'MEN';
} else if (k.indexOf('2') > -1) {
gender[k] = 'women';
gender[k] = 'WOMEN';
}
}
}
... ...
... ... @@ -73,9 +73,9 @@ const _getGoodsList = params => {
for (let k in gender) {
if (k.indexOf('1') > -1) {
gender[k] = 'men';
gender[k] = 'MEN';
} else if (k.indexOf('2') > -1) {
gender[k] = 'women';
gender[k] = 'WOMEN';
}
}
}
... ...
... ... @@ -3,7 +3,8 @@
{{title.name}}
<a class="more" href="{{title.moreUrl}}">
<span v-if="title.moreName" class="icon icon-more"></span>
<span v-if="title.moreName === '···'" class="icon icon-more"></span>
<span v-else>{{{title.moreName}}}</span>
</a>
</div>
</template>
... ...
... ... @@ -80,7 +80,7 @@
},
setAender: function() {
genderSel.show(item => {
this.gender = item.val.toLowerCase();
this.gender = item.val;
this.saveDetails({
nickname: this.nickname,
gender: item.key
... ...