Commit 8c137a6f authored by anxixi's avatar anxixi

文章发布修改

parent ad17726a
......@@ -183,8 +183,10 @@ export default {
addOrSubtractHot(params) {
return api.fetchLogin('/business/content/addOrSubtractHot' , params);
},
//个人用户信息
selectByEmpId (params){
return api.fetchPost('/base/emp/selectByEmpId',Qs.stringify(params));
},
//获取域名
selectBasicParams( ) {
......
......@@ -66,7 +66,7 @@
<p><span>&nbsp;</span>评论 <i>( {{totalStrdto.totalStr}} )</i></p>
<div id="totaltop">
<div style="width: 50px;">
<img v-if="contentData.contentCoverUrl" :src="contentData.contentCoverUrl">
<img v-if="publicFun.getCookie('userInfo')&&empuser.empLogo" :src="empuser.empLogo">
<img v-else src="../../assets/img/defaultlogo.png">
</div>
<div style="width: 100%;margin-left: 20px;position: relative;">
......@@ -182,6 +182,7 @@
urltext:'',
positions:false,
isaxios:true,
empuser:{}
}
},
methods:{
......@@ -474,6 +475,18 @@
this.$toast(err);
})
},
getselectByEmpId(){
let params = {
empId:this.publicFun.getCookie("userInfo")?JSON.parse(this.Base64.decode(this.publicFun.getCookie("userInfo"))).empId:undefined,
};
api.selectByEmpId(params).then(res => {
if(res.code==0){
this.empuser = res.result;
}
}).catch((err)=>{
this.$toast(err);
});
},
},
beforeDestroy() { // 在组件生命周期结束的时候销毁。
window.removeEventListener('scroll', this.menu);
......@@ -493,6 +506,9 @@
globalMsg.$emit('sendIndex',3);
}
this.getselectContentById(false);
if(this.publicFun.getCookie("userInfo")){
this.getselectByEmpId();
}
api.selectBasicParams().then(response => {
if(response.code == 0) {
this.urltext = response.result.websitePrefix+'#/articleDetail?id=';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment