首页轮播

This commit is contained in:
lmj
2022-09-07 18:37:59 +08:00
parent 309b2dcf1c
commit 8d7e9d98d7
7 changed files with 1716 additions and 18421 deletions

View File

@@ -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;