Commit cdcba47f authored by Mac's avatar Mac

1

parent 96518978
......@@ -570,6 +570,12 @@
"path":"postDetails"//招募贴详情
},{
"path":"sendimg"//评论图片发布
},{
"path":"stickSignUp"//招募贴报名
},{
"path":"personal/mysignupList"//我的报名列表
},{
"path":"baomingList"//招募贴查看报名列表
}]
},
//韩国馆项目 { "root": "pages/kotra", "pages": [{ "path": "contanctus" },{ "path": "contanctDetail" },{ "path": "compInformation" },{
......
<template>
<view class="baomingList" :style="{ height: contentHeight }">
<u-empty v-if="g.length == 0" text="暂无报名记录" mode="list"></u-empty>
<view
v-if="g.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%' }"
>
<view class="ftBox" v-if="type==0">
<view class="interDList" v-for="(x, i) in g" :key="i">
<view style="position: relative;">
<u-avatar :src="x.Photo" size="80"></u-avatar>
<image v-if="x.Sex==1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan.png" style="width: 32rpx;height: 32rpx;position: absolute;right: 0;bottom: 0;"></image>
<image v-if="x.Sex==2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv.png" style="width: 32rpx;height: 32rpx;position: absolute;right: 0;bottom: 0;"></image>
</view>
<view :style="{'width':(windowWidth-30-45-20-30)+'px','margin-left':'10px'}">
<view class="teinfo">{{x.UserName}}</view>
<view class="teinfo2" >
</view>
</view>
<view class="gzbtn" @click.stop="setFollowTeacher(x,i)" >
<view class="iconstyle" :style="{background:mainColor}" v-if="x.IsFocus==1">
<u-icon name="success" color="#FFF" size="32"></u-icon>
</view>
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-hu.png" style="width: 50rpx;height: 50rpx;" v-if="x.IsFocus==2"></image>
<view class="iconstyle" :style="{background:mainColor}" v-else>
<u-icon name="plus" color="#FFF" size="32"></u-icon>
</view>
</view>
</view>
</view>
<view v-if="type==1" class="ftBox">
<view v-for="(x, i) in g" :key="i">
<view class="interDList" style="border-bottom: none;">
<view style="position: relative;">
<u-avatar :src="x.Photo" size="80"></u-avatar>
<image v-if="x.Sex==1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan.png" style="width: 32rpx;height: 32rpx;position: absolute;right: 0;bottom: 0;"></image>
<image v-if="x.Sex==2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv.png" style="width: 32rpx;height: 32rpx;position: absolute;right: 0;bottom: 0;"></image>
</view>
<view class="interDList-r" :style="{'width':(windowWidth-30-45-20-30)+'px','margin-left':'10px'}">
<view class="teinfo">{{x.UserName}}</view>
<view class="teinfo2" style="font-size: 11px">
<u-icon name="contact" :size="24" color="#999999" style='margin-right: 5px;' ></u-icon>
<view style="max-width: 200rpx;overflow: hidden;white-space: nowrap;text-overflow: ellipsis">{{x.Name}}</view>
<u-icon name="friends-o" :size="24" color="#999999" style='margin-right: 5px;margin-left: 10px;' ></u-icon>
<view>{{x.PeopleNum}}</view>
<u-icon name="phone-o" :size="24" color="#999999" style='margin-right: 5px;margin-left: 10px;' ></u-icon>
<view>{{x.Mobile}}</view>
</view>
</view>
<view class="gzbtn" @click.stop="setFollowTeacher(x,i)" >
<view class="iconstyle" :style="{background:mainColor}" v-if="x.IsFocus==1">
<u-icon name="success" color="#FFF" size="32"></u-icon>
</view>
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-hu.png" style="width: 50rpx;height: 50rpx;" v-if="x.IsFocus==2"></image>
<view class="iconstyle" :style="{background:mainColor}" v-else>
<u-icon name="plus" color="#FFF" size="32"></u-icon>
</view>
</view>
</view>
<view class="box-Remark" v-if="x.Remark!=''">
{{x.Remark}}
</view>
</view>
</view>
<u-loadmore
:status="status"
:load-text="loadText"
:font-size="24"
:margin-top="20"
:margin-bottom="20"
bg-color="#FFF"
/>
</scroll-view>
</view>
<!-- 加载中 -->
<view class="loading" v-if="loading">
<u-loading mode="flower" size="48">></u-loading>
<Text style="color: #fff; margin-top: 10rpx;">加载中...</Text>
</view>
<!-- 取消提示 -->
</view>
</template>
<script>
export default {
data() {
return {
pageTitle: "报名列表",
showAuth:false,
msg:{
pageIndex: 1,
pageSize:10,
ActivityId:0,
},
type:0,
mainColor: "",
secondary:'',
pricecolor:'',
contentHeight: 0,
page: 1,
page_count: 1,
g: [],
loading: false,
status: "loadmore",
count:0,
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
nomore: "没有更多了",
},
windowWidth:0,
};
},
created() {
this.contentHeight = this.$utils.calcContentHeight(-40) + "px";
this.mainColor = this.$uiConfig.mainColor;
this.secondary = this.$uiConfig.secondary;
this.pricecolor = this.$uiConfig.pricecolor;
this.windowWidth = this.$utils.SystemInfo().windowWidth;
},
mounted() {
let currentPages = getCurrentPages();
let u = "/" + currentPages[currentPages.length - 1].route;
let pages = wx.getStorageSync("basedata")
? wx.getStorageSync("basedata").bar_title
: [];
pages.forEach((x) => {
if (x.value == u) {
this.pageTitle = x.new_name ? x.new_name : x.name;
}
});
uni.setNavigationBarTitle({
title: this.pageTitle,
});
},
onLoad(options){
console.log(options)
if(options){
this.type= options.type;
this.msg.ActivityId= options.ActivityId;
}
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
} else{
this.init();
}
},
methods: {
init() {
this.loading = true;
this.request2(
{
url: '/api/AppletMiai/GetActivityEnrollPageList',
data: this.msg
},
res => {
if(res.resultCode==1){
this.loading = false;
this.count = res.data.count;
this.g = this.g.concat(res.data.pageData);
this.page_count = res.data.pageCount;
if (this.page_count == 1) {
this.status = "nomore";
}
}
}
);
},
setFollowTeacher(x,i){
this.request2({
url: '/api/AppletEducation/baomingList',
data: {
ID: x.ID,
TeacherId:x.TeacherId,
}
},
res => {
this.g.splice(i,1)
this.count--
uni.showToast({
title: res.message,
icon: 'none',
duration: 2000
});
}
);
},
lower(e) {
if (this.msg.pageIndex < this.page_count) {
this.msg.pageIndex++;
this.status = "loading";
this.init();
} else {
this.status = "nomore";
}
},
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
// this.showAuth=false;
this.init();
},
//关闭登录窗口
gbAuth(){
uni.navigateBack()
},
},
};
</script>
<style>
.baomingList {
width: 100%;
height: 100vh;
background: #FFF;
}
.baomingList .loading {
width: 200rpx;
height: 200rpx;
background: #000000;
opacity: 0.7;
border-radius: 10rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: fixed;
left: 50%;
top: 30%;
margin-left: -100rpx;
z-index: 999;
}
.baomingList .interDList{
width:calc(100vw - 30px) ;
display: flex;
flex-direction: row;
align-items: center;
padding: 15px 0;
border-bottom: 1px solid #f5f5f5;
}
.baomingList .followTeacher-top{
width: 100%;
height: 35px;
padding: 0 15px;
display: flex;
flex-direction: row;
align-items: center;
font-size: 11px;
color: #999999;
background: #FAF8F9;
}
.baomingList .ftBox{
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.baomingList .teinfo{
width: 100%;
overflow: hidden;white-space: nowrap;text-overflow: ellipsis;
font-size: 15px;
}
.baomingList .gzbtn{
width: 69px;
height: 26px;
border-radius: 4px;
margin-left: 8px;
color: #111111;
display: flex;
align-items: flex-end;
justify-content: center;
font-size: 13px;
}
.iconstyle{
width: 50rpx;
height: 50rpx;
border-radius: 25rpx;
display: flex;
align-items: center;
justify-content: center;
}
.interDList-r{
height: 40px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.teinfo2{
display: flex;
align-items: center;
}
.box-Remark{
width: calc(100vw - 30px - 80rpx - 20rpx);
padding: 14px 10px;
background: #EDEDED;
font-size: 11px;
color: #777777;
margin-left: 100rpx;
border-radius: 6px;
}
</style>
......@@ -19,19 +19,19 @@
<view class="ftBox">
<view class="interDList" v-for="(x, i) in g" :key="i">
<view style="position: relative;">
<u-avatar :src="x.TeacherLogo" size="80"></u-avatar>
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan.png" style="width: 32rpx;height: 32rpx;position: absolute;right: 0;bottom: 0;"></image>
<!-- <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv.png" style="width: 32rpx;height: 32rpx;position: absolute;right: 0;bottom: 0;"></image> -->
<u-avatar :src="x.Photo" size="80"></u-avatar>
<image v-if="x.Sex==1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan.png" style="width: 32rpx;height: 32rpx;position: absolute;right: 0;bottom: 0;"></image>
<image v-if="x.Sex==1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv.png" style="width: 32rpx;height: 32rpx;position: absolute;right: 0;bottom: 0;"></image>
</view>
<view :style="{'width':(windowWidth-30-45-20-30)+'px','margin-left':'10px'}">
<view class="teinfo">{{x.Name}}</view>
<!-- <view class="teinfo" style="margin-top: 10px;font-size: 11px;color: #999999;">{{x.Major}}</view> -->
</view>
<view class="gzbtn" @click.stop="setFollowTeacher(x,i)" >
<view class="iconstyle" :style="{background:mainColor}">
<view class="gzbtn" >
<view class="iconstyle" :style="{background:mainColor}" v-if="x.IsMutualFollow==0" @click.stop="setFollowTeacher(x,i)">
<u-icon name="plus" color="#FFF" size="32"></u-icon>
</view>
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-hu.png" style="width: 50rpx;height: 50rpx;"></image>
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-hu.png" style="width: 50rpx;height: 50rpx;" v-if="x.IsMutualFollow==1" @click.stop="setFollowTeacher(x,i)"></image>
</view>
</view>
</view>
......@@ -72,7 +72,7 @@ export default {
showAuth:false,
msg:{
pageIndex: 1,
pageSize:10,
pageSize:20,
},
mainColor: "",
secondary:'',
......@@ -83,7 +83,6 @@ export default {
g: [],
loading: false,
status: "loadmore",
count:0,
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
......@@ -133,16 +132,13 @@ export default {
this.loading = true;
this.request2(
{
url: '/api/AppletEducation/GetFollowTeacherPageList',
url: '/api/AppletMiai/GetFollowFansPageList',
data: this.msg
},
res => {
if(res.resultCode==1){
this.loading = false;
this.count = res.data.count;
// res.data.pageData.forEach(x=>{
// x.fanlist=1;//1为关注
// })
this.g = this.g.concat(res.data.pageData);
this.page_count = res.data.pageCount;
if (this.page_count == 1) {
......@@ -154,21 +150,30 @@ export default {
},
setFollowTeacher(x,i){
this.request2({
url: '/api/AppletEducation/fanlist',
url: '/api/AppletMiai/GetFollowMember',
data: {
ID: x.ID,
TeacherId:x.TeacherId,
ID: x.MutualFollowId,
UserId:x.CreateBy,
}
},
res => {
this.g.splice(i,1)
this.count--
uni.showToast({
title: res.message,
icon: 'none',
duration: 2000
});
title:res.message,
icon:'none'
})
this.request2(
{
url: '/api/AppletMiai/GetFollowFansPageList',
data: {pageIndex:1,pageSize:20,ID:x.ID}
},
res => {
if(res.resultCode==1){
this.g[i] = res.data.pageData[0]
this.$forceUpdate()
}
}
);
}
);
},
......@@ -257,7 +262,7 @@ export default {
color: #111111;
display: flex;
align-items: center;
justify-content: center;
justify-content: flex-end;
font-size: 13px;
}
.iconstyle{
......
......@@ -20,8 +20,8 @@
<view class="interDList" v-for="(x, i) in g" :key="i">
<view style="position: relative;">
<u-avatar :src="x.TeacherLogo" size="80"></u-avatar>
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan.png" style="width: 32rpx;height: 32rpx;position: absolute;right: 0;bottom: 0;"></image>
<!-- <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv.png" style="width: 32rpx;height: 32rpx;position: absolute;right: 0;bottom: 0;"></image> -->
<image v-if="x.Sex==1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan.png" style="width: 32rpx;height: 32rpx;position: absolute;right: 0;bottom: 0;"></image>
<image v-if="x.Sex==2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv.png" style="width: 32rpx;height: 32rpx;position: absolute;right: 0;bottom: 0;"></image>
</view>
<view :style="{'width':(windowWidth-30-45-20-30)+'px','margin-left':'10px'}">
<view class="teinfo">{{x.Name}}</view>
......@@ -69,11 +69,11 @@ export default {
},
data() {
return {
pageTitle: "粉丝",
pageTitle: "关注",
showAuth:false,
msg:{
pageIndex: 1,
pageSize:10,
pageSize:20,
},
mainColor: "",
secondary:'',
......@@ -84,7 +84,7 @@ export default {
g: [],
loading: false,
status: "loadmore",
count:0,
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
......@@ -134,16 +134,12 @@ export default {
this.loading = true;
this.request2(
{
url: '/api/AppletEducation/GetFollowTeacherPageList',
url: '/api/AppletMiai/GetFollowTeacherPageList',
data: this.msg
},
res => {
if(res.resultCode==1){
this.loading = false;
this.count = res.data.count;
// res.data.pageData.forEach(x=>{
// x.followlist=1;//1为关注
// })
this.g = this.g.concat(res.data.pageData);
this.page_count = res.data.pageCount;
if (this.page_count == 1) {
......
<template>
<view class="mysignupList" :style="{ height: contentHeight }">
<u-tabs
:list="list"
:is-scroll="false"
:current="current"
@change="change"
:active-color="mainColor"
></u-tabs>
<u-empty v-if="g.length == 0" text="暂无报名记录" mode="list"></u-empty>
<view
v-if="g.length > 0"
style="
height: calc(100vh - 50px);
width: calc(100vw);
overflow: hidden;
padding-bottom: 50px;
"
>
<scroll-view
:scroll-y="true"
:enable-back-to-top="true"
:enable-flex="true"
@scrolltolower="lower"
:style="{ height: '100%' }"
>
<view class="details">
<view class="item" v-for="(x, i) in g" :key="i" >
<view class="box-top">
<image :src="x.ActivityModel.ImageList[0]" mode="aspectFill" style="width: 110px;height: 67px;border-radius: 8px;"></image>
<view style="margin-left: 10px;height: 67px;">
<view class="box-title">{{x.ActivityModel.ActivityTitle}}</view>
<view class="box-top-r-b">
<u-icon name="contact" :size="24" color="#999999" style='margin-right: 5px;' ></u-icon>
<view style="max-width: 70px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis">{{x.Name}}</view>
<u-icon name="friends-o" :size="24" color="#999999" style='margin-right: 5px;margin-left: 10px;' ></u-icon>
<view>{{x.PeopleNum}}</view>
<u-icon name="phone-o" :size="24" color="#999999" style='margin-right: 5px;margin-left: 10px;' ></u-icon>
<view>{{x.Mobile}}</view>
</view>
</view>
</view>
<view class="box-Remark">
<view class="box-Remark-top">
<view style="width: calc(100vw - 110px);">
Remark:{{x.Remark==''?'无':x.Remark}}
</view>
<view class="box-Remark-top-r" style="color: #00C6C1;" v-if="x.Status==0">已报名</view>
<view class="box-Remark-top-r" style="color: #FF4646;" v-if="x.Status==1">已取消</view>
</view>
<view class="box-Remark-b" v-if="x.Status==0">
<view class="box-Remark-btn" @click="cancel(x,i)">
取消
</view>
</view>
</view>
</view>
</view>
<u-loadmore
:status="status"
:load-text="loadText"
:font-size="24"
:margin-top="20"
:margin-bottom="20"
bg-color="#FFF"
/>
</scroll-view>
</view>
<!-- 加载中 -->
<view class="loading" v-if="loading">
<u-loading mode="flower" size="48">></u-loading>
<Text style="color: #fff; margin-top: 10rpx;">加载中...</Text>
</view>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'gbAuth'></auth>
<u-modal v-model="show" content="是否取消报名?" :show-cancel-button='true' @confirm='queren'></u-modal>
</view>
</template>
<script>
import auth from "@/components/auth/index.vue";
export default {
components: {
auth
},
data() {
return {
pageTitle: "报名列表",
showAuth:false,
u:{},
show:false,
current:0,
list: [
{ name: "不限" },
{ name: "正常" },
{ name: "取消" },
],
mainColor: "",
contentHeight: 0,
msg:{
pageIndex: 1,
pageSize:10,
Status:-1
},
page_count: 1,
g: [],
loading: false,
status: "loadmore",
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
nomore: "没有更多了",
},
bmobj:{}
};
},
created() {
this.contentHeight = this.$utils.calcContentHeight(-40) + "px";
this.mainColor = this.$uiConfig.mainColor;
},
mounted() {
let currentPages = getCurrentPages();
let u = "/" + currentPages[currentPages.length - 1].route;
let pages = wx.getStorageSync("basedata")
? wx.getStorageSync("basedata").bar_title
: [];
pages.forEach((x) => {
if (x.value == u) {
this.pageTitle = x.new_name ? x.new_name : x.name;
}
});
uni.setNavigationBarTitle({
title: this.pageTitle,
});
},
onLoad: function (option) {
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
} else{
this.init();
}
},
methods: {
change(index) {
this.current = index
this.msg.Status = index-1;
this.msg.pageIndex = 1;
this.g = [];
this.loading = true;
this.init();
},
init() {
this.request2(
{
url: '/api/AppletMiai/GetMyEnrollPageList',
data: this.msg
},
res => {
if(res.resultCode==1){
this.loading = false;
this.g = this.g.concat(res.data.pageData);
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";
}
},
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
// this.showAuth=false;
this.init();
},
//关闭登录窗口
gbAuth(){
uni.navigateBack()
},
cancel(x,i){
this.bmobj={
EnrollId:x.Id,
index:i
}
this.show=true
},
queren(){
this.request2(
{
url: '/api/AppletMiai/CancelActivityEnrollInfo',
data: {EnrollId:this.bmobj.EnrollId}
},
res => {
if(res.resultCode==1){
uni.showToast({
title: '取消成功',
icon: 'success',
})
if(this.msg.Status == 0){
this.g.splice(this.bmobj.index,1)
}else{
this.g[this.bmobj.index].Status=1;
this.$forceUpdate()
}
}
}
);
}
},
};
</script>
<style>
.mysignupList {
width: 100%;
height: 100%;
background: #FFF;
position: relative;
}
.mysignupList .loading {
width: 180rpx;
height: 180rpx;
background: #000000;
opacity: 0.7;
border-radius: 10rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: fixed;
left: 50%;
top: 30%;
margin-left: -100rpx;
z-index: 999;
}
.mysignupList .details{
padding: 15px;
display: flex;
flex-direction: column;
}
.mysignupList .item{
margin-bottom: 15px;
}
.mysignupList .box-top{
width: 100%;
height: 67px;
display: flex;
align-items: center;
}
.mysignupList .box-title{
width: calc(100vw - 30px - 110px - 10px);
font-size: 15px;
color: #000000;font-weight: 500;
line-height: 22px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.mysignupList .box-top-r-b{
width: 100%;
display: flex;
align-items: center;
font-size: 11px;
color: #666666;
margin-top: 8px;
}
.mysignupList .box-Remark{
width: 100%;
padding: 14px 10px;
font-size: 11px;
color: #777777;
background: #EDEDED;
margin-top: 13px;
border-radius: 6px;
}
.mysignupList .box-Remark-top{
width: 100%;
display: flex;
align-items: flex-start;
justify-content: space-between;
}
.mysignupList .box-Remark-top-r{
font-size: 11px;
}
.mysignupList .box-Remark-b{
width: 100%;
display: flex;
justify-content: flex-end;
margin-top: 5px;
}
.mysignupList .box-Remark-btn{
width: 60px;
height: 25px;
border-radius: 12.5px;
border:1px solid #333333;
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
color: #333333;
}
</style>
......@@ -180,8 +180,8 @@
<view class="pd-portrait">
<view class="pd-portrait-l">
<u-avatar v-if='mall_UserInfo.Photo' :src="mall_UserInfo.Photo" size="140" ></u-avatar>
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan.png" style="width: 36rpx;height: 36rpx;position: absolute;right: 0;bottom: 0;"></image>
<!-- <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv.png" style="width: 36rpx;height: 36rpx;position: absolute;right: 0;bottom: 0;"></image> -->
<image v-if="dataList.Sex==1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan.png" style="width: 36rpx;height: 36rpx;position: absolute;right: 0;bottom: 0;"></image>
<image v-if="dataList.Sex==2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv.png" style="width: 36rpx;height: 36rpx;position: absolute;right: 0;bottom: 0;"></image>
</view>
<view class="pd-portrait-c">
<view class="pd-portrait-ct">
......@@ -193,9 +193,18 @@
未认证
</view>
</view>
<view class="guanzhu" :style="{background:mainColor}">
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==0" @click="dianjiguanzhu(dataList.IsFollow)">
关注
</view>
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==1">
已关注
</view>
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==2">
被关注
</view>
<view class="guanzhu" :style="{background:mainColor}" v-if="dataList.IsFollow==3">
互关
</view>
</view>
</view>
</view>
......@@ -369,6 +378,23 @@
uni.navigateTo({
url: '/pages/blindDate/personal/editmaterial?UserId='+this.UserId
});
},
dianjiguanzhu(ID){//关注操作
this.request2(
{
url: '/api/AppletMiai/GetFollowMember',
data: {ID:ID,UserId:this.UserId}
},
res => {
if(res.resultCode==1){
uni.showToast({
title:res.message,
icon:'none'
})
this.init()
}
}
);
}
}
}
......
......@@ -81,12 +81,13 @@
}
.postDetails .esignup{
width: 100%;
height: 85px;
height: 70px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-top: 1px solid #E2E2E2;
margin-top: 10px;
}
.postDetails .esignup-b{
margin-top: 15px;
......@@ -126,6 +127,7 @@
justify-content: center;
font-size: 14px;
color: #FFFFFF;
background: #CCCCCC;
}
.postDetails .btn2{
width: 100%;
......@@ -266,6 +268,20 @@
border-radius: 3px;
}
.popup-box{
width: 100%;
border-top-right-radius: 8px;
border-top-left-radius: 8px;
background: #FFF;
}
.popup-box-item{
width: 100%;
height: 40px;
border-bottom: 1px solid #E7E7E7;
display: flex;
align-items: center;
justify-content: center;
}
</style>
<template>
<view class="postDetails">
......@@ -290,7 +306,7 @@
<view class="details-info">
<view class="details-info-l">
<view style="width: 35px;height: 35px;border-radius: 50%;position: relative;">
<image :src="details.Photo" style="width: 100%;height: 100%;border-radius: 50%;"></image>
<u-avatar :src="details.Photo" size="70"></u-avatar>
<image class="gstyle" v-if="details.Sex==1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan-b.png" ></image>
<image class="gstyle" v-if="details.Sex==2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv-b.png" ></image>
</view>
......@@ -301,7 +317,7 @@
</view>
</view>
</view>
<view class="details-info-r" :style="{background:mainColor}">
<view v-if='details.UserId!=sendMsg.ReplyUserId' class="details-info-r" :style="{background:mainColor}">
{{details.IsFocus==true?'已关注':'关注'}}
</view>
</view>
......@@ -317,17 +333,17 @@
<image :src="x" mode="widthFix" class="imgs" @click="previewImage(i,details.ImageList)"></image>
</view>
</view>
<view class="esignup">
<view class="esignup" v-if="details.IsOpenEnroll==1">
<view v-if='Enrollcount==0' style="font-size: 12px;color: #111111;">暂无人报名</view>
<view v-if='Enrollcount>0'>
{{EnrollList[0].UserName}}{{Enrollcount}}人已报名
</view>
<view class="esignup-b">
<view class="esignup-b" @click="gobmlist" v-if='Enrollcount>0'>
<image :src="x.Photo" v-for="(x, i) in EnrollList" :key="i" style="width: 22px;height: 22px;border-radius: 50%;margin-right: 5px;"></image>
<view style="padding: 0 5px;height: 22px;border-radius: 11px;font-size: 11px;color: #FFFFFF;display: flex;align-items: center;justify-content: center;">{{Enrollcount}}</view>
<view style="padding: 0 15px;height: 22px;border-radius: 11px;font-size: 11px;color: #FFFFFF;background: #CCCCCC;display: flex;align-items: center;justify-content: center;">{{Enrollcount}}</view>
</view>
</view>
<view style="font-size: 16px;color: #111111;display: flex;align-items: center;font-weight: bold;">
<view style="font-size: 16px;color: #111111;display: flex;align-items: center;font-weight: bold;margin-top: 15px;">
<text>评论</text>
<text style="margin-left: 15px;">({{details.ReplyNum}})</text>
</view>
......@@ -335,10 +351,10 @@
<u-empty v-if="g.length == 0" text="暂无回复" mode="list"></u-empty>
<view v-if="g.length > 0">
<view v-for="(x, i) in g" :key="i" style="width: 100%;">
<view class="pl-top">
<view class="pl-top" @click="replyone(x)" @longpress='longpress(x,i,1)'>
<view style="display: flex;align-items: center;">
<view style="width: 30px;height: 30px;border-radius: 50%;position: relative;">
<image :src="x.Photo" style="width: 100%;height: 100%;border-radius: 50%;"></image>
<u-avatar :src="x.Photo" size="60"></u-avatar>
<image class="gstyle" v-if="x.Sex==1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan-b.png" ></image>
<image class="gstyle" v-if="x.Sex==2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv-b.png" ></image>
</view>
......@@ -348,7 +364,7 @@
{{x.CreateDate.split(' ')[0].split('-')[1]}}-{{x.CreateDate.split(' ')[0].split('-')[2]}}
</view>
</view>
<view class="pl-content pl-left" @click="replyone(x)">
<view class="pl-content pl-left" @click="replyone(x)" @longpress='longpress(x,i,1)'>
{{x.Content}}
</view>
<view class="pl-imgs pl-left" v-if="x.ImageList.length>0">
......@@ -385,9 +401,12 @@
<view class="btn-l" @click="showreply=true">
说点什么呗
</view>
<view class="btn-r" :style="{background:mainColor}">
<view class="btn-r" v-if="details.IsOpenEnroll==1" :style="{background:mainColor}" @click="gosigUp()">
立即报名
</view>
<view class="btn-r" v-if="details.IsOpenEnroll==2" >
暂无活动
</view>
</view>
<view class="btn2" v-if="showreply==true">
<view class="btn2-l">
......@@ -427,7 +446,7 @@
<view class="pl-top">
<view style="display: flex;align-items: center;">
<view style="width: 30px;height: 30px;border-radius: 50%;position: relative;">
<image :src="twodata.Photo" style="width: 100%;height: 100%;border-radius: 50%;"></image>
<u-avatar :src="twodata.Photo" size="60"></u-avatar>
<image class="gstyle" v-if="twodata.Sex==1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan-b.png" ></image>
<image class="gstyle" v-if="twodata.Sex==2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv-b.png" ></image>
</view>
......@@ -451,10 +470,11 @@
<view class="twolist">
<view>{{twocount}}条回复</view>
<view v-for="(x, i) in g2" :key="i">
<view class="pl-top">
<view class="pl-top" @click="replyone(x,2)" @longpress='longpress(x,i,2)'>
<view style="display: flex;align-items: center;">
<view style="width: 30px;height: 30px;border-radius: 50%;position: relative;">
<image :src="x.Photo" style="width: 100%;height: 100%;border-radius: 50%;"></image>
<u-avatar :src="x.Photo" size="60"></u-avatar>
<image class="gstyle" v-if="x.Sex==1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan-b.png" ></image>
<image class="gstyle" v-if="x.Sex==2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv-b.png" ></image>
</view>
......@@ -464,7 +484,7 @@
{{x.CreateDate.split(' ')[0].split('-')[1]}}-{{x.CreateDate.split(' ')[0].split('-')[2]}}
</view>
</view>
<view class="pl-content pl-left" @click="replyone(x,2)">
<view class="pl-content pl-left" @click="replyone(x,2)" @longpress='longpress(x,i,2)'>
<text v-if="x.ReplyUserName!=''">回复 <text :style="{color:mainColor}">{{x.ReplyUserName}}</text></text>
{{x.Content}}
</view>
......@@ -488,6 +508,21 @@
</view>
</u-popup>
<u-popup v-model="show" mode="bottom" border-radius='14'>
<view class="popup-box">
<view class="popup-box-item" @click="paste()">
复制
</view>
<view class="popup-box-item" @click="mydelete()">
删除
</view>
<view style="width: 100%;height: 10px;background: #E7E7E7;"></view>
<view class="popup-box-item" @click="show=false" style="height: 45px;">
取消
</view>
</view>
</u-popup>
</view>
</template>
......@@ -538,9 +573,17 @@
ReplyUserId:0,//回复用户id
ImageList:[],//图片列表
},
show:false,
ParentName:'',
twodata:{},//弹窗的数据
twocount:0,
delete:{//删除评论的
DiscussId:0,
Copycontent:'',
index:0,
type:1,
},
}
},
created() {
......@@ -606,6 +649,7 @@
this.EnrollList = res.data.pageData;
this.Enrollcount = res.data.count;
}
);
},
......@@ -767,6 +811,60 @@
}
);
},
longpress(x,i,type){
if(this.sendMsg.ReplyUserId == this.details.UserId || this.sendMsg.ReplyUserId == x.UserId ){
this.delete.DiscussId = x.Id
this.delete.Copycontent = x.Content
this.delete.index = i
this.delete.type = type
this.show=true;
}
},
paste(){
uni.setClipboardData({
data: this.delete.Copycontent,
});
this.show= false;
},
mydelete(){//删除评论
this.request2({
url: '/api/AppletMiai/DelActivityDiscussInfo',
data: {DiscussId:this.delete.DiscussId}
},
res => {
if (res.resultCode == 1) {
if(this.delete.type==1){
this.g.splice(this.delete.index,1)
}else{
this.g2.splice(this.delete.index,1)
}
uni.showToast({
title: res.message,
icon: 'none',
duration: 2000
});
this.show = false;
}
}
);
},
gosigUp(){//报名页面
let details = encodeURIComponent(JSON.stringify(this.details))
uni.navigateTo({
url: '/pages/blindDate/stickSignUp?details=' + details
})
},
gobmlist(){//查看当前活动的报名列表
let type =0
if(this.details.UserId==this.sendMsg.ReplyUserId){//如果是自己看自己的招募贴
type =1
}
uni.navigateTo({
url: '/pages/blindDate/baomingList?type=' + type +'&ActivityId='+this.details.Id
})
}
}
......
......@@ -320,6 +320,13 @@ export default {
})
return
}
if(this.addMsg.ImageList.length == 0){
uni.showToast({
title: '请上传招募贴图片',
icon: 'none',
})
return
}
let pages = getCurrentPages(); // 当前页面
let beforePage = pages[pages.length - 2]; // 前一个页面
uni.showLoading({
......
<style>
.stickSignUp {
width: 100%;
height: 100vh;
background: #FFF;
}
.stickSignUp .box{
padding: 15px;
border-bottom: 1px solid #E2E2E2;
}
.stickSignUp .box-top{
width: 100%;
height: 67px;
display: flex;
align-items: center;
}
.stickSignUp .box-title{
width: calc(100vw - 30px - 110px - 10px);
height: 67px;
font-size: 15px;
color: #000000;font-weight: 500;
line-height: 22px;
margin-left: 10px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.stickSignUp .box-c{
padding: 15px;
}
.stickSignUp .box-c-i{
width: 100%;
height: 52px;
display:flex;
align-items: center;
border-bottom: 1px solid #E2E2E2;
}
.stickSignUp .box-c-i input{
font-size: 12px;
width: calc(100vw - 30px - 70px);
}
.stickSignUp .box-c-l{
width: 70px;
font-size: 12px;
color: #666666;
}
.btn{
width: 100%;
height: 45px;
border-radius: 22px;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
color: #FFFFFF;
margin: 30px 0;
}
</style>
<template>
<view class="stickSignUp" >
<view class="box">
<view class="box-top">
<image :src="details.ImageList[0]" mode="aspectFill" style="width: 110px;height: 67px;border-radius: 8px;"></image>
<view class="box-title">{{details.ActivityTitle}}</view>
</view>
</view>
<view class="box-c">
<view style="font-size: 16px;color: #111111;">请填写报名资料</view>
<view class="box-c-i">
<view class="box-c-l">姓名</view>
<input type="text" v-model="addMsg.Name" placeholder="请填写姓名">
</view>
<view class="box-c-i">
<view class="box-c-l">联系电话</view>
<input type="number" v-model="addMsg.Mobile" placeholder="请填写联系电话">
</view>
<view class="box-c-i">
<view class="box-c-l">报名人数</view>
<u-number-box v-model="addMsg.PeopleNum" :min='1' ></u-number-box>
</view>
<view class="box-c-i">
<view class="box-c-l">备注</view>
<input type="text" v-model="addMsg.Remark" placeholder="请填写备注内容">
</view>
<view class="btn" @click="signup" :style="{background:mainColor}">
报名
</view>
</view>
</view>
</template>
<script>
export default {
components: {
},
data() {
return {
pageTitle: "报名订单",
mainColor:'',
details:{},
addMsg:{
ActivityId:0,
Name:'',
Mobile:'',
PeopleNum:1,
Remark:'',
}
};
},
created() {
this.contentHeight = this.$utils.calcContentHeight(-40) + "px";
this.mainColor = this.$uiConfig.mainColor;
},
mounted() {
uni.setNavigationBarTitle({
title: this.pageTitle,
});
},
onLoad: function (option) {
this.details = JSON.parse(decodeURIComponent(option.details))
this.addMsg.ActivityId = this.details.Id
},
methods: {
signup(){
if(this.addMsg.Name == ''){
uni.showToast({
title: '请填写姓名',
icon: 'none',
})
return
}
if(this.addMsg.Mobile == ''){
uni.showToast({
title: '请填写联系电话',
icon: 'none',
})
return
}
this.request2({
url: '/api/AppletMiai/SetActivityEnrollInfo',
data: this.addMsg
},
res => {
if (res.resultCode == 1) {
uni.showToast({
title:'报名成功',
icon: 'none',
duration: 2000
});
uni.redirectTo({
url: '/pages/blindDate/personal/mysignupList'
})
}
}
);
}
},
};
</script>
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