Files
signuptool-ui-xcx/pages/team/MyTeam.vue
2024-02-06 09:36:25 +08:00

556 lines
15 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<view style="background: #F1F2F5;">
<RefreshView id="mescrollRef" ref="mescrollRef" :pageBg="F1F2F5" text="我的队伍" :useDownScroll="false"
:useUpScroll="false">
<view class="top">
<view style="flex: 1;">
<sl-filter id="header" ref="slLilter" v-if="menuList.length!=0" :color="fd6d2a" themeColor="#000000"
:menuList.sync="menuList" @result="result"></sl-filter>
</view>
<text class="top_text">共加入2个队伍</text>
</view>
<view>
<view v-for="(item,index) in list " :key="index">
<view class="itemLay">
<view class="itemLay_top">
<text class="itemLay_top_name">{{item.teamName}}</text>
<view class="itemLay_top_label">
<text class="itemLay_top_label_item">{{item.city}}</text>
<text class="itemLay_top_label_item">{{item.table}}</text>
<text class="itemLay_top_label_item">{{item.number}}</text>
</view>
</view>
<view class="line"></view>
<view class="itemLay_list">
<scroll-view class="itemLay_list_scroll_view" scroll-x="true">
<view v-for="(memberItem,pos) in item.member" :key="pos"
class="itemLay_list_scroll_view_for">
<view class="itemLay_list_scroll_view_item">
<image :src="memberItem.headImage" class="itemLay_list_scroll_view_item_image"
mode="scaleToFill">
</image>
<text class="itemLay_list_scroll_view_item_text">{{memberItem.name}}</text>
</view>
</view>
</scroll-view>
</view>
<view class="itemLay_bom">
<view class="itemLay_bom_right">
<text class="itemLay_bom_right1"
@click="apply(item.sid)">申请中({{item.applyNumber}})</text>
<text class="itemLay_bom_right2" @click="invitation(item.sid)">邀请队员</text>
<text class="itemLay_bom_right3" @click="manage(item.sid)">管理</text>
</view>
<view class="itemLay_bom_notice" v-if="isShow(item.noticeSid)">
<view class="line"></view>
<view class="itemLay_bom_notice_content">
<text class="itemLay_bom_notice_content_text">本队报名了</text>
<text class="itemLay_bom_notice_content_text2"
@click="detail(item.noticeSid)">{{item.notice}}</text>
<text class="itemLay_bom_notice_content_text">组队成功后即可报名</text>
</view>
</view>
</view>
</view>
</view>
</view>
</RefreshView>
</view>
</template>
<script>
export default {
data() {
return {
page: {
state: ""
},
menuList: [{
'title': '默认活动类型',
'key': 'state',
'reflexTitle': true,
'defaultSelectedIndex': 0,
detailList: [{
'title': '全部运动项目',
'value': ""
}]
}
],
list: [{
showDialog: false,
teamName: "我的队伍名称1",
city: "石家庄1",
table: "乒乓球1",
number: "2/5",
sid: "1",
member: [{
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "阿萨苏打水就激动四季豆i阿萨按时递交四栋i阿萨大四的1",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三2",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三3",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三4",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三5",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三6",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三7",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三8",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三9",
}],
applyNumber: "5",
notice: "梧桐居周赛",
noticeSid: "",
}, {
showDialog: false,
teamName: "asdsdfg士大夫是非得失的阿大撒大撒的地方dads发的阿风飒飒大大发生的1",
city: "石家庄1",
table: "乒乓球1",
number: "2/5",
sid: "2",
member: [{
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三1",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三2",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三3",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三4",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三5",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三6",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三7",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三8",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三9",
}],
applyNumber: "5",
notice: "梧桐居周赛",
noticeSid: "12561651651",
}, {
showDialog: false,
teamName: "我的队伍名称1",
city: "石家庄1",
table: "乒乓球1",
sid: "3",
number: "2/5",
member: [{
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三1",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三2",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三3",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三4",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三5",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三6",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三7",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三8",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三9",
}],
applyNumber: "5",
notice: "梧桐居周赛",
noticeSid: "12561651651",
}, {
showDialog: false,
teamName: "我的队伍名称1",
city: "石家庄1",
table: "乒乓球1",
number: "2/5",
sid: "4",
member: [{
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三1",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三2",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三3",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三4",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三5",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三6",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三7",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三8",
}, {
headImage: "https://tse1-mm.cn.bing.net/th/id/OIP-C.n0_p3rYRuofABd3XudbZnAHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
name: "张三9",
}],
applyNumber: "5",
notice: "梧桐居周赛",
noticeSid: "12561651651",
}
]
}
},
onLoad() {
let that = this
that.HTTP({
url: 'aos/v1/activityManagement/getActivityCreatePageParameter',
method: 'GET',
data: {
"adcode": that.page.adCode
},
paramsType: "FORM",
loading: true
}).then((res) => {
console.log("that.menuList[0].detailList", that.menuList[0].detailList);
let list = [];
for (var i = 0; i < res.data.listSportCategoryArea.length; i++) {
list.push({
title: res.data.listSportCategoryArea[i].sportCategoryName,
value: res.data.listSportCategoryArea[i].sid
})
}
// 必须用变量去接受
that.menuList[0].detailList = that.menuList[0].detailList.concat(list)
console.log("qqq", that.menuList[0].detailList);
});
},
methods: {
result(val) {
console.log("aaa", val);
if (!this.IsEmpty(val.state)) {
this.page.state = val.state;
this.list = []
console.log("this.page.state", this.page.state);
} else {
this.page.state = val.state;
this.list = []
}
},
isShow(sid) {
if (!this.IsEmpty(sid)) {
return true
} else {
return false
}
},
apply(sid) {
// 查看申请
uni.navigateTo({
url: 'examineMember?sid=' + sid+"&type="+0
})
},
invitation(sid) {
// 邀请
},
manage(sid) {
// 管理
let newList = []
newList.push("修改信息")
newList.push("删除队员")
newList.push("解散队伍")
uni.showActionSheet({
itemList: newList,
success: function(res) {
switch (res.tapIndex) {
case 0:
console.log("res==修改")
break;
case 1:
// 查看申请
uni.navigateTo({
url: 'examineMember?sid=' + sid+"&type="+1
})
break;
case 2:
uni.showModal({
title: '提示',
content: '是否要解算队伍吗',
success: function(res) {
if (res.confirm) { //这里是点击了确定以后
} else { //这里是点击了取消以后
console.log('用户点击取消')
}
}
})
console.log("res==集散")
break;
}
},
fail(e) {
console.log("reeees==" + JSON.stringify(e))
}
});
},
detail(sid) {
// 活动详情
uni.navigateTo({
url: '../index/DetailActivity?raceSid=' + sid
})
},
}
}
</script>
<style lang="scss">
.top {
display: flex;
width: 100%;
flex-direction: row;
background-color: #fff;
align-items: center;
.top_text {
text-align: end;
margin-right: 30rpx;
}
}
.line {
height: 5rpx;
margin-top: 20rpx;
background: #eee;
width: 100%;
}
.itemLay {
background-color: #fff;
margin-bottom: 24rpx;
display: flex;
flex-direction: column;
padding: 32rpx;
.itemLay_top {
display: flex;
flex-direction: row;
.itemLay_top_name {
max-width: 350rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 36rpx;
color: #101010;
}
.itemLay_top_label {
flex: 1;
display: flex;
flex-direction: row;
.itemLay_top_label_item {
background-color: #F4CE98;
color: #fff;
font-size: 24rpx;
padding: 5rpx 10rpx;
text-align: center;
align-items: center;
margin-left: 24rpx;
}
}
}
.itemLay_list {
z-index: 100;
.itemLay_list_scroll_view {
width: 100%;
white-space: nowrap;
.itemLay_list_scroll_view_for {
display: inline-block;
padding-top: 32rpx;
padding-bottom: 32rpx;
.itemLay_list_scroll_view_item {
margin-left: 20rpx;
margin-right: 20rpx;
display: flex;
flex-direction: column;
.itemLay_list_scroll_view_item_image {
width: 110rpx;
height: 110rpx;
border-radius: 12rpx;
}
.itemLay_list_scroll_view_item_text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100rpx;
margin-top: 15rpx;
font-size: 24rpx;
text-align: center;
color: #4D4A4A;
}
}
}
}
}
.itemLay_bom {
display: flex;
flex-direction: column;
.itemLay_bom_right {
align-items: center;
text-align: right;
.itemLay_bom_right1 {
margin-right: 24rpx;
font-size: 30rpx;
color: #FF5006;
}
.itemLay_bom_right2 {
margin-right: 36rpx;
font-size: 32rpx;
text-decoration-line: underline;
color: #E99D42;
}
.itemLay_bom_right3 {
font-size: 32rpx;
color: #E99D42;
text-decoration-line: underline;
}
}
.itemLay_bom_notice {
display: flex;
flex-direction: column;
.itemLay_bom_notice_content {
display: flex;
margin-top: 20rpx;
align-items: baseline;
.itemLay_bom_notice_content_text {
font-size: 28rpx;
color: #898989;
}
.itemLay_bom_notice_content_text2 {
font-size: 40rpx;
margin-left: 10rpx;
margin-right: 10rpx;
text-decoration-line: underline;
color: #E99D42;
}
}
}
}
}
/*下三角*/
.tip-bottom {
z-index: 1000;
margin: 20px;
padding: 5px;
width: 300px;
height: 60px;
border: 2px solid #f99;
position: relative;
background-color: #0FF;
/*设置圆角*/
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.tip-bottom:before,
.tip-bottom:after {
z-index: 1000;
content: "";
display: block;
border-width: 15px;
position: absolute;
bottom: -30px;
left: 200px;
border-style: solid dashed dashed solid;
border-color: #f99 transparent transparent transparent;
font-size: 0;
line-height: 0;
}
.tip-bottom:after {
z-index: 1000;
bottom: -27px;
border-color: #0FF transparent transparent transparent;
}
</style>