zs 2 年之前
父節點
當前提交
0bf16efb14
共有 2 個文件被更改,包括 11 次插入8 次删除
  1. 5 3
      pagesHome/group/share.vue
  2. 6 5
      pagesMy/dough/index.vue

+ 5 - 3
pagesHome/group/share.vue

@@ -35,11 +35,11 @@
 					<view class="list-scroll-view">
 						<view class="thr_1">
 							<view class="list" v-for="(item,index) in info.persons" :key="index">
-								<view class="img" v-if="item.status==0">
+								<view class="img">
 									<image class="image" :src="item.icon&&item.icon.length>0?item.icon[0].url:''"
 										mode=""></image>
 								</view>
-								<view class="name" v-if="item.status==0">
+								<view class="name">
 									{{item.name}}
 								</view>
 							</view>
@@ -155,7 +155,9 @@
 				if (that.id) {
 					let res = await that.$api(`/group/${that.id}`, `GET`);
 					if (res.errcode == '0') {
-						res.data.persons = res.data.persons.filter(i => i.status == '0')
+						if (res.data.status != '-1') {
+							res.data.persons = res.data.persons.filter(i => i.status == '0')
+						}
 						that.$set(that, `info`, res.data);
 						let share = {
 							title: res.data.goods.name,

+ 6 - 5
pagesMy/dough/index.vue

@@ -12,8 +12,7 @@
 								<view class="list" v-for="(item, index) in list" :key="index" @click="toShare(item)">
 									<view class="image">
 										<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>
 									</view>
 									<view class="list_1">
@@ -81,7 +80,7 @@
 							active: '0'
 						},
 						{
-							title: '散团',
+							title: '散团',
 							active: '-1'
 						},
 						// {
@@ -161,10 +160,12 @@
 						let list = [...that.list, ...res.data];
 						for (let val of list) {
 							let personsstatus = val.persons.find(i => i.customer == user._id)
-							if (personsstatus?.status == 1) {
+							if (personsstatus?.status == '1') {
 								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)
 							if (status) val.zhStatus = status.label;
 							val.time = moment(val.meta.createdAt).format('YYYY-MM-DD HH:mm:ss')