mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-07 09:56:42 +08:00
提交
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<div id="container" style="z-index:99;" v-if="resonimg.length == 1">
|
||||
<!-- 当轮播图等于一张时 -->
|
||||
<swiper :options="swiperOptiontwo" >
|
||||
<swiper-slide style="margin: 0 auto;" v-for="(item , idx ) in resonimg" :key="'a'+idx" class="swiper-slide games">
|
||||
<swiper-slide style="margin: 0 auto;" v-for="(item , idx ) in resonimg" :key="'a'+idx" class="swiper-slide games" @click.native="banJump(item)">
|
||||
<div class="bannbox" :style="{ 'background': `url(${fileBaseUrl + item.image}) no-repeat 100% / 100%`}">
|
||||
</div>
|
||||
<img class="banner-img" style=" margin: 0 auto;" :src=" fileBaseUrl + item.image" alt="">
|
||||
@@ -14,7 +14,7 @@
|
||||
</div>
|
||||
<div id="container" style="z-index:99;" v-else>
|
||||
<swiper :options="swiperOption" ref="mySwiper" v-if="resonimg.length > 1">
|
||||
<swiper-slide style="margin: 0 auto;" v-for="(item , idx ) in resonimg" :key="'b'+idx" class="swiper-slide games">
|
||||
<swiper-slide style="margin: 0 auto;" v-for="(item , idx ) in resonimg" :key="'b'+idx" class="swiper-slide games" @click.native="banJump(item)">
|
||||
<div class="bannbox" :style="{ 'background': `url(${fileBaseUrl + item.image}) no-repeat 100% / 100%`}">
|
||||
</div>
|
||||
<img class="banner-img" style=" margin: 0 auto;" :src=" fileBaseUrl + item.image" alt="">
|
||||
@@ -624,6 +624,9 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
banJump(item) {
|
||||
window.open(item.JumpUrl);
|
||||
},
|
||||
// 上次学习记录
|
||||
getLastStudy() {
|
||||
apicourseStudy.lastStudy().then(res => {
|
||||
@@ -737,6 +740,7 @@
|
||||
let key = 'index';
|
||||
apiPlace.detail(key).then(res => {
|
||||
let lmj = JSON.parse(res.result.content)
|
||||
console.log(lmj,'lmj');
|
||||
this.resonimg = lmj;
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user