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

1 line
5.1 KiB
Plaintext

<view class="data-v-1cf27b2a"><view class="uni-header data-v-1cf27b2a"><view class="uni-group data-v-1cf27b2a"><view class="uni-title data-v-1cf27b2a"></view></view><view class="uni-group data-v-1cf27b2a"><input class="uni-search data-v-1cf27b2a" type="text" bindconfirm="{{a}}" placeholder="请输入搜索内容" value="{{b}}" bindinput="{{c}}"/><button class="uni-button data-v-1cf27b2a" type="default" size="mini" bindtap="{{d}}">搜索</button><button class="uni-button data-v-1cf27b2a" type="primary" size="mini" bindtap="{{e}}">新增</button><button class="uni-button data-v-1cf27b2a" type="warn" size="mini" disabled="{{f}}" bindtap="{{g}}"> 批量删除 </button><download-excel wx:if="{{h}}" u-s="{{['d']}}" class="hide-on-phone data-v-1cf27b2a" u-i="1cf27b2a-0" bind:__l="__l" u-p="{{h}}"><button class="uni-button data-v-1cf27b2a" type="primary" size="mini">导出 Excel</button></download-excel></view></view><view class="uni-container data-v-1cf27b2a"><unicloud-db wx:if="{{Q}}" class="r data-v-1cf27b2a" u-s="{{['d']}}" u-r="udb" bindload="{{P}}" u-i="1cf27b2a-1" bind:__l="__l" u-p="{{Q}}"><view wx:for="{{i}}" wx:for-item="v0" wx:key="t" slot="{{v0.v}}"><uni-table wx:if="{{v0.p}}" class="r data-v-1cf27b2a" u-s="{{['d']}}" u-r="table" bindselectionChange="{{M}}" u-i="{{v0.o}}" bind:__l="__l" u-p="{{v0.p}}"><uni-tr class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="{{v0.l}}" bind:__l="__l"><uni-th wx:if="{{l}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindfilterChange="{{j}}" bindsortChange="{{k}}" u-i="{{v0.a}}" bind:__l="__l" u-p="{{l}}">封面大图 </uni-th><uni-th wx:if="{{o}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindfilterChange="{{m}}" bindsortChange="{{n}}" u-i="{{v0.b}}" bind:__l="__l" u-p="{{o}}">标题 </uni-th><uni-th wx:if="{{r}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindfilterChange="{{p}}" bindsortChange="{{q}}" u-i="{{v0.c}}" bind:__l="__l" u-p="{{r}}">摘要 </uni-th><uni-th wx:if="{{t}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindsortChange="{{s}}" u-i="{{v0.d}}" bind:__l="__l" u-p="{{t}}">作者</uni-th><uni-th wx:if="{{v0.f}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindfilterChange="{{v}}" u-i="{{v0.e}}" bind:__l="__l" u-p="{{v0.f}}">分类</uni-th><uni-th wx:if="{{v0.h}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindfilterChange="{{w}}" u-i="{{v0.g}}" bind:__l="__l" u-p="{{v0.h}}">文章状态 </uni-th><uni-th wx:if="{{z}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindfilterChange="{{x}}" bindsortChange="{{y}}" u-i="{{v0.i}}" bind:__l="__l" u-p="{{z}}">阅读数量 </uni-th><uni-th wx:if="{{C}}" class="data-v-1cf27b2a" u-s="{{['d']}}" bindfilterChange="{{A}}" bindsortChange="{{B}}" u-i="{{v0.j}}" bind:__l="__l" u-p="{{C}}">发布时间 </uni-th><uni-th wx:if="{{D}}" class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="{{v0.k}}" bind:__l="__l" u-p="{{D}}">操作</uni-th></uni-tr><uni-tr wx:for="{{v0.m}}" wx:for-item="item" wx:key="D" class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="{{item.E}}" bind:__l="__l"><uni-td wx:if="{{item.a}}" class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="{{item.e}}" bind:__l="__l" u-p="{{item.f}}"><image class="data-v-1cf27b2a" src="{{item.b}}" mode="aspectFill" style="width:120px;height:80px;cursor:pointer;border-radius:4px" bindtap="{{item.c}}"></image><view wx:if="{{item.d}}" class="multi-tip data-v-1cf27b2a">3图</view></uni-td><uni-td wx:else class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="{{item.g}}" bind:__l="__l" u-p="{{item.h||''}}">无封面</uni-td><uni-td wx:if="{{E}}" class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="{{item.j}}" bind:__l="__l" u-p="{{E}}">{{item.i}}</uni-td><uni-td wx:if="{{F}}" class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="{{item.l}}" bind:__l="__l" u-p="{{F}}">{{item.k}}</uni-td><uni-td wx:if="{{G}}" class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="{{item.n}}" bind:__l="__l" u-p="{{G}}">{{item.m}}</uni-td><uni-td wx:if="{{H}}" class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="{{item.p}}" bind:__l="__l" u-p="{{H}}">{{item.o}}</uni-td><uni-td wx:if="{{I}}" class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="{{item.r}}" bind:__l="__l" u-p="{{I}}">{{item.q}}</uni-td><uni-td wx:if="{{J}}" class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="{{item.t}}" bind:__l="__l" u-p="{{J}}">{{item.s}}</uni-td><uni-td wx:if="{{K}}" class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="{{item.x}}" bind:__l="__l" u-p="{{K}}"><uni-dateformat wx:if="{{item.w}}" class="data-v-1cf27b2a" u-i="{{item.v}}" bind:__l="__l" u-p="{{item.w}}"></uni-dateformat></uni-td><uni-td wx:if="{{L}}" class="data-v-1cf27b2a" u-s="{{['d']}}" u-i="{{item.C}}" bind:__l="__l" u-p="{{L}}"><view class="uni-group data-v-1cf27b2a"><button bindtap="{{item.y}}" class="uni-button data-v-1cf27b2a" size="mini" type="primary">修改 </button><button wx:if="{{item.z}}" bindtap="{{item.A}}" class="uni-button data-v-1cf27b2a" size="mini" type="default">下架</button><button bindtap="{{item.B}}" class="uni-button data-v-1cf27b2a" size="mini" type="warn">删除</button></view></uni-td></uni-tr></uni-table><view class="uni-pagination-box data-v-1cf27b2a"><uni-pagination wx:if="{{v0.s}}" class="data-v-1cf27b2a" bindchange="{{N}}" u-i="{{v0.q}}" bind:__l="__l" bindupdateModelValue="{{v0.r}}" u-p="{{v0.s}}"/></view></view></unicloud-db></view></view>