Commit 97c650ab authored by zhangsan's avatar zhangsan

1

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