You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

186 lines
4.4 KiB

3 years ago
<template>
<view>
<view class="top">
<uni-search-bar class="search" radius="5" placeholder="请输入方案名称" clearButton="auto" cancelButton="none" @confirm="search" />
<uni-icons class="icon" custom-prefix="iconfont" type="icon-filter" size="18" color="#007eff"></uni-icons>
</view>
<ul class="tab">
<li v-for="(tab, i) in tabs" :class="{active: curTab === tab.id}" @click="tabChange(tab)">{{ tab.name }}</li>
</ul>
<ul v-if="list.length" class="list">
<li v-for="(item, i) in list">
<view class="name">{{ item.name }}</view>
<view class="content">
<view class="info">
<view class="line">
<view class="label">产品</view>
<view class="val" v-html="item.product"></view>
</view>
<view class="line">
<view class="label">更新日期</view>
<view class="val">{{ item.date }}</view>
</view>
<view class="line">
<view class="label">适用专业</view>
<view class="val">{{ item.major }}</view>
3 years ago
</view>
</view>
<view class="detail" @click="toDetail(i + 2)">详情</view>
</view>
</li>
</ul>
<empty v-else></empty>
3 years ago
</view>
</template>
<script>
export default {
data() {
return {
curTab: '',
3 years ago
tabs: [
{
name: '不限',
id: ''
3 years ago
},
{
name: '标准方案',
3 years ago
id: 1
},
{
name: '智信云方案',
3 years ago
id: 2
}
],
list: [],
all: [
{
type: 1,
name: '人工智能实验室建设方案-2020.1',
product: `python程序设计实验教学系统<br>
Docker技术实验教学系统<br>
JAVA语言程序设计实验教学系统<br>
大数据开发实验教学系统<br>
Openstack云计算实验教学系统`,
date: '2022-06-02',
major: '人工智能方向'
},
{
type: 1,
name: '大数据管理与应用专业建设方案',
product: `python程序设计实验教学系统<br>
量化投资实验教学系统<br>
区块链数字货币交易实验系统<br>
大数分析实验教学系统<br>
数据可视化实验教学系统<br>
大数据实证科研平台<br>
全球宏观经济<br>
数据库全球金融交易数据库 `,
date: '2022-06-02',
major: '大数据方向'
},
{
type: 1,
name: '金融科技实验室建设方案V2.0',
product: `python程序设计实验教学系统<br>
量化投资实验教学系统<br>
区块链数字货币交易实验教学系统<br>
大数据采集实验教学系统<br>
大数据分析实验教学系统<br>
金融建模实验教学系统<br>
互联网小贷实验教学系统<br>
互联网支付实验教学系统<br>
R语言实验教学系统<br>
供应链金融实验教学系统<br>
Python数据清洗实验教学系统<br>
数据可视化实验教学系统<br>
金融随机过程实验教学系统<br>
银行综合系统<br>
大数据实证科研平台<br>
财经数据库`,
date: '2022-06-02',
major: '金融科技,大数据方向'
}
3 years ago
]
}
},
onShow() {
this.list = JSON.parse(JSON.stringify(this.all))
},
3 years ago
methods: {
search(res) {
uni.showToast({
title: '搜索:' + res.value,
icon: 'none'
})
},
// tab切换
tabChange(tab) {
const { id } = tab
const { all } = this
this.curTab = id
this.list = id ? all.filter(e => e.type === id) : all
3 years ago
},
// 跳转详情
toDetail(id) {
this.$util.to('../detail/detail?id=' + id)
3 years ago
}
}
}
</script>
<style scoped lang="scss">
.top {
display: flex;
align-items: center;
padding: 5px 15px 5px 5px;
margin-bottom: 10px;
background-color: #fff;
.search {
flex: 1;
}
}
.list {
background-color: #fff;
li {
padding: 40rpx;
border-bottom: 1px solid #f8f8f8;
3 years ago
}
.name {
font-size: 28rpx;
3 years ago
color: #333;
}
.line {
display: flex;
margin-bottom: 20rpx;
3 years ago
}
.content {
3 years ago
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 20rpx;
3 years ago
}
.info {
margin: 10rpx 0;
3 years ago
}
.label {
width: 140rpx;
font-size: 24rpx;
3 years ago
color: #898989;
}
.val {
font-size: 24rpx;
line-height: 1.8;
3 years ago
color: #898989;
}
.detail {
margin-left: 20rpx;
font-size: 26rpx;
3 years ago
color: #1f83ff;
white-space: nowrap;
3 years ago
}
}
</style>