效果图
需求
根据关键字查询出企业信息,查询结果以表格的形式展示,并且可实现单选,根据所选数据实现其他功能
页面
<!-- 查询结果 -->
<view class="table" a:if="{
{enterpriseList.length > 0}}">
<view class="tr bg-w">
<view class="th">园区名称</view>
<view class="th">代码证号</view>
<view class="th ">行业</view>
<view class="th ">客群分类</view>
<view class="th ">#</view>
</view>
<block a:for="{
{enterpriseList}}" a:for-index="idx" a:for-item="item">
<view class="tr bg-g">
<text selectable="true" class&