首页案例样式调整 案例详情接口替换

This commit is contained in:
lmj
2022-07-06 14:05:44 +08:00
parent 453f207aec
commit 5cba8e53b1
3 changed files with 19 additions and 5 deletions

View File

@@ -99,6 +99,15 @@ const queryComments=function(pageSize){
const majorTypes=function (){
return ajax.get('/xboe/m/boe/cases/majorTypes');
}
/**
* 详情新*/
const details = function (id, addView) {
let pars = 'id=' + id;
if (addView) {
pars += '&addView=' + addView
}
return ajax.get('/xboe/m/boe/cases/details?' + pars);
}
export default {
indexList,
@@ -112,5 +121,6 @@ export default {
usernameList,
queryPraises,
queryComments,
majorTypes
majorTypes,
details
}

View File

@@ -139,7 +139,7 @@
<div class="case-inter">
<interactBar :type="3" :readonly="true" :data="ca" :shares="false" :views="false"></interactBar>
</div>
<div style="height:40px;margin-top:10px">
<div class="case-orginfo" style="margin-top:10px">
<authorInfo :avatar="ca.authorInfo.avatar" :info="ca.authorInfo.orgInfo" :name="ca.authorInfo.name" :sex="ca.authorInfo.sex"></authorInfo></div>
</div>
</div>
@@ -649,6 +649,10 @@ export default {
</script>
<style scoped lang="scss">
.case-orginfo{
// line-height: 25px;
height: 45px;
}
.three-line-ellipsis {
overflow: hidden;
text-overflow: ellipsis;
@@ -661,7 +665,7 @@ export default {
.casetwo{
border: 1px solid #F0F0F0;
width: 100%;
height: 220px;
height: 245px;
margin-bottom:15px;
position: relative;
background-color: #fff;

View File

@@ -448,10 +448,10 @@ export default {
})
},
getCaseData() {
apiCase.detail(this.resolveId,true).then(res => {
apiCase.details(this.resolveId,true).then(res => {
if (res.status == 200) {
if (JSON.stringify(res.result) != '{}') {
this.caseDetail = res.result;
this.caseDetail = res.result.case;
this.getCaseUserDetail();
if(this.caseDetail.filePath){
//this.pdfPath=this.basePath+this.caseDetail.filePath;