mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 02:46:44 +08:00
首页案例样式调整 案例详情接口替换
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user