This commit is contained in:
lmj
2022-09-07 16:53:14 +08:00
parent 4019580230
commit c6781abee3
11 changed files with 586 additions and 7 deletions

View File

@@ -145,6 +145,10 @@
</li>
</ul>
</div>
<div class="course-resources">
资源位
<img :src="fileBaseUrl + resonimg.image" alt="">
</div>
</div>
</div>
</div>
@@ -170,6 +174,7 @@ import apiDict from "@/api/modules/dict.js"
import {encrypt} from '@/utils/jsencrypt.js';
import cookies from 'vue-cookies'
import {cutFullName} from "@/utils/tools.js";
import apiPlace from "@/api/modules/place.js"
import portalFloatTools from "@/components/PortalFloatTools.vue";
export default {
name: 'atticle',
@@ -179,6 +184,8 @@ export default {
},
data() {
return {
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
resonimg:{},
Internet:3,//1是成功 2是是失败 3是检测中
noData:true,
zoomShow:true,
@@ -216,12 +223,23 @@ export default {
this.getAnkingData();
this.getPopularity();
this.getPositive();
this.couresreso();
window.addEventListener(
"scroll",
this.handleScroll
);
},
methods: {
couresreso(){
let key = 'case';
apiPlace.detail(key).then(res=>{
console.log(res)
let lmj = JSON.parse(res.result.content)
// console.log(lmj)
this.resonimg = lmj[0]
console.log(this.resonimg.image)
})
},
retest(){
this.Internet=3;
let $this=this;
@@ -475,6 +493,13 @@ export default {
</script>
<style scoped lang="scss">
.course-resources{
width: 410px;
img{
width: 100%;
height: 100%;
}
}
.pdftext{
// padding: 0 20px;
span{