Compare commits

...

9 Commits

Author SHA1 Message Date
dragon
8c06877c67 新增操作人 2024-12-10 17:10:46 +08:00
dragon
be82b67bab 图片显示新公会申请 2024-12-10 15:22:22 +08:00
dragon
da9368018a 新增新公会申请 2024-12-09 14:05:05 +08:00
khalil
c39b992e31 送礼明细-后台-增加房间 2024-12-06 14:27:31 +08:00
khalil
1aa6a67531 充值h5-后台-支持同地区下不同货币收款 2024-12-05 15:20:40 +08:00
khalil
a2fa4a8fbd ss公会-后台-奖励发放-默认分区阿拉伯 2024-12-03 18:59:55 +08:00
dragon
4ab5768849 修复装扮商城状态不生效问题 2024-12-03 18:19:34 +08:00
dragon
fa2d3975d2 修改文案 2024-12-03 18:09:16 +08:00
dragon
0fdcf097c8 新增id 2024-12-03 16:00:26 +08:00
10 changed files with 484 additions and 35 deletions

View File

@@ -260,4 +260,22 @@ export const removeMember = query => {
method: 'post',
params: query
});
};
// -审核列表
export const guildApplyList = query => {
return request({
url: '/admin/guildApply/list',
method: 'get',
params: query
});
};
// -审核操作
export const guildApplyAudit = query => {
return request({
url: '/admin/guildApply/audit',
method: 'post',
params: query
});
};

View File

