|
@@ -4,14 +4,9 @@
|
|
|
<label for="header-search">
|
|
|
<image src=""></image>
|
|
|
</label>
|
|
|
- <input
|
|
|
- placeholder-class="header-search-placeholder"
|
|
|
- value=""
|
|
|
- placeholder="搜索"></input>
|
|
|
+ <input placeholder-class="header-search-placeholder" value="" placeholder="搜索"></input>
|
|
|
</view>
|
|
|
- <view
|
|
|
- class="leaving-a-message"
|
|
|
- bind:tap="jumpLeavingAMessage">
|
|
|
+ <view class="leaving-a-message" bind:tap="jumpLeavingAMessage">
|
|
|
<image src=""></image>
|
|
|
<view>8</view>
|
|
|
</view>
|
|
@@ -19,16 +14,12 @@
|
|
|
|
|
|
<!-- 轮播 -->
|
|
|
<view class="page-section">
|
|
|
- <swiper
|
|
|
- indicator-dots="{{true}}"
|
|
|
- indicator-color="rgba(151, 209, 79, 1)"
|
|
|
- indicator-active-color="#FFF"
|
|
|
- autoplay="{{false}}">
|
|
|
- <block
|
|
|
- wx:for="{{background}}"
|
|
|
- wx:key="*this">
|
|
|
+ <swiper indicator-dots="{{true}}" indicator-color="rgba(151, 209, 79, 1)" indicator-active-color="#FFF" autoplay="{{false}}">
|
|
|
+ <block wx:for="{{background}}" wx:key="*this">
|
|
|
<swiper-item>
|
|
|
- <view class="swiper-item {{item}}">{{item}}</view>
|
|
|
+ <view class="swiper-item {{item}}">
|
|
|
+ <image src=""></image>
|
|
|
+ </view>
|
|
|
</swiper-item>
|
|
|
</block>
|
|
|
</swiper>
|
|
@@ -36,11 +27,7 @@
|
|
|
<!-- 消息通知 -->
|
|
|
<view class="news-section">
|
|
|
<image src=""></image>
|
|
|
- <swiper
|
|
|
- vertical="{{true}}"
|
|
|
- interval="{{2000}}"
|
|
|
- circular="{{true}}"
|
|
|
- autoplay="{{true}}">
|
|
|
+ <swiper vertical="{{true}}" interval="{{2000}}" circular="{{true}}" autoplay="{{true}}">
|
|
|
<block wx:for="{{txtlist}}" wx:key="*this">
|
|
|
<swiper-item>
|
|
|
<view class="swiper-item {{item}}">{{item}}</view>
|
|
@@ -50,12 +37,7 @@
|
|
|
</view>
|
|
|
<!--顶部导航-->
|
|
|
<view class="header-nav">
|
|
|
- <view
|
|
|
- class="nav"
|
|
|
- wx:for="{{headerNav}}"
|
|
|
- wx:key="index"
|
|
|
- data-item="{{item}}"
|
|
|
- bind:tap="handleNav">
|
|
|
+ <view class="nav" wx:for="{{headerNav}}" wx:key="index" data-item="{{item}}" bind:tap="handleNav">
|
|
|
<image src=""></image>
|
|
|
<text>{{item.name}}</text>
|
|
|
</view>
|
|
@@ -69,27 +51,17 @@
|
|
|
<image class="media" src=""></image>
|
|
|
</view>
|
|
|
<view class="excellent-goods-title">优秀产品</view>
|
|
|
- <van-tabs
|
|
|
- active="{{ currentCategory }}"
|
|
|
- color="transparent"
|
|
|
- title-active-color="#FFFFFF"
|
|
|
- title-inactive-color="#858597"
|
|
|
- tab-class="my-tab-class"
|
|
|
- tab-active-class="my-tab-active-class">
|
|
|
- <van-tab
|
|
|
- title="{{item.name}}"
|
|
|
- wx:for="{{category}}"
|
|
|
- wx:key="id"
|
|
|
- name="{{item.id}}">
|
|
|
+ <van-tabs active="{{ currentCategory }}" color="transparent" title-active-color="#FFFFFF" title-inactive-color="#858597" tab-class="my-tab-class" tab-active-class="my-tab-active-class">
|
|
|
+ <van-tab title="{{item.name}}" wx:for="{{category}}" wx:key="id" name="{{item.id}}">
|
|
|
</van-tab>
|
|
|
</van-tabs>
|
|
|
<!--瀑布流-->
|
|
|
<view class="waterfall">
|
|
|
<view class="waterfall-left">
|
|
|
- <goods-item/>
|
|
|
+ <goods-item />
|
|
|
</view>
|
|
|
<view class="waterfall-right">
|
|
|
- <goods-item/>
|
|
|
+ <goods-item />
|
|
|
</view>
|
|
|
</view>
|
|
|
-</view>
|
|
|
+</view>
|