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.

553 lines
12 KiB

3 years ago
<template>
<view class="Investment-page">
<!-- 导航栏 -->
<view class="navigation-box">
<view class="search-box acea-row row-middle">
<image src="../../../static/images/search-icon.png" mode="" class="search-img"></image>
<input type="text" value="" placeholder="请输入关键词进行搜索" />
<view class="search acea-row row-center-wrapper">搜一下</view>
</view>
<view class="resource-tabs acea-row">
<view :class="'tab ' + (active == 1 ? 'tab-a' : '')" data-i="1" @tap="tabClick">全部项目</view>
<view :class="'tab ' + (active == 2 ? 'tab-a' : '')" data-i="2" @tap="tabClick">投资方</view>
3 years ago
<view class="screen-box acea-row row-between-wrapper" >
<view class="screen acea-row row-middle" @tap="showDialog">
<text>筛选</text>
<image src="/static/images/home/screen.png"></image>
</view>
3 years ago
</view>
</view>
</view>
<view class="modular-box">
<!-- 全部项目 -->
<view class="project-box" v-if="active == 1">
3 years ago
<view class="project-list" v-for="(item,index) in 2" @tap="toProjectDetail">
3 years ago
<view class="project-top acea-row row-left">
<image src="../../../static/images/home/menu6.png" class="project-img"></image>
3 years ago
<view class="right-con acea-row row-column-between">
3 years ago
<view class="acea-row row-middle title">
3 years ago
<image src="../../../static/images/new-icon.png" mode="" class="new-icon">
3 years ago
</image>
3 years ago
<view class="title-h line1">富硒产品</view>
3 years ago
</view>
3 years ago
<view class="title-s line2">农业项目国家扶贫乡村振兴优质资源利用国家大力支持</view>
3 years ago
<view class="category-box acea-row">
3 years ago
<view class="tag-item-y tag">持续盈利</view>
<view class="tag-item-b tag">财务规范</view>
<view class="tag-item-p tag">零负债</view>
</view>
</view>
</view>
<view class="project-bottom acea-row row-middle">
<view class="finance-price">融资金额</view>
3 years ago
<view class="price line1">200万元-300万元</view>
3 years ago
<view class="tocheck acea-row row-middle">
<image src="../../../static/images/check.png" mode=""></image>
查看
</view>
</view>
</view>
</view>
<!-- 投资方 -->
<view class="project-box" v-if="active == 2">
3 years ago
<view class="investor-list acea-row row-middle">
3 years ago
<view class="head-img acea-row row-center">
<image src="../../../static/images/home/menu6.png" mode="" class="user-img"></image>
<image src="../../../static/images/vip-icon.png" mode="" class="user-icon"></image>
</view>
<view class="investor-con acea-row row-middle">
3 years ago
<view class="name line1">李岩斌</view>
<view class="acea-row row-middle">
3 years ago
<view>朗玛峰创投</view>
<view class="row "></view>
<view>合伙人</view>
</view>
3 years ago
<view class="line1">意向领域智能硬件企业IT服务...</view>
<view class="line1">投资伦次A轮A+B轮</view>
3 years ago
</view>
<view class="toContact">
<image src="../../../static/images/contact.png" mode=""></image>
</view>
</view>
</view>
</view>
3 years ago
<view class="add"><image src="../../../static/images/fabu-close.png"></image></view>
3 years ago
<view class="mask-box" v-if="showScreenDialog">
<view :class="'screen-dialog-box ' + (showScreenDialog ? 'move' : '')">
<view class="screen-list">
3 years ago
<view class="screen-item">
<view class="screen-title">项目领域</view>
<view class="acea-row row-left" >
<view v-for="(item, index) in cagetoryList" :key="index"
:class="'item ' + (cagetoryActive == index ? 'item-active' : '')" @tap="cagetoryClick"
:data-i="index" :data-item="item">{{item.cagetoryName}}</view>
3 years ago
</view>
</view>
<view class="screen-item">
<view class="screen-title">项目阶段</view>
<view class="acea-row">
3 years ago
<view class="item" v-for="(item,index) in 5">农林牧鱼</view>
3 years ago
</view>
</view>
<view class="screen-item">
<view class="screen-title">项目标签</view>
<view class="acea-row">
3 years ago
<view class="item" v-for="(item,index) in 5">农林牧鱼</view>
3 years ago
</view>
</view>
<view class="submit-box acea-row row-between">
3 years ago
<view class="btn reset" @tap="resetClick">重置</view>
<view class="btn finish" @tap="finishClick">完成</view>
</view>
</view>
</view>
</view>
3 years ago
</view>
</template>
<script>
3 years ago
const app = getApp();
3 years ago
export default {
3 years ago
data() {
return {
active: '1',
showScreenDialog: false,
cagetoryActive: "",
//筛选分类
choseCagetory: '',
3 years ago
}
},
3 years ago
onLoad: function (options) {
this.getCagetoryList();
},
3 years ago
methods:{
3 years ago
tabClick(e) {
this.setData({
active: e.currentTarget.dataset.i,
3 years ago
})
},
3 years ago
getCagetoryList() {
app.http('get', 'ResourcesCagetory/listResourcesCagetory').then(res => {
if (res.data.success) {
this.setData({
cagetoryList: res.data.data
});
}
3 years ago
});
},
3 years ago
showDialog() {
3 years ago
this.setData({
3 years ago
showScreenDialog: true
3 years ago
});
},
3 years ago
cagetoryClick(e) {
let item = e.currentTarget.dataset.item;
let i = e.currentTarget.dataset.i;
console.log(item);
3 years ago
this.setData({
3 years ago
cagetoryActive: i,
choseCagetory: item.cagetoryName
3 years ago
});
},
finishClick() {
this.setData({
showScreenDialog: false
});
},
resetClick() {
this.setData({
cagetoryActive: null,
choseCagetory: '',
});
3 years ago
},
3 years ago
toProjectDetail(e){
uni.navigateTo({
url:"/pages/demandHall/projectDetail/index"
})
}
3 years ago
}
}
</script>
<style lang="less">
.Investment-page {
width: 100%;
min-height: 100vh;
background: #F5F5F5;
font-size: 28rpx;
}
/* 导航栏 */
.navigation-box {
width: 100%;
height: auto;
background: #fff;
padding-top: 20rpx;
.search-box {
width: 670rpx;
height: 68rpx;
border: 2rpx solid #FF5100;
border-radius: 8rpx;
margin: 0 auto;
3 years ago
position: relative;
3 years ago
.search-img {
width: 35rpx;
height: 35rpx;
margin: 0 29rpx 0 52rpx;
}
}
.search {
3 years ago
// margin-left: auto;
position: absolute;
right: -2rpx;
3 years ago
width: 132rpx;
height: 68rpx;
background: linear-gradient(39deg, #FF5100 0%, #FFA074 100%);
border-radius: 8rpx;
color: #fff;
}
.resource-tabs {
width: 100%;
padding-top: 10rpx;
background: #fff;
border-bottom: 2rpx solid #EEEEEE;
padding-left: 20rpx;
}
.tab {
width: 150rpx;
padding: 26rpx 0;
font-size: 32rpx;
color: #BFBFBF;
position: relative;
font-weight: 500;
text-align: center;
margin-left: 115rpx;
}
.tab::after {
display: block;
content: '';
width: 80rpx;
height: 8rpx;
border-radius: 8rpx;
background: #FF5100;
position: absolute;
bottom: 0rpx;
left: 50%;
margin-left: -40rpx;
opacity: 0;
transform: scaleX(0);
transition: all .2s ease, opacity .15s ease;
}
.tab-a {
color: #FF5100;
}
.tab-a::after {
opacity: 1;
transform: scaleX(1);
}
.screen-box {
height: 94rpx;
padding: 0 38rpx;
color: #666;
background: #fff;
margin-left: auto;
}
.screen-result {
color: #FF5100;
}
.screen image {
width: 27rpx;
height: 27rpx;
margin-left: 6rpx;
}
}
.modular-box {
width: 670rpx;
margin: 0 auto;
background-color: #F5F5F5;
margin-bottom: 76rpx;
/* 全部项目 */
.project-box {
.project-list {
width: 670rpx;
height: 256rpx;
background: #FFFFFF;
border-radius: 12rpx;
margin-top: 32rpx;
padding-top: 16rpx;
.project-top {
width: 630rpx;
height: 160rpx;
margin: 0 auto 30rpx auto;
.project-img {
width: 160rpx;
height: 160rpx;
margin-right: 18rpx;
}
.right-con {
3 years ago
width: 450rpx;
3 years ago
.title {
3 years ago
line-height: 35rpx;
3 years ago
font-weight: 800;
.new-icon {
width: 48rpx;
height: 24rpx;
margin-right: 8rpx;
3 years ago
}
.title-h {
width: 390rpx;
height: 35rpx;
color: #1D1D1D;
3 years ago
}
}
.title-s {
width: 450rpx;
height: 70rpx;
font-size: 24rpx;
color: #707070;
}
3 years ago
.category-box {
3 years ago
width: 100%;
height: 36rpx;
overflow: hidden;
3 years ago
.tag {
3 years ago
padding: 0 10rpx;
3 years ago
height: 36rpx;
3 years ago
line-height: 34rpx;
3 years ago
border-radius: 4rpx;
font-size: 20rpx;
margin-right: 16rpx;
text-align: center;
}
3 years ago
3 years ago
.tag-item-b {
border: 1rpx solid #3A9EFA;
color: #3A9EFA;
}
3 years ago
3 years ago
.tag-item-y {
border: 1px solid #FFAA00;
color: #FFAA00;
}
3 years ago
3 years ago
.tag-item-p {
color: #FC9367;
border: 1px solid #FC9367;
}
}
}
}
.project-bottom {
3 years ago
width: 100%;
3 years ago
height: 40rpx;
3 years ago
padding: 0 45rpx 0 20rpx;
3 years ago
color: #FF5100;
font-size: 24rpx;
.finance-price {
margin-right: 20rpx;
font-weight: 900;
}
.price {
3 years ago
width: 350rpx;
3 years ago
font-weight: 900;
}
.tocheck {
margin-left: auto;
font-size: 30rpx;
}
.tocheck image {
width: 32rpx;
height: 32rpx;
margin-right: 10rpx;
}
}
}
}
/* 投资方 */
.project-box {
.investor-list {
width: 670rpx;
height: 192rpx;
background: #FFFFFF;
border-radius: 12rpx;
margin-top: 32rpx;
.head-img {
width: 160rpx;
height: 168rpx;
position: relative;
margin: 0 28rpx 0 16rpx;
.user-img {
width: 160rpx;
height: 160rpx;
border-radius: 50%;
position: absolute;
top: 0;
}
.user-icon {
width: 104rpx;
height: 38rpx;
position: absolute;
bottom: 0;
}
}
.investor-con {
width: 382rpx;
height: 170rpx;
font-size: 24rpx;
font-weight: 400;
color: #707070;
.name {
width: 100%;
3 years ago
height: 38rpx;
3 years ago
font-size: 32rpx;
font-weight: bold;
color: #1D1D1D;
line-height: 35rpx;
}
.row {
height: 21rpx;
border: 2rpx solid #707070;
margin: 0 20rpx;
}
}
.toContact {
width: 54rpx;
height: 192rpx;
margin-left: auto;
}
.toContact image {
width: 54rpx;
height: 192rpx;
}
}
}
}
.add{
position: absolute;
right: 40rpx;
}
.add image{
width: 84rpx;
height: 84rpx;
transform: rotate(45deg);
}
3 years ago
.mask-box{
width: 100%;
height: 100vh;
3 years ago
background: rgba(0,0,0,.5);
3 years ago
position:fixed;
3 years ago
top: 190rpx;/* #ifdef H5 */
3 years ago
top: calc(88rpx + constant(safe-area-inset-top));
top: calc(88rpx + env(safe-area-inset-top));/* #endif */
left: 0;
z-index: 9999;
}
.screen-dialog-box{
3 years ago
width: 590rpx;
3 years ago
height: 100%;
3 years ago
padding-top: 10rpx;
3 years ago
overflow-y: scroll;
background-color: #fff;
position: absolute;
3 years ago
top: 0rpx;
3 years ago
right: 0rpx;
animation: move 200ms ease;
}
/* .move{
right: 0rpx;
} */
@keyframes move{
0%{
transform: translateX(800rpx);
}
100%{
transform: translateX(0rpx);
}
}
.screen-item{
width: 100%;
padding: 0 38rpx;
3 years ago
overflow: hidden;
transform: all .2s linear;
3 years ago
}
.screen-title{
3 years ago
font-size: 28rpx;
color: #343434;
3 years ago
margin-bottom: 32rpx;
3 years ago
font-weight: 600
;
3 years ago
}
.screen-item{
padding-top: 40rpx;
}
.screen-item .item{
3 years ago
width: 152rpx;
height: 64rpx;
line-height: 64rpx;
3 years ago
text-align: center;
3 years ago
font-size: 24rpx;
color: #666666;
background: #F6F6F6;
3 years ago
margin: 0 32rpx 32rpx 0;
3 years ago
}
.screen-item .item:nth-child(3n){
margin-right: 0;
}
.screen-item .item-active{
3 years ago
color: #fff;
background: #000;
3 years ago
}
.across-line{
width: 44rpx;
height: 2rpx;
background: #ACABAB;
margin: 0 12rpx;
}
.low-price{
width: 228rpx;
height: 60rpx;
background: #F6F5F5;
border-radius: 4rpx;
}
.low-price input{
width: 100%;
height: 100%;
text-align: center;
}
.fz20{
font-size: 20rpx;
color: #393939;
}
.submit-box{
3 years ago
width: 376rpx;
height: 64rpx;
margin: 0 auto;
margin-top: 64rpx;
3 years ago
}
.submit-box .btn{
3 years ago
width: 152rpx;
height: 64rpx;
line-height: 64rpx;
text-align: center;
border-radius: 12rpx;
color: #FF5100;
border: 2rpx solid #FF9665;
3 years ago
}
.submit-box .finish{
background: #FF660C;
color: #fff;
}
3 years ago
</style>