提交 a35cfcf0 编写于 作者: 0 052004122温宸杰

dxj实现图片显示“

上级 6a6aa07a
......@@ -27,7 +27,7 @@
<uni-th align="center" sortable @sort-change="sortChange($event, 'owner_id')">发帖人</uni-th>
<!-- <uni-th align="center" sortable @sort-change="sortChange($event, 'check_status')">审核状态</uni-th> -->
<uni-th align="center" filter-type="range" @filter-change="filterChange($event, 'comment_num')" sortable @sort-change="sortChange($event, 'comment_num')">评论数</uni-th>
<uni-th align="center" sortable @sort-change="sortChange($event, 'url')">图片url</uni-th>
<uni-th align="center" sortable @sort-change="sortChange($event, 'url')">单张图片展示</uni-th>
<uni-th align="center">操作</uni-th>
</uni-tr>
<uni-tr v-for="(item,index) in data" :key="index">
......@@ -37,7 +37,10 @@
<uni-td align="center">{{item.owner_id[0].name}}</uni-td>
<!-- <uni-td align="center">{{item.check_status == true ? '' : ''}}</uni-td> -->
<uni-td align="center">{{item.comment_num}}</uni-td>
<uni-td align="center">{{item.url}}</uni-td>
<uni-td v-if="!item.url.length"></uni-td>
<uni-td v-else align="center">
<image v-for="(img,imgIndex) in item.url.slice(0, 3)" :src="img" style="width: 120px; height: 80px; margin: 10px;"></image>
</uni-td>
<uni-td align="center">
<view class="uni-group">
<button @click="navigateTo('./edit?id='+item._id, false)" class="uni-button" size="mini" type="primary">修改</button>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册