Commit 97c650ab authored by zhangsan's avatar zhangsan

1

parent ddf31052
Pipeline #51 failed with stages
This diff is collapsed.
......@@ -22,6 +22,8 @@ declare module 'vue' {
VanList: typeof import('vant/es')['List']
VanLoading: typeof import('vant/es')['Loading']
VanNavBar: typeof import('vant/es')['NavBar']
VanSwipe: typeof import('vant/es')['Swipe']
VanSwipeItem: typeof import('vant/es')['SwipeItem']
VanTag: typeof import('vant/es')['Tag']
VarButton: typeof import('@varlet/ui')['Button']
VarCountTo: typeof import('@varlet/ui')['CountTo']
......
<template>
<div class="container">
<div class="czwj-header">
<img src="@/static/czwj/4.png" alt="logo" />
<img src="@/static/file.png" alt="logo" />
</div>
</div>
</template>
......@@ -17,17 +17,10 @@
height: 100%;
padding-top: 100px;
.czwj-header {
width: 100%;
background: url('@/static/czwj/2.png') no-repeat;
background-size: calc(100% + 30px) 100%;
padding-top: 50px;
background-color: #fff;
width: calc(100% - 30px);
margin: 0 auto;
img {
width: calc(100% - 60px);
margin: 0 auto 0;
display: block;
width: 100%;
}
}
}
......
......@@ -2,7 +2,9 @@
<div class="container">
<!-- 顶部红色背景区域 -->
<div class="header-bg">
<div class="title">精准扶贫</div>
<van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
<van-swipe-item>1</van-swipe-item>
</van-swipe>
</div>
<!-- 视频通知区域 -->
......
......@@ -18,17 +18,11 @@ const emptyTipsShow = ref(false)
const oneC = ref(0)
const twoC = ref(0)
const thirC = ref(0)
// 获取团队信息
const getTeam = async () => {
try {
loading.value = true
const data = {
pageNum: pageNum.value,
pageSize: pageSize.value,
type: 1
}
const res = await request.get('/ops/teamRanking/achievement', data)
const res = await request.get(`/ops/teamRanking/achievement?pageNum=${pageNum.value}&pageSize=${pageSize.value}&type=1`)
if (res.code === 200) {
list.value = [...list.value, ...res.data.rows]
total.value = res.data.total
......@@ -39,7 +33,6 @@ const getTeam = async () => {
oneC.value = res.data.firstChildTotal
twoC.value = res.data.secondChildTotal
thirC.value = res.data.thirdChildTotal
if (list.value.length >= total.value) {
finished.value = true
} else {
......@@ -54,7 +47,6 @@ const getTeam = async () => {
showFailToast('加载失败,请重试')
finished.value = true
} finally {
finished.value = true
loading.value = false
}
}
......@@ -166,7 +158,8 @@ getTeam()
border-radius: 12px;
padding: 10px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
height: calc(100vh - 200px);
overflow-y: auto;
.item {
display: flex;
align-items: center;
......
......@@ -6,6 +6,7 @@ import { VantResolver } from '@vant/auto-import-resolver'
import { VarletUIResolver } from 'unplugin-vue-components/resolvers'
import AutoImport from 'unplugin-auto-import/vite'
import { fileURLToPath, URL } from 'url'
import vitePluginBundleObfuscator from 'vite-plugin-bundle-obfuscator';
// https://vitejs.dev/config/
export default defineConfig({
......@@ -37,6 +38,12 @@ export default defineConfig({
],
dts: 'src/components.d.ts',
dirs: ['src/components']
}),
vitePluginBundleObfuscator({
enable: true,
log: true,
autoExcludeNodeModules: true,
threadPool: true,
})
],
resolve: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment