Files
t-admin/unpackage/dist/dev/mp-weixin/pages/comment/list.wxml
T
2025-06-13 21:16:12 +08:00

1 line
4.4 KiB
Plaintext

<view><view class="uni-header"><view class="uni-group"><view class="uni-title"></view><view class="uni-sub-title"></view></view><view class="uni-group"><input class="uni-search" type="text" bindconfirm="{{a}}" placeholder="请输入搜索内容" value="{{b}}" bindinput="{{c}}"/><button class="uni-button" type="default" size="mini" bindtap="{{d}}">搜索</button><button class="uni-button" type="default" size="mini" bindtap="{{e}}">新增</button><button class="uni-button" type="default" size="mini" disabled="{{f}}" bindtap="{{g}}">批量删除</button><download-excel wx:if="{{h}}" u-s="{{['d']}}" class="hide-on-phone" u-i="c14b1290-0" bind:__l="__l" u-p="{{h}}"><button class="uni-button" type="primary" size="mini">导出 Excel</button></download-excel></view></view><view class="uni-container"><unicloud-db wx:if="{{ab}}" class="r" u-s="{{['d']}}" u-r="udb" bindload="{{aa}}" u-i="c14b1290-1" bind:__l="__l" u-p="{{ab}}"><view wx:for="{{i}}" wx:for-item="v0" wx:key="t" slot="{{v0.v}}"><uni-table wx:if="{{v0.p}}" class="r" u-s="{{['d']}}" u-r="table" bindselectionChange="{{X}}" u-i="{{v0.o}}" bind:__l="__l" u-p="{{v0.p}}"><uni-tr u-s="{{['d']}}" u-i="{{v0.l}}" bind:__l="__l"><uni-th wx:if="{{l}}" u-s="{{['d']}}" bindfilterChange="{{j}}" bindsortChange="{{k}}" u-i="{{v0.a}}" bind:__l="__l" u-p="{{l}}">评论内容</uni-th><uni-th wx:if="{{o}}" u-s="{{['d']}}" bindfilterChange="{{m}}" bindsortChange="{{n}}" u-i="{{v0.b}}" bind:__l="__l" u-p="{{o}}">root_id</uni-th><uni-th wx:if="{{q}}" u-s="{{['d']}}" bindsortChange="{{p}}" u-i="{{v0.c}}" bind:__l="__l" u-p="{{q}}">author_id</uni-th><uni-th wx:if="{{t}}" u-s="{{['d']}}" bindfilterChange="{{r}}" bindsortChange="{{s}}" u-i="{{v0.d}}" bind:__l="__l" u-p="{{t}}">parent_id</uni-th><uni-th wx:if="{{w}}" u-s="{{['d']}}" bindsortChange="{{v}}" u-i="{{v0.e}}" bind:__l="__l" u-p="{{w}}">article_id</uni-th><uni-th wx:if="{{z}}" u-s="{{['d']}}" bindfilterChange="{{x}}" bindsortChange="{{y}}" u-i="{{v0.f}}" bind:__l="__l" u-p="{{z}}">like_count</uni-th><uni-th wx:if="{{C}}" u-s="{{['d']}}" bindfilterChange="{{A}}" bindsortChange="{{B}}" u-i="{{v0.g}}" bind:__l="__l" u-p="{{C}}">create_time</uni-th><uni-th wx:if="{{F}}" u-s="{{['d']}}" bindfilterChange="{{D}}" bindsortChange="{{E}}" u-i="{{v0.h}}" bind:__l="__l" u-p="{{F}}">update_time</uni-th><uni-th wx:if="{{I}}" u-s="{{['d']}}" bindfilterChange="{{G}}" bindsortChange="{{H}}" u-i="{{v0.i}}" bind:__l="__l" u-p="{{I}}">reply_count</uni-th><uni-th wx:if="{{K}}" u-s="{{['d']}}" bindsortChange="{{J}}" u-i="{{v0.j}}" bind:__l="__l" u-p="{{K}}">ip_location</uni-th><uni-th wx:if="{{L}}" u-s="{{['d']}}" u-i="{{v0.k}}" bind:__l="__l" u-p="{{L}}">操作</uni-th></uni-tr><uni-tr wx:for="{{v0.m}}" wx:for-item="item" wx:key="A" u-s="{{['d']}}" u-i="{{item.B}}" bind:__l="__l"><uni-td wx:if="{{M}}" u-s="{{['d']}}" u-i="{{item.b}}" bind:__l="__l" u-p="{{M}}">{{item.a}}</uni-td><uni-td wx:if="{{N}}" u-s="{{['d']}}" u-i="{{item.d}}" bind:__l="__l" u-p="{{N}}">{{item.c}}</uni-td><uni-td wx:if="{{O}}" u-s="{{['d']}}" u-i="{{item.f}}" bind:__l="__l" u-p="{{O}}">{{item.e}}</uni-td><uni-td wx:if="{{P}}" u-s="{{['d']}}" u-i="{{item.h}}" bind:__l="__l" u-p="{{P}}">{{item.g}}</uni-td><uni-td wx:if="{{Q}}" u-s="{{['d']}}" u-i="{{item.j}}" bind:__l="__l" u-p="{{Q}}">{{item.i}}</uni-td><uni-td wx:if="{{R}}" u-s="{{['d']}}" u-i="{{item.l}}" bind:__l="__l" u-p="{{R}}">{{item.k}}</uni-td><uni-td wx:if="{{S}}" u-s="{{['d']}}" u-i="{{item.o}}" bind:__l="__l" u-p="{{S}}"><uni-dateformat wx:if="{{item.n}}" u-i="{{item.m}}" bind:__l="__l" u-p="{{item.n}}"></uni-dateformat></uni-td><uni-td wx:if="{{T}}" u-s="{{['d']}}" u-i="{{item.r}}" bind:__l="__l" u-p="{{T}}"><uni-dateformat wx:if="{{item.q}}" u-i="{{item.p}}" bind:__l="__l" u-p="{{item.q}}"></uni-dateformat></uni-td><uni-td wx:if="{{U}}" u-s="{{['d']}}" u-i="{{item.t}}" bind:__l="__l" u-p="{{U}}">{{item.s}}</uni-td><uni-td wx:if="{{V}}" u-s="{{['d']}}" u-i="{{item.w}}" bind:__l="__l" u-p="{{V}}">{{item.v}}</uni-td><uni-td wx:if="{{W}}" u-s="{{['d']}}" u-i="{{item.z}}" bind:__l="__l" u-p="{{W}}"><view class="uni-group"><button bindtap="{{item.x}}" class="uni-button" size="mini" type="primary">修改</button><button bindtap="{{item.y}}" class="uni-button" size="mini" type="warn">删除</button></view></uni-td></uni-tr></uni-table><view class="uni-pagination-box"><uni-pagination wx:if="{{v0.s}}" bindchange="{{Y}}" u-i="{{v0.q}}" bind:__l="__l" bindupdateModelValue="{{v0.r}}" u-p="{{v0.s}}"/></view></view></unicloud-db></view></view>