【招生小程序】 优化# 1、登录页logo替换;2、主账号-团队:支持下拉刷新

master
kaeery 2025-03-12 17:16:52 +08:00
parent 0c5361e2fa
commit 34f6cf5829
4 changed files with 24 additions and 9 deletions

View File

@ -3,7 +3,7 @@
<view class="z-10"> <view class="z-10">
<w-navbarComp title="登录" /> <w-navbarComp title="登录" />
<view class="flex flex-col items-center justify-between w-full mt-[15%] mb-[40rpx]"> <view class="flex flex-col items-center justify-between w-full mt-[15%] mb-[40rpx]">
<u-image :src="logo" mode="widthFix" height="120" width="200" /> <u-image :src="logo" mode="widthFix" height="80" width="80" />
<!-- <view class="mt-10 text-[36rpx] font-medium">充电桩维护系统</view> --> <!-- <view class="mt-10 text-[36rpx] font-medium">充电桩维护系统</view> -->
</view> </view>
@ -95,7 +95,7 @@ import { navigateTo } from '@/utils/util'
import { AgreementEnum } from '@/enums/agreementEnums' import { AgreementEnum } from '@/enums/agreementEnums'
import { BACK_URL, ROLEINDEX } from '@/enums/cacheEnums' import { BACK_URL, ROLEINDEX } from '@/enums/cacheEnums'
import { ChannelEnum, LoginTypeEnum } from '@/enums/appEnums' import { ChannelEnum, LoginTypeEnum } from '@/enums/appEnums'
import logo from '@/static/images/logo.png' import logo from '@/static/images/logo.jpg'
import { setNextRoute } from '@/hooks/useRoleData' import { setNextRoute } from '@/hooks/useRoleData'
import { getAllDict } from '@/hooks/useDictOptions' import { getAllDict } from '@/hooks/useDictOptions'

View File

@ -1,5 +1,5 @@
<template> <template>
<view class="px-[32rpx] min-h-[250rpx] bg-white"> <view class="min-h-[250rpx] bg-white mx-[32rpx] rounded-[16rpx]">
<template v-if="loading && !data.length"> <template v-if="loading && !data.length">
<view class="min-h-[200rpx] flex justify-center items-center"> <view class="min-h-[200rpx] flex justify-center items-center">
<u-loading-icon></u-loading-icon> <u-loading-icon></u-loading-icon>

View File

@ -1,17 +1,27 @@
<template> <template>
<view class="flex flex-col gap-[24rpx] mb-[20rpx]"> <view class="flex flex-col gap-[24rpx] mb-[20rpx] h-full">
<dropdownPicker <dropdownPicker
ref="dropdownPickerRef" ref="dropdownPickerRef"
v-model="form" v-model="form"
@refresh-page="refreshPage" @refresh-page="refreshPage"
@confirm="confirm" @confirm="confirm"
/> />
<filter-value :form="form" :activeTab="activeTab" :organizationList="organizationList" /> <view class="flex-1">
<z-paging ref="paging" refresher-only :fixed="false" @onRefresh="onRefresh">
<view class="flex flex-col gap-[24rpx] mb-[24rpx]">
<filter-value
:form="form"
:activeTab="activeTab"
:organizationList="organizationList"
/>
<data-overview ref="dataOverviewRef" /> <data-overview ref="dataOverviewRef" />
<converted-overview ref="convertedOverviewRef" /> <converted-overview ref="convertedOverviewRef" />
<rank ref="rankRef" @refresh="refreshData" /> <rank ref="rankRef" @refresh="refreshData" />
<clue-status ref="clueStatusRef" /> <clue-status ref="clueStatusRef" />
</view> </view>
</z-paging>
</view>
</view>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -41,6 +51,7 @@ defineProps({
default: AdminTabEnum.TEAM default: AdminTabEnum.TEAM
} }
}) })
const paging = ref()
const dropdownPickerRef = ref<InstanceType<typeof dropdownPicker>>() const dropdownPickerRef = ref<InstanceType<typeof dropdownPicker>>()
const clueStatusRef = ref<InstanceType<typeof clueStatus>>() const clueStatusRef = ref<InstanceType<typeof clueStatus>>()
const rankRef = ref<InstanceType<typeof rank>>() const rankRef = ref<InstanceType<typeof rank>>()
@ -75,5 +86,9 @@ const fetchAllData = () => {
rankRef.value?.fetchData(form.value) rankRef.value?.fetchData(form.value)
clueStatusRef.value?.fetchData(form.value) clueStatusRef.value?.fetchData(form.value)
} }
const onRefresh = () => {
refreshPage()
paging.value.complete()
}
</script> </script>
<style scoped></style> <style scoped></style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB