整理

上级 e5e48ec8
.login-container[data-v-bca4874e]{background-color:#35495e;height:100%}.login-container .login-box[data-v-bca4874e]{width:400px;height:250px;background-color:#fff;border-radius:3px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 6px hsla(0,0%,100%,.5)}.login-container .login-box .form-login[data-v-bca4874e]{position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box}.form-control[data-v-bca4874e]{flex:1}.avatar-box[data-v-bca4874e]{position:absolute;width:100%;top:-65px;left:0}.avatar-box .avatar[data-v-bca4874e]{width:120px;height:120px;border-radius:50%!important;box-shadow:0 0 6px #efefef}.layout-header-left-img[data-v-898eb31a]{height:50px}.layout-aside-container[data-v-3dfef034]{width:200px;height:100%;border-right:1px solid #eaeaea}.left-aside-item[data-v-3dfef034]{font-size:20px}.el-main{padding:20px 3px!important}.el-header[data-v-0eeb63ec]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-0eeb63ec]{color:#333}.pagination[data-v-0eeb63ec]{margin-top:16px;text-align:right}.arrow-button[data-v-0eeb63ec]{display:flex;align-items:center;justify-content:center;border:none;background-color:transparent;cursor:pointer}.custom-icon[data-v-0eeb63ec]{font-size:24px;color:#f90;margin-right:6px}.arrow-button.disabled[data-v-0eeb63ec]{pointer-events:none;opacity:.1}.el-header[data-v-1755a7d8]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-1755a7d8]{color:#333}.pagination[data-v-1755a7d8]{margin-top:16px;text-align:right}.header-button-item[data-v-1755a7d8]{margin-right:15px;font-size:20px}.backtop[data-v-1755a7d8]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.backtop[data-v-1755a7d8]:hover{background-color:#0050a0}.el-header[data-v-a05e897a]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-a05e897a]{color:#333}.pagination[data-v-a05e897a]{margin-top:16px;text-align:right}.header-button-item[data-v-a05e897a]{margin-right:15px;font-size:20px}.red-title[data-v-a05e897a]{line-height:24px;font-size:18px;color:red}.backtop[data-v-a05e897a]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-a05e897a]{width:100%;text-align:left}.backtop[data-v-a05e897a]:hover{background-color:#0050a0}.el-header[data-v-277bc25c]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-277bc25c]{color:#333}.pagination[data-v-277bc25c]{margin-top:16px;text-align:right}.header-button-item[data-v-277bc25c]{margin-right:15px;font-size:20px}.red-title[data-v-277bc25c]{line-height:24px;font-size:18px;color:red}.backtop[data-v-277bc25c]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-277bc25c]{width:100%;text-align:left}.backtop[data-v-277bc25c]:hover{background-color:#0050a0}.el-header[data-v-7f9d4b2f]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-7f9d4b2f]{color:#333}.pagination[data-v-7f9d4b2f]{margin-top:16px;text-align:right}.header-button-item[data-v-7f9d4b2f]{margin-right:15px;font-size:20px}.red-title[data-v-7f9d4b2f]{line-height:24px;font-size:18px;color:red}.backtop[data-v-7f9d4b2f]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-7f9d4b2f]{width:100%;text-align:left}.backtop[data-v-7f9d4b2f]:hover{background-color:#0050a0}.el-header[data-v-55b17565]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-55b17565]{color:#333}.pagination[data-v-55b17565]{margin-top:16px;text-align:right}.header-button-item[data-v-55b17565]{margin-right:15px;font-size:20px}.red-title[data-v-55b17565]{line-height:24px;font-size:18px;color:red}.backtop[data-v-55b17565]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-55b17565]{width:100%;text-align:left}.backtop[data-v-55b17565]:hover{background-color:#0050a0}.el-header[data-v-cbe27112]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-cbe27112]{color:#333}.pagination[data-v-cbe27112]{margin-top:16px;text-align:right}.header-button-item[data-v-cbe27112]{margin-right:15px;font-size:20px}.red-title[data-v-cbe27112]{line-height:24px;font-size:18px;color:red}.backtop[data-v-cbe27112]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-cbe27112]{width:100%;text-align:left}.backtop[data-v-cbe27112]:hover{background-color:#0050a0}.el-header[data-v-33b199a6]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-33b199a6]{color:#333}.pagination[data-v-33b199a6]{margin-top:16px;text-align:right}.header-button-item[data-v-33b199a6]{margin-right:15px;font-size:20px}.red-title[data-v-33b199a6]{line-height:24px;font-size:18px;color:red}.backtop[data-v-33b199a6]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-33b199a6]{width:100%;text-align:left}.backtop[data-v-33b199a6]:hover{background-color:#0050a0}.el-header[data-v-54aa1839]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-54aa1839]{color:#333}.pagination[data-v-54aa1839]{margin-top:16px;text-align:right}.header-button-item[data-v-54aa1839]{margin-right:15px;font-size:20px}.red-title[data-v-54aa1839]{line-height:24px;font-size:18px;color:red}.backtop[data-v-54aa1839]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-54aa1839]{width:100%;text-align:left}.backtop[data-v-54aa1839]:hover{background-color:#0050a0}.el-header[data-v-dfde6c48]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-dfde6c48]{color:#333}.pagination[data-v-dfde6c48]{margin-top:16px;text-align:right}.header-button-item[data-v-dfde6c48]{margin-right:15px;font-size:20px}.red-title[data-v-dfde6c48]{line-height:24px;font-size:18px;color:red}.backtop[data-v-dfde6c48]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-dfde6c48]{width:100%;text-align:left}.backtop[data-v-dfde6c48]:hover{background-color:#0050a0}.el-header[data-v-09fd22aa]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-09fd22aa]{color:#333}.pagination[data-v-09fd22aa]{margin-top:16px;text-align:right}.header-button-item[data-v-09fd22aa]{margin-right:15px;font-size:20px}.red-title[data-v-09fd22aa]{line-height:24px;font-size:18px;color:red}.backtop[data-v-09fd22aa]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-09fd22aa]{width:100%;text-align:left}.backtop[data-v-09fd22aa]:hover{background-color:#0050a0}.button-container[data-v-4ba2a316],.button-container[data-v-6f0d75be]{position:fixed;bottom:0;right:0;margin:16px}.container[data-v-19e0b810]{display:flex;justify-content:center;align-items:center;height:30vh} .login-container[data-v-bca4874e]{background-color:#35495e;height:100%}.login-container .login-box[data-v-bca4874e]{width:400px;height:250px;background-color:#fff;border-radius:3px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 6px hsla(0,0%,100%,.5)}.login-container .login-box .form-login[data-v-bca4874e]{position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box}.form-control[data-v-bca4874e]{flex:1}.avatar-box[data-v-bca4874e]{position:absolute;width:100%;top:-65px;left:0}.avatar-box .avatar[data-v-bca4874e]{width:120px;height:120px;border-radius:50%!important;box-shadow:0 0 6px #efefef}.layout-header-left-img[data-v-898eb31a]{height:50px}.layout-aside-container[data-v-3dfef034]{width:200px;height:100%;border-right:1px solid #eaeaea}.left-aside-item[data-v-3dfef034]{font-size:20px}.el-main{padding:20px 3px!important}.el-header[data-v-0eeb63ec]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-0eeb63ec]{color:#333}.pagination[data-v-0eeb63ec]{margin-top:16px;text-align:right}.arrow-button[data-v-0eeb63ec]{display:flex;align-items:center;justify-content:center;border:none;background-color:transparent;cursor:pointer}.custom-icon[data-v-0eeb63ec]{font-size:24px;color:#f90;margin-right:6px}.arrow-button.disabled[data-v-0eeb63ec]{pointer-events:none;opacity:.1}.el-header[data-v-1755a7d8]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-1755a7d8]{color:#333}.pagination[data-v-1755a7d8]{margin-top:16px;text-align:right}.header-button-item[data-v-1755a7d8]{margin-right:15px;font-size:20px}.backtop[data-v-1755a7d8]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.backtop[data-v-1755a7d8]:hover{background-color:#0050a0}.el-header[data-v-a05e897a]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-a05e897a]{color:#333}.pagination[data-v-a05e897a]{margin-top:16px;text-align:right}.header-button-item[data-v-a05e897a]{margin-right:15px;font-size:20px}.red-title[data-v-a05e897a]{line-height:24px;font-size:18px;color:red}.backtop[data-v-a05e897a]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-a05e897a]{width:100%;text-align:left}.backtop[data-v-a05e897a]:hover{background-color:#0050a0}.el-header[data-v-277bc25c]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-277bc25c]{color:#333}.pagination[data-v-277bc25c]{margin-top:16px;text-align:right}.header-button-item[data-v-277bc25c]{margin-right:15px;font-size:20px}.red-title[data-v-277bc25c]{line-height:24px;font-size:18px;color:red}.backtop[data-v-277bc25c]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-277bc25c]{width:100%;text-align:left}.backtop[data-v-277bc25c]:hover{background-color:#0050a0}.el-header[data-v-7f9d4b2f]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-7f9d4b2f]{color:#333}.pagination[data-v-7f9d4b2f]{margin-top:16px;text-align:right}.header-button-item[data-v-7f9d4b2f]{margin-right:15px;font-size:20px}.red-title[data-v-7f9d4b2f]{line-height:24px;font-size:18px;color:red}.backtop[data-v-7f9d4b2f]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-7f9d4b2f]{width:100%;text-align:left}.backtop[data-v-7f9d4b2f]:hover{background-color:#0050a0}.el-header[data-v-55b17565]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-55b17565]{color:#333}.pagination[data-v-55b17565]{margin-top:16px;text-align:right}.header-button-item[data-v-55b17565]{margin-right:15px;font-size:20px}.red-title[data-v-55b17565]{line-height:24px;font-size:18px;color:red}.backtop[data-v-55b17565]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-55b17565]{width:100%;text-align:left}.backtop[data-v-55b17565]:hover{background-color:#0050a0}.el-header[data-v-cbe27112]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-cbe27112]{color:#333}.pagination[data-v-cbe27112]{margin-top:16px;text-align:right}.header-button-item[data-v-cbe27112]{margin-right:15px;font-size:20px}.red-title[data-v-cbe27112]{line-height:24px;font-size:18px;color:red}.backtop[data-v-cbe27112]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-cbe27112]{width:100%;text-align:left}.backtop[data-v-cbe27112]:hover{background-color:#0050a0}.el-header[data-v-33b199a6]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-33b199a6]{color:#333}.pagination[data-v-33b199a6]{margin-top:16px;text-align:right}.header-button-item[data-v-33b199a6]{margin-right:15px;font-size:20px}.red-title[data-v-33b199a6]{line-height:24px;font-size:18px;color:red}.backtop[data-v-33b199a6]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-33b199a6]{width:100%;text-align:left}.backtop[data-v-33b199a6]:hover{background-color:#0050a0}.el-header[data-v-daaf177e]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-daaf177e]{color:#333}.pagination[data-v-daaf177e]{margin-top:16px;text-align:right}.header-button-item[data-v-daaf177e]{margin-right:15px;font-size:20px}.red-title[data-v-daaf177e]{line-height:24px;font-size:18px;color:red}.backtop[data-v-daaf177e]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-daaf177e]{width:100%;text-align:left}.backtop[data-v-daaf177e]:hover{background-color:#0050a0}.el-header[data-v-dfde6c48]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-dfde6c48]{color:#333}.pagination[data-v-dfde6c48]{margin-top:16px;text-align:right}.header-button-item[data-v-dfde6c48]{margin-right:15px;font-size:20px}.red-title[data-v-dfde6c48]{line-height:24px;font-size:18px;color:red}.backtop[data-v-dfde6c48]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-dfde6c48]{width:100%;text-align:left}.backtop[data-v-dfde6c48]:hover{background-color:#0050a0}.el-header[data-v-463fd09a]{background-color:#b3c0d1;color:#333;line-height:60px}.el-aside[data-v-463fd09a]{color:#333}.pagination[data-v-463fd09a]{margin-top:16px;text-align:right}.header-button-item[data-v-463fd09a]{margin-right:15px;font-size:20px}.red-title[data-v-463fd09a]{line-height:24px;font-size:18px;color:red}.backtop[data-v-463fd09a]{position:fixed;bottom:50px;right:50px;height:40px;width:40px;line-height:40px;text-align:center;border-radius:20px;background-color:#007aff;color:#fff;cursor:pointer;z-index:999}.custom-textarea[data-v-463fd09a]{width:100%;text-align:left}.backtop[data-v-463fd09a]:hover{background-color:#0050a0}.button-container[data-v-4ba2a316],.button-container[data-v-6f0d75be]{position:fixed;bottom:0;right:0;margin:16px}.container[data-v-19e0b810]{display:flex;justify-content:center;align-items:center;height:30vh}
/*! /*!
* Bootstrap v4.5.0 (https://getbootstrap.com/) * Bootstrap v4.5.0 (https://getbootstrap.com/)
......
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/kwan.png"><title>kwan</title><link href="/css/app.d7952878.css" rel="preload" as="style"><link href="/css/chunk-vendors.0bfa23eb.css" rel="preload" as="style"><link href="/js/app.b5cc1a5f.js" rel="preload" as="script"><link href="/js/chunk-vendors.02cd1fa9.js" rel="preload" as="script"><link href="/css/chunk-vendors.0bfa23eb.css" rel="stylesheet"><link href="/css/app.d7952878.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but kwan doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.02cd1fa9.js"></script><script src="/js/app.b5cc1a5f.js"></script></body></html> <!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/kwan.png"><title>kwan</title><link href="/css/app.f3a41672.css" rel="preload" as="style"><link href="/css/chunk-vendors.0bfa23eb.css" rel="preload" as="style"><link href="/js/app.b178abf7.js" rel="preload" as="script"><link href="/js/chunk-vendors.02cd1fa9.js" rel="preload" as="script"><link href="/css/chunk-vendors.0bfa23eb.css" rel="stylesheet"><link href="/css/app.f3a41672.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but kwan doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.02cd1fa9.js"></script><script src="/js/app.b178abf7.js"></script></body></html>
\ No newline at end of file \ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
...@@ -150,287 +150,287 @@ ...@@ -150,287 +150,287 @@
import axios from 'axios' import axios from 'axios'
import ApiService from '../../api/ApiService' import ApiService from '../../api/ApiService'
export default { export default {
name: 'MyRedPackage', name: 'MyRedPackage',
data() { data() {
return { return {
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
return time.getTime() > Date.now() return time.getTime() > Date.now()
}, },
shortcuts: [ shortcuts: [
{ {
text: '今天', text: '今天',
onClick(picker) { onClick(picker) {
picker.$emit('pick', new Date()) picker.$emit('pick', new Date())
}, },
}, },
{ {
text: '昨天', text: '昨天',
onClick(picker) { onClick(picker) {
const date = new Date() const date = new Date()
date.setTime(date.getTime() - 3600 * 1000 * 24) date.setTime(date.getTime() - 3600 * 1000 * 24)
picker.$emit('pick', date) picker.$emit('pick', date)
}, },
}, },
{ {
text: '一周前', text: '一周前',
onClick(picker) { onClick(picker) {
const date = new Date() const date = new Date()
date.setTime(date.getTime() - 3600 * 1000 * 24 * 7) date.setTime(date.getTime() - 3600 * 1000 * 24 * 7)
picker.$emit('pick', date) picker.$emit('pick', date)
}, },
}, },
], ],
}, },
form: { form: {
todayGet: '', todayGet: '',
allGet: '', allGet: '',
myAmount: '', myAmount: '',
nickName: '', nickName: '',
msg: '', msg: '',
}, },
formInline: { formInline: {
nickName: '', nickName: '',
itemType: '', itemType: '',
myAmount: '', myAmount: '',
msg: '', msg: '',
myAmountStart: '', myAmountStart: '',
myAmountEnd: '', myAmountEnd: '',
startDate: '', startDate: '',
}, },
itemType: ['全部', 'article', 'blink', 'topic'], itemType: ['全部', 'article', 'blink', 'topic'],
msg: ['全部', 'received', 'completed', '其它'], msg: ['全部', 'received', 'completed', 'unreceived', 'uncompleted', '其它'],
deleteDialogVisible: false, deleteDialogVisible: false,
editVisible: false, editVisible: false,
viewCountAllDialogVisible: false, viewCountAllDialogVisible: false,
getTodayDialogVisible: false, getTodayDialogVisible: false,
detailsInfoDialogVisible: false, detailsInfoDialogVisible: false,
// 用户列表数据 // 用户列表数据
csdnRedPackageList: [], csdnRedPackageList: [],
loading: false, loading: false,
elementui_page_component_key: 0, elementui_page_component_key: 0,
currentPage: Number(localStorage.getItem('redPackagePage')) || 1, currentPage: Number(localStorage.getItem('redPackagePage')) || 1,
pageSize: 10, pageSize: 10,
total: 0, total: 0,
currentRowId: null, currentRowId: null,
currentUserName: null, currentUserName: null,
} }
}, },
watch: { watch: {
formInline: { formInline: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.currentPage = 1 this.currentPage = 1
localStorage.setItem('redPackagePage', this.currentPage) localStorage.setItem('redPackagePage', this.currentPage)
this.redPackagePage() this.redPackagePage()
}, },
deep: true, deep: true,
}, },
// 监听currentPage的变化,将新值保存到localStorage中 // 监听currentPage的变化,将新值保存到localStorage中
currentPage(newPage) { currentPage(newPage) {
localStorage.setItem('redPackagePage', newPage.toString()) localStorage.setItem('redPackagePage', newPage.toString())
}, },
}, },
created() { created() {
//获取问题类型的枚举 //获取问题类型的枚举
this.$nextTick(() => { this.$nextTick(() => {
const foo = this.$route.query.back const foo = this.$route.query.back
if (foo === 'back') { if (foo === 'back') {
this.currentPage = Number(localStorage.getItem('redPackagePage')) || 1 this.currentPage = Number(localStorage.getItem('redPackagePage')) || 1
} else { } else {
localStorage.setItem('redPackagePage', 1) localStorage.setItem('redPackagePage', 1)
this.currentPage = 1 this.currentPage = 1
} }
// 调用请求数据的方法 // 调用请求数据的方法
this.redPackagePage() this.redPackagePage()
}) })
}, },
mounted() { mounted() {
this.currentPage = Number(localStorage.getItem('redPackagePage')) || 1 this.currentPage = Number(localStorage.getItem('redPackagePage')) || 1
this.elementui_page_component_key++ this.elementui_page_component_key++
}, },
methods: { methods: {
prepareViewCountAll() { prepareViewCountAll() {
this.viewCountAllDialogVisible = true this.viewCountAllDialogVisible = true
}, },
prepareDetailsInfo() { prepareDetailsInfo() {
this.detailsInfoDialogVisible = true this.detailsInfoDialogVisible = true
}, },
prepareGetToday() { prepareGetToday() {
this.form.todayGet = '' this.form.todayGet = ''
this.form.allGet = '' this.form.allGet = ''
this.getTodayDialogVisible = true this.getTodayDialogVisible = true
}, },
prepareDelete(id) { prepareDelete(id) {
this.currentRowId = id this.currentRowId = id
this.deleteDialogVisible = true this.deleteDialogVisible = true
}, },
preEdit(id, nickName, myAmount, msg) { preEdit(id, nickName, myAmount, msg) {
this.form.nickName = nickName this.form.nickName = nickName
this.form.myAmount = myAmount this.form.myAmount = myAmount
this.form.msg = msg this.form.msg = msg
this.currentRowId = id this.currentRowId = id
this.editVisible = true this.editVisible = true
}, },
refreshPage() { refreshPage() {
location.reload() location.reload()
}, },
gotoDetail(id, orderNo, communityId, postId) { gotoDetail(id, orderNo, communityId, postId) {
this.$router.push(`/home/redPackageDetail/${id}/${orderNo}/${communityId}/${postId}`) this.$router.push(`/home/redPackageDetail/${id}/${orderNo}/${communityId}/${postId}`)
}, },
handleClose(done) { handleClose(done) {
this.$confirm('确认关闭?') this.$confirm('确认关闭?')
.then((_) => { .then((_) => {
done() done()
}) })
.catch((_) => {}) .catch((_) => {})
}, },
handleConfirm(addType) { handleConfirm(addType) {
this.dialogFormVisible = false // 关闭对话框 this.dialogFormVisible = false // 关闭对话框
this.dialogMutiFormVisible = false this.dialogMutiFormVisible = false
this.addUser(addType) // 发送请求 this.addUser(addType) // 发送请求
}, },
async redPackagePage() { async redPackagePage() {
this.loading = true this.loading = true
const { data: res } = await ApiService.redPackagePage(this.currentPage, this.pageSize, this.formInline) const { data: res } = await ApiService.redPackagePage(this.currentPage, this.pageSize, this.formInline)
if (res.code === 200) { if (res.code === 200) {
this.total = res.result.totalElements this.total = res.result.totalElements
this.csdnRedPackageList = res.result.content this.csdnRedPackageList = res.result.content
} }
this.loading = false this.loading = false
}, },
async dealViewCount(id) { async dealViewCount(id) {
this.loading = true this.loading = true
const { data: res } = await ApiService.dealViewCount(id) const { data: res } = await ApiService.dealViewCount(id)
if (res.code === 200) { if (res.code === 200) {
this.redPackagePage() this.redPackagePage()
} else { } else {
console.error('Received non-200 status code', res) console.error('Received non-200 status code', res)
} }
this.loading = false this.loading = false
}, },
async syncDetailInfo(id) { async syncDetailInfo(id) {
this.loading = true this.loading = true
const { data: res } = await ApiService.syncDetailInfo(id) const { data: res } = await ApiService.syncDetailInfo(id)
if (res.code === 200) { if (res.code === 200) {
this.redPackagePage() this.redPackagePage()
} else { } else {
console.error('Received non-200 status code', res) console.error('Received non-200 status code', res)
} }
this.loading = false this.loading = false
}, },
async getTodayRedPackageDetailInfo() { async getTodayRedPackageDetailInfo() {
this.loading = true this.loading = true
this.detailsInfoDialogVisible = false this.detailsInfoDialogVisible = false
const { data: res } = await ApiService.getTodayRedPackageDetailInfo() const { data: res } = await ApiService.getTodayRedPackageDetailInfo()
if (res.code === 200) { if (res.code === 200) {
this.redPackagePage() this.redPackagePage()
} else { } else {
console.error('Received non-200 status code', res) console.error('Received non-200 status code', res)
} }
this.loading = false this.loading = false
}, },
async editConfirm() { async editConfirm() {
try { try {
this.loading = true this.loading = true
const { data: res } = await axios.post('http://43.139.90.182:8888/csdn/redPackage/update', { const { data: res } = await axios.post('http://43.139.90.182:8888/csdn/redPackage/update', {
id: this.currentRowId, id: this.currentRowId,
nickName: this.form.nickName, nickName: this.form.nickName,
myAmount: this.form.myAmount, myAmount: this.form.myAmount,
msg: this.form.msg, msg: this.form.msg,
}) })
if (res.code === 200) { if (res.code === 200) {
this.form.nickName = '' this.form.nickName = ''
this.form.myAmount = '' this.form.myAmount = ''
this.form.msg = '' this.form.msg = ''
this.editVisible = false this.editVisible = false
currentRowId: null currentRowId: null
this.redPackagePage() this.redPackagePage()
} else { } else {
console.error('Received non-200 status code', res) console.error('Received non-200 status code', res)
} }
} catch (error) { } catch (error) {
console.error('An error occurred while adding the questionName:', error) console.error('An error occurred while adding the questionName:', error)
// 异常处理逻辑 // 异常处理逻辑
} finally { } finally {
this.loading = false this.loading = false
} }
}, },
async viewCountAll() { async viewCountAll() {
this.loading = true this.loading = true
this.viewCountAllDialogVisible = false this.viewCountAllDialogVisible = false
const { data: res1 } = await axios.get('http://43.139.90.182:8888/csdn/redPackage/getViewCountAll') const { data: res1 } = await axios.get('http://43.139.90.182:8888/csdn/redPackage/getViewCountAll')
if (res1.code === 200) { if (res1.code === 200) {
this.redPackagePage() this.redPackagePage()
} else { } else {
console.error('Received non-200 status code', res1) console.error('Received non-200 status code', res1)
} }
this.loading = false this.loading = false
}, },
async getToday() { async getToday() {
const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/redPackage/getMyAmount') const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/redPackage/getMyAmount')
if (res.code === 200) { if (res.code === 200) {
this.form.todayGet = res.result.todayGet this.form.todayGet = res.result.todayGet
this.form.allGet = res.result.allGet this.form.allGet = res.result.allGet
} else { } else {
console.error('Received non-200 status code', res) console.error('Received non-200 status code', res)
} }
}, },
async onDelete(id) { async onDelete(id) {
this.loading = true this.loading = true
const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/user/delete', { const { data: res } = await axios.get('http://43.139.90.182:8888/csdn/user/delete', {
params: { params: {
id: id, id: id,
}, },
}) })
this.deleteDialogVisible = false this.deleteDialogVisible = false
this.redPackagePage() this.redPackagePage()
this.loading = false this.loading = false
}, },
refreshPage() { refreshPage() {
//获取问题类型的枚举 //获取问题类型的枚举
this.redPackagePage() this.redPackagePage()
location.reload() location.reload()
}, },
handleCurrentChange(currentPage) { handleCurrentChange(currentPage) {
this.currentPage = currentPage this.currentPage = currentPage
this.redPackagePage() this.redPackagePage()
}, },
handleSizeChange(currentSize) { handleSizeChange(currentSize) {
this.pageSize = currentSize this.pageSize = currentSize
this.redPackagePage() this.redPackagePage()
}, },
newRedPackage() { newRedPackage() {
// 新页面打开 // 新页面打开
window.open('https://bbs.csdn.net/?type=4&header=0&utm_source=wwwtab') window.open('https://bbs.csdn.net/?type=4&header=0&utm_source=wwwtab')
}, },
getTagType(myAmount) { getTagType(myAmount) {
if (myAmount >= 0.3) { if (myAmount >= 0.3) {
return 'success' return 'success'
} else if (myAmount >= 0.2) { } else if (myAmount >= 0.2) {
return 'primary' return 'primary'
} else if (myAmount >= 0.1) { } else if (myAmount >= 0.1) {
return 'warning' return 'warning'
} else { } else {
return 'danger' return 'danger'
} }
}, },
getMsgType(msg) { getMsgType(msg) {
if (msg == 'received' || msg == 'completed') { if (msg == 'received' || msg == 'completed') {
return 'success' return 'success'
} else { } else {
return 'danger' return 'danger'
} }
}, },
}, },
} }
</script> </script>
......
...@@ -65,204 +65,208 @@ ...@@ -65,204 +65,208 @@
import axios from 'axios' import axios from 'axios'
import ApiService from '../../api/ApiService' import ApiService from '../../api/ApiService'
export default { export default {
name: 'MyTripletDayInfo', name: 'MyTripletDayInfo',
data() { data() {
return { return {
pickerOptions: { pickerOptions: {
shortcuts: [ disabledDate(time) {
{ return time.getTime() > Date.now()
text: '最近一周', },
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
picker.$emit('pick', [start, end])
},
},
{
text: '最近一个月',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
picker.$emit('pick', [start, end])
},
},
{
text: '最近三个月',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
picker.$emit('pick', [start, end])
},
},
],
},
formInline: {
tripletDate: null,
endDate: null,
},
// 用户列表数据
tripletDayInfoList: [],
likeStatus: [
{
type: -1,
name: '全部',
},
{
type: 0,
name: '未处理',
},
{ type: 1, name: '已经点过赞' },
{ type: 2, name: '点赞已满' },
{ type: 3, name: '取消点赞' },
{ type: 4, name: '文章状态不能点赞' },
{ type: 8, name: '其他错误' },
{ type: 9, name: '点赞成功' },
],
collectStatus: [
{
type: -1,
name: '全部',
},
{
type: 0,
name: '未处理',
},
{ type: 1, name: '已经收藏过' },
{ type: 2, name: '收藏已满' },
{ type: 3, name: '参数缺失' },
{ type: 4, name: '收藏夹不存在' },
{ type: 8, name: '其他错误' },
{ type: 9, name: '收藏成功' },
],
commentStatus: [ shortcuts: [
{ {
type: -1, text: '最近一周',
name: '全部', onClick(picker) {
}, const end = new Date()
{ const start = new Date()
type: 0, start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
name: '未处理', picker.$emit('pick', [start, end])
}, },
{ type: 1, name: '已经评论过' }, },
{ type: 2, name: '评论已满' }, {
{ type: 3, name: '禁言' }, text: '最近一个月',
{ type: 4, name: '评论太快' }, onClick(picker) {
{ type: 5, name: '评论已经到了45条' }, const end = new Date()
{ type: 8, name: '其他错误' }, const start = new Date()
{ type: 9, name: '评论成功' }, start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
], picker.$emit('pick', [start, end])
loading: false, },
resetDialogVisible: false, },
elementui_page_component_key: 0, {
currentPage: Number(localStorage.getItem('csdnTripletDayInfoPage')) || 1, text: '最近三个月',
pageSize: 9, onClick(picker) {
total: 0, const end = new Date()
} const start = new Date()
}, start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
watch: { picker.$emit('pick', [start, end])
'formInline.tripletDate'(newVal, oldVal) { },
if (newVal !== oldVal) { },
this.currentPage = 1 ],
localStorage.setItem('csdnTripletDayInfoPage', this.currentPage) },
this.tripletDayInfoPage() formInline: {
} tripletDate: null,
}, endDate: null,
'formInline.endDate'(newVal, oldVal) { },
if (newVal !== oldVal) { // 用户列表数据
this.currentPage = 1 tripletDayInfoList: [],
localStorage.setItem('csdnTripletDayInfoPage', this.currentPage) likeStatus: [
this.tripletDayInfoPage() {
} type: -1,
}, name: '全部',
// 监听currentPage的变化,将新值保存到localStorage中 },
currentPage(newPage) { {
localStorage.setItem('csdnTripletDayInfoPage', newPage.toString()) type: 0,
}, name: '未处理',
}, },
created() { { type: 1, name: '已经点过赞' },
//获取问题类型的枚举 { type: 2, name: '点赞已满' },
this.tripletDayInfoPage() { type: 3, name: '取消点赞' },
}, { type: 4, name: '文章状态不能点赞' },
mounted() { { type: 8, name: '其他错误' },
this.currentPage = 1 { type: 9, name: '点赞成功' },
}, ],
methods: { collectStatus: [
prepareReset() { {
this.resetDialogVisible = true type: -1,
}, name: '全部',
async tripletDayInfoPage() { },
this.loading = true {
const { data: res } = await ApiService.tripletDayInfoPage(this.currentPage, this.pageSize, this.formInline.tripletDate) type: 0,
if (res.code === 200) { name: '未处理',
this.total = res.result.totalElements },
{ type: 1, name: '已经收藏过' },
{ type: 2, name: '收藏已满' },
{ type: 3, name: '参数缺失' },
{ type: 4, name: '收藏夹不存在' },
{ type: 8, name: '其他错误' },
{ type: 9, name: '收藏成功' },
],
const likeStatusMap = {} commentStatus: [
this.likeStatus.forEach((option) => { {
likeStatusMap[option.type] = option.name type: -1,
}) name: '全部',
res.result.content.forEach((item) => { },
item.likeStatusName = likeStatusMap[item.likeStatus] {
}) type: 0,
name: '未处理',
},
{ type: 1, name: '已经评论过' },
{ type: 2, name: '评论已满' },
{ type: 3, name: '禁言' },
{ type: 4, name: '评论太快' },
{ type: 5, name: '评论已经到了45条' },
{ type: 8, name: '其他错误' },
{ type: 9, name: '评论成功' },
],
loading: false,
resetDialogVisible: false,
elementui_page_component_key: 0,
currentPage: Number(localStorage.getItem('csdnTripletDayInfoPage')) || 1,
pageSize: 9,
total: 0,
}
},
watch: {
'formInline.tripletDate'(newVal, oldVal) {
if (newVal !== oldVal) {
this.currentPage = 1
localStorage.setItem('csdnTripletDayInfoPage', this.currentPage)
this.tripletDayInfoPage()
}
},
'formInline.endDate'(newVal, oldVal) {
if (newVal !== oldVal) {
this.currentPage = 1
localStorage.setItem('csdnTripletDayInfoPage', this.currentPage)
this.tripletDayInfoPage()
}
},
// 监听currentPage的变化,将新值保存到localStorage中
currentPage(newPage) {
localStorage.setItem('csdnTripletDayInfoPage', newPage.toString())
},
},
created() {
//获取问题类型的枚举
this.tripletDayInfoPage()
},
mounted() {
this.currentPage = 1
},
methods: {
prepareReset() {
this.resetDialogVisible = true
},
async tripletDayInfoPage() {
this.loading = true
const { data: res } = await ApiService.tripletDayInfoPage(this.currentPage, this.pageSize, this.formInline.tripletDate)
if (res.code === 200) {
this.total = res.result.totalElements
const collectStatusMap = {} const likeStatusMap = {}
this.collectStatus.forEach((option) => { this.likeStatus.forEach((option) => {
collectStatusMap[option.type] = option.name likeStatusMap[option.type] = option.name
}) })
res.result.content.forEach((item) => { res.result.content.forEach((item) => {
item.collectStatusName = collectStatusMap[item.collectStatus] item.likeStatusName = likeStatusMap[item.likeStatus]
}) })
const commentStatusMap = {} const collectStatusMap = {}
this.commentStatus.forEach((option) => { this.collectStatus.forEach((option) => {
commentStatusMap[option.type] = option.name collectStatusMap[option.type] = option.name
}) })
res.result.content.forEach((item) => { res.result.content.forEach((item) => {
item.commentStatusName = commentStatusMap[item.commentStatus] item.collectStatusName = collectStatusMap[item.collectStatus]
}) })
this.tripletDayInfoList = res.result.content const commentStatusMap = {}
} this.commentStatus.forEach((option) => {
this.loading = false commentStatusMap[option.type] = option.name
}, })
async tripletDayReset() { res.result.content.forEach((item) => {
this.loading = true item.commentStatusName = commentStatusMap[item.commentStatus]
const { data: res } = await ApiService.tripletDayReset() })
this.resetDialogVisible = false
this.tripletDayInfoPage() this.tripletDayInfoList = res.result.content
this.loading = false }
}, this.loading = false
refreshPage() { },
//获取问题类型的枚举 async tripletDayReset() {
this.tripletDayInfoPage() this.loading = true
location.reload() const { data: res } = await ApiService.tripletDayReset()
}, this.resetDialogVisible = false
getTagType(statusName) { this.tripletDayInfoPage()
if (statusName == '未处理') { this.loading = false
return 'info' },
} else if (statusName == '已经点过赞' || statusName == '已经收藏过' || statusName == '已经评论过') { refreshPage() {
return 'success' //获取问题类型的枚举
} else if (statusName == '文章状态不能点赞' || statusName == '收藏已满' || statusName == '收藏夹不存在' || statusName == '评论已满' || statusName == '禁言' || statusName == '评论已经到了45条') { this.tripletDayInfoPage()
return 'danger' location.reload()
} else if (statusName == '点赞成功' || statusName == '收藏成功' || statusName == '评论成功') { },
return 'success' getTagType(statusName) {
} else if (statusName == '点赞已满' || statusName == '参数缺失' || statusName == '其他错误' || statusName == '取消点赞' || statusName == '评论太快') { if (statusName == '未处理') {
return 'warning' return 'info'
} } else if (statusName == '已经点过赞' || statusName == '已经收藏过' || statusName == '已经评论过') {
}, return 'success'
handleCurrentChange(currentPage) { } else if (statusName == '文章状态不能点赞' || statusName == '收藏已满' || statusName == '收藏夹不存在' || statusName == '评论已满' || statusName == '禁言' || statusName == '评论已经到了45条') {
this.currentPage = currentPage return 'danger'
this.tripletDayInfoPage() } else if (statusName == '点赞成功' || statusName == '收藏成功' || statusName == '评论成功') {
}, return 'success'
handleSizeChange(currentSize) { } else if (statusName == '点赞已满' || statusName == '参数缺失' || statusName == '其他错误' || statusName == '取消点赞' || statusName == '评论太快') {
this.pageSize = currentSize return 'warning'
this.tripletDayInfoPage() }
}, },
}, handleCurrentChange(currentPage) {
this.currentPage = currentPage
this.tripletDayInfoPage()
},
handleSizeChange(currentSize) {
this.pageSize = currentSize
this.tripletDayInfoPage()
},
},
} }
</script> </script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册