Authored by 沈志敏

fix bug

... ... @@ -50,7 +50,7 @@ exports.getFavBrandData = (uid, gender, page, limit) => {
*
* @param int uid 用户ID
* @param int favId 要取消的收藏id
* @param string type 取消类型(brand:品牌,product:商品)
* @param string type 取消类型(shop:品牌,product:商品)
* @return array 接口返回的数据
*/
exports.favoriteDelete = (uid, favId, type) => {
... ...
... ... @@ -76,13 +76,22 @@
color: #b0b0b0;
}
.birthday-span {
float: right;
margin-top: 1px;
color: #b0b0b0;
z-index: -1;
}
.birthday {
text-align: right;
color: #b0b0b0;
color: transparent;
background: transparent;
border: 1px solid #fff;
height: 100%;
width: 100%;
flex-direction: row-reverse;
-webkit-appearance: none;
}
.birthday::-webkit-inner-spin-button,
... ...
... ... @@ -124,7 +124,7 @@
url: '/me/del-favdel',
data: {
favId: id,
type: 'brand'
type: 'shop'
}
}).then(data => {
if (data.code === 200) {
... ...
... ... @@ -22,6 +22,7 @@
<li>
<label>生日
<span class="details-birthday">
<span class="birthday-span">{{spanbirthday}}</span>
<input class="birthday" type="date" v-model='birthday' @change="setBirthday" required></input>
</span>
</label>
... ... @@ -49,6 +50,13 @@
icoStyle: this.head_ico ? 'background-image:url(' + this.head_ico + ');' : ''
};
},
computed: {
spanbirthday: function(){
const arr = this.birthday.split('-');
return arr.length === 3 ? `${arr[0]}年${arr[1]}月${arr[2]}日` : '';
}
},
methods: {
setAvatar: function() {
yoho.goSetAvatar();
... ...