mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 06:16:44 +08:00
修改
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user