@@ -11,19 +11,21 @@
<div id="toolbar">
<div class="col-sm-12">
<label for="searchType"
class="col-sm-4 control-label">地区:</label>
<div class="col-sm-6">
class="col-sm-2 control-label">地区:</label>
<div class="col-sm-8">
<select name="searchType"
id="searchType"
data-btn-class="btn-warning"
class="form-control">
</select>
</div>
<div class="col-sm-2">
<button id="btnSearch" class="btn btn-default">
<i class="glyphicon glyphicon-search"></i>查询
</button>
</div>
</div>
<button id="btnSearch"
class="btn btn-default">
<i class="glyphicon glyphicon-search"></i>查询
</button>
</div>
</div>
<div class="box-body"
@@ -60,9 +62,6 @@
<input type="hidden"
name="code"
id="code" />
<input type="hidden"
name="currency"
id="currency" />
<input type="hidden"
name="type"
id="type" />
@@ -76,9 +75,19 @@
id="name">
</div>
</div>
<div class="form-group">
<label for="currency"
class="col-sm-3 control-label">货币</label>
<div class="col-sm-9">
<input type="text"
readonly
class="form-control"
id="currency">
</div>
</div>
<div class="form-group">
<label for="rate"
class="col-sm-3 control-label">USD汇率</label>
class="col-sm-3 control-label">USD汇率</label>
<div class="col-sm-9">
<input type="text"
class="form-control"
@@ -324,9 +333,10 @@ export default {
$('#regionTable').bootstrapTable({
columns: [
{ field: 'name', title: '地区', align: 'center', width: '5%' },
{ field: 'currency', title: '货币', align: 'center', width: '5%'},
{
field: 'rate',
title: 'USD汇率',
title: 'USD汇率',
align: 'center',
width: '5%',
formatter: function (val, row, index) {
@@ -430,7 +440,7 @@ export default {
return '<img src="' + val + '" style="width:90px;height:90px;" alt="">'
}
},
{ field: 'regionName', title: '地区', align: 'center', width: '5%' },
{ field: 'currency', title: '货币', align: 'center', width: '5%' },
{
field: 'isEnabled',
title: '是否展示在充值H5',
@@ -823,7 +833,7 @@ export default {
var $select = $('#searchType');
for (let i = 0; i < array.length; i++) {
var $option = $('<option value="' + array[i].type + '" />');
$option.html(array[i].name);
$option.html(array[i].desc + '(' + array[i].name + ')');
if (i == 0) {
$option.attr('selected', true);
}

View File

@@ -171,7 +171,7 @@
>
<div class="col-sm-9">
<select name="dressType" id="vipLimit">
<option value="">无限制</option>
<option value="0">无限制</option>
<option value="1">VIP1</option>
<option value="2">VIP2</option>
<option value="3">VIP3</option>

View File

@@ -115,6 +115,38 @@
</template>
</el-table-column>
<el-table-column prop="adminName" align="center" label="操作人" />
<el-table-column
prop="guildContact"
align="center"
label="公会联系方式"
/>
<el-table-column align="center" prop="idCard" label="公会长身份证件">
<template v-slot="scope">
<el-image
style="width: 100px; height: 100px"
:src="scope.row.idCard"
:zoom-rate="1.1"
:preview-src-list="[scope.row.idCard]"
fit="scale-down"
preview-teleported="true"
hide-on-click-modal="true"
/>
</template>
</el-table-column>
<el-table-column prop="inviteErbanNo" align="center" label="邀请人ID" />
<el-table-column prop="inviteCheck" align="center" label="邀请人证明">
<template v-slot="scope">
<el-image
style="width: 100px; height: 100px"
:src="scope.row.inviteCheck"
:zoom-rate="1.1"
:preview-src-list="[scope.row.inviteCheck]"
fit="scale-down"
preview-teleported="true"
hide-on-click-modal="true"
/>
</template>
</el-table-column>
<!-- <el-table-column align="center" label="收款账户" width="300">
<template v-slot="scope">
<el-button

View File

@@ -503,7 +503,7 @@ export default {
if (val === 0) {
return "图片";
} else if (val === 1) {
return "无效MP4";
return "MP4";
} else {
return "-";
}

View File

@@ -133,6 +133,38 @@
</el-table-column>
<!-- <el-table-column prop="goldIncome" align="center" label="金币总收入" />
<el-table-column prop="diamondRemain" align="center" label="钻石总收入" /> -->
<el-table-column
prop="guildContact"
align="center"
label="公会联系方式"
/>
<el-table-column align="center" prop="idCard" label="公会长身份证件">
<template v-slot="scope">
<el-image
style="width: 100px; height: 100px"
:src="scope.row.idCard"
:zoom-rate="1.1"
:preview-src-list="[scope.row.idCard]"
fit="scale-down"
preview-teleported="true"
hide-on-click-modal="true"
/>
</template>
</el-table-column>
<el-table-column prop="inviteErbanNo" align="center" label="邀请人ID" />
<el-table-column prop="inviteCheck" align="center" label="邀请人证明">
<template v-slot="scope">
<el-image
style="width: 100px; height: 100px"
:src="scope.row.inviteCheck"
:zoom-rate="1.1"
:preview-src-list="[scope.row.inviteCheck]"
fit="scale-down"
preview-teleported="true"
hide-on-click-modal="true"
/>
</template>
</el-table-column>
<el-table-column align="center" label="操作" width="300">
<template v-slot="scope">

View File

@@ -0,0 +1,367 @@
<template>
<div class="box">
<!-- 查询 -->
<div class="inquire">
<span>分区</span>
<el-select v-model="inquire.partitionId" placeholder="请选择">
<el-option
v-for="item in inquire.partitionArr"
:key="item.id"
:label="item.desc"
:value="item.id"
>
</el-option>
</el-select>
</div>
<div class="inquire">
<span>平台ID</span>
<el-input
v-model="inquire.userId"
placeholder=""
class="input"
></el-input>
</div>
<div class="inquire">
<span>状态</span>
<el-select v-model="inquire.status" placeholder="请选择">
<el-option
v-for="item in inquire.statusArr"
:key="item.id"
:label="item.desc"
:value="item.id"
>
</el-option>
</el-select>
</div>
<!-- 时间选择器 -->
<div class="inquire">
<div class="block">
<span class="demonstration">日期</span>
<el-date-picker
v-model="inquire.time"
type="datetimerange"
range-separator=""
start-placeholder="开始日期"
end-placeholder="结束日期"
>
</el-date-picker>
</div>
</div>
<!-- 查询按钮 -->
<el-button class="primary" type="primary" @click="getData()"
>查询</el-button
>
<el-button class="primary" type="primary" @click="addDialog = true"
>重置搜索</el-button
>
<!-- 表格 -->
<el-table
v-loading="loading"
:data="tableData"
border
style="width: 100%; margin-top: 25px"
>
<el-table-column prop="id" align="center" label="序号" />
<el-table-column prop="guildId" align="center" label="公会ID" />
<el-table-column prop="erbanNo" align="center" label="公会长ID" />
<el-table-column prop="nick" align="center" label="公会长昵称" />
<el-table-column align="center" prop="giftInfo" label="公会长头像">
<template v-slot="scope">
<el-image
style="width: 100px; height: 100px"
:src="scope.row.avatar"
:zoom-rate="1.1"
:preview-src-list="[scope.row.avatar]"
fit="scale-down"
preview-teleported="true"
hide-on-click-modal="true"
/>
</template>
</el-table-column>
<el-table-column prop="guildName" align="center" label="公会昵称" />
<el-table-column align="center" prop="giftInfo" label="公会头像">
<template v-slot="scope">
<el-image
style="width: 100px; height: 100px"
:src="scope.row.guildAvatar"
:zoom-rate="1.1"
:preview-src-list="[scope.row.guildAvatar]"
fit="scale-down"
preview-teleported="true"
hide-on-click-modal="true"
/>
</template>
</el-table-column>
<el-table-column
prop="guildContact"
align="center"
label="公会联系方式"
/>
<el-table-column align="center" prop="idCard" label="公会长身份证件">
<template v-slot="scope">
<el-image
style="width: 100px; height: 100px"
:src="scope.row.idCard"
:zoom-rate="1.1"
:preview-src-list="[scope.row.idCard]"
fit="scale-down"
preview-teleported="true"
hide-on-click-modal="true"
/>
</template>
</el-table-column>
<el-table-column prop="inviteErbanNo" align="center" label="邀请人ID" />
<el-table-column prop="inviteCheck" align="center" label="邀请人证明">
<template v-slot="scope">
<el-image
style="width: 100px; height: 100px"
:src="scope.row.inviteCheck"
:zoom-rate="1.1"
:preview-src-list="[scope.row.inviteCheck]"
fit="scale-down"
preview-teleported="true"
hide-on-click-modal="true"
/>
</template>
</el-table-column>
<el-table-column prop="applyTime" align="center" label="申请时间" />
<el-table-column prop="auditStatus" align="center" label="状态">
<template v-slot="scope">
{{
scope.row.auditStatus == 0
? "未审核"
: scope.row.auditStatus == 1
? "已通过"
: "拒绝"
}}
</template>
</el-table-column>
<el-table-column prop="adminName" align="center" label="操作人" />
<el-table-column align="center" label="操作">
<template v-slot="scope">
<el-button
v-show="scope.row.auditStatus == 0"
@click="agree(scope.row.id)"
type="text"
size="default"
>同意</el-button
>
<el-button
v-show="scope.row.auditStatus == 0"
@click="refuse(scope.row.id)"
type="text"
size="default"
>拒绝</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 分页 -->
<el-pagination
style="margin-top: 10px"
class="paginationClass"
v-model:current-page="currentPage"
v-model:page-size="pageSize"
:page-sizes="[10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 999999999]"
layout="sizes, prev, pager, next"
:total="total"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
/>
<!-- 二次确认删除弹窗 -->
<el-dialog v-model="delDialog" title="提示" width="30%" center>
<span> 确定要解散该公会吗?</span>
<template #footer>
<span class="dialog-footer">
<el-button @click="delDialog = false">取消</el-button>
<el-button type="primary" @click="delClick()"> 确认 </el-button>
</span>
</template>
</el-dialog>
</div>
</template>
<script>
import {
listPartitionInfo,
guildApplyList,
guildApplyAudit,
} from "@/api/nobleman/nobleman";
// @ts-ignore
import { dateFormat } from "@/utils/system-helper";
// @ts-ignore
import { ElMessage } from "element-plus";
export default {
name: "newGuildApplication",
data() {
return {
loading: false,
//查询所需条件对象
inquire: {
partitionId: "",
partitionArr: [],
userId: "",
status: -1,
statusArr: [
{ desc: "未审核", id: 0 },
{ desc: "全部", id: -1 },
{ desc: "通过", id: 1 },
{ desc: "已拒绝", id: 2 },
],
time: "",
},
// 表格
tableData: [],
// 新增弹窗
addDialog: false,
// 分页
total: 10, //总页数
currentPage: 1, //页码
pageSize: 10, //条数
};
},
created() {
listPartitionInfo().then((res) => {
console.log(res.data);
this.inquire.partitionArr = res.data;
this.inquire.partitionId = this.inquire.partitionArr[0].id;
});
},
methods: {
// 查询接口
getData() {
this.loading = true;
let time = this.inquire.time;
let startTime = "";
let endTime = "";
if (time && time.length > 0) {
startTime = dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss");
endTime = dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss");
}
guildApplyList({
partitionId: this.inquire.partitionId,
erbanNo: this.inquire.userId,
auditStatus: this.inquire.status,
startDate: startTime,
endDate: endTime,
pageNo: this.currentPage,
pageSize: this.pageSize,
}).then((res) => {
if (res.code == 200) {
this.total = res.data.total;
this.tableData = res.data.rows;
this.loading = false;
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
});
},
agree(id) {
guildApplyAudit({
auditStatus: 1,
id,
}).then((res) => {
if (res.code == 200) {
this.getData();
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
});
},
refuse(id) {
guildApplyAudit({
auditStatus: 2,
id,
}).then((res) => {
if (res.code == 200) {
this.getData();
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
});
},
beforeAvatarUpload() {
ElMessage({
showClose: true,
message: "上传中~",
type: "warning",
});
},
handleAvatarError() {
ElMessage({
showClose: true,
message: "上传失败!",
type: "error",
});
},
handleAvatarSuccess2(res, file) {
this.ediObj.imageUrl2 = file.response.data;
ElMessage({
showClose: true,
message: "上传成功!",
type: "success",
});
},
handleAvatarSuccess(res, file) {
this.ediObj.imageUrl1 = file.response.data;
ElMessage({
showClose: true,
message: "上传成功!",
type: "success",
});
},
// 分页导航
handleSizeChange() {
this.getData();
},
handleCurrentChange() {
this.getData();
},
},
};
</script>
<style lang="less" scoped>
.box {
padding-top: 20px;
background: #ecf0f5;
.inquire {
display: inline-block;
margin-right: 20px;
span {
margin-right: 10px;
}
.input {
width: 180px;
margin-right: 10px;
}
}
.dialogTableVisibleBut {
display: block;
margin: 30px 0 0 830px;
}
.paginationClass {
margin: 15px 0 5px 0px;
}
}
.selectBox {
display: flex;
height: 35px;
line-height: 35px;
margin-bottom: 20px;
}
.selectBoxImg {
height: 150px;
}
</style>

View File

@@ -64,6 +64,7 @@
border
style="width: 100%; margin-top: 25px"
>
<el-table-column prop="id" align="center" label="id" />
<el-table-column prop="partitionFlag" align="center" label="地区">
<template v-slot="scope">
{{ partitionDesc(scope.row.partitionFlag) }}

View File

@@ -178,6 +178,7 @@ export default {
endTime = dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss");
}
list({
partitionId: 2,
erbanNo: this.inquire.anchorId,
guildId: this.inquire.guildId,
ownerErbanNo: this.inquire.guildUserId,

View File

@@ -48,28 +48,16 @@ export default {
$('#table').bootstrapTable({
columns: [
{ field: 'senderErbanNo', title: '送礼用户id', align: 'center', width: '8%' },
{ field: 'senderNick', title: '送礼用户昵称', align: 'center', width: '16%' },
{ field: 'senderNick', title: '送礼用户昵称', align: 'center', width: '12%' },
{ field: 'receiverErbanNo', title: '收礼用户id', align: 'center', width: '8%' },
{ field: 'receiverNick', title: '收礼用户昵称', align: 'center', width: '16%' },
{ field: 'giftType', title: '礼物类型', align: 'center', width: '16%' },
{ field: 'giftName', title: '礼物名称', align: 'center', width: '10%' },
{ field: 'giftNum', title: '礼物数量', align: 'center', width: '6%' },
{ field: 'receiverNick', title: '收礼用户昵称', align: 'center', width: '12%' },
{ field: 'roomErbanNo', title: "房间id", align: 'center', width: '8%' },
{ field: 'roomTitle', title: "房间", align: 'center', width: '12%' },
{ field: 'giftType', title: '礼物类型', align: 'center', width: '8%' },
{ field: 'giftName', title: '礼物名称', align: 'center', width: '8%' },
{ field: 'giftNum', title: '礼物数量', align: 'center', width: '4%' },
{ field: 'totalGoldNum', title: '礼物总价值(钻)', align: 'center', width: '10%' },
{
field: 'createTime',
title: '送礼时间',
align: 'center',
valign: 'middle',
width: '10%',
formatter: function (val, row, index) {
if (val) {
var date = new Date(val);
return date.format("yyyy-MM-dd hh:mm:ss");
} else {
return '-';
}
}
}
{ field: 'createTime', title: '送礼时间', align: 'center', valign: 'middle', width: '16%'},
],
cache: false,
striped: true,