index.wxml 3.2 KB
Newer Older
D
devil_gong 已提交
1 2 3 4
<!-- 搜索 -->
<view wx:if="{{load_status == 1 && common_app_is_enable_search == 1}}" class="search wh-auto">
  <view class="search-content bg-white oh">
    <icon type="search" size="16" />
G
gongfuxiang 已提交
5
    <input type="text" confirm-type="search" placeholder="其实搜索很简单^_^!" class="wh-auto cr-888" bindconfirm="search_input_event" confirm-type="search" />
D
devil_gong 已提交
6 7 8 9 10 11 12 13
  </view>
</view>

<!-- 商城公告 -->
<view wx:if="{{common_shop_notice != null}}">
  <view class="tips">{{common_shop_notice}}</view>
</view>

G
gongfuxiang 已提交
14
<!-- 轮播 -->
G
wechat  
gongfuxiang 已提交
15
<component-banner prop-data="{{banner_list}}"></component-banner>
D
devil_gong 已提交
16

G
wechat  
gongfuxiang 已提交
17 18
<!-- 导航 -->
<component-icon-nav prop-data="{{navigation}}"></component-icon-nav>
D
devil_gong 已提交
19 20 21

<!-- 楼层数据 -->
<block wx:if="{{data_list.length > 0}}">
G
wechat  
gongfuxiang 已提交
22
  <view wx:for="{{data_list}}" wx:key="key" wx:for-item="floor" class="floor spacing-mb">
D
devil_gong 已提交
23 24 25 26
    <view class="spacing-nav-title">
      <text class="line"></text>
      <text class="text-wrapper">{{floor.name}}</text>
    </view>
D
wx  
devil_gong 已提交
27 28 29 30 31 32 33 34
    <view class="floor-list">
      <view class="word" style="background-color:{{floor.bg_color || '#eaeaea'}}">
        <view wx:if="{{floor.items.length > 0}}">
          <block wx:for="{{floor.items}}" wx:key="ck" wx:for-index="icx" wx:for-item="icv">
            <navigator wx:if="{{icx < 6 && icv.is_home_recommended == 1}}" class="word-icon" url="/pages/goods-search/goods-search?category_id={{icv.id}}" hover-class="none">
              {{icv.name}}
            </navigator>
          </block>
D
devil_gong 已提交
35
        </view>
D
wx  
devil_gong 已提交
36 37 38 39 40
        <view wx:if="{{floor.describe.length > 0}}" class="vice-name">{{floor.describe}}</view>
        <navigator url="/pages/goods-search/goods-search?category_id={{floor.id}}" hover-class="none">
          <image wx:if="{{floor.big_images.length > 0}}" src="{{floor.big_images}}" mode="aspectFit" class="dis-block" />
        </navigator>
      </view>
D
devil_gong 已提交
41
      <view class="goods-list" wx:if="{{floor.goods.length > 0}}">
G
wechat  
gongfuxiang 已提交
42
        <view wx:for="{{floor.goods}}" wx:key="keys" wx:for-item="goods" class="goods bg-white">
D
devil_gong 已提交
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
          <navigator url="/pages/goods-detail/goods-detail?goods_id={{goods.id}}" hover-class="none">
            <image src="{{goods.home_recommended_images}}" mode="aspectFit" />
            <view class="goods-base">
              <view class="goods-title single-text">{{goods.title}}</view>
              <view class="sales-price">¥{{goods.min_price}}</view>
            </view>
          </navigator>
        </view>
      </view>
    </view>
  </view>
</block>
<view wx:if="{{data_list.length == 0}}">
  <import src="/pages/common/nodata.wxml" />
  <template is="nodata" data="{{status: data_list_loding_status}}"></template>
</view>

<!-- 留言 -->
<view wx:if="{{load_status == 1 && common_app_is_enable_answer == 1}}" class="spacing-10">
  <navigator url="/pages/answer-form/answer-form" hover-class="none" class="bg-white">
    <image class="wh-auto" mode="widthFix" src="/images/home-consulting-image.jpg" />
  </navigator>
</view>

<!-- 结尾 -->
<import src="/pages/common/bottom_line.wxml" />
<template is="bottom_line" data="{{status: data_bottom_line_status}}"></template>

<!-- 版权 -->
<view wx:if="{{load_status == 1}}">
  <import src="/pages/common/copyright.wxml" />
  <template is="copyright"></template>
</view>