diff --git a/src/views/screenAdaptation/common/portrait.vue b/src/views/screenAdaptation/common/portrait.vue index a945b28..92c0da2 100644 --- a/src/views/screenAdaptation/common/portrait.vue +++ b/src/views/screenAdaptation/common/portrait.vue @@ -16,7 +16,7 @@ export default { data() { return { - imgUrl: this.$store.state.userStore.portraitUrl, + imgUrl: "" } }, props: ['personId'], @@ -24,13 +24,7 @@ if(this.$props.personId !== ""){ this.getImgSrc(this.$props.personId) } -// if (!this.imgUrl || this.imgUrl === "") { -// this.getImgSrc(this.$props.personId) -// } }, -// mounted() { -// this.getImgSrc() -// }, methods: { showMessage() { this.$emit('showMessage') @@ -49,36 +43,16 @@ // console.log('获取头像------', result) if (result[0].data.file_id !== "") { //this.imgUrl = result[0].data.file_id + ',' + result[0].data.extension - this.imgUrl = StaticParams.getThumbUrl(result[0].data.file_id + "." + result[0].data.extension, 100, 100, 100); + let url = StaticParams.getThumbUrl(result[0].data.file_id + "." + result[0].data.extension, 100, 100, 100); + this.imgUrl = url; } }) }, - // getImgSrc: function (personId) { - // if (personId && personId != '') { - // this.InterfaceConfig.callInterface([{ - // url: interConfig.getPersonTxByYw.url, - // params: { - // person_id: personId, - // identity_id: 5, - // }, - // method: interConfig.getPersonTxByYw.method, - // isTestLogin: interConfig.getPersonTxByYw.isTestLogin, - // }], (result) => { - // let resData = result[0].data; - // if (result[0].status === 200) { - // if (resData.success === true) { - // this.imgUrl = StaticParams.getThumbUrl(resData.file_id + "." + resData.extension, 100, 100, 100); - // this.$store.commit('userStore/setPortraitUrl', this.imgUrl); - // } - // } - // }) - // } - // } }, watch: { personId: function (newVal) { this.getImgSrc(newVal) - } + }, }, components: { AAvatar: Avatar diff --git a/src/views/screenAdaptation/common/topPortrait.vue b/src/views/screenAdaptation/common/topPortrait.vue new file mode 100644 index 0000000..de4debe --- /dev/null +++ b/src/views/screenAdaptation/common/topPortrait.vue @@ -0,0 +1,76 @@ + + + \ No newline at end of file diff --git a/src/views/screenAdaptation/pages/homePages/menuTop/personInfo.vue b/src/views/screenAdaptation/pages/homePages/menuTop/personInfo.vue index 6ccce56..d24cef7 100644 --- a/src/views/screenAdaptation/pages/homePages/menuTop/personInfo.vue +++ b/src/views/screenAdaptation/pages/homePages/menuTop/personInfo.vue @@ -19,7 +19,7 @@ @@ -490,9 +530,55 @@ position: relative; border: 1px dashed #03EFFD; height: calc(50% - 8px); - margin-bottom: 16px; border-radius: 8px; - display: flex; + .colRightBbox_content { + width: 100%; + height: 100%; + display: flex; + justify-content: space-around; + align-items: center; + .fixBtn { + width: 150px; + } + .mypicture { + width: 110px; + height: 110px; + /*margin-top: 32px;*/ + /*margin-left: 50px;*/ + border-radius: 50%; + border: 1px solid #03EFFD; + overflow: hidden; + .upload-container-style { + width: 100%; + height: 100%; + .img-style { + width: 100%; + height: 100%; + } + } + } + .fixBtnChange, .fixBtnSave { + /*position: absolute;*/ + width: 120px; + height: 39px; + line-height: 39px; + /*top: 21%;*/ + background: none; + /*right: 65px;*/ + display: block; + border: 1px solid #03EFFD; + border-radius: 5px; + cursor: pointer; + text-align: center; + } + .fixBtnSave { + /*top: 51%;*/ + background: none; + } + .save-button { + margin-top: 50px; + } + } .leftPic { width: 42%; display: flex; @@ -525,40 +611,13 @@ } } } - .rightText { - width: 50%; - display: flex; - justify-content: center; - align-items: flex-end; - flex-wrap: wrap; - .fixBtnChange, .fixBtnSave { - width: 120px; - height: 39px; - line-height: 39px; - display: block; - border: 1px solid #03EFFD; - border-radius: 5px; - cursor: pointer; - } - .fixBtnSave { - background: none; - span { - right: 30px; - bottom: 0; - } - } - - span { - display: block; - } - } } - .colRightBbox { position: relative; border: 1px dashed #03EFFD; height: calc(50% - 8px); border-radius: 8px; + margin-top: 16px; .colRightBbox_content { width: 100%; height: 100%; @@ -607,6 +666,38 @@ margin-top: 50px; } } + .leftPic { + width: 42%; + display: flex; + height: auto; + justify-content: center; + flex-wrap: wrap; + .mypicture { + width: 110px; + height: 110px; + margin-top: 20px; + border-radius: 50%; + border: 1px solid #03EFFD; + overflow: hidden; + .upload-container-style { + width: 100%; + height: 100%; + } + } + + .editIcon { + width: 110px; + height: 30px; + margin-top: 9px; + display: flex; + justify-content: space-between; + img { + width: 24px; + height: 24px; + cursor: pointer; + } + } + } } } }