|
@@ -2,37 +2,42 @@
|
|
<view class="pageHome">
|
|
<view class="pageHome">
|
|
<yx-navbar :isBack="false" title="企业看板"></yx-navbar>
|
|
<yx-navbar :isBack="false" title="企业看板"></yx-navbar>
|
|
<view class="pageIndex">
|
|
<view class="pageIndex">
|
|
- <view class="tabs">
|
|
|
|
- <view class="tab" :class="tabIndex === 0 ? 'active' : ''" @click="onClickTab(0)">可视化大屏</view>
|
|
|
|
- <view class="tab" :class="tabIndex === 1 ? 'active' : ''" @click="onClickTab(1)">自助报表</view>
|
|
|
|
- </view>
|
|
|
|
- <view class="search">
|
|
|
|
- <u-icon name="list" size='35' @click="showCategory=true"></u-icon>
|
|
|
|
- <u-search
|
|
|
|
- :placeholder="placeholder" v-model="params.title" :show-action="false"
|
|
|
|
- search-icon-color='#eb5a10' bg-color="#fff" @change="onSearch"
|
|
|
|
- ></u-search>
|
|
|
|
- </view>
|
|
|
|
- <scroll-view class="content" scroll-y @scrolltolower="getData(false)">
|
|
|
|
- <view class="main" v-if="dataList.length > 0">
|
|
|
|
- <view class="infoList" v-for="(item, index) in dataList" :key="index" @click="goDetail(item)">
|
|
|
|
- <img v-if="item.backgroundUrl" class="infoImg" :src="item.backgroundUrl" alt="">
|
|
|
|
- <img v-else class="infoImg" src="../../static/img/no-bg-img.jpg" alt="">
|
|
|
|
- <view class="infoRight">
|
|
|
|
- <view class="name">{{ item.title }}</view>
|
|
|
|
- <view class="describe">所属分类:{{ item.categoryName }}</view>
|
|
|
|
- <view class="infoBottom">
|
|
|
|
- <view class="num"><i class="el-icon-view"></i> 访问量:{{ item.count }}</view>
|
|
|
|
- <view class="dateTime">{{ item.date }}</view>
|
|
|
|
|
|
+ <view class="tabs">
|
|
|
|
+ <view class="tab" :class="tabIndex === 0 ? 'active' : ''" @click="onClickTab(0)">
|
|
|
|
+ <text>可视化大屏</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="tab" :class="tabIndex === 1 ? 'active' : ''" @click="onClickTab(1)">
|
|
|
|
+ <text>自助报表</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="search">
|
|
|
|
+ <u-search
|
|
|
|
+ :placeholder="placeholder" v-model="params.title" :show-action="false"
|
|
|
|
+ bg-color="#f6f6f6" @change="onSearch" shape="square"
|
|
|
|
+ ></u-search>
|
|
|
|
+ <img class="icon" src="../../static/img/cate.png" alt="" @click="showCategory=true">
|
|
|
|
+ </view>
|
|
|
|
+ <scroll-view class="content" scroll-y @scrolltolower="getData(false)">
|
|
|
|
+ <view class="main" v-if="dataList.length > 0">
|
|
|
|
+ <view class="infoList" v-for="(item, index) in dataList" :key="index" @click="goDetail(item)">
|
|
|
|
+ <img v-if="item.backgroundUrl" class="infoImg" :src="item.backgroundUrl" alt="">
|
|
|
|
+ <img v-else class="infoImg" src="../../static/img/no-bg-img.jpg" alt="">
|
|
|
|
+ <view class="info-box">
|
|
|
|
+ <view class="name">{{ item.title }}</view>
|
|
|
|
+ <view class="describe">所属分类:{{ item.categoryName }}</view>
|
|
|
|
+ <view class="info">
|
|
|
|
+ <view class="num"><i class="el-icon-view"></i> 访问量:{{ item.count }}</view>
|
|
|
|
+ <view class="dateTime">{{ item.date }}</view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- <template v-if="!loading&&!dataList.length">
|
|
|
|
- <image v-if="params.title" src="../../static/img/no-search.png" style="width: 100%" mode="aspectFit"></image>
|
|
|
|
- <image v-else src="../../static/img/no-data.png" style="width: 100%" mode="aspectFit"></image>
|
|
|
|
- </template>
|
|
|
|
- </scroll-view>
|
|
|
|
|
|
+ <template v-if="!loading&&!dataList.length">
|
|
|
|
+ <image v-if="params.title" src="../../static/img/no-search.png" style="width: 100%"
|
|
|
|
+ mode="aspectFit"></image>
|
|
|
|
+ <image v-else src="../../static/img/no-data.png" style="width: 100%" mode="aspectFit"></image>
|
|
|
|
+ </template>
|
|
|
|
+ </scroll-view>
|
|
</view>
|
|
</view>
|
|
<u-picker :show="showCategory" :columns="categoryList" confirmColor="#eb5a10" @cancel="showCategory=false"
|
|
<u-picker :show="showCategory" :columns="categoryList" confirmColor="#eb5a10" @cancel="showCategory=false"
|
|
closeOnClickOverlay @close="showCategory=false" key-name="categoryValue" @change="onCategoryChange"
|
|
closeOnClickOverlay @close="showCategory=false" key-name="categoryValue" @change="onCategoryChange"
|