mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
首页案例样式调整 案例详情接口替换
This commit is contained in:
@@ -99,6 +99,15 @@ const queryComments=function(pageSize){
|
|||||||
const majorTypes=function (){
|
const majorTypes=function (){
|
||||||
return ajax.get('/xboe/m/boe/cases/majorTypes');
|
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 {
|
export default {
|
||||||
indexList,
|
indexList,
|
||||||
@@ -112,5 +121,6 @@ export default {
|
|||||||
usernameList,
|
usernameList,
|
||||||
queryPraises,
|
queryPraises,
|
||||||
queryComments,
|
queryComments,
|
||||||
majorTypes
|
majorTypes,
|
||||||
|
details
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,7 +139,7 @@
|
|||||||
<div class="case-inter">
|
<div class="case-inter">
|
||||||
<interactBar :type="3" :readonly="true" :data="ca" :shares="false" :views="false"></interactBar>
|
<interactBar :type="3" :readonly="true" :data="ca" :shares="false" :views="false"></interactBar>
|
||||||
</div>
|
</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>
|
<authorInfo :avatar="ca.authorInfo.avatar" :info="ca.authorInfo.orgInfo" :name="ca.authorInfo.name" :sex="ca.authorInfo.sex"></authorInfo></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -649,6 +649,10 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
.case-orginfo{
|
||||||
|
// line-height: 25px;
|
||||||
|
height: 45px;
|
||||||
|
}
|
||||||
.three-line-ellipsis {
|
.three-line-ellipsis {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
@@ -661,7 +665,7 @@ export default {
|
|||||||
.casetwo{
|
.casetwo{
|
||||||
border: 1px solid #F0F0F0;
|
border: 1px solid #F0F0F0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 220px;
|
height: 245px;
|
||||||
margin-bottom:15px;
|
margin-bottom:15px;
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|||||||
@@ -448,10 +448,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getCaseData() {
|
getCaseData() {
|
||||||
apiCase.detail(this.resolveId,true).then(res => {
|
apiCase.details(this.resolveId,true).then(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
if (JSON.stringify(res.result) != '{}') {
|
if (JSON.stringify(res.result) != '{}') {
|
||||||
this.caseDetail = res.result;
|
this.caseDetail = res.result.case;
|
||||||
this.getCaseUserDetail();
|
this.getCaseUserDetail();
|
||||||
if(this.caseDetail.filePath){
|
if(this.caseDetail.filePath){
|
||||||
//this.pdfPath=this.basePath+this.caseDetail.filePath;
|
//this.pdfPath=this.basePath+this.caseDetail.filePath;
|
||||||
|
|||||||
Reference in New Issue
Block a user