9.4上午提交
This commit is contained in:
@@ -11,9 +11,11 @@
|
||||
height="140rpx"
|
||||
:border="false"
|
||||
backgroundColor="#eeeeee"
|
||||
/>
|
||||
|
||||
|
||||
>
|
||||
<template #right>
|
||||
<view class="save-text" @click="addGroup">新建</view>
|
||||
</template>
|
||||
</uni-nav-bar>
|
||||
<!-- 筛选排序栏 -->
|
||||
<view class="filter-sort-bar">
|
||||
<view class="sort-section" @click="toggleGroupSort">
|
||||
@@ -65,7 +67,7 @@
|
||||
<view class="groupcell" v-for="(group, gi) in groups" :key="group.uuid || gi">
|
||||
<view class="section-title" @click="toggleGroup(gi)">
|
||||
<view class="left">
|
||||
<view class="imgbox">
|
||||
<view class="imgbox" :class="{ 'active':openGroups[gi] }">
|
||||
<up-image v-if="!openGroups[gi]" :src="groupRightImg" width="19rpx" height="32rpx" ></up-image>
|
||||
<up-image v-else :src="groupDownImg" width="32rpx" height="19rpx" ></up-image>
|
||||
</view>
|
||||
@@ -102,6 +104,7 @@ import groupDownImg from "@/static/groupup_big.png"
|
||||
import api from '@/api/api.js';
|
||||
import docUrl from '@/utils/docUrl'
|
||||
import dayjs from 'dayjs'
|
||||
import navTo from '@/utils/navTo.js'
|
||||
const list_sort = ref(0);
|
||||
const group_sort = ref(0);
|
||||
|
||||
@@ -143,8 +146,9 @@ const toggleGroup = (idx) => {
|
||||
};
|
||||
|
||||
const editGroup = (group) => {
|
||||
// TODO: 跳转到分组编辑页或弹窗编辑
|
||||
uni.showToast({ title: `编辑:${group.name || '未命名分组'}`, icon: 'none' });
|
||||
navTo({
|
||||
url: `/pages_app/groupEdit/groupEdit?uuid=${group.uuid}`
|
||||
})
|
||||
};
|
||||
|
||||
// 分组排序弹窗状态
|
||||
@@ -173,7 +177,11 @@ const chooseGroupSort = (type) => {
|
||||
closeGroupSort();
|
||||
fetchGroupList();
|
||||
};
|
||||
|
||||
const addGroup = () => {
|
||||
navTo({
|
||||
url: `/pages_app/groupEdit/groupEdit`
|
||||
})
|
||||
}
|
||||
const toggleInnerSort = () => {
|
||||
showInnerSort.value = !showInnerSort.value;
|
||||
if (showInnerSort.value) showGroupSort.value = false;
|
||||
@@ -250,6 +258,14 @@ const createNew = () => {
|
||||
.popup-item.active .item-text {
|
||||
color: #8B2316;
|
||||
}
|
||||
.save-text{
|
||||
color:#8B2316;
|
||||
font-size: 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
}
|
||||
.status-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@@ -454,7 +470,9 @@ const createNew = () => {
|
||||
align-items:center;
|
||||
}
|
||||
.imgbox{
|
||||
margin-top: 4rpx;
|
||||
&.active{
|
||||
margin-top: -20rpx;
|
||||
}
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
.right-edit{
|
||||
|
||||
Reference in New Issue
Block a user