Commit ad6b899c authored by zhengke's avatar zhengke

增加团队成员信息

parent f2f33ad7
...@@ -166,6 +166,11 @@ ...@@ -166,6 +166,11 @@
"root": "pages/share-team", "root": "pages/share-team",
"pages": [{ "pages": [{
"path": "share-team" "path": "share-team"
},{
"path" : "share-detail",
"style": {
"navigationStyle": "custom"
}
}] }]
}, },
{ {
......
...@@ -415,10 +415,15 @@ export default { ...@@ -415,10 +415,15 @@ export default {
showModal: false, showModal: false,
delivery_time:14,//时间 delivery_time:14,//时间
uid:0, uid:0,
NewUserId:0, //zk新增
}; };
}, },
onLoad(option) { onLoad(option) {
this.id = option.id || 63702; this.id = option.id || 63702;
//zk新增
if(option.NewUserId){
this.NewUserId = option.NewUserId;
}
this.mc = this.$uiConfig.mainColor; this.mc = this.$uiConfig.mainColor;
this.secondary = this.$uiConfig.secondary; this.secondary = this.$uiConfig.secondary;
this.headStyle.background = `linear-gradient(to right, ${this.mc},80%, ${this.secondary})`; this.headStyle.background = `linear-gradient(to right, ${this.mc},80%, ${this.secondary})`;
...@@ -535,7 +540,10 @@ export default { ...@@ -535,7 +540,10 @@ export default {
this.request2( this.request2(
{ {
url: '/api/AppletOrder/GetAppletMyOrderInfo', url: '/api/AppletOrder/GetAppletMyOrderInfo',
data: {OrderId:this.id} data: {
OrderId:this.id,
NewUserId:this.NewUserId
}
}, },
(res) => { (res) => {
this.orders = res.data; this.orders = res.data;
......
This diff is collapsed.
...@@ -2,13 +2,28 @@ ...@@ -2,13 +2,28 @@
<view class="cteamStyle" :style="{'height':contentHeight}"> <view class="cteamStyle" :style="{'height':contentHeight}">
<view style="width: 100%;height: 100%;"> <view style="width: 100%;height: 100%;">
<u-tabs :list="list" name="GradeName" :is-scroll="false" :current="current" @change="change" :active-color='mainColor' ></u-tabs> <u-tabs :list="list" name="GradeName" :is-scroll="false" :current="current" @change="change" :active-color='mainColor' ></u-tabs>
<view style="width:100%;background:#fff;padding:20px 20px 0 20px;">
<u-search :show-action="true" v-model="msg2.Name" placeholder="请输入用户昵称" action-text="搜索" @custom="init2(1)"
@search="init2(1)" radius="40"></u-search>
<view class="cteam_Search">
<view class="ctem_item" @click="getSort(0,0)" :style="{ color: msg2.SortNum == 0 || msg2.SortNum == 1 ? mainColor : '#222'}">
<text>时间</text>
<u-icon v-if="msg2.SortNum==0||msg2.SortNum==1" :name="msg2.SortNum == 0 ? 'descending' : 'ascending'" size="36" :color="msg2.SortNum == 0 || msg2.SortNum == 1 ? mainColor : '#222'"></u-icon>
</view>
<view @click="getSort(2,1)" class="ctem_item" :style="{ color: msg2.SortNum == 2 || msg2.SortNum == 3 ? mainColor : '#222'}">
<text>客户人数</text>
<u-icon v-if="msg2.SortNum==2||msg2.SortNum==3" :name="msg2.SortNum == 2 ? 'descending' : 'ascending'" size="36" :color="msg2.SortNum == 2 || msg2.SortNum == 3 ? mainColor : '#222'"></u-icon>
</view>
</view>
</view>
<u-empty v-if="g.length==0" text="暂无数据" mode="data"></u-empty> <u-empty v-if="g.length==0" text="暂无数据" mode="data"></u-empty>
<template v-if="g.length > 0"> <template v-if="g.length > 0">
<view <view
style=" style="
height: calc(100vh - 50px); height: calc(100vh - 160px);
width: calc(100vw); width: calc(100vw);
overflow: hidden; overflow: hidden;
margin-top:10px;
"> ">
<scroll-view <scroll-view
...@@ -18,18 +33,18 @@ ...@@ -18,18 +33,18 @@
@scrolltolower="lower" @scrolltolower="lower"
:style="{ height: '100%' }"> :style="{ height: '100%' }">
<view style="display: flex;flex-direction: column;align-items: center;"> <view style="display: flex;flex-direction: column;align-items: center;">
<view v-for="(item, index) in g" :key="index" class="listbox"> <view v-for="(item, index) in g" :key="index" class="listbox" @click="goUrl(item.UserId)">
<view class="box_top"> <view class="box_top">
<u-avatar :src="item.Photo" size="64"></u-avatar> <u-avatar :src="item.Photo" size="64"></u-avatar>
<view class="box_r"> <view class="box_r">
<view style="width: 100%;display: flex;flex-direction: row;align-items: center;justify-content: space-between;"> <view style="width: 100%;display: flex;flex-direction: row;align-items: center;
margin-bottom:3px;justify-content: space-between;">
<view style="width: 190px;"> <view style="width: 190px;">
<Text class='l_name'>{{item.UserName}}</Text> <Text class='l_name'>{{item.UserName}}</Text>
</view> </view>
<Text style='font-size: 12px;'>推广{{item.GeneralizeNum}}</Text> <Text style='font-size: 12px;'>推广{{item.GeneralizeNum}}</Text>
</view> </view>
<Text style='font-size: 10px;color: #999999;'>{{item.CreateDate}}</Text> <Text style='font-size: 10px;color: #999999;font-size:12px;'>{{item.CreateDate}}</Text>
</view> </view>
</view> </view>
<view class="box_b"> <view class="box_b">
...@@ -81,7 +96,8 @@ ...@@ -81,7 +96,8 @@
pageIndex: 1, pageIndex: 1,
pageSize:10, pageSize:10,
FXGradeId:0, FXGradeId:0,
Name:'', //昵称
SortNum:0 // 0时间降序 1时间升序 2人数倒序 3人数升序
}, },
page_count:1, page_count:1,
status: "loadmore", status: "loadmore",
...@@ -149,8 +165,28 @@ ...@@ -149,8 +165,28 @@
} }
); );
}, },
init2(){ //排序
getSort(sort,t){
if (t == 0) {
if (this.msg2.SortNum == 0) {
this.msg2.SortNum = 1; //升序
} else {
this.msg2.SortNum = 0; //降序
}
}
if (t == 1) {
if (this.msg2.SortNum == 2) {
this.msg2.SortNum = 3; //升序
} else {
this.msg2.SortNum = 2; //降序
}
}
this.init2(1);
},
init2(num){
if(num==1){
this.g=[];
}
uni.showLoading({ uni.showLoading({
title: '加载中' title: '加载中'
}); });
...@@ -159,7 +195,6 @@ ...@@ -159,7 +195,6 @@
url: '/api/AppletUser/GetUserMyTeamPageListForFX', url: '/api/AppletUser/GetUserMyTeamPageListForFX',
data: this.msg2 data: this.msg2
}, },
(res) => { (res) => {
uni.hideLoading(); uni.hideLoading();
this.g = this.g.concat(res.data.pageData); this.g = this.g.concat(res.data.pageData);
...@@ -167,7 +202,6 @@ ...@@ -167,7 +202,6 @@
if (this.page_count == 1) { if (this.page_count == 1) {
this.status = "nomore"; this.status = "nomore";
} }
} }
); );
}, },
...@@ -226,9 +260,14 @@ ...@@ -226,9 +260,14 @@
this.status = "nomore"; this.status = "nomore";
} }
} }
}, },
//跳转详情
goUrl(UserId){
console.log('点击');
uni.navigateTo({
url: '/pages/share-team/share-detail?UserId='+UserId
});
}
} }
} }
</script> </script>
...@@ -258,11 +297,11 @@ ...@@ -258,11 +297,11 @@
width: 100%; width: 100%;
background: #fff; background: #fff;
padding: 0 15px; padding: 0 15px;
margin-top: 15px; /* margin-top: 15px; */
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
margin-bottom:10px;
} }
.cteamStyle .box_top{ .cteamStyle .box_top{
width:100% ; width:100% ;
...@@ -275,18 +314,19 @@ ...@@ -275,18 +314,19 @@
} }
.cteamStyle .box_r{ .cteamStyle .box_r{
width: calc(100vw - 30px - 32px - 20px); width: calc(100vw - 25px - 32px - 20px);
height: 32px; height: 32px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
} }
.box_r .l_name{ .cteamStyle .box_r .l_name{
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
font-size:13px;
} }
.cteamStyle .box_b{ .cteamStyle .box_b{
width: 100%; width: 100%;
...@@ -300,4 +340,16 @@ ...@@ -300,4 +340,16 @@
border-radius: 4px; border-radius: 4px;
margin: 10px 0; margin: 10px 0;
} }
.cteamStyle .cteam_Search{
display: flex;
margin-top:10px;
}
.cteamStyle .ctem_item{
height: 40px;
line-height: 40px;
flex: 1;
text-align: center;
display: flex;
justify-content: center;
}
</style> </style>
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