123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- <template>
- <view>
- <statusBar :item="navBarData"></statusBar>
- <view class="collectBox">
- <view class="collect_length">
- <span>共{{ classList.length }}条收藏</span>
- </view>
- <view class="classBox" @click="gotoWeb(index)" v-for="(item,index) in classList" :key="index">
- <view class="classTitle">
- <span>{{ item.className }}</span>
- <image src="http://43.139.158.220:5007/img/static/mine/Collect_yellow.png" mode="aspectFill"></image>
- </view>
- <view class="classContent">
- <view class="contentLeft">
- <view class="constDate">
- <span class="manage">类型</span>
- <span>|</span>
- <span class="c_data">03月27日</span>
- <span class="c_time">21:07</span>
- </view>
- <view class="classIntro">
- <span>{{ item.intro }}</span>
- </view>
- </view>
- <view class="contentRight">
- <image :src="classList[index].url" mode="aspectFill"></image>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- navBarData: {
- title: '我的收藏',
- btn: 1
- },
- classList: [{
- url: "http://43.139.158.220:5007/img/static/img/Cardimg-1.jpg",
- className: "中国共产党与中华民族伟大复兴",
- intro: '《习近平总书记指出,历史是最好的教科书,也是最好的营养剂、清醒剂。中国共产党近百年的风雨历程中有信仰、有意志,有传统、有警示,启示当下,烛照未来。'
- },
- {
- url: "http://43.139.158.220:5007/img/static/img/Cardimg-2.jpg",
- className: "大国航母与舰载机",
- intro: '《大国航母与舰载机》课程是国家级一流本科课程。本课程主要介绍美国航母与舰载机、中国航母与舰载机、俄罗斯航母与舰载机、法国航母与舰载机、英国航母与舰载机、印度航母与舰载机、其他国家轻型航母等内容。内容丰富、真实,语言生动、幽默,文采飞扬,也是BOPPPS模型的经典应用。本门课程是进行军事职业教育的精品课程,也是进行国防军事教育、爱国教育的经典课程。 本课程将带您走进大国航母与舰载机的世界,为您揭开世界各国现役航母神秘的面纱!'
- },
- {
- url: "http://43.139.158.220:5007/img/static/img/Cardimg-4.jpg",
- className: "体育与社会",
- intro: '体育,快乐之源,与人人相关。本课是一门通识教育课,不拘泥于枯燥的概念、判断与推理,而是从大众兴趣爱好出发,以每讲独立的专题形式,讲授体育与社会、政治、经济、文化、生活、未来等六个方面的关系。有趣,是本课最大的特点;会讲,是七个主讲人过人的本领。爱体育,爱生活,请选《体育与社会》!'
- },
- {
- url: "http://43.139.158.220:5007/img/static/img/Cardimg-5.png",
- className: "公共管理学",
- intro: '公共管理学是探讨以政府为核心的公共组织对社会公共事务的管理活动,旨在提高公共福祉及管理效率的科学。政府部门、社会组织及公共企业的管理者面对复杂多变的社会环境,面对经济的快速发展和激烈的竞争,必须熟悉现代公共管理观念,了解公共管理的基本理论和方法,清楚公共部门的运行规范及程序。'
- },
- ],
- };
- },
- methods: {
- gotoWeb(index) {
- const urls = [
- "https://www.xuetangx.com/course/zysy06011001641?channel=i.area.course_list_all",
- "https://www.xuetangx.com/course/NAU08091000091/16904996?channel=i.area.course_list_all",
- "https://www.xuetangx.com/course/Wuhanty04021002450/16906830?channel=i.area.course_list_all",
- "https://www.xuetangx.com/course/NUDT12041000081?channel=i.area.course_list_all",
- ];
- if (index >= 0 && index < urls.length) {
- const url = urls[index];
- uni.navigateTo({
- url: "/pages/skipone/skipone?url=" + encodeURIComponent(url),
- });
- }
- },
- }
- }
- </script>
- <style lang="scss">
- .collectBox {
- margin: 0 30rpx;
- // margin-bottom: 30rpx;
- padding-bottom: 50rpx;
- .collect_length {
- width: 100%;
- height: 40rpx;
- font-size: 24rpx;
- font-weight: 400;
- color: #00000099;
- display: flex;
- align-items: center;
- margin-top: 6px;
- margin-bottom: 6px;
- }
- .classBox {
- width: 100%;
- height: 248rpx;
- background-color: #fff;
- border-radius: 20rpx;
- padding: 0 16rpx;
- margin-bottom: 20rpx;
- .classTitle {
- display: flex;
- padding-top: 15px;
- justify-content: space-between;
- margin-bottom: 6px;
- span {
- font-size: 32rpx;
- font-weight: 500;
- }
- image {
- width: 32rpx;
- height: 32rpx;
- }
- }
- .classContent {
- width: 100%;
- display: flex;
- justify-content: space-between;
- .contentLeft {
- display: flex;
- flex-direction: column;
- .constDate {
- display: flex;
- margin-bottom: 6px;
- span {
- color: #00000066;
- font-size: 24rpx;
- font-weight: 400;
- &.manage {
- border: 1px #00B2B6 solid;
- font-size: 10px;
- display: flex;
- white-space: nowrap;
- justify-content: center;
- align-items: center;
- padding: 1px 6px;
- border-radius: 3px;
- margin-right: 10rpx;
- color: #00B2B6;
- font-weight: 600;
- }
- &:nth-child(2) {
- color: #E7E7E7;
- ;
- margin-left: 4px;
- }
- &:nth-child(3) {
- margin-left: 6px;
- }
- &:nth-child(4) {
- margin-left: 6px;
- }
- }
- }
- .classIntro {
- width: 93%;
- span {
- color: #00000099;
- font-size: 28rpx;
- display: -webkit-box;
- word-break: break-all;
- text-overflow: ellipsis;
- overflow: hidden;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- /*设置 需要显示的行数*/
- line-height: 23px;
- }
- }
- }
- .contentRight {
- image {
- width: 182rpx;
- height: 132rpx;
- border-radius: 8rpx;
- }
- }
- }
- }
- }
- </style>
|