fix: 修复样式
parent
2902d26d02
commit
ce32206709
|
|
@ -66,7 +66,7 @@ onLoad(() => {
|
|||
{{ new Date().getFullYear() - 1 }}招生计划完成率100%</view>
|
||||
<view
|
||||
class="bg-[#F8F8F8] px-[10rpx] py-[4rpx] text-[24rpx] text-[#666]"
|
||||
v-for="feature in schoolDetail.tags.split('、')" :key="feature">{{ feature }}</view>
|
||||
v-for="feature in schoolDetail.tags.split(/[\s,,、]+/)" :key="feature">{{ feature }}</view>
|
||||
</view>
|
||||
<view class="text-[#303030] text-[24rpx] mb-[10rpx]">{{ schoolDetail.region }}·{{
|
||||
schoolDetail.schoolNature }}</view>
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ onLoad(() => {
|
|||
})
|
||||
})
|
||||
|
||||
const paging = ref(null)
|
||||
const paging = ref<any>(null)
|
||||
const schoolList = ref<any[]>([])
|
||||
const queryList = (page: number, pageSize: number) => {
|
||||
getBusHightSchoolList({
|
||||
|
|
@ -86,7 +86,7 @@ const queryList = (page: number, pageSize: number) => {
|
|||
}
|
||||
})
|
||||
}
|
||||
const virtualListChange = (_vList) => {
|
||||
const virtualListChange = (_vList:any) => {
|
||||
schoolList.value = _vList
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ definePage({
|
|||
})
|
||||
// #endif
|
||||
|
||||
const tabs = ref([])
|
||||
const articles = ref([])
|
||||
const tabs = ref<any[]>([])
|
||||
const articles = ref<any[]>([])
|
||||
const handleBack = () => {
|
||||
uni.navigateBack({ delta: 1 })
|
||||
}
|
||||
|
|
@ -44,7 +44,7 @@ const toDetailPage = (id: number) => {
|
|||
|
||||
const searchParams = ref({ keyword: "", activeTab: '' })
|
||||
|
||||
const paging = ref(null)
|
||||
const paging = ref<any>(null)
|
||||
|
||||
const queryList = (page: number, pageSize: number) => {
|
||||
if (searchParams.value.activeTab === "") {
|
||||
|
|
@ -69,7 +69,7 @@ const queryList = (page: number, pageSize: number) => {
|
|||
}
|
||||
|
||||
}
|
||||
const virtualListChange = (_vList) => {
|
||||
const virtualListChange = (_vList:any) => {
|
||||
articles.value = _vList
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -29,9 +29,9 @@ const handleBack = () => {
|
|||
}
|
||||
|
||||
const regionVisible = ref(false)
|
||||
const regions = ref([])
|
||||
const regions = ref<{label:string;value:string|number}[]>([])
|
||||
|
||||
const schools = ref([])
|
||||
const schools = ref<{schoolName:string}[]>([])
|
||||
const searchParams = ref({
|
||||
keyword: "",
|
||||
region: "",
|
||||
|
|
|
|||
|
|
@ -81,6 +81,14 @@ const handleChange = () => {
|
|||
})
|
||||
}
|
||||
|
||||
const handleComplete = () => {
|
||||
if(searchParams.value.score === '' || searchParams.value.score < minScore.value){
|
||||
searchParams.value.score = minScore.value
|
||||
} else if(searchParams.value.score > maxScore.value){
|
||||
searchParams.value.score = maxScore.value
|
||||
}
|
||||
}
|
||||
|
||||
onShow(() => {
|
||||
|
||||
Promise.all([
|
||||
|
|
@ -124,7 +132,7 @@ onShow(() => {
|
|||
</sar-dropdown>
|
||||
<view class="bg-[#F8F8F8] flex-1">
|
||||
<mx-search v-model:searchText="searchParams.score" input-type="number" :searchIcon="true"
|
||||
rootStyle="margin: 32rpx 30rpx 0;background-color:#fff;" root-class="pl-[30rpx]" @submit="handleChange" />
|
||||
rootStyle="margin: 32rpx 30rpx 0;background-color:#fff;" root-class="pl-[30rpx]" @complete="handleComplete" @submit="handleChange" />
|
||||
<view class="text-[#9E9E9E] text-[24rpx] bg-[#F8F8F8] ml-[50rpx] my-[20rpx]">支持查询180-660分</view>
|
||||
|
||||
<view class="mx-[30rpx] bg-white px-[30rpx] pt-[30rpx] pb-[20rpx] rounded-[20rpx]">
|
||||
|
|
|
|||
Loading…
Reference in New Issue