|
|
@ -1,13 +1,13 @@ |
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
const navto = (url: string, params = {}) => uni.$util.goToPage({ url, params }); |
|
|
const navto = (url: string, params = {}) => uni.$util.goToPage({ url, params }) |
|
|
const doSearch = (_formData: { page: number; limit: number }, onSuccess: Function) => { |
|
|
const doSearch = (_formData: { page: number; limit: number }, onSuccess: Function) => { |
|
|
onSuccess({ |
|
|
onSuccess({ |
|
|
data: { |
|
|
data: { |
|
|
data: [{ name: "测试一" }, { name: "测试二" }], |
|
|
data: [{ name: '测试一' }, { name: '测试二' }], |
|
|
total: 4, |
|
|
total: 4 |
|
|
}, |
|
|
} |
|
|
}); |
|
|
}) |
|
|
}; |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<template> |
|
|
<template> |
|
|
@ -18,12 +18,12 @@ const doSearch = (_formData: { page: number; limit: number }, onSuccess: Functio |
|
|
<view class="flex"> |
|
|
<view class="flex"> |
|
|
<view class="flex1"> |
|
|
<view class="flex1"> |
|
|
<view class="flex-center-start"> |
|
|
<view class="flex-center-start"> |
|
|
<text class="text-ellipsis title">{{ "2024年度学生会主席选举" }}</text> |
|
|
<text class="text-ellipsis title">{{ '2024年度学生会主席选举' }}</text> |
|
|
<text class="status b">进行中</text> |
|
|
<text class="status b">进行中</text> |
|
|
<!-- <text class="status f">未开始</text> --> |
|
|
<!-- <text class="status f">未开始</text> --> |
|
|
<!-- <text class="status e">已结束</text> --> |
|
|
<!-- <text class="status e">已结束</text> --> |
|
|
</view> |
|
|
</view> |
|
|
<view class="time">{{ "投票时间:2024-03-01 至 2024-03-07" }}</view> |
|
|
<view class="time">{{ '投票时间:2024-03-01 至 2024-03-07' }}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view :class="{ arrow: true, active: row.showInfo }" @click="row.showInfo = !row.showInfo"> |
|
|
<view :class="{ arrow: true, active: row.showInfo }" @click="row.showInfo = !row.showInfo"> |
|
|
<u-icon name="arrow-down" color="#9CA3AF" /> |
|
|
<u-icon name="arrow-down" color="#9CA3AF" /> |
|
|
|