|
@@ -1,21 +1,25 @@
|
|
|
<!-- 导航栏 -->
|
|
<!-- 导航栏 -->
|
|
|
-<nav-bar title="首页" left="{{ false }}"></nav-bar>
|
|
|
|
|
|
|
+<nav-bar title="广州钻石交易中心" left="{{ false }}"></nav-bar>
|
|
|
|
|
|
|
|
<scroll-view style="padding-bottom: 80px;" scroll-y>
|
|
<scroll-view style="padding-bottom: 80px;" scroll-y>
|
|
|
- <!-- banner轮播图 -->
|
|
|
|
|
- <swiper class="banner" wx:if="{{banners.count != 0}}" indicator-active-color="orange" indicator-dots autoplay interval="5000" circular>
|
|
|
|
|
- <swiper-item class="banner_item" wx:for="{{banners}}" wx:key="index" id="{{item}}">
|
|
|
|
|
- <view class="swiper-item">
|
|
|
|
|
- <image src='{{item}}' mode="widthFix"></image>
|
|
|
|
|
- </view>
|
|
|
|
|
- </swiper-item>
|
|
|
|
|
- </swiper>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 通知栏 -->
|
|
|
|
|
- <van-notice-bar wx:if="{{msgs.length != 0}}" left-icon="volume-o" mode="link" bind:click="goToMsg" color="#333" background="#f3f3f3" text="{{notice.title}}" scrollable></van-notice-bar>
|
|
|
|
|
|
|
+ <!-- banner视图 -->
|
|
|
|
|
+ <view class="banner-bg">
|
|
|
|
|
+ <view class="banner-bg__top">
|
|
|
|
|
+ <image style="width: 60%;" mode="widthFix" src="http://218.17.158.45:23012/mtp2-onlineopen/uploadFile/gz/login_logo.png">logo</image>
|
|
|
|
|
+ <van-button type="info" round icon="search">证书号搜索钻石</van-button>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <!-- banner轮播图 -->
|
|
|
|
|
+ <swiper class="banner" wx:if="{{ banners.count != 0 }}" indicator-active-color="orange" indicator-dots autoplay interval="5000" circular>
|
|
|
|
|
+ <swiper-item class="banner_item" wx:for="{{ banners }}" wx:key="index" id="{{ item }}">
|
|
|
|
|
+ <view class="swiper-item">
|
|
|
|
|
+ <image src='{{ item }}' mode="widthFix"></image>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </swiper-item>
|
|
|
|
|
+ </swiper>
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
<!-- 统计 -->
|
|
<!-- 统计 -->
|
|
|
- <view class="statistics" style="background-image: url('http://218.17.158.45:23012/mtp2-onlineopen/uploadFile/gz/huilv_bg.png'); background-size: 105%;">
|
|
|
|
|
|
|
+ <view class="statistics">
|
|
|
<view class="statistics-item" wx:for="{{ statistics }}" wx:key="id" wx:for-index="idx" wx:for-item="itm">
|
|
<view class="statistics-item" wx:for="{{ statistics }}" wx:key="id" wx:for-index="idx" wx:for-item="itm">
|
|
|
<text class="{{ itm.class }}">{{ itm.value }}</text>
|
|
<text class="{{ itm.class }}">{{ itm.value }}</text>
|
|
|
<text class="{{ itm.class }}">{{ itm.title }}</text>
|
|
<text class="{{ itm.class }}">{{ itm.title }}</text>
|
|
@@ -23,36 +27,15 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<!-- 功能菜单 -->
|
|
<!-- 功能菜单 -->
|
|
|
- <view class="gird-view">
|
|
|
|
|
- <view class="gird-view__item" wx:for="{{ menus }}" wx:key="id" wx:for-index="idx" wx:for-item="itm" id="{{ itm.id }}" data-url="{{ itm.path }}" bindtap="onGirdClick">
|
|
|
|
|
- <image class="gird-view__item__icon" mode="aspectFit" src="http://218.17.158.45:23012/mtp2-onlineopen/uploadFile/gz/{{ itm.icon }}.png"></image>
|
|
|
|
|
- <text class="gird-view__item__title">{{ itm.title }}</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <van-grid column-num="4" border="{{ false }}" icon-size="{{ 50 }}">
|
|
|
|
|
+ <van-grid-item wx:for="{{ menus }}" wx:for-item="index" wx:key="id" wx:for-index="idx" wx:for-item="itm" id="{{ itm.id }}" url="{{ itm.path }}" text="{{ itm.title }}" icon="http://218.17.158.45:23012/mtp2-onlineopen/uploadFile/gz/{{ itm.icon }}.png"/>
|
|
|
|
|
+ </van-grid>
|
|
|
|
|
|
|
|
- <!-- 公告消息 -->
|
|
|
|
|
- <view class="msg-view">
|
|
|
|
|
- <view class="msg-view__top">
|
|
|
|
|
- <van-tabs custom-class="msg-view__menus" bind:change="onChange" color="#2270D9" line-width="20px" title-inactive-color="#333" title-active-color="#2270D9" bind:change="onTabChange">
|
|
|
|
|
- <van-tab wx:for="{{ tabs }}" wx:for-item="itm" wx:for-index="idx" wx:key="id" title="{{ itm.title }}" />
|
|
|
|
|
- </van-tabs>
|
|
|
|
|
- <image class="msg-view__top__more" src="http://218.17.158.45:23012/mtp2-onlineopen/uploadFile/gz/home-more.png" bindtap="goToMsg"></image>
|
|
|
|
|
- </view>
|
|
|
|
|
- <van-cell-group wx:if="{{ !isEmpty }}">
|
|
|
|
|
- <van-cell custom-class="msg-item" wx:for="{{msgs}}" wx:key="id" wx:for-index="idx" wx:for-item="itm" id="{{idx}}" bind:click="goToMsgDetail">
|
|
|
|
|
- <view solt="title" class="view_top_content">
|
|
|
|
|
- <text class="msg_date" user-select>{{ itm.scheduletime }}</text>
|
|
|
|
|
- <text class="msg_title" user-select>{{ itm.title }}</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </van-cell>
|
|
|
|
|
- </van-cell-group>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <!-- 通知栏 -->
|
|
|
|
|
+ <van-notice-bar wx:if="{{ msgs.length != 0 }}" left-icon="volume-o" mode="link" bind:click="goToMsg" color="#333" background="#f3f3f3" text="{{ notice.title }}" scrollable />
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
|
|
|
|
|
-<!-- 证书查询 -->
|
|
|
|
|
-<view class="certsearch" style="background-image: url('http://218.17.158.45:23012/mtp2-onlineopen/uploadFile/gz/home-zscx.png');" bindtap="goToCerserach"></view>
|
|
|
|
|
-<!-- 计算器 -->
|
|
|
|
|
-<view class="calculator" style="background-image: url('http://218.17.158.45:23012/mtp2-onlineopen/uploadFile/gz/home-jsq.png');" bindtap="goToCalculator" ></view>
|
|
|
|
|
|
|
+
|
|
|
<!-- toast -->
|
|
<!-- toast -->
|
|
|
<van-toast id="van-toast" />
|
|
<van-toast id="van-toast" />
|
|
|
<!-- 无数据 -->
|
|
<!-- 无数据 -->
|