|
@@ -12,8 +12,7 @@
|
|
<view class="list" v-for="(item, index) in list" :key="index" @click="toShare(item)">
|
|
<view class="list" v-for="(item, index) in list" :key="index" @click="toShare(item)">
|
|
<view class="image">
|
|
<view class="image">
|
|
<image class="file" v-for="(tag, indexs) in item.persons.slice(0,9)"
|
|
<image class="file" v-for="(tag, indexs) in item.persons.slice(0,9)"
|
|
- :key="indexs" v-if="tag.status==0"
|
|
|
|
- :src="tag.icon&&tag.icon.length>0?tag.icon[0].url:''" mode="">
|
|
|
|
|
|
+ :key="indexs" :src="tag.icon&&tag.icon.length>0?tag.icon[0].url:''" mode="">
|
|
</image>
|
|
</image>
|
|
</view>
|
|
</view>
|
|
<view class="list_1">
|
|
<view class="list_1">
|
|
@@ -81,7 +80,7 @@
|
|
active: '0'
|
|
active: '0'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title: '散团中',
|
|
|
|
|
|
+ title: '已散团',
|
|
active: '-1'
|
|
active: '-1'
|
|
},
|
|
},
|
|
// {
|
|
// {
|
|
@@ -161,10 +160,12 @@
|
|
let list = [...that.list, ...res.data];
|
|
let list = [...that.list, ...res.data];
|
|
for (let val of list) {
|
|
for (let val of list) {
|
|
let personsstatus = val.persons.find(i => i.customer == user._id)
|
|
let personsstatus = val.persons.find(i => i.customer == user._id)
|
|
- if (personsstatus?.status == 1) {
|
|
|
|
|
|
+ if (personsstatus?.status == '1') {
|
|
val.status = '2';
|
|
val.status = '2';
|
|
}
|
|
}
|
|
- val.persons = val.persons.filter(i => i.status == '0')
|
|
|
|
|
|
+ if (that.status != '-1') {
|
|
|
|
+ val.persons = val.persons.filter(i => i.status == '0')
|
|
|
|
+ }
|
|
let status = that.statusList.find(i => i.value == val.status)
|
|
let status = that.statusList.find(i => i.value == val.status)
|
|
if (status) val.zhStatus = status.label;
|
|
if (status) val.zhStatus = status.label;
|
|
val.time = moment(val.meta.createdAt).format('YYYY-MM-DD HH:mm:ss')
|
|
val.time = moment(val.meta.createdAt).format('YYYY-MM-DD HH:mm:ss')
|