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