提交 01abd744 作者: 施汉文

新增举报功能,包含举报弹窗组件及相关逻辑,更新用户信息和游戏API接口

上级 34000873
...@@ -211,13 +211,13 @@ export default { ...@@ -211,13 +211,13 @@ export default {
// 页面刷新时从 Cookie 恢复 token 到 store // 页面刷新时从 Cookie 恢复 token 到 store
// Cookies.set( // Cookies.set(
// "token", // "token",
// "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOjQwOTAsImRhdGEiOnsiY3Nlcl9pZCI6NDA5MCwiY3Nlcl9uYW1lIjoi5q-b57uG5LqaIn0sImlhdCI6MTc2ODU0Mjk0MiwiZXhwIjoxNzcxMTM0OTQyLCJuYmYiOjE3Njg1NDI5NDIsInN1YiI6InRva2Vu6K6k6K-BIiwianRpIjoiMjU0Zjg3OGQ3NzMyNWUyMzMyNDAwZTEwZWJkMjFkY2YifQ.3hHc6iQP-Xkz9Q5rMIOFENDdh5P-NSaRs4Y4ffbJcMg" // "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOjEyMzg2LCJkYXRhIjp7ImNzZXJfaWQiOjEyMzg2LCJjc2VyX25hbWUiOiLlvKDlpo3lpo0ifSwiaWF0IjoxNzc2OTk3MTgzLCJleHAiOjE3Nzk1ODkxODMsIm5iZiI6MTc3Njk5NzE4Mywic3ViIjoidG9rZW7orqTor4EiLCJqdGkiOiIxM2I3ODk0MjJjMThiOTUzNzFmOWVjZmYzZGMzNzY1NCJ9.2_8gCTzSrnR8q7i9_Pus1xT8NMY9-cXJim_FElSsa5A"
// ); // );
// Cookies.set("corp_id", "wweaefe716636df3d1"); // Cookies.set("corp_id", "wweaefe716636df3d1");
// Cookies.set("userid", "maoxiya"); // Cookies.set("userid", "ShanYi");
// Cookies.set("cser_name", "毛细亚"); // Cookies.set("cser_name", "张妍妍");
// Cookies.set("external_userid", "wm5rUgMgAAG_vfF4AHClsrS1S6MImVsQ"); // Cookies.set("external_userid", "wm5rUgMgAAj_YnkyHU1lVfYDT7QACqWg");
// Cookies.set("cser_id", 4090); // Cookies.set("cser_id", 12386);
// Cookies.set("weixin_blongs_id", 2862); // Cookies.set("weixin_blongs_id", 2862);
const cookieToken = Cookies.get("token"); const cookieToken = Cookies.get("token");
if (cookieToken && !this.token) { if (cookieToken && !this.token) {
......
...@@ -689,7 +689,20 @@ export function reportAdd(data) { ...@@ -689,7 +689,20 @@ export function reportAdd(data) {
}); });
}); });
} }
// 获取当前合服生态运营人员
export function currUserList(data) {
return new Promise((resolve, reject) => {
cross_systemRequest({
system: 'zhangyou',
api: '/api/server/currUserList',
params: data
}).then((res) => {
resolve(res)
}).catch((error) => {
reject(error)
})
})
}
// 申诉列表 // 申诉列表
export function appealList(data) { export function appealList(data) {
data.zw_user_id = getZwUserId(); data.zw_user_id = getZwUserId();
......
<template> <template>
<div class="violationRecord"> <div class="violationRecord">
<el-form v-loading="loading" class="violationRecordContent" label-width="90px"> <el-form v-loading="loading" class="violationRecordContent" label-width="90px">
<el-button type="primary" size="small" @click="reportPopupShow = true">举报</el-button>
<div v-if="violationList.length > 0"> <div v-if="violationList.length > 0">
<div v-for="(item, index) in violationList" :key="index" class="contentItem"> <div v-for="(item, index) in violationList" :key="index" class="contentItem">
<el-form-item label="违规时间:"> <el-form-item label="违规时间:">
...@@ -96,6 +97,7 @@ ...@@ -96,6 +97,7 @@
<el-dialog title="查看大图" :visible.sync="imageLayer" width="320px" center append-to-body @close="imageLayer = false"> <el-dialog title="查看大图" :visible.sync="imageLayer" width="320px" center append-to-body @close="imageLayer = false">
<div v-html="imageSrc" class="layerImage"></div> <div v-html="imageSrc" class="layerImage"></div>
</el-dialog> </el-dialog>
<reportPopup :show.sync="reportPopupShow" />
</div> </div>
</template> </template>
...@@ -105,11 +107,12 @@ import { violationList } from "@/api/game"; ...@@ -105,11 +107,12 @@ import { violationList } from "@/api/game";
import noContent from "@/components/noContent.vue"; import noContent from "@/components/noContent.vue";
import { debounce } from '@/utils' import { debounce } from '@/utils'
import watchMember from '@/mixins/watchMember' import watchMember from '@/mixins/watchMember'
import reportPopup from '@/views/popup/reportPopup/index.vue'
export default { export default {
name: 'ViolationRecord', name: 'ViolationRecord',
components: { components: {
noContent, noContent,
reportPopup,
}, },
mixins: [watchMember], mixins: [watchMember],
data() { data() {
...@@ -118,6 +121,7 @@ export default { ...@@ -118,6 +121,7 @@ export default {
violationList: [], violationList: [],
loading: false, loading: false,
imageLayer: false, imageLayer: false,
reportPopupShow: false,
}; };
}, },
computed: { computed: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论