Authored by 沈志敏

fix bug

@@ -50,7 +50,7 @@ exports.getFavBrandData = (uid, gender, page, limit) => { @@ -50,7 +50,7 @@ exports.getFavBrandData = (uid, gender, page, limit) => {
50 * 50 *
51 * @param int uid 用户ID 51 * @param int uid 用户ID
52 * @param int favId 要取消的收藏id 52 * @param int favId 要取消的收藏id
53 - * @param string type 取消类型(brand:品牌,product:商品) 53 + * @param string type 取消类型(shop:品牌,product:商品)
54 * @return array 接口返回的数据 54 * @return array 接口返回的数据
55 */ 55 */
56 exports.favoriteDelete = (uid, favId, type) => { 56 exports.favoriteDelete = (uid, favId, type) => {
@@ -76,13 +76,22 @@ @@ -76,13 +76,22 @@
76 color: #b0b0b0; 76 color: #b0b0b0;
77 } 77 }
78 78
  79 + .birthday-span {
  80 + float: right;
  81 + margin-top: 1px;
  82 + color: #b0b0b0;
  83 + z-index: -1;
  84 + }
  85 +
79 .birthday { 86 .birthday {
80 text-align: right; 87 text-align: right;
81 - color: #b0b0b0; 88 + color: transparent;
82 background: transparent; 89 background: transparent;
83 border: 1px solid #fff; 90 border: 1px solid #fff;
84 height: 100%; 91 height: 100%;
  92 + width: 100%;
85 flex-direction: row-reverse; 93 flex-direction: row-reverse;
  94 + -webkit-appearance: none;
86 } 95 }
87 96
88 .birthday::-webkit-inner-spin-button, 97 .birthday::-webkit-inner-spin-button,
@@ -124,7 +124,7 @@ @@ -124,7 +124,7 @@
124 url: '/me/del-favdel', 124 url: '/me/del-favdel',
125 data: { 125 data: {
126 favId: id, 126 favId: id,
127 - type: 'brand' 127 + type: 'shop'
128 } 128 }
129 }).then(data => { 129 }).then(data => {
130 if (data.code === 200) { 130 if (data.code === 200) {
@@ -22,6 +22,7 @@ @@ -22,6 +22,7 @@
22 <li> 22 <li>
23 <label>生日 23 <label>生日
24 <span class="details-birthday"> 24 <span class="details-birthday">
  25 + <span class="birthday-span">{{spanbirthday}}</span>
25 <input class="birthday" type="date" v-model='birthday' @change="setBirthday" required></input> 26 <input class="birthday" type="date" v-model='birthday' @change="setBirthday" required></input>
26 </span> 27 </span>
27 </label> 28 </label>
@@ -49,6 +50,13 @@ @@ -49,6 +50,13 @@
49 icoStyle: this.head_ico ? 'background-image:url(' + this.head_ico + ');' : '' 50 icoStyle: this.head_ico ? 'background-image:url(' + this.head_ico + ');' : ''
50 }; 51 };
51 }, 52 },
  53 + computed: {
  54 + spanbirthday: function(){
  55 + const arr = this.birthday.split('-');
  56 +
  57 + return arr.length === 3 ? `${arr[0]}年${arr[1]}月${arr[2]}日` : '';
  58 + }
  59 + },
52 methods: { 60 methods: {
53 setAvatar: function() { 61 setAvatar: function() {
54 yoho.goSetAvatar(); 62 yoho.goSetAvatar();