|
@@ -3,7 +3,8 @@
|
|
|
<statusBar :item="navBarData"></statusBar>
|
|
|
<view class="top">
|
|
|
<!-- <image src="https://teacherapi.cocorobo.cn/teaching-file/static//logo.png" mode="aspectFill"></image> -->
|
|
|
- <image src="https://teacherapi.cocorobo.cn/teaching-file/static//yym/Rectangle25.png" mode="aspectFill" @click="gotoHome">
|
|
|
+ <image src="https://teacherapi.cocorobo.cn/teaching-file/static//yym/Rectangle25.png" mode="aspectFill"
|
|
|
+ @click="gotoHome">
|
|
|
</image>
|
|
|
</view>
|
|
|
|
|
@@ -15,7 +16,8 @@
|
|
|
<view class="lookMore fz-font" @click="gotoActivity">查看更多</view>
|
|
|
</template>
|
|
|
<template #activeBlock>
|
|
|
- <view class="activeData" @click="gotoActivityDetail" v-for="(item, index) in activeList" :key="index" :data-index="index">
|
|
|
+ <view class="activeData" @click="gotoActivityDetail" v-for="(item, index) in activeList" :key="index"
|
|
|
+ :data-index="index">
|
|
|
<image :src="item.pic" mode="aspectFill"></image>
|
|
|
<view class="activeTit sBtn-font" style="font-weight: bold">
|
|
|
{{ item.acName }}
|
|
@@ -38,10 +40,34 @@
|
|
|
<view class="title three-font">推荐课程</view>
|
|
|
</template>
|
|
|
<template #lookMore>
|
|
|
- <view class="lookMore fz-font" @click="teachmore">查看更多</view>
|
|
|
+ <view class="lookMore fz-font" @click="listBlock1More">查看更多</view>
|
|
|
</template>
|
|
|
<template #teaching>
|
|
|
- <teaching-case :classList="classList"></teaching-case>
|
|
|
+ <!-- <teaching-case :classList="classList"></teaching-case> -->
|
|
|
+ <!-- 推荐课程插槽组件 -->
|
|
|
+ <listBlock1 v-for="i in classList">
|
|
|
+ <template #pic>
|
|
|
+ <image :src="i.pic" mode="aspectFill"></image>
|
|
|
+ </template>
|
|
|
+ <template #tit>
|
|
|
+ {{i.acName}}
|
|
|
+ </template>
|
|
|
+ <template #intro>
|
|
|
+ {{ i.brief }}
|
|
|
+ </template>
|
|
|
+ <template #Sicon>
|
|
|
+ <image src="http://43.139.158.220:5007/img/static/yym/Star 1 (Stroke).png"
|
|
|
+ style="width: 28rpx; height: 26rpx" mode="aspectFill"></image>
|
|
|
+ </template>
|
|
|
+ <template #Dicon>
|
|
|
+ <image src="http://43.139.158.220:5007/img/static/yym/Vector (Stroke).png" style="width: 22rpx; height: 26rpx" mode="aspectFill"></image>
|
|
|
+ </template>
|
|
|
+ <template #btn>
|
|
|
+ <button class="list1btn sBtn-font" @click.stop="join">
|
|
|
+ 立即参与
|
|
|
+ </button>
|
|
|
+ </template>
|
|
|
+ </listBlock1>
|
|
|
</template>
|
|
|
</viewX-Case>
|
|
|
<view class="" style="height: 30rpx; width: 100%"> </view>
|
|
@@ -82,37 +108,30 @@
|
|
|
// },
|
|
|
],
|
|
|
classList: [
|
|
|
-
|
|
|
- // "https://szptxnjys.yuketang.cn/pro/portal/about/szpt-99Q00351166273N",
|
|
|
- // "https://szptxnjys.yuketang.cn/pro/portal/about/szpt-99Q00330324841N",
|
|
|
- // "https://szptxnjys.yuketang.cn/pro/portal/about/szpt-99Q00231455802N",
|
|
|
- // "https://szptxnjys.yuketang.cn/pro/portal/about/szpt-99Q00406339964N",
|
|
|
-
|
|
|
-
|
|
|
- {
|
|
|
- img: "https://teacherapi.cocorobo.cn/teaching-file/static//img/jiaoxueship.jpg",
|
|
|
- className: "教学视频",
|
|
|
- intro: "课程简介:丽湖职教双创教育国际虚拟教研室教学视频",
|
|
|
- url: 'https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1210'
|
|
|
- },
|
|
|
- {
|
|
|
- img: "https://teacherapi.cocorobo.cn/teaching-file/static//img/jiaoxuedagang.jpg",
|
|
|
- className: "教学大纲",
|
|
|
- intro: "课程简介:丽湖职教双创教育国际虚拟教研室教学大纲",
|
|
|
- url: 'https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1210'
|
|
|
- },
|
|
|
- {
|
|
|
- img: "https://teacherapi.cocorobo.cn/teaching-file/static//img/peiyangfangan.jpg",
|
|
|
- className: "培养方案",
|
|
|
- intro: "课程简介:丽湖职教双创教育国际虚拟教研室培养方案",
|
|
|
- url: 'https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1210'
|
|
|
- },
|
|
|
- {
|
|
|
- img: "https://teacherapi.cocorobo.cn/teaching-file/static//img/xitishiti.jpg",
|
|
|
- className: "习题试题",
|
|
|
- intro: "课程简介:丽湖职教双创教育国际虚拟教研室习题试题",
|
|
|
- url: 'https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1210'
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // img: "https://teacherapi.cocorobo.cn/teaching-file/static//img/jiaoxueship.jpg",
|
|
|
+ // className: "教学视频",
|
|
|
+ // intro: "课程简介:丽湖职教双创教育国际虚拟教研室教学视频",
|
|
|
+ // url: 'https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1210'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // img: "https://teacherapi.cocorobo.cn/teaching-file/static//img/jiaoxuedagang.jpg",
|
|
|
+ // className: "教学大纲",
|
|
|
+ // intro: "课程简介:丽湖职教双创教育国际虚拟教研室教学大纲",
|
|
|
+ // url: 'https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1210'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // img: "https://teacherapi.cocorobo.cn/teaching-file/static//img/peiyangfangan.jpg",
|
|
|
+ // className: "培养方案",
|
|
|
+ // intro: "课程简介:丽湖职教双创教育国际虚拟教研室培养方案",
|
|
|
+ // url: 'https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1210'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // img: "https://teacherapi.cocorobo.cn/teaching-file/static//img/xitishiti.jpg",
|
|
|
+ // className: "习题试题",
|
|
|
+ // intro: "课程简介:丽湖职教双创教育国际虚拟教研室习题试题",
|
|
|
+ // url: 'https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1210'
|
|
|
+ // },
|
|
|
],
|
|
|
};
|
|
|
},
|
|
@@ -122,8 +141,8 @@
|
|
|
let data = {
|
|
|
openid: uni.getStorageSync('oId'),
|
|
|
ty: 2,
|
|
|
- page:1, //下拉获取更多的备用字段
|
|
|
- lim:6 //一次获取多少数据
|
|
|
+ page: 1, //下拉获取更多的备用字段
|
|
|
+ lim: 6 //一次获取多少数据
|
|
|
}
|
|
|
this.$request('/selectActivity', "POST", data).then(res => {
|
|
|
console.log(res[0]);
|
|
@@ -131,7 +150,22 @@
|
|
|
this.activeList = res[0].slice(0, 6);
|
|
|
})
|
|
|
},
|
|
|
- teachmore() {
|
|
|
+ // 获取推荐课程list 数据
|
|
|
+ getlistBlock1Data(){
|
|
|
+ let data={
|
|
|
+ openid:uni.getStorageSync('oId'),
|
|
|
+ ty:3,
|
|
|
+ page:1, //下拉获取更多的备用字段
|
|
|
+ lim:6 //一次获取多少数据
|
|
|
+ }
|
|
|
+ this.$request('/selectActivity',"POST",data).then(res=>{
|
|
|
+ console.log('推荐课程',res[0]);
|
|
|
+ // this.activeList=[...this.activeList,...res[0]]
|
|
|
+ this.classList=res[0]
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 跳转到推荐课程查看更多
|
|
|
+ listBlock1More() {
|
|
|
const value = this.$store.state.user.openid;
|
|
|
if (value == '') {
|
|
|
uni.navigateTo({
|
|
@@ -155,6 +189,7 @@
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ // 跳转到专题教研活动查看更多
|
|
|
gotoActivity() {
|
|
|
const value = this.$store.state.user.openid;
|
|
|
if (value == '') {
|
|
@@ -229,6 +264,7 @@
|
|
|
},
|
|
|
onShow() {
|
|
|
this.getData()
|
|
|
+ this.getlistBlock1Data()
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
@@ -236,6 +272,22 @@
|
|
|
<style lang="scss" scoped>
|
|
|
.content {
|
|
|
|
|
|
+ .list1btn {
|
|
|
+ z-index: 5;
|
|
|
+ border: none;
|
|
|
+ padding: 0;
|
|
|
+ text-align: center;
|
|
|
+ // padding: 8px, 24px, 8px, 24px;
|
|
|
+ background-color: rgba(48, 129, 232, 1);
|
|
|
+ color: #fff;
|
|
|
+ border-radius: 100rpx;
|
|
|
+ float: right;
|
|
|
+ width: 144rpx;
|
|
|
+ height: 48rpx;
|
|
|
+ line-height: 48rpx;
|
|
|
+ letter-spacing: 1px;
|
|
|
+ }
|
|
|
+
|
|
|
// background-color: ;
|
|
|
// background-color: #f0f2f5;
|
|
|
.top {
|