运营活动
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="AppActive">
|
||||
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6" inactive-color="#fff" active-color="#fff" @change="change"></u-tabs>
|
||||
<!-- <u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6" inactive-color="#fff" active-color="#fff" @change="change"></u-tabs> -->
|
||||
|
||||
<div class="dataTop">
|
||||
<div class="dataLeft">活动列表</div>
|
||||
@@ -13,13 +13,13 @@
|
||||
</div>
|
||||
|
||||
<template v-if="datas.length > 0">
|
||||
<AiCard v-for="(item, i) in datas" :key="i" @click.native="toDetail(item, 1)">
|
||||
<AiCard v-for="(item, i) in datas" :key="i" @click.native="toDetail(item)">
|
||||
<template #custom>
|
||||
<div class="left">
|
||||
<div class="titles">{{ item.title }}</div>
|
||||
|
||||
<div class="nums">
|
||||
<span class="specialColor">{{ item.realNum }}人</span>
|
||||
<span class="specialColor">{{ item.signUpCount }}人</span>
|
||||
<span>已报名</span>
|
||||
</div>
|
||||
|
||||
@@ -32,9 +32,9 @@
|
||||
<div class="areaName" v-if="item.areaName || item.address">{{ item.areaName }}{{ item.address }}</div>
|
||||
</div>
|
||||
|
||||
<img :src="items.url" alt="" v-for="(items, index) in JSON.parse(item.url || '[]')" :key="index" @click.stop="previewImage(JSON.parse(item.url || '[]'), item.url[0].url)" />
|
||||
<!-- <img :src="items.url" alt="" v-for="(items, index) in JSON.parse(item.url || '[]')" :key="index" @click.stop="previewImage(JSON.parse(item.url || '[]'), item.url[0].url)" />
|
||||
|
||||
<div class="hints" :style="{ background: item.status == 0 ? '#000000' : item.status == 1 ? '#42D784' : '#E4E4E4' }">{{ $dict.getLabel('villageActivityStatus', item.status) }}</div>
|
||||
<div class="hints" :style="{ background: item.status == 0 ? '#000000' : item.status == 1 ? '#42D784' : '#E4E4E4' }">{{ $dict.getLabel('villageActivityStatus', item.status) }}</div> -->
|
||||
</template>
|
||||
</AiCard>
|
||||
</template>
|
||||
@@ -82,12 +82,12 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.$http.post('/app/appvillageactivityinfo/listUp', null, {
|
||||
this.$http.post('/app/appactivityinfo/listForWX', null, {
|
||||
params: {
|
||||
size: this.size,
|
||||
current: this.current,
|
||||
createUserId: this.currentTabs == 1 ? this.user.id : '',
|
||||
areaId: this.user.areaId,
|
||||
// createUserId: this.currentTabs == 1 ? this.user.id : '',
|
||||
// areaId: this.user.areaId,
|
||||
},
|
||||
}).then((res) => {
|
||||
if (res.code == 0) {
|
||||
@@ -112,7 +112,7 @@ export default {
|
||||
},
|
||||
|
||||
toDetail(item) {
|
||||
uni.navigateTo({ url: `./Detail?id=${item.id}&createUserId=${item.createUserId}` })
|
||||
uni.navigateTo({ url: `./Detail?id=${item.id}` })
|
||||
},
|
||||
|
||||
previewImage(images, img) {
|
||||
|
||||
Reference in New Issue
Block a user