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

@@ -75,7 +75,10 @@
</li>
</ul>
</div>
<div class="course-resources">
资源位
<img :src="fileBaseUrl + resonimg.image" alt="">
</div>
</div>
</div>
</div>
@@ -117,6 +120,7 @@ import editItems from '@/components/Article/editItems.vue';
import "quill/dist/quill.core.css";
import "quill/dist/quill.snow.css";
import "quill/dist/quill.bubble.css";
import apiPlace from "@/api/modules/place.js"
export default {
components: { portalHeader, portalFooter,interactBar,comments,timeShow,author,editItems,portalFloatTools},
computed: {
@@ -124,6 +128,8 @@ export default {
},
data() {
return {
resonimg:{},
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
noData:true,
shareInfo:{
name:'',
@@ -160,11 +166,22 @@ export default {
"scroll",
this.handleScroll
);
this.couresreso();
},
beforeDestroy(){
window.removeEventListener("scroll",this.handleScroll);
},
methods: {
couresreso(){
let key = 'article';
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)
})
},
handleScroll() {
let el_anking = document.querySelector('#articleAnking');
//console.log(el_anking.clientWidth,'clientWidth');
@@ -241,7 +258,13 @@ export default {
</script>
<style scoped lang="scss">
.course-resources{
width: 410px;
img{
width: 100%;
height: 100%;
}
}
.write-art{
width: 410px;