From 3282e95db0207ee133d1e98d9771dec9d83b0fc4 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 02 四月 2026 16:24:38 +0800
Subject: [PATCH] 2026.4.2 新增专题管理功能
---
pages/usercenter/notice/publish/components/user-list/index.wxml | 70 ++++++++++++++++++-----------------
1 files changed, 36 insertions(+), 34 deletions(-)
diff --git a/pages/usercenter/notice/publish/components/user-list/index.wxml b/pages/usercenter/notice/publish/components/user-list/index.wxml
index 93acf58..7cdf15c 100644
--- a/pages/usercenter/notice/publish/components/user-list/index.wxml
+++ b/pages/usercenter/notice/publish/components/user-list/index.wxml
@@ -21,44 +21,46 @@
>
</view>
<view class="filter-wrap">
- <template
- is="picker-selector"
- data="{{key: 'scene', value: sceneText}}"
- />
- <template
- is="picker-selector"
- data="{{key: 'district', value: districtText}}"
- />
+ <template is="picker-selector" data="{{key: 'scene', value: sceneText}}" />
+ <template is="picker-selector" data="{{key: 'district', value: districtText}}" />
<template is="picker-selector" data="{{key: 'town', value: townText}}" />
</view>
- <t-search
- placeholder="{{placeholder}}"
- model:value="{{searchValue}}"
- bind:submit="_startLoad"
- bind:clear="_startLoad"
- >
- </t-search>
+ <view class="filter-wrap">
+ <t-search
+ style="flex: 1"
+ placeholder="{{placeholder}}"
+ model:value="{{searchValue}}"
+ bind:submit="_startLoad"
+ bind:clear="_startLoad"
+ >
+ </t-search>
+ <t-checkbox
+ t-class="t-class-checkbox"
+ placement="right"
+ borderless
+ icon="rectangle"
+ block="{{true}}"
+ label="鍏ㄩ��"
+ checked="{{checkAll}}"
+ bind:change="onCheckAll"
+ />
+ </view>
</view>
<view class="page-container">
- <scroll-view
- style="height: 70vh"
- scroll-y="{{true}}"
- bindscrolltolower="_loadMore"
- >
- <t-checkbox
- wx:for="{{list}}"
- wx:key="index"
- t-class-label="t-class-checkbox-label"
- label="{{item.realname}}"
- data-index="{{index}}"
- checked="{{item.checked}}"
- bind:change="onCheckBoxChange"
- />
- <load-more
- list-is-empty="{{!list.length}}"
- status="{{loadStatus}}"
- bind:retry="_startLoad"
- />
+ <scroll-view style="height: 70vh" scroll-y="{{true}}" bindscrolltolower="_loadMore">
+ <block wx:if="{{list.length > 0}}">
+ <t-checkbox
+ wx:for="{{list}}"
+ wx:key="index"
+ t-class-label="t-class-checkbox-label"
+ label="{{item.realname}}"
+ data-index="{{index}}"
+ checked="{{item.checked}}"
+ bind:change="onCheckBoxChange"
+ />
+ </block>
+ <t-empty-page wx:else description="鏃犵浉鍏宠褰�" />
+ <load-more list-is-empty="{{!list.length}}" status="{{loadStatus}}" bind:retry="_startLoad" />
</scroll-view>
</view>
<!-- <view class="footer">
--
Gitblit v1.9.3