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

@@ -256,6 +256,10 @@
</li>
</ul>
</div>
<div class="course-resources">
资源位
<img :src="fileBaseUrl + resonimg.image" alt="">
</div>
</div>
</div>
@@ -287,6 +291,7 @@ import courseImage from "@/components/Course/courseImage.vue";
import { courseType, getType, toScore,formatDate } from "@/utils/tools.js";
import { deepClone, param } from "../../../utils";
import apiSearchterm from "@/api/modules/searchterm.js";
import apiPlace from "@/api/modules/place.js"
export default {
name: "index",
components: {
@@ -304,6 +309,7 @@ export default {
},
data() {
return {
resonimg:{},
formatDate,
audiences:[],//当前用户的受众
couretitle: "",
@@ -418,11 +424,23 @@ export default {
}
this.searchterm();
this.couresreso();
},
beforeDestroy() {
window.removeEventListener("scroll", this.handleScroll);
},
methods: {
couresreso(){
let key = 'course';
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)
})
},
jumUX() {
window.open("https://m.qingxuetang.com/x/?appId=qxtcorp306130", "_blank");
},
@@ -816,6 +834,13 @@ export default {
</script>
<style scoped lang="scss">
.course-resources{
width: 410px;
img{
width: 100%;
height: 100%;
}
}
.course-card{
// height: 196px;
position: relative;