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