|
@@ -32,7 +32,7 @@
|
|
:imgsArr="imgsArr"
|
|
:imgsArr="imgsArr"
|
|
@scrollReachBottom="getData"
|
|
@scrollReachBottom="getData"
|
|
>
|
|
>
|
|
- <div class="info" slot-scope="props">
|
|
|
|
|
|
+ <div class="info" slot-scope="props" @click="lookDetail(props.value.id)">
|
|
<el-image class="image"
|
|
<el-image class="image"
|
|
:src="props.value.cover_img_url"
|
|
:src="props.value.cover_img_url"
|
|
:fit="'cover'"
|
|
:fit="'cover'"
|
|
@@ -71,6 +71,16 @@
|
|
v-if="publishFlag">
|
|
v-if="publishFlag">
|
|
<publish-report @closeDialog="closeDialog"></publish-report>
|
|
<publish-report @closeDialog="closeDialog"></publish-report>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <el-dialog
|
|
|
|
+ :visible.sync="reportDetailFlag"
|
|
|
|
+ :show-close="false"
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
+ width="1286px"
|
|
|
|
+ :modal="false"
|
|
|
|
+ class="login-dialog"
|
|
|
|
+ v-if="reportDetailFlag">
|
|
|
|
+ <report-detail :info="reportInfo" @closeDetail="closeDetail"></report-detail>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -81,9 +91,10 @@ import Header from "../../components/Header.vue";
|
|
import vueWaterfallEasy from "vue-waterfall-easy";
|
|
import vueWaterfallEasy from "vue-waterfall-easy";
|
|
import { getLogin } from "@/api/ajax";
|
|
import { getLogin } from "@/api/ajax";
|
|
import PublishReport from "./components/PublishReport.vue"
|
|
import PublishReport from "./components/PublishReport.vue"
|
|
|
|
+import ReportDetail from './components/ReportDetail.vue';
|
|
export default {
|
|
export default {
|
|
//import引入的组件需要注入到对象中才能使用
|
|
//import引入的组件需要注入到对象中才能使用
|
|
- components: { Header, vueWaterfallEasy, PublishReport },
|
|
|
|
|
|
+ components: { Header, vueWaterfallEasy, PublishReport, ReportDetail },
|
|
props: {},
|
|
props: {},
|
|
data() {
|
|
data() {
|
|
//这里存放数据
|
|
//这里存放数据
|
|
@@ -120,7 +131,9 @@ export default {
|
|
publishFlag: false, // 发布弹窗
|
|
publishFlag: false, // 发布弹窗
|
|
searchInput: '',
|
|
searchInput: '',
|
|
labelList:['中英双语','少儿必读','3-6 岁'],
|
|
labelList:['中英双语','少儿必读','3-6 岁'],
|
|
- labelActiveIndex: null
|
|
|
|
|
|
+ labelActiveIndex: null,
|
|
|
|
+ reportDetailFlag: false,
|
|
|
|
+ reportInfo: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//计算属性 类似于data概念
|
|
//计算属性 类似于data概念
|
|
@@ -255,6 +268,23 @@ export default {
|
|
closeDialog(){
|
|
closeDialog(){
|
|
this.publishFlag = false
|
|
this.publishFlag = false
|
|
this.getData(1)
|
|
this.getData(1)
|
|
|
|
+ },
|
|
|
|
+ // 查看详情
|
|
|
|
+ lookDetail(id){
|
|
|
|
+ let MethodName = "/PaperServer/Client/Xjz/XjzArticleDetail";
|
|
|
|
+ let data = {
|
|
|
|
+ id: id
|
|
|
|
+ }
|
|
|
|
+ getLogin(MethodName, data)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ if(res.status===1){
|
|
|
|
+ this.reportInfo = res.data
|
|
|
|
+ this.reportDetailFlag = true
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ closeDetail(){
|
|
|
|
+ this.reportDetailFlag = false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -567,8 +597,8 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.vue-waterfall-easy{
|
|
.vue-waterfall-easy{
|
|
- width: 1440px !important;
|
|
|
|
- margin-left: -720px !important;
|
|
|
|
|
|
+ // width: 1440px !important;
|
|
|
|
+ // margin-left: -720px !important;
|
|
.img-inner-box{
|
|
.img-inner-box{
|
|
box-shadow: none !important;
|
|
box-shadow: none !important;
|
|
}
|
|
}
|