|
|
@@ -13,7 +13,7 @@
|
|
|
</div>
|
|
|
</app-statusbar>
|
|
|
<PullRefresh class="home-main__container" v-model="refreshing" @refresh="onRefresh">
|
|
|
- <div class="home-main__iconbar g-block--bg">
|
|
|
+ <app-block class="home-main__iconbar bg">
|
|
|
<ul>
|
|
|
<li @click="routerTo('product')">
|
|
|
<img src="@mobile/assets/icons/cpjs.png" />
|
|
|
@@ -42,8 +42,8 @@
|
|
|
<span>仓储物流</span>
|
|
|
</li>
|
|
|
</ul>
|
|
|
- </div>
|
|
|
- <div class="home-main__market" v-if="false">
|
|
|
+ </app-block>
|
|
|
+ <app-block class="home-main__market flex" v-if="false">
|
|
|
<div class="left">
|
|
|
<h2>合金指数</h2>
|
|
|
<span>{{ formatDate(marketRun.tradedate, "YYYY-MM-DD") }}</span>
|
|
|
@@ -64,23 +64,23 @@
|
|
|
</SwipeItem>
|
|
|
</Swipe>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="home-main__banner home-main__banner--body" v-if="false">
|
|
|
+ </app-block>
|
|
|
+ <app-block class="home-main__banner home-main__banner--body" v-if="false">
|
|
|
<Swipe :autoplay="5000" indicator-color="white" lazy-render>
|
|
|
<SwipeItem v-for="(item, index) in bodyBanners" :key="index">
|
|
|
<img :src="getImageUrl(item.imagepath)" />
|
|
|
</SwipeItem>
|
|
|
</Swipe>
|
|
|
- </div>
|
|
|
- <div class="home-main__news">
|
|
|
- <Cell class="titlebar" title-class="titlebar-title" value-class="titlebar-more" value="更多"
|
|
|
- :to="{ name: 'news-list' }" is-link>
|
|
|
- <template #title>
|
|
|
- <img src="@mobile/assets/icons/fire.png" />
|
|
|
- <span>市场资讯</span>
|
|
|
- </template>
|
|
|
- </Cell>
|
|
|
+ </app-block>
|
|
|
+ <app-block class="home-main__news">
|
|
|
<CellGroup class="article">
|
|
|
+ <Cell class="titlebar" title-class="titlebar-title" value-class="titlebar-more" value="更多"
|
|
|
+ :to="{ name: 'news-list' }" is-link>
|
|
|
+ <template #title>
|
|
|
+ <img src="@mobile/assets/icons/fire.png" />
|
|
|
+ <span>市场资讯</span>
|
|
|
+ </template>
|
|
|
+ </Cell>
|
|
|
<template v-for="(item, index) in newsList" :key="index">
|
|
|
<Cell class="article-item" title-class="article-item__title" value-class="article-item__time"
|
|
|
:title="item.title" :value="formatDate(item.creaedate, 'MM/DD')" :to="{
|
|
|
@@ -89,7 +89,7 @@
|
|
|
}" />
|
|
|
</template>
|
|
|
</CellGroup>
|
|
|
- </div>
|
|
|
+ </app-block>
|
|
|
</PullRefresh>
|
|
|
</app-scroll-view>
|
|
|
</template>
|