Commit bd99c151 authored by Mac's avatar Mac

1

parent 2410098b
<style lang="scss" scoped>
</style>
<template>
<view class="MyGroupLeader">
<matchmaking
:navs="data"
></matchmaking>
</view>
</template>
<script>
import matchmaking from "@/components/matchmaking/index";
export default {
components:{
matchmaking
},
data(){
return{
pageTitle: "我的群组",
data:{
listStyle: -1,
list:[
{Age: "27",
AlbumList: ["https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/SaleBefore/Goods/637685412905618441.jpg"],
Authentication: 0,
Education: "本科",
Height: 168,
IDCardNo: "93",
Industry: "",
Marriage: "未婚",
Photo: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1633178376000_572.png",
Score: 0,
SexStr: "女",
YearMoneyTypeStr: null,
id: 128527,
name: "橙霜113号"},
{
Age: "32",
AlbumList: ["https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/SaleBefore/Goods/637685422998050082.jpg",],
Authentication: 1,
Education: "大专",
Height: 155,
IDCardNo: "88",
Industry: "",
Marriage: "离异无孩",
Photo: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1633178376000_572.png",
Score: 0,
SexStr: "女",
YearMoneyTypeStr: null,
id: 128539,
name: "阿黛"}
]
}
}
},
created(){
uni.setNavigationBarTitle({
title: this.pageTitle,
});
},
methods:{
}
}
<style lang="scss" scoped>
</style>
<template>
<view class="MyGroupLeader">
<u-empty v-if="data.list.length == 0" text="暂无数据" mode="list"></u-empty>
<view v-if="data.list.length > 0" style="
height: calc(100vh);
width: calc(100vw);
overflow: hidden;
">
<scroll-view :scroll-y="true" :enable-back-to-top="true" :enable-flex="true" @scrolltolower="lower"
:style="{ height: '100%' }">
<matchmaking :navs="data"></matchmaking>
<u-loadmore :status="status" :load-text="loadText" :font-size="24" :margin-top="20" :margin-bottom="20"
bg-color="#FFF" />
</scroll-view>
</view>
</view>
</template>
<script>
import matchmaking from "@/components/matchmaking/index";
export default {
components: {
matchmaking
},
data() {
return {
pageTitle: "我的群组",
msg: {
pageIndex: 1,
pageSize: 10,
lookGroupIds: "3"
},
page_count: 1,
loading: false,
status: "loadmore",
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
nomore: "没有更多了",
},
data: {
listStyle: -1,
list: []
}
}
},
created() {
uni.setNavigationBarTitle({
title: this.pageTitle,
});
this.init()
},
methods: {
init() {
this.loading = true;
this.request2({
url: '/api/AppletMiai/GetUserGroupList',
data: this.msg
},
res => {
if (res.resultCode == 1) {
this.loading = false;
this.data.list = this.data.list.concat(res.data.pageData.list);
this.data.listStyle = res.data.pageData.listStyle;
this.page_count = res.data.pageCount;
if (this.page_count == 1) {
this.status = "nomore";
}
}
}
);
},
lower(e) {
if (this.msg.pageIndex < this.page_count) {
this.msg.pageIndex++;
this.status = "loading";
this.init();
} else {
this.status = "nomore";
}
},
}
}
</script>
......@@ -354,7 +354,7 @@ export default {
let UserGroupIds = uni.getStorageSync("mall_UserInfo") ? uni.getStorageSync("mall_UserInfo").UserGroupIds : '';
switch (item.link_url) {
case "/pages/blindDate/personal/MyGroupLeader":
if (item.groupId && UserGroupIds.indexOf((item.groupId).toString())!=-1) {
if (item.groupId &&UserGroupIds!='' && UserGroupIds.indexOf((item.groupId).toString())!=-1) {
flag = true;
} else {
flag = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment