2024-04-23 23:01:35 +08:00
|
|
|
<template>
|
2024-05-09 15:44:03 +08:00
|
|
|
<view class="content">
|
2024-06-27 10:31:27 +08:00
|
|
|
<view class="bj">
|
|
|
|
<view class="text1">
|
|
|
|
<view class="text1-1">校园管理</view>
|
|
|
|
<view class="text1-2">在线审核</view>
|
|
|
|
<view class="text1-3">
|
|
|
|
<view class="text1-4">随时随地的在线审核</view>
|
2024-05-28 10:34:28 +08:00
|
|
|
</view>
|
2024-05-07 21:28:47 +08:00
|
|
|
</view>
|
2024-06-27 10:31:27 +08:00
|
|
|
<image :src="adindex1" class="bj-img"></image>
|
2024-05-07 21:28:47 +08:00
|
|
|
</view>
|
2024-06-27 10:31:27 +08:00
|
|
|
<view class="grid">
|
2024-06-28 22:18:34 +08:00
|
|
|
<!-- 通过未通过显示 -->
|
2024-06-27 10:31:27 +08:00
|
|
|
<view class="grid1">
|
|
|
|
<up-grid :border="false" col="3" @click="grid1Click1">
|
|
|
|
<up-grid-item v-for="(listItem, listIndex) in list1" :key="listIndex"
|
|
|
|
customStyle="padding-top: 24rpx; ">
|
|
|
|
<image :src="listItem.icon" style="width: 70rpx; height: 80rpx;"></image>
|
|
|
|
<text style="font-size: 24rpx;color: #6AA2FF;margin-top: 12rpx;">{{ listItem.title }}</text>
|
|
|
|
</up-grid-item>
|
|
|
|
</up-grid>
|
2024-05-07 21:28:47 +08:00
|
|
|
</view>
|
2024-06-28 22:18:34 +08:00
|
|
|
<!-- 管理工具 -->
|
2024-06-27 10:31:27 +08:00
|
|
|
<view class="grid2">
|
|
|
|
<view class="text2">管理工具</view>
|
2024-07-15 14:53:35 +08:00
|
|
|
<!-- <up-grid :border="false" col="4" @click="grid1Click2">
|
2024-06-27 10:31:27 +08:00
|
|
|
<up-grid-item v-for="(listItem, listIndex) in list2" :key="listIndex"
|
|
|
|
customStyle="padding-top: 30rpx; ">
|
2024-07-15 14:53:35 +08:00
|
|
|
<image :src="listItem.icon" style="width: 60rpx; height: 60rpx;"></image>
|
|
|
|
<text style="font-size: 24rpx;color: #6AA2FF;margin-top: 12rpx;">{{ linstItem.title }}</text>
|
2024-06-27 10:31:27 +08:00
|
|
|
</up-grid-item>
|
2024-07-15 14:53:35 +08:00
|
|
|
</up-grid> -->
|
|
|
|
<up-grid :border="false" col="4" @click="grid1Click2">
|
|
|
|
<up-grid-item v-for="(listItem, listIndex) in list2" :key="listIndex"
|
|
|
|
customStyle="padding-top: 30rpx;">
|
|
|
|
<image :src="listItem.icon"
|
|
|
|
:style="{width: listIndex === 1 ? '53rpx' : listIndex === 3 ? '49rpx' : '60rpx',
|
|
|
|
height: listIndex === 1 ? '60rpx' : listIndex === 3 ? '60rpx' : '60rpx'}"></image>
|
|
|
|
<text style="font-size: 24rpx;color: #6AA2FF;margin-top: 12rpx;">{{ listItem.title }}</text>
|
|
|
|
</up-grid-item>
|
|
|
|
</up-grid>
|
2024-05-09 15:44:03 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
2024-05-09 12:19:48 +08:00
|
|
|
</view>
|
|
|
|
</template>
|
2024-05-07 21:28:47 +08:00
|
|
|
|
2024-06-05 12:43:54 +08:00
|
|
|
<script setup>
|
2024-06-30 10:51:17 +08:00
|
|
|
import { getCount } from "@/api/activityInfo/info";
|
2024-06-27 10:31:27 +08:00
|
|
|
import {
|
|
|
|
ref,
|
|
|
|
reactive,
|
|
|
|
toRefs,
|
|
|
|
onMounted,
|
|
|
|
onUnmounted,
|
|
|
|
onBeforeUnmount,
|
|
|
|
getCurrentInstance
|
|
|
|
} from 'vue';
|
|
|
|
import {
|
|
|
|
onReachBottom,
|
|
|
|
onLoad,
|
|
|
|
onShow,
|
|
|
|
onPageScroll
|
|
|
|
} from "@dcloudio/uni-app";
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
const QNDomain = proxy.$store.state.user.QNDomain
|
|
|
|
const bgColor = ref('rgba(170, 0, 0, 0)');
|
|
|
|
const isOfficial = ref(true)
|
|
|
|
const kfopen = ref(false)
|
|
|
|
|
|
|
|
const iconConfig = proxy.iconConfig;
|
|
|
|
const adindex1 = iconConfig.adindex1;
|
|
|
|
|
|
|
|
const adgrade = iconConfig.adgrade;
|
|
|
|
const adcoin = iconConfig.adcoin;
|
|
|
|
const puacti = iconConfig.puacti;
|
|
|
|
const admyactivity = iconConfig.admyactivity;
|
|
|
|
const adpass = iconConfig.adpass;
|
|
|
|
const talkautid = iconConfig.talkautid;
|
|
|
|
const stuaudit = iconConfig.stuaudit;
|
|
|
|
const adacaudit = iconConfig.adacaudit;
|
|
|
|
const adaudit = iconConfig.adaudit;
|
|
|
|
const auditreject = iconConfig.auditreject;
|
|
|
|
|
|
|
|
|
|
|
|
const auditrejectacount = ref(111)
|
|
|
|
const adauditacount = ref(111)
|
|
|
|
const adpassacount = ref(111)
|
|
|
|
const list1 = ref([
|
|
|
|
{ icon: auditreject, title: `未通过(${auditrejectacount.value})` },
|
|
|
|
{ icon: adaudit, title: `待审核(${adauditacount.value})` },
|
|
|
|
{ icon: adpass, title: `已通过(${adpassacount.value})` }
|
|
|
|
])
|
|
|
|
const list2 = ref([
|
|
|
|
{ icon: talkautid, title: '话题审核' },
|
|
|
|
{ icon: adacaudit, title: '活动审核' },
|
|
|
|
{ icon: stuaudit, title: '认证审核' },
|
|
|
|
{ icon: admyactivity, title: '我的活动' },
|
|
|
|
{ icon: puacti, title: '发布活动' },
|
|
|
|
{ icon: adcoin, title: '校园币管理' },
|
|
|
|
{ icon: adgrade, title: '等级管理' }
|
|
|
|
])
|
|
|
|
const grid1Click1 = (e) => {
|
|
|
|
console.log(e);
|
|
|
|
}
|
2024-06-30 10:51:17 +08:00
|
|
|
onLoad(() => {
|
2024-06-30 11:33:39 +08:00
|
|
|
getCountInfo();
|
|
|
|
})
|
|
|
|
onShow(() => {
|
|
|
|
getCountInfo();
|
|
|
|
})
|
|
|
|
const getCountInfo = () =>{
|
2024-06-30 10:51:17 +08:00
|
|
|
let from = {}
|
|
|
|
getCount(from).then(e => {
|
|
|
|
|
|
|
|
let data = e.data
|
|
|
|
// 将字符串转换为整数并相加
|
|
|
|
auditrejectacount.value = parseInt(data.talkTopicNoPass) + parseInt(data.actiTopicNoPass);
|
|
|
|
adauditacount.value = parseInt(data.talkTopicAudit) + parseInt(data.actiTopicAudit);
|
2024-07-07 01:06:14 +08:00
|
|
|
adpassacount.value = parseInt(data.talkTopicPass) + parseInt(data.actiTopicPass);
|
2024-06-30 10:51:17 +08:00
|
|
|
list1.value = [
|
|
|
|
{ icon: auditreject, title: `未通过(${auditrejectacount.value})` },
|
|
|
|
{ icon: adaudit, title: `待审核(${adauditacount.value})` },
|
|
|
|
{ icon: adpass, title: `已通过(${adpassacount.value})` }
|
|
|
|
]
|
|
|
|
})
|
2024-06-30 11:33:39 +08:00
|
|
|
}
|
2024-06-30 10:51:17 +08:00
|
|
|
|
|
|
|
|
2024-06-29 22:16:24 +08:00
|
|
|
// 点击管理工具的按钮aaa
|
2024-06-27 10:31:27 +08:00
|
|
|
const grid1Click2 = (e) => {
|
2024-06-30 10:51:17 +08:00
|
|
|
console.log('点击了这个按钮', e);
|
2024-06-29 22:16:16 +08:00
|
|
|
// e==>0 话题审核
|
2024-06-30 10:51:17 +08:00
|
|
|
if (e == 0) {
|
2024-06-29 22:16:16 +08:00
|
|
|
uni.navigateTo({
|
2024-06-30 10:51:17 +08:00
|
|
|
url: '/pages/work/index'
|
2024-06-29 22:16:16 +08:00
|
|
|
})
|
|
|
|
}
|
2024-06-30 10:51:17 +08:00
|
|
|
if (e == 1) {
|
2024-06-29 22:16:16 +08:00
|
|
|
uni.navigateTo({
|
2024-06-30 10:51:17 +08:00
|
|
|
url: '/pages/work/activity_sh/activity_sh'
|
2024-06-29 22:16:16 +08:00
|
|
|
})
|
|
|
|
}
|
2024-06-30 10:51:17 +08:00
|
|
|
if (e == 2) {
|
2024-06-30 01:33:13 +08:00
|
|
|
uni.navigateTo({
|
2024-06-30 10:51:17 +08:00
|
|
|
url: '/pages/work/renzhen_sh/renzhen_sh'
|
2024-06-30 01:33:13 +08:00
|
|
|
})
|
|
|
|
}
|
2024-06-30 10:51:17 +08:00
|
|
|
if (e == 3) {
|
2024-06-30 01:33:13 +08:00
|
|
|
uni.navigateTo({
|
2024-06-30 10:51:17 +08:00
|
|
|
url: '/pages/work/My_activity/My_activity'
|
2024-06-30 01:33:13 +08:00
|
|
|
})
|
|
|
|
}
|
2024-06-29 22:16:16 +08:00
|
|
|
// e==>4 发布活动
|
2024-06-30 10:51:17 +08:00
|
|
|
if (e == 4) {
|
2024-06-28 22:18:34 +08:00
|
|
|
uni.navigateTo({
|
2024-06-30 10:51:17 +08:00
|
|
|
url: '/pages/activity/publish'
|
2024-06-28 22:18:34 +08:00
|
|
|
})
|
|
|
|
}
|
2024-06-30 10:51:17 +08:00
|
|
|
if (e == 5) {
|
2024-06-30 01:33:13 +08:00
|
|
|
uni.navigateTo({
|
2024-06-30 10:51:17 +08:00
|
|
|
url: '/pages/work/guanli_gold/guanli_gold'
|
2024-06-30 01:33:13 +08:00
|
|
|
})
|
|
|
|
}
|
2024-07-01 22:36:02 +08:00
|
|
|
if (e == 6) {
|
|
|
|
uni.navigateTo({
|
|
|
|
url: '/pages/work/guanli_level/guanli_level'
|
|
|
|
})
|
|
|
|
}
|
2024-06-30 10:51:17 +08:00
|
|
|
|
2024-06-27 10:31:27 +08:00
|
|
|
}
|
|
|
|
</script>
|
2024-06-15 00:26:10 +08:00
|
|
|
|
2024-06-27 10:31:27 +08:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
page {
|
|
|
|
background: #FFFFFF;
|
|
|
|
}
|
2024-06-15 00:26:10 +08:00
|
|
|
|
2024-06-27 10:31:27 +08:00
|
|
|
.content {
|
2024-07-15 14:53:35 +08:00
|
|
|
height: 100%;
|
|
|
|
background-color: #ffffff;
|
2024-06-27 10:31:27 +08:00
|
|
|
position: relative;
|
|
|
|
}
|
2024-06-15 00:26:10 +08:00
|
|
|
|
2024-06-27 10:31:27 +08:00
|
|
|
.bj {
|
|
|
|
width: 750rpx;
|
|
|
|
height: 400rpx;
|
|
|
|
background: #6aa2ff;
|
|
|
|
z-index: -1;
|
2024-06-15 00:26:10 +08:00
|
|
|
|
2024-06-27 10:31:27 +08:00
|
|
|
.text1 {
|
|
|
|
position: relative;
|
|
|
|
top: 120rpx;
|
|
|
|
left: 60rpx;
|
|
|
|
width: 244rpx;
|
2024-06-15 00:26:10 +08:00
|
|
|
|
|
|
|
|
2024-06-27 10:31:27 +08:00
|
|
|
.text1-1 {
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 48rpx;
|
|
|
|
color: #FFFFFF;
|
|
|
|
margin-bottom: 30rpx;
|
2024-06-16 13:51:53 +08:00
|
|
|
}
|
2024-06-15 00:26:10 +08:00
|
|
|
|
2024-06-27 10:31:27 +08:00
|
|
|
.text1-2 {
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 48rpx;
|
|
|
|
color: #FFFFFF;
|
|
|
|
margin-bottom: 30rpx;
|
2024-06-16 13:51:53 +08:00
|
|
|
}
|
2024-05-07 21:28:47 +08:00
|
|
|
|
2024-06-27 10:31:27 +08:00
|
|
|
.text1-3 {
|
|
|
|
width: 242rpx;
|
|
|
|
height: 42rpx;
|
2024-07-15 14:53:35 +08:00
|
|
|
line-height: 42rpx;
|
2024-06-27 10:31:27 +08:00
|
|
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
|
|
border: 2rpx solid #FFFFFF; // 添加这一行
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
.text1-4 {
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 24rpx;
|
|
|
|
color: #FFFFFF;
|
2024-05-28 10:34:28 +08:00
|
|
|
}
|
|
|
|
}
|
2024-05-07 21:28:47 +08:00
|
|
|
}
|
2024-06-15 00:26:10 +08:00
|
|
|
|
2024-06-27 10:31:27 +08:00
|
|
|
.bj-img {
|
|
|
|
width: 280rpx;
|
|
|
|
height: 276rpx;
|
2024-06-15 00:26:10 +08:00
|
|
|
position: fixed;
|
2024-06-27 10:31:27 +08:00
|
|
|
top: 88rpx;
|
|
|
|
left: 428rpx;
|
2024-06-15 00:26:10 +08:00
|
|
|
}
|
2024-06-27 10:31:27 +08:00
|
|
|
}
|
2024-06-15 00:26:10 +08:00
|
|
|
|
2024-06-27 10:31:27 +08:00
|
|
|
.grid {}
|
2024-06-15 00:26:10 +08:00
|
|
|
|
2024-06-27 10:31:27 +08:00
|
|
|
.grid1 {
|
|
|
|
width: 686rpx;
|
|
|
|
height: 166rpx;
|
|
|
|
border-radius: 16rpx;
|
|
|
|
background: #ffffff;
|
|
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); // 添加这一行
|
|
|
|
margin: 32rpx auto;
|
2024-06-15 00:26:10 +08:00
|
|
|
|
2024-06-27 10:31:27 +08:00
|
|
|
}
|
2024-06-15 00:26:10 +08:00
|
|
|
|
2024-06-27 10:31:27 +08:00
|
|
|
.grid2 {
|
|
|
|
width: 686rpx;
|
2024-06-30 10:51:17 +08:00
|
|
|
height: 350rpx;
|
2024-06-27 10:31:27 +08:00
|
|
|
border-radius: 16rpx;
|
|
|
|
background: #ffffff;
|
|
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); // 添加这一行
|
|
|
|
margin: 0 auto;
|
2024-06-15 00:26:10 +08:00
|
|
|
|
2024-06-27 10:31:27 +08:00
|
|
|
.text2 {
|
2024-06-15 00:26:10 +08:00
|
|
|
font-weight: 600;
|
2024-06-27 10:31:27 +08:00
|
|
|
font-size: 28rpx;
|
|
|
|
color: #6AA2FF;
|
|
|
|
margin-top: 24rpx;
|
|
|
|
margin-left: 24rpx;
|
2024-06-15 00:26:10 +08:00
|
|
|
}
|
2024-05-09 12:19:48 +08:00
|
|
|
|
2024-06-27 10:31:27 +08:00
|
|
|
}
|
2024-06-17 15:06:06 +08:00
|
|
|
</style>
|