commit
This commit is contained in:
@@ -27,6 +27,7 @@ layout("/mobile/platform.html"){
|
||||
.van-button--small {
|
||||
border-radius: 6px;
|
||||
height: 26px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.van-col {
|
||||
@@ -216,14 +217,14 @@ layout("/mobile/platform.html"){
|
||||
<van-divider></van-divider>
|
||||
|
||||
<div style="display: flex; justify-content: flex-end">
|
||||
<div>
|
||||
<van-button @click="openInfo(o, 'view')" color="#1867b0"
|
||||
size="small" style="margin-right: 8px" type="primary">
|
||||
查看
|
||||
</van-button>
|
||||
<van-button @click="openInfo(o, 'view')" color="#1867b0"
|
||||
size="small" style="margin-right: 8px" type="primary">
|
||||
查看
|
||||
</van-button>
|
||||
<div v-if="o.state > 800">
|
||||
<van-button @click="rollback(o)" color="#1867b0"
|
||||
size="small" style="margin-right: 8px" type="primary"
|
||||
v-if="pageForm.isjr === true && o.status==1">撤销申请
|
||||
v-if="pageForm.isjr === true && o.status==1">撤回申请
|
||||
</van-button>
|
||||
<van-button @click="openInfo(o, 'join')"
|
||||
color="#1867b0" v-if="pageForm.isjr === false"
|
||||
@@ -231,6 +232,25 @@ layout("/mobile/platform.html"){
|
||||
我要加入
|
||||
</van-button>
|
||||
</div>
|
||||
<div v-else>
|
||||
<template v-if="o.status == 7">
|
||||
<van-button @click="rollbackInvite(o)" color="#1867b0"
|
||||
size="small" style="margin-right: 8px" type="primary">撤回
|
||||
</van-button>
|
||||
</template>
|
||||
<template v-else>
|
||||
<van-button @click="inviteNotAgree(o)"
|
||||
color="#1867b0" v-if="pageForm.isjr === false"
|
||||
size="small" style="margin-right: 8px" type="primary">
|
||||
不同意
|
||||
</van-button>
|
||||
<van-button @click="openInfo(o, 'join')"
|
||||
color="#1867b0" v-if="pageForm.isjr === false"
|
||||
size="small" style="margin-right: 8px" type="primary">
|
||||
同意
|
||||
</van-button>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -436,6 +456,28 @@ layout("/mobile/platform.html"){
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async rollbackInvite(o) {
|
||||
const confirm = await vant.Dialog.confirm({
|
||||
title: '提示',
|
||||
message: '您确定要撤回吗?',
|
||||
})
|
||||
if (confirm === "confirm") {
|
||||
const resp = await $.post('/platform/sys/club/sq/rollbackInvite', {clubId: o.id})
|
||||
vant.Toast(resp.msg)
|
||||
this.doSearch()
|
||||
}
|
||||
},
|
||||
async inviteNotAgree(o) {
|
||||
const confirm = await vant.Dialog.confirm({
|
||||
title: '提示',
|
||||
message: '您确定要不同意的' + o.name + '的入会邀请吗?',
|
||||
})
|
||||
if (confirm === "confirm") {
|
||||
const resp = await $.post('/platform/sys/club/sq/inviteNotAgree', {clubId: o.id})
|
||||
vant.Toast(resp.msg)
|
||||
this.doSearch()
|
||||
}
|
||||
},
|
||||
showCode(type) {
|
||||
if(type === 'QQ' && this.clickRow.qqgroupcode) {
|
||||
const ids = JSON.parse(this.clickRow.qqgroupcode).map(o => FILE_DOMAIN + '/fileStreamPreview?id=' + o.id)
|
||||
@@ -444,6 +486,7 @@ layout("/mobile/platform.html"){
|
||||
const ids = JSON.parse(this.clickRow.wechatgroupcode).map(o => FILE_DOMAIN + '/fileStreamPreview?id=' + o.id)
|
||||
vant.ImagePreview({images: ids})
|
||||
}
|
||||
vant.Toast('暂无二维码')
|
||||
},
|
||||
doSearch() {
|
||||
this.pageForm.pageNumber = 1
|
||||
|
||||
Reference in New Issue
Block a user