init
This commit is contained in:
@@ -2,14 +2,14 @@ import request from '@/utils/request'
|
||||
|
||||
export function getUnreadNotifyMessageList() {
|
||||
return request({
|
||||
url: '/cai/unread/data',
|
||||
url: '/xq/unread/data',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function getUnreadNotifyMessageCount() {
|
||||
return request({
|
||||
url: '/cai/unread/checkCount',
|
||||
url: '/xq/unread/checkCount',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
@@ -6,78 +6,42 @@
|
||||
<svg-icon icon-class="message" @click="getList"/>
|
||||
</el-badge>
|
||||
<!-- 弹出列表 -->
|
||||
<el-empty v-if="unreadAllCount === 0" description="所有数据已审核"></el-empty>
|
||||
<el-row class="message-fid" v-show="unreadInfo.accountCashCount > 0">
|
||||
<!-- <el-empty v-if="unreadAllCount === 0" description="所有数据已审核"></el-empty>-->
|
||||
<el-row class="message-fid" v-show="unreadInfo.userWithdrawCount > 0">
|
||||
<el-col :span="14">
|
||||
<el-link @click="goToAudit('accountCash')" type="warning">提现待审核</el-link>
|
||||
<el-link @click="goToAudit('userWithdrawCount')" type="warning">用户提现审核</el-link>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-divider direction="vertical"></el-divider>
|
||||
</el-col>
|
||||
<el-col :span="6"><span style="color: red">{{ unreadInfo.accountCashCount }}</span></el-col>
|
||||
<el-col :span="6"><span style="color: red">{{ unreadInfo.userWithdrawCount }}</span></el-col>
|
||||
</el-row>
|
||||
<el-row class="message-fid" v-show="unreadInfo.userAlbumCount > 0">
|
||||
<el-row class="message-fid" v-show="unreadInfo.userAuthCount > 0">
|
||||
<el-col :span="14">
|
||||
<el-link @click="goToAudit('userAlbum')" type="warning">相册待审核</el-link>
|
||||
<el-link @click="goToAudit('userAuthCount')" type="warning">用户认证审核</el-link>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-divider direction="vertical"></el-divider>
|
||||
</el-col>
|
||||
<el-col :span="6"><span style="color: red">{{ unreadInfo.userAlbumCount }}</span></el-col>
|
||||
</el-row>
|
||||
<el-row class="message-fid" v-show="unreadInfo.userCameraAuditCount > 0">
|
||||
<el-col :span="14">
|
||||
<el-link @click="goToAudit('userCameraAudit')" type="warning">自拍待审核</el-link>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-divider direction="vertical"></el-divider>
|
||||
</el-col>
|
||||
<el-col :span="6"><span style="color: red">{{ unreadInfo.userCameraAuditCount }}</span></el-col>
|
||||
</el-row>
|
||||
<el-row class="message-fid" v-show="unreadInfo.anchorApplyCount > 0">
|
||||
<el-col :span="14">
|
||||
<el-link @click="goToAudit('anchorApply')" type="warning">主播申请待审核</el-link>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-divider direction="vertical"></el-divider>
|
||||
</el-col>
|
||||
<el-col :span="6"><span style="color: red">{{ unreadInfo.anchorApplyCount }}</span></el-col>
|
||||
<el-col :span="6"><span style="color: red">{{ unreadInfo.userAuthCount }}</span></el-col>
|
||||
</el-row>
|
||||
<el-row class="message-fid" v-show="unreadInfo.dynamicCount > 0">
|
||||
<el-col :span="14">
|
||||
<el-link @click="goToAudit('dynamic')" type="warning">动态待审核</el-link>
|
||||
<el-link @click="goToAudit('dynamicCount')" type="warning">动态审核</el-link>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-divider direction="vertical"></el-divider>
|
||||
</el-col>
|
||||
<el-col :span="6"><span style="color: red">{{ unreadInfo.dynamicCount }}</span></el-col>
|
||||
</el-row>
|
||||
<el-row class="message-fid" v-show="unreadInfo.reportCount > 0">
|
||||
<el-row class="message-fid" v-show="unreadInfo.userInfoCount > 0">
|
||||
<el-col :span="14">
|
||||
<el-link @click="goToAudit('report')" type="warning">举报待处理</el-link>
|
||||
<el-link @click="goToAudit('userInfoCount')" type="warning">用户信息审核</el-link>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-divider direction="vertical"></el-divider>
|
||||
</el-col>
|
||||
<el-col :span="6"><span style="color: red">{{ unreadInfo.reportCount }}</span></el-col>
|
||||
</el-row>
|
||||
<el-row class="message-fid" v-show="unreadInfo.userGreetCount > 0">
|
||||
<el-col :span="14">
|
||||
<el-link @click="goToAudit('userGreet')" type="warning">群发待审核</el-link>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-divider direction="vertical"></el-divider>
|
||||
</el-col>
|
||||
<el-col :span="6"><span style="color: red">{{ unreadInfo.userGreetCount }}</span></el-col>
|
||||
</el-row>
|
||||
<el-row class="message-fid" v-show="unreadInfo.userAvatarCount > 0">
|
||||
<el-col :span="14">
|
||||
<el-link @click="goToAudit('userAvatar')" type="warning">头像待审核</el-link>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-divider direction="vertical"></el-divider>
|
||||
</el-col>
|
||||
<el-col :span="6"><span style="color: red">{{ unreadInfo.userAvatarCount }}</span></el-col>
|
||||
<el-col :span="6"><span style="color: red">{{ unreadInfo.userInfoCount }}</span></el-col>
|
||||
</el-row>
|
||||
</el-popover>
|
||||
</div>
|
||||
@@ -85,7 +49,7 @@
|
||||
|
||||
<script>
|
||||
|
||||
import {getUnreadNotifyMessageCount, getUnreadNotifyMessageList} from "@/api/cai/unreadNotifyMessage";
|
||||
import {getUnreadNotifyMessageCount, getUnreadNotifyMessageList} from "@/api/xq/unreadNotifyMessage";
|
||||
|
||||
export default {
|
||||
name: 'NotifyMessage',
|
||||
@@ -95,14 +59,10 @@ export default {
|
||||
loading: false,
|
||||
// 列表
|
||||
unreadInfo: {
|
||||
accountCashCount: 0,
|
||||
userAlbumCount: 0,
|
||||
userCameraAuditCount: 0,
|
||||
anchorApplyCount: 0,
|
||||
userInfoCount: 0,
|
||||
dynamicCount: 0,
|
||||
reportCount: 0,
|
||||
userGreetCount: 0,
|
||||
userAvatarCount: 0,
|
||||
userAuthCount: 0,
|
||||
userWithdrawCount: 0,
|
||||
},
|
||||
unreadAllCount: 0,
|
||||
unreadCount: 1,
|
||||
@@ -139,29 +99,17 @@ export default {
|
||||
},
|
||||
goToAudit: function (type) {
|
||||
switch (type) {
|
||||
case "accountCash":
|
||||
this.$router.push({path: "/audit/accountCash", query: {auditStatus: true}});
|
||||
case "userWithdrawCount":
|
||||
this.$router.push({path: "/audit/userWithdraw", query: {auditStatus: true}});
|
||||
break;
|
||||
case "userAlbum":
|
||||
this.$router.push({path: "/kk/userAlbum", query: {auditStatus: true}});
|
||||
case "userAuthCount":
|
||||
this.$router.push({path: "/audit/userAuthAudit", query: {auditStatus: true}});
|
||||
break;
|
||||
case "userCameraAudit":
|
||||
this.$router.push({path: "/audit/userCameraAudit", query: {auditStatus: true}});
|
||||
break;
|
||||
case "anchorApply":
|
||||
this.$router.push({path: "/kk/anchorApply", query: {auditStatus: true}});
|
||||
break;
|
||||
case "dynamic":
|
||||
case "dynamicCount":
|
||||
this.$router.push({path: "/audit/dynamic", query: {auditStatus: true}});
|
||||
break;
|
||||
case "report":
|
||||
this.$router.push({path: "/audit/report", query: {auditStatus: true}});
|
||||
break;
|
||||
case "userGreet":
|
||||
this.$router.push({path: "/audit/userGreet", query: {auditStatus: true}});
|
||||
break;
|
||||
case "userAvatar":
|
||||
this.$router.push({path: "/audit/userPictureAudit", query: {auditStatus: true}});
|
||||
case "userInfoCount":
|
||||
this.$router.push({path: "/audit/userInfoAudit", query: {auditStatus: true}});
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
@@ -219,7 +219,7 @@ export default {
|
||||
},
|
||||
getTodayStatistics() {
|
||||
// todo fetch
|
||||
staticIndex().then(response => {
|
||||
/* staticIndex().then(response => {
|
||||
const {
|
||||
todayLoginNum,
|
||||
todayLoginDiffLast,
|
||||
@@ -231,7 +231,18 @@ export default {
|
||||
todayWithdrawNum,
|
||||
todayWithdrawAmountDiffLast
|
||||
} = response.data
|
||||
/* {
|
||||
}) */
|
||||
const {
|
||||
todayLoginNum,
|
||||
todayLoginDiffLast,
|
||||
anchorNum,
|
||||
todayRechargeAmountNum,
|
||||
todayRechargeNum,
|
||||
todayRechargeAmountDiffLast,
|
||||
todayWithdrawAmount,
|
||||
todayWithdrawNum,
|
||||
todayWithdrawAmountDiffLast
|
||||
} = {
|
||||
todayLoginNum: 100,
|
||||
todayLoginDiffLast: 8.6,
|
||||
anchorNum: 58,
|
||||
@@ -241,8 +252,7 @@ export default {
|
||||
todayWithdrawAmount: 500,
|
||||
todayWithdrawNum: 1,
|
||||
todayWithdrawAmountDiffLast: 5.9
|
||||
} */
|
||||
|
||||
};
|
||||
this.loginModel.count = todayLoginNum
|
||||
this.loginModel.trendDirection = 1 // 增加还是减少
|
||||
this.loginModel.trendNum = todayLoginDiffLast
|
||||
@@ -256,7 +266,6 @@ export default {
|
||||
this.anchorModel.count = todayWithdrawAmount
|
||||
this.anchorModel.money = todayWithdrawNum
|
||||
this.anchorModel.trendNum = todayWithdrawAmountDiffLast
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user