mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
首页轮播
This commit is contained in:
@@ -271,6 +271,10 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="course-resources">
|
||||
资源位
|
||||
<img :src="fileBaseUrl + resonimg.image" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -306,6 +310,7 @@ import apiUser from "@/api/system/user.js";
|
||||
import apiPraise from "@/api/modules/praises.js";
|
||||
import apiFavorites from "@/api/modules/favorites.js";
|
||||
import apiMessage from "@/api/system/message.js";
|
||||
import apiPlace from "@/api/modules/place.js"
|
||||
export default {
|
||||
name: "answer",
|
||||
components: {
|
||||
@@ -324,6 +329,8 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
resonimg:{},
|
||||
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
|
||||
noData: true,
|
||||
qaFormCheckedShow: false,
|
||||
checked: false,
|
||||
@@ -376,11 +383,21 @@ export default {
|
||||
this.$watermark.set(this.userInfo.name + this.userInfo.loginName);
|
||||
window.addEventListener("scroll", this.handleScroll);
|
||||
this.getAnkingData();
|
||||
this.couresreso();
|
||||
},
|
||||
beforeDestroy() {
|
||||
window.removeEventListener("scroll", this.handleScroll);
|
||||
},
|
||||
methods: {
|
||||
couresreso(){
|
||||
let key = 'qa';
|
||||
apiPlace.detail(key).then(res=>{
|
||||
console.log(res)
|
||||
let lmj = JSON.parse(res.result.content)
|
||||
this.resonimg = lmj[0]
|
||||
console.log(this.resonimg.image)
|
||||
})
|
||||
},
|
||||
handleScroll() {
|
||||
let innerHeight = document.querySelector("#answer-detail").clientHeight;
|
||||
let outerHeight = document.documentElement.clientHeight;
|
||||
@@ -811,6 +828,13 @@ export default {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.course-resources{
|
||||
width: 410px;
|
||||
img{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
::v-deep .checked-show {
|
||||
.el-dialog__header {
|
||||
padding: 0;
|
||||
|
||||
Reference in New Issue
Block a user