|
|
@ -9,15 +9,24 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="search"> |
|
|
|
<view class="icon"> |
|
|
|
<!-- <view class="icon"> |
|
|
|
<uv-icon |
|
|
|
size="40rpx" |
|
|
|
name="search"></uv-icon> |
|
|
|
</view> |
|
|
|
<input type="text" placeholder="请输入搜索关键字..."/> |
|
|
|
<view class="text"> |
|
|
|
<input type="text" placeholder="请输入搜索关键字..." |
|
|
|
v-model="queryParams.title"/> |
|
|
|
<view class="text" |
|
|
|
@click="search"> |
|
|
|
搜索 |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<!-- @change --> |
|
|
|
<uv-search |
|
|
|
bgColor="#fff" |
|
|
|
@search="search" |
|
|
|
@custom="search" |
|
|
|
placeholder="请输入搜索关键字..." |
|
|
|
v-model="queryParams.title"></uv-search> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="swipe"> |
|
|
@ -48,8 +57,6 @@ |
|
|
|
:autoplay="true" |
|
|
|
:duration="500"> |
|
|
|
<swiper-item v-for="(item, index) in actorList" |
|
|
|
style="background-color: #fff;border-radius: 20rpx; |
|
|
|
padding: 20rpx;" |
|
|
|
:key="index"> |
|
|
|
<view class="swiper-item"> |
|
|
|
<image |
|
|
@ -62,8 +69,9 @@ |
|
|
|
{{ item.name }} |
|
|
|
</view> |
|
|
|
<view class="info-from"> |
|
|
|
<text>{{ item.userId }}</text> |
|
|
|
<text style="margin-left: 30rpx;">{{ $dayjs(item.createTime).format('YYYY-MM-DD') }}</text> |
|
|
|
<text class="text-ellipsis" |
|
|
|
style="width: 220rpx;">发布人:{{ item.userId }}</text> |
|
|
|
<text style="margin-left: 20rpx;">{{ $dayjs(item.createTime).format('YYYY-MM-DD') }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="right"> |
|
|
@ -159,6 +167,9 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
search(){ |
|
|
|
this.indexGetTrendsPage() |
|
|
|
}, |
|
|
|
indexGetTrendsPage(fn){ |
|
|
|
this.$api('indexGetTrendsPage', |
|
|
|
this.queryParams, res => { |
|
|
@ -170,10 +181,11 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
bannerClick(index){ |
|
|
|
console.log(index); |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages_mine/publish/competition' |
|
|
|
}) |
|
|
|
if(this.banner[index].toUrl){ |
|
|
|
uni.navigateTo({ |
|
|
|
url: this.banner[index].toUrl |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -255,7 +267,7 @@ |
|
|
|
flex-direction: column; |
|
|
|
width: 100%; |
|
|
|
image{ |
|
|
|
width: 450rpx; |
|
|
|
width: 100%; |
|
|
|
height: 180rpx; |
|
|
|
} |
|
|
|
.swiper-item-content{ |
|
|
@ -270,6 +282,7 @@ |
|
|
|
.info-from{ |
|
|
|
font-size: 26rpx; |
|
|
|
color: #777; |
|
|
|
display: flex; |
|
|
|
} |
|
|
|
} |
|
|
|
.right{ |
|
|
@ -283,6 +296,7 @@ |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
flex-shrink: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|