|
@@ -17,13 +17,13 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="" style="height: 20rpx;background-color: #f8f8f8"></view>
|
|
<view class="" style="height: 20rpx;background-color: #f8f8f8"></view>
|
|
|
<view style="padding: 30rpx 30rpx 0">
|
|
<view style="padding: 30rpx 30rpx 0">
|
|
|
- <u-search placeholder="搜索关键词或编号" height="70" v-model="keyword" :show-action="false"></u-search>
|
|
|
|
|
|
|
+ <u-search placeholder="搜索关键词或编号" height="70" @search="searchWorks" v-model="keyword" :show-action="false"></u-search>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="padding-30">
|
|
<view class="padding-30">
|
|
|
<view class="text-bold" style="font-size: 34rpx;">
|
|
<view class="text-bold" style="font-size: 34rpx;">
|
|
|
法护未来 童心同行
|
|
法护未来 童心同行
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="card shadow" v-for="(item,index) in 20" :key="index">
|
|
|
|
|
|
|
+ <view @click="$jump('/pages/activity/activityDetail?id='+item.id)" class="card shadow" v-for="(item,index) in worksList" :key="item.id">
|
|
|
<view v-if="index==0" class="center bg-img rank-tag" style="background-image: url(../../static/icon/ph1.png)">
|
|
<view v-if="index==0" class="center bg-img rank-tag" style="background-image: url(../../static/icon/ph1.png)">
|
|
|
<text>1</text>
|
|
<text>1</text>
|
|
|
</view>
|
|
</view>
|
|
@@ -35,18 +35,18 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="left">
|
|
<view class="left">
|
|
|
- <image src="../../static/test/jingcha.jpg" mode=""></image>
|
|
|
|
|
|
|
+ <image :src="item.imgUrl" mode=""></image>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="right">
|
|
<view class="right">
|
|
|
<view class="flex-direction flex">
|
|
<view class="flex-direction flex">
|
|
|
- <text class="title">小学生法律小知识</text>
|
|
|
|
|
- <text class="desc text-cut-2">活动初,为在场的家长及孩子播放了视频《被拐走的孩子》。这个视频让人触目</text>
|
|
|
|
|
|
|
+ <text class="title">{{item.title}}</text>
|
|
|
|
|
+ <text class="desc text-cut-2">{{item.content}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="bottom">
|
|
<view class="bottom">
|
|
|
<view class="flex margin-top-10">
|
|
<view class="flex margin-top-10">
|
|
|
<image class="center" style="width: 30rpx;height: 30rpx;" src="../../static/icon/remen.png">
|
|
<image class="center" style="width: 30rpx;height: 30rpx;" src="../../static/icon/remen.png">
|
|
|
</image>
|
|
</image>
|
|
|
- <text style="color: #353535;margin-left: 6rpx;font-size:28rpx;">236</text>
|
|
|
|
|
|
|
+ <text style="color: #353535;margin-left: 6rpx;font-size:28rpx;">{{item.voteCount}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="cu-btn round sm line-base">
|
|
<view class="cu-btn round sm line-base">
|
|
|
去助力
|
|
去助力
|
|
@@ -61,8 +61,25 @@
|
|
|
<script>
|
|
<script>
|
|
|
export default {
|
|
export default {
|
|
|
name: '',
|
|
name: '',
|
|
|
|
|
+ async mounted() {
|
|
|
|
|
+ await this.initWorksList();
|
|
|
|
|
+ },
|
|
|
|
|
+ methods :{
|
|
|
|
|
+ async initWorksList(){
|
|
|
|
|
+ const { defaultActiveId:activeId }= this.$store.state['vuex_active_setting'];
|
|
|
|
|
+ this.$api.activity.getWorksList({ activeId }).then(res => {
|
|
|
|
|
+ this.worksList = res.data.data;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ searchWorks(value){
|
|
|
|
|
+ this.$api.activity.searchWork(value).then(res => {
|
|
|
|
|
+ this.worksList = res.data.data;
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ worksList: [],
|
|
|
swiperList: ['https://guosen-bucket-ldt.obs.cn-south-1.myhuaweicloud.com:443/70c8b355db774f85ab9f8d4f6289df69-banner.jpg'],
|
|
swiperList: ['https://guosen-bucket-ldt.obs.cn-south-1.myhuaweicloud.com:443/70c8b355db774f85ab9f8d4f6289df69-banner.jpg'],
|
|
|
gridList: [{
|
|
gridList: [{
|
|
|
icon: '/static/grid/jieshao.png',
|
|
icon: '/static/grid/jieshao.png',
|