|
@@ -21,32 +21,37 @@
|
|
mode="aspectFill"></image>
|
|
mode="aspectFill"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="right" @click="costClass" :class="current == 2 ? info1 : info2">
|
|
|
|
+ <text class="">付费课程</text>
|
|
|
|
+ <view v-if="current == 2" class="yun">
|
|
|
|
+ <image src="https://teacherapi.cocorobo.cn/teaching-file/static//yym/Ellipse 10.png"
|
|
|
|
+ mode="aspectFill"></image>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <swiper class="scroll-view-height" :style="{ height: swiper + 'px' }" @change="swipeIndex" :current="current"
|
|
|
|
- :duration="300">
|
|
|
|
|
|
+ <swiper class="scroll-view-height" @change="swipeIndex" :current="current" :duration="300">
|
|
<swiper-item>
|
|
<swiper-item>
|
|
- <scroll-view scroll-y="true" :style="{ height: swiper + 'px' }">
|
|
|
|
- <view class="contBox">
|
|
|
|
- <view class="cont" @click="gotozyk" v-for="(item, index) in filteredClassList" :index="index"
|
|
|
|
- :key="index" :data-reId="item.goto">
|
|
|
|
- <image class="image" :src="item.url" mode="aspectFill" />
|
|
|
|
- <view class="tit btn-font">{{ item.className }}</view>
|
|
|
|
- <view class="teacher fz-font">主讲教师:{{ item.th_name }}</view>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <scroll-view scroll-y="true" style="height: 100%;">
|
|
|
|
+ <view class="">
|
|
|
|
+ <teaching-case ref="reso" :acList='filteredClassList'></teaching-case>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</swiper-item>
|
|
</swiper-item>
|
|
|
|
|
|
<swiper-item>
|
|
<swiper-item>
|
|
- <scroll-view scroll-y="true" :style="{ height: swiper + 'px' }">
|
|
|
|
- <view class="contBox">
|
|
|
|
- <view class="cont" @click="gotoWeb" v-for="(item, index) in filteredClassList2" :index="index"
|
|
|
|
- :key="index" :data-kid="item.goto">
|
|
|
|
- <image class="image" :src="item.url" mode="aspectFill" />
|
|
|
|
- <view class="tit btn-font">{{ item.className }}</view>
|
|
|
|
- <view class="teacher fz-font">主讲教师:{{ item.th_name }}</view>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <scroll-view scroll-y="true" style="height: 100%;">
|
|
|
|
+ <view class="">
|
|
|
|
+ <teaching-case ref="tech" :acList='filteredClassList2'></teaching-case>
|
|
|
|
+ </view>
|
|
|
|
+ </scroll-view>
|
|
|
|
+ </swiper-item>
|
|
|
|
+
|
|
|
|
+ <swiper-item>
|
|
|
|
+ <scroll-view scroll-y="true" style="height: 100%;">
|
|
|
|
+ <view class=""
|
|
|
|
+ style="height: 100%; width: 750rpx;display: flex;justify-content: center;align-items: center;">
|
|
|
|
+ <image src="../../static/Frame.png" style="width: 400rpx;height: 400rpx;" mode=""></image>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</swiper-item>
|
|
</swiper-item>
|
|
@@ -59,312 +64,73 @@
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
navBarData: {
|
|
navBarData: {
|
|
- title: "资源库",
|
|
|
|
|
|
+ title: "课程",
|
|
btn: 0,
|
|
btn: 0,
|
|
},
|
|
},
|
|
|
|
+ indexId: 1,
|
|
current: 0, //登录方式切换
|
|
current: 0, //登录方式切换
|
|
info1: "info1", //类名
|
|
info1: "info1", //类名
|
|
info2: "info2",
|
|
info2: "info2",
|
|
- swiper: 0,
|
|
|
|
|
|
+ // swiper: 0,
|
|
searchText: "", // 搜索文本
|
|
searchText: "", // 搜索文本
|
|
|
|
+ pic_coll: 'https://teacherapi.cocorobo.cn/teaching-file/static/Stara.png',
|
|
|
|
+ pic_coll2: 'https://teacherapi.cocorobo.cn/teaching-file/static/mine/Collect_yellow.png',
|
|
|
|
|
|
- classList: [{
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//pubic/img5.jpg",
|
|
|
|
- className: "创新思维",
|
|
|
|
- goto: "https://zyk.icve.com.cn/courseDetailed?id=efajaxyn4p1fahmj-32xng",
|
|
|
|
- th_name: "吴伟",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/sc.jpg",
|
|
|
|
- className: "商机识别与创业营销 ",
|
|
|
|
- goto: "https://zyk.icve.com.cn/courseDetailed?id=bxmpaiwpzrjixvfpvdzj7w ",
|
|
|
|
- th_name: "明照凤 ",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/sg.jpg",
|
|
|
|
- className: "双创生态圈构建 ",
|
|
|
|
- goto: "https://zyk.icve.com.cn/courseDetailed?id=ewvaiwparxiamjafg03aa ",
|
|
|
|
- th_name: "徐文泽",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/cy.jpg",
|
|
|
|
- className: "创业基础 ",
|
|
|
|
- goto: "https://zyk.icve.com.cn/courseDetailed?id=f-enaxunb7ngggksdm0ivq",
|
|
|
|
- th_name: "杨哲旗",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/ks.png",
|
|
|
|
- className: "跨界产品研发实战 ",
|
|
|
|
- goto: "https://zyk.icve.com.cn/courseDetailed?id=fjioasmspopfnyo0l7d2a",
|
|
|
|
- th_name: "王程程",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/cs.jpg",
|
|
|
|
- className: "创造性思维与创新方法训练 ",
|
|
|
|
- goto: "https://zyk.icve.com.cn/courseDetailed?id=inanarowyjhlw5vrlnrchw",
|
|
|
|
- th_name: "申珊珊",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/hs.jpg",
|
|
|
|
- className: "行业创业实践 ",
|
|
|
|
- goto: "https://zyk.icve.com.cn/courseDetailed?id=jkwpajcprqdgz4dlumimza",
|
|
|
|
- th_name: "陆亚文",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/cx.png",
|
|
|
|
- className: "创新方法与训练 ",
|
|
|
|
- goto: "https://zyk.icve.com.cn/courseDetailed?id=klaqaycnir9cklu4y8yaia",
|
|
|
|
- th_name: "张梦龙",
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ classList: [],
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- classList2: [{
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/ydjk.png",
|
|
|
|
- className: "运动与健康",
|
|
|
|
- goto: "https://www.xuetangx.com/course/HUBU10011000132/16906642?channel=i.area.course_list_all",
|
|
|
|
- th_name: "代方梅 史文文 等",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/shyy.png",
|
|
|
|
- className: "生活英语听说",
|
|
|
|
- goto: "https://www.xuetangx.com/course/THU05021000376?channel=i.area.course_list_all",
|
|
|
|
- th_name: "杨芳 张文霞",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/yyll.jpg",
|
|
|
|
- className: "科研伦理与学术规范",
|
|
|
|
- goto: "https://www.xuetangx.com/course/BNU03031000037/16905009?channel=i.area.course_list_all",
|
|
|
|
- th_name: "印波",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/kylw.png",
|
|
|
|
- className: "如何写好科研论文",
|
|
|
|
- goto: "https://www.xuetangx.com/course/THU04011000365/16906220?channel=i.area.course_list_all",
|
|
|
|
- th_name: "高飞飞 张靖 等",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/Cardimg-1.jpg",
|
|
|
|
- className: "中国共产党与中华民族伟大复兴",
|
|
|
|
- goto: "https://www.xuetangx.com/course/zysy06011001641?channel=i.area.course_list_all",
|
|
|
|
- th_name: "杜玉芳"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/Cardimg-2.jpg",
|
|
|
|
- className: "大国航母与舰载机",
|
|
|
|
- goto: "https://www.xuetangx.com/course/NAU08091000091/16904996?channel=i.area.course_list_all",
|
|
|
|
- th_name: "岳奎志 郭卫刚 等",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/Cardimg-4.jpg",
|
|
|
|
- className: "体育与社会",
|
|
|
|
- goto: "https://www.xuetangx.com/course/Wuhanty04021002450/16906830?channel=i.area.course_list_all",
|
|
|
|
- th_name: "张德胜 李菁 等",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/Cardimg-5.png",
|
|
|
|
- className: "公共管理学",
|
|
|
|
- goto: "https://www.xuetangx.com/course/NUDT12041000081?channel=i.area.course_list_all",
|
|
|
|
- th_name: "张学礼",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/Cardimg-6.png",
|
|
|
|
- className: "心理学概论",
|
|
|
|
- goto: "https://www.xuetangx.com/course/THU07111000416/16905032?channel=i.area.course_list_all",
|
|
|
|
- th_name: "彭凯平"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/Cardimg-7.png",
|
|
|
|
- className: "C++语言程序设计基础",
|
|
|
|
- goto: "https://www.xuetangx.com/course/THU08091000247/16906211?channel=i.area.course_list_all",
|
|
|
|
- th_name: "郑莉 李超 等",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/Cardimg-8.png",
|
|
|
|
- className: "《资治通鉴》导读",
|
|
|
|
- goto: "https://www.xuetangx.com/course/THU03011000245/16905905?channel=i.area.course_list_all",
|
|
|
|
- th_name: "张国刚",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/Cardimg-9.png",
|
|
|
|
- className: "军事理论",
|
|
|
|
- goto: "https://www.xuetangx.com/course/NDU00001001710?channel=i.area.course_list_all",
|
|
|
|
- th_name: "徐焰杜 文龙 等",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/Cardimg-10.png",
|
|
|
|
- className: "数据结构(上)",
|
|
|
|
- goto: "https://www.xuetangx.com/course/THU08091000384/16906679?channel=i.area.course_list_all",
|
|
|
|
- th_name: "邓俊辉",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/Cardimg-11.png",
|
|
|
|
- className: "不朽的艺术:走进大师与经典",
|
|
|
|
- goto: "https://www.xuetangx.com/course/THU13011000261/16904949?channel=i.area.course_list_all",
|
|
|
|
- th_name: "肖鹰 孙晶",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/Cardimg-12.jpg",
|
|
|
|
- className: "中国近现代史纲要",
|
|
|
|
- goto: "https://www.xuetangx.com/course/THU03051000444/16905083?channel=i.area.course_list_all",
|
|
|
|
- th_name: "翁贺凯",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/Cardimg-13.png",
|
|
|
|
- className: "马克思主义基本原理",
|
|
|
|
- goto: "https://www.xuetangx.com/course/THU03051000344/16906535?channel=i.area.course_list_all",
|
|
|
|
- th_name: "刘震 刘恩至 等",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/Cardimg-14.png",
|
|
|
|
- className: "数据结构(下)",
|
|
|
|
- goto: "https://www.xuetangx.com/course/THU08091002048/16906478?channel=i.area.course_list_all",
|
|
|
|
- th_name: "邓俊辉"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/Cardimg-16.png",
|
|
|
|
- className: "大学生心理健康",
|
|
|
|
- goto: "https://www.xuetangx.com/course/THU07111000285/16905861?channel=i.area.course_list_all",
|
|
|
|
- th_name: "李焰 刘丹 等",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/Cardimg-17.png",
|
|
|
|
- className: "财务分析与决策",
|
|
|
|
- goto: "https://www.xuetangx.com/course/THU02031000264?channel=i.area.course_list_all",
|
|
|
|
- th_name: "肖星",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- url: "https://teacherapi.cocorobo.cn/teaching-file/static//img/Cardimg-15.png",
|
|
|
|
- className: "习近平新时代中国特色社会主义思想",
|
|
|
|
- goto: "https://www.xuetangx.com/course/THU03051000744/16905028?channel=i.area.course_list_all",
|
|
|
|
- th_name: "胡鞍钢",
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ classList2: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
// 模糊搜索
|
|
// 模糊搜索
|
|
computed: {
|
|
computed: {
|
|
filteredClassList() {
|
|
filteredClassList() {
|
|
const filteredList = this.classList.filter((item) =>
|
|
const filteredList = this.classList.filter((item) =>
|
|
- item.className.includes(this.searchText)
|
|
|
|
|
|
+ item.ctit.includes(this.searchText)
|
|
);
|
|
);
|
|
return this.searchText ? filteredList : this.classList;
|
|
return this.searchText ? filteredList : this.classList;
|
|
},
|
|
},
|
|
filteredClassList2() {
|
|
filteredClassList2() {
|
|
const filterdList2 = this.classList2.filter((item) =>
|
|
const filterdList2 = this.classList2.filter((item) =>
|
|
- item.className.includes(this.searchText)
|
|
|
|
|
|
+ item.ctit.includes(this.searchText)
|
|
);
|
|
);
|
|
return this.searchText ? filterdList2 : this.classList2;
|
|
return this.searchText ? filterdList2 : this.classList2;
|
|
},
|
|
},
|
|
|
|
+
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
- gotozyk(e) {
|
|
|
|
- const value = this.$store.state.user.openid;
|
|
|
|
- if (value == '') {
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: "/pages/login_Wechat/login_Wechat",
|
|
|
|
- });
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- let acid = e.currentTarget.dataset.reid
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: "/pages/skipone/skipone?url=" + encodeURIComponent(acid),
|
|
|
|
- });
|
|
|
|
- // const urls = [
|
|
|
|
- // "https://zyk.icve.com.cn/courseDetailed?id=efajaxyn4p1fahmj-32xng",
|
|
|
|
- // "https://zyk.icve.com.cn/courseDetailed?id=bxmpaiwpzrjixvfpvdzj7w ",
|
|
|
|
- // "https://zyk.icve.com.cn/courseDetailed?id=ewvaiwparxiamjafg03aa ",
|
|
|
|
- // "https://zyk.icve.com.cn/courseDetailed?id=f-enaxunb7ngggksdm0ivq",
|
|
|
|
- // "https://zyk.icve.com.cn/courseDetailed?id=fjioasmspopfnyo0l7d2a",
|
|
|
|
- // "https://zyk.icve.com.cn/courseDetailed?id=inanarowyjhlw5vrlnrchw",
|
|
|
|
- // "https://zyk.icve.com.cn/courseDetailed?id=jkwpajcprqdgz4dlumimza",
|
|
|
|
- // "https://zyk.icve.com.cn/courseDetailed?id=klaqaycnir9cklu4y8yaia"
|
|
|
|
- // ];
|
|
|
|
|
|
|
|
- },
|
|
|
|
- gotoWeb(e) {
|
|
|
|
- const value = this.$store.state.user.openid;
|
|
|
|
- if (value == '') {
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: "/pages/login_Wechat/login_Wechat",
|
|
|
|
- });
|
|
|
|
- return
|
|
|
|
|
|
+ // 获取资源库
|
|
|
|
+ getclassList() {
|
|
|
|
+ let data = {
|
|
|
|
+ openid: uni.getStorageSync('oId'),
|
|
}
|
|
}
|
|
- // return console.log('aaaaaa', e.currentTarget.dataset);
|
|
|
|
- let acid = e.currentTarget.dataset.kid
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: "/pages/skipone/skipone?url=" + encodeURIComponent(acid),
|
|
|
|
- });
|
|
|
|
- // if (this.current === 1) {
|
|
|
|
- // const url_header = 'https://www.xuetangx.com/course'
|
|
|
|
- // const urls = [
|
|
|
|
- // "/HUBU10011000132/16906642?channel=i.area.course_list_all",
|
|
|
|
- // "/THU05021000376?channel=i.area.course_list_all",
|
|
|
|
- // "/BNU03031000037/16905009?channel=i.area.course_list_all",
|
|
|
|
- // "/THU04011000365/16906220?channel=i.area.course_list_all",
|
|
|
|
- // "/zysy06011001641?channel=i.area.course_list_all",
|
|
|
|
- // "/NAU08091000091/16904996?channel=i.area.course_list_all",
|
|
|
|
- // "/Wuhanty04021002450/16906830?channel=i.area.course_list_all",
|
|
|
|
- // "/NUDT12041000081?channel=i.area.course_list_all",
|
|
|
|
- // "/THU07111000416/16905032?channel=i.area.course_list_all",
|
|
|
|
- // "/THU08091000247/16906211?channel=i.area.course_list_all",
|
|
|
|
- // "/THU03011000245/16905905?channel=i.area.course_list_all",
|
|
|
|
- // "/NDU00001001710?channel=i.area.course_list_all",
|
|
|
|
- // "/THU08091000384/16906679?channel=i.area.course_list_all",
|
|
|
|
- // "/THU13011000261/16904949?channel=i.area.course_list_all",
|
|
|
|
- // "/THU03051000444/16905083?channel=i.area.course_list_all",
|
|
|
|
- // "/THU03051000344/16906535?channel=i.area.course_list_all",
|
|
|
|
- // "/THU08091002048/16906478?channel=i.area.course_list_all",
|
|
|
|
- // "/THU07111000285/16905861?channel=i.area.course_list_all",
|
|
|
|
- // "/THU02031000264?channel=i.area.course_list_all",
|
|
|
|
- // "/THU03051000744/16905028?channel=i.area.course_list_all"
|
|
|
|
- // ];
|
|
|
|
- // if (index >= 0 && index < urls.length) {
|
|
|
|
- // const url = urls[index];
|
|
|
|
- // uni.navigateTo({
|
|
|
|
- // url: "/pages/skipone/skipone?url=" + url_header + encodeURIComponent(url),
|
|
|
|
- // });
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
|
|
+ this.$request('/selectResource', "POST", data).then(res => {
|
|
|
|
+ // console.log('获取资源库', res);
|
|
|
|
+ this.classList = res[0]
|
|
|
|
+ this.classList2 = res[1]
|
|
|
|
+ })
|
|
},
|
|
},
|
|
|
|
|
|
- toggleActive1() {
|
|
|
|
- this.isActive1 = true;
|
|
|
|
- this.isActive2 = false;
|
|
|
|
- this.tab = true;
|
|
|
|
- },
|
|
|
|
- toggleActive2() {
|
|
|
|
- this.isActive1 = false;
|
|
|
|
- this.isActive2 = true;
|
|
|
|
- this.tab = false;
|
|
|
|
- },
|
|
|
|
swipeIndex(index) {
|
|
swipeIndex(index) {
|
|
this.current = index.detail.current;
|
|
this.current = index.detail.current;
|
|
},
|
|
},
|
|
|
|
+ // 区域滑动
|
|
phoneLogin() {
|
|
phoneLogin() {
|
|
this.current = 0;
|
|
this.current = 0;
|
|
},
|
|
},
|
|
accountLogin() {
|
|
accountLogin() {
|
|
this.current = 1;
|
|
this.current = 1;
|
|
},
|
|
},
|
|
- },
|
|
|
|
- onLoad() {
|
|
|
|
- if (this.navheight) {
|
|
|
|
- this.swiper = this.screenHeight - this.navheight - 140;
|
|
|
|
- } else {
|
|
|
|
- this.swiper = this.screenHeight - this.customBar - 150;
|
|
|
|
|
|
+ costClass() {
|
|
|
|
+ this.current = 2;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ onShow() {
|
|
|
|
+ this.getAllMessage() // 调用app.js中的方法
|
|
|
|
+ this.getclassList()
|
|
|
|
+ this.$refs.reso.getdata()
|
|
|
|
+ this.$refs.tech.getdata()
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -374,6 +140,10 @@
|
|
}
|
|
}
|
|
|
|
|
|
.resource {
|
|
.resource {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ height: 100vh;
|
|
|
|
+
|
|
.search {
|
|
.search {
|
|
background-color: #ffffff;
|
|
background-color: #ffffff;
|
|
position: relative;
|
|
position: relative;
|
|
@@ -383,54 +153,17 @@
|
|
justify-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
align-items: center;
|
|
|
|
|
|
- // background-color: rebeccapurple;
|
|
|
|
- .inpSer {
|
|
|
|
- width: 690rpx;
|
|
|
|
- height: 65rpx;
|
|
|
|
- margin: auto;
|
|
|
|
- background-color: rgba(240, 242, 245, 1);
|
|
|
|
- border-radius: 5rpx;
|
|
|
|
- color: rgba(0, 0, 0, 0.26);
|
|
|
|
- position: relative;
|
|
|
|
-
|
|
|
|
- .inpTxt {
|
|
|
|
- // padding: 0px, 12rpx, 0px, 12rpx;
|
|
|
|
- color: #000;
|
|
|
|
-
|
|
|
|
- height: 100%;
|
|
|
|
- width: 100%;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- input::placeholder {
|
|
|
|
- color: #000;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .ico {
|
|
|
|
- position: absolute;
|
|
|
|
- top: 50%;
|
|
|
|
- left: 20rpx;
|
|
|
|
- transform: translate(0, -50%);
|
|
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
-
|
|
|
|
- image {
|
|
|
|
- margin-right: 10rpx;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
.top {
|
|
.top {
|
|
- // width: 500rpx;
|
|
|
|
|
|
+ width: 100%;
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
margin: auto;
|
|
margin: auto;
|
|
background-color: #ffffff;
|
|
background-color: #ffffff;
|
|
- padding: 10px 150rpx;
|
|
|
|
|
|
+ padding: 10px 60rpx;
|
|
|
|
+ height: 98rpx;
|
|
|
|
|
|
- // margin-bottom: 40px;
|
|
|
|
- // font-size: 18px;
|
|
|
|
- // padding-top: 0;
|
|
|
|
.info1 {
|
|
.info1 {
|
|
font-weight: bold !important;
|
|
font-weight: bold !important;
|
|
position: relative;
|
|
position: relative;
|
|
@@ -441,8 +174,6 @@
|
|
height: 48rpx;
|
|
height: 48rpx;
|
|
text-align: center;
|
|
text-align: center;
|
|
|
|
|
|
- // font-family: PingFang SC;
|
|
|
|
- // font-family: \9ed1\4f53;
|
|
|
|
.yun {
|
|
.yun {
|
|
width: 134rpx;
|
|
width: 134rpx;
|
|
height: 32rpx;
|
|
height: 32rpx;
|
|
@@ -450,8 +181,6 @@
|
|
left: 0;
|
|
left: 0;
|
|
bottom: -10rpx;
|
|
bottom: -10rpx;
|
|
|
|
|
|
- // transform: translate(-50%,0%);
|
|
|
|
- // box-shadow: 0px 10rpx 30rpx 6rpx #4a97f2;
|
|
|
|
image {
|
|
image {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
@@ -472,54 +201,12 @@
|
|
}
|
|
}
|
|
|
|
|
|
.scroll-view-height {
|
|
.scroll-view-height {
|
|
|
|
+ flex: 1;
|
|
|
|
+ width: 100%;
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
|
- // background-color: ;
|
|
|
|
- // height: 68vh;
|
|
|
|
- // background-color: red;
|
|
|
|
- // padding-bottom: 50px;
|
|
|
|
- .contBox {
|
|
|
|
- width: 100%;
|
|
|
|
- padding: 10px 30rpx;
|
|
|
|
- // height: 100%;
|
|
|
|
- display: flex;
|
|
|
|
- flex-wrap: wrap;
|
|
|
|
- justify-content: space-between;
|
|
|
|
- // background-color: greenyellow;
|
|
|
|
- margin-bottom: 50px;
|
|
|
|
-
|
|
|
|
- .cont {
|
|
|
|
- background-color: #ffffff;
|
|
|
|
- width: 332rpx;
|
|
|
|
- padding: 20rpx 15rpx;
|
|
|
|
- border-radius: 10px;
|
|
|
|
- margin-bottom: 20rpx;
|
|
|
|
-
|
|
|
|
- image {
|
|
|
|
- width: 300rpx;
|
|
|
|
- height: 170rpx;
|
|
|
|
- border-radius: 10rpx;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .tit {
|
|
|
|
- width: 257rpx;
|
|
|
|
- margin: 10rpx 0;
|
|
|
|
- // height: 80rpx;
|
|
|
|
- font-weight: bold;
|
|
|
|
- white-space: normal;
|
|
|
|
- display: -webkit-box;
|
|
|
|
- word-break: break-all;
|
|
|
|
- text-overflow: ellipsis;
|
|
|
|
- overflow: hidden;
|
|
|
|
- -webkit-box-orient: vertical;
|
|
|
|
- -webkit-line-clamp: 2;
|
|
|
|
- /*设置 需要显示的行数*/
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .teacher {
|
|
|
|
- color: #999999;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|