From 026a0f4725b359d6f2e499e3207c35077071a6aa Mon Sep 17 00:00:00 2001 From: Elegenthus <996886231@qq.com> Date: Wed, 10 May 2017 16:07:30 +0800 Subject: [PATCH] modify commentPage --- src/components/main/item.vue | 4 ++-- src/components/profile/changeMessage.vue | 28 ++++++++++++------------ src/components/profile/exitPage.vue | 2 +- src/components/second/comment.vue | 16 ++++---------- src/components/second/info.vue | 3 ++- src/components/second/second.vue | 13 ++++++++--- 6 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/components/main/item.vue b/src/components/main/item.vue index 236cc42..c250d2c 100644 --- a/src/components/main/item.vue +++ b/src/components/main/item.vue @@ -11,7 +11,7 @@
-
#{{item.tag}}#
+
#{{item.tag}}#
@@ -116,7 +116,7 @@ import Map from '../../common/keymap.js' composes: space from 'sass-loader!../../scss/utility.scss'; } .author{ - width: 30%; + width: 50%; padding-left: 15px; float: left; composes: common; diff --git a/src/components/profile/changeMessage.vue b/src/components/profile/changeMessage.vue index 5b2da2c..647d823 100644 --- a/src/components/profile/changeMessage.vue +++ b/src/components/profile/changeMessage.vue @@ -66,19 +66,19 @@ export default { submitChange() { if (!this.editChange) return let promise1 = Fetch.FetchData('/api/v1.0/profile/' + this.profile.user_id + '/edit/', 'PUT', { - name: this.newName ? this.newName : this.profile.name, - introduction: this.newIntroduction ? this.newIntroduction : this.profile.introduction, - weibo: this.newWeibo ? this.newWeibo : this.profile.weibo, - img_url: this.pic_url ? this.pic_url : this.profile.weibo.img_url - }).then(value => { - this.profile = value - this.$parent.profile = value - this.$parent.changeMessage = false - this.editChange = false - this.newName = "" - this.newIntroduction = "" - this.newWeibo = "" - }) + name: this.newName ? this.newName : this.profile.name, + introduction: this.newIntroduction ? this.newIntroduction : this.profile.introduction, + weibo: this.newWeibo ? this.newWeibo : this.profile.weibo, + img_url: this.pic_url ? this.pic_url : this.profile.weibo.img_url + }).then(value => { + this.profile = value + this.$parent.profile = value + this.$parent.changeMessage = false + this.editChange = false + this.newName = "" + this.newIntroduction = "" + this.newWeibo = "" + }) }, getName(e) { this.changedImg = URL.createObjectURL(e.target.files[0]) @@ -100,7 +100,7 @@ export default { } } -