|
@@ -7,7 +7,7 @@ |
|
@@ -7,7 +7,7 @@ |
7
|
<view class='titleLine'></view>
|
7
|
<view class='titleLine'></view>
|
8
|
<view class='titleDesc'>{{desc}}</view>
|
8
|
<view class='titleDesc'>{{desc}}</view>
|
9
|
<view class='titleMore' wx:if='{{more_url?true:false}}' data-jump_rule="{{more_url}}" bindtap="jumpByRule">
|
9
|
<view class='titleMore' wx:if='{{more_url?true:false}}' data-jump_rule="{{more_url}}" bindtap="jumpByRule">
|
10
|
- <image class="titleMoreIm" src="./images/more_ic@2x.png" ></image>
|
10
|
+ <image class="titleMoreIm" src="./images/more_ic@2x.png"></image>
|
11
|
</view>
|
11
|
</view>
|
12
|
</view>
|
12
|
</view>
|
13
|
</template>
|
13
|
</template>
|
|
@@ -16,63 +16,69 @@ |
|
@@ -16,63 +16,69 @@ |
16
|
<view class='newtop'>
|
16
|
<view class='newtop'>
|
17
|
<view class="search-section" bindtap="searchTapped">
|
17
|
<view class="search-section" bindtap="searchTapped">
|
18
|
<view class="tip">
|
18
|
<view class="tip">
|
19
|
- <span class="tip-text">搜索品牌名称<image
|
|
|
20
|
- class="image-icon" src="./images/search@2x.png"></image>
|
19
|
+ <span class="tip-text">潮流单品搜一下<image class="image-icon" src="./images/search@2x.png"></image>
|
21
|
</span>
|
20
|
</span>
|
22
|
</view>
|
21
|
</view>
|
23
|
</view>
|
22
|
</view>
|
24
|
</view>
|
23
|
</view>
|
25
|
- <image class='newTopImg' src='images/home-top-bg2@2x.png'></image>
|
|
|
26
|
- <image wx:if='{{channelSelect}}' class='channelBg' src='images/channel-bg@2x.png'></image>
|
|
|
27
|
- <!-- <image wx:if='{{channelSelect}}' class='channelBg-girl' src='images/channel-bg@2x.png'></image> -->
|
|
|
28
|
<view class='channelContainer' wx:if='{{channelSelect}}'>
|
24
|
<view class='channelContainer' wx:if='{{channelSelect}}'>
|
29
|
<view class='channelItem' bindtap="channelSelected" data-type="boy">
|
25
|
<view class='channelItem' bindtap="channelSelected" data-type="boy">
|
30
|
<view class='indicator' style="background-color:{{selectedChannel=='boy' ? 'white':'transparent'}}"></view>
|
26
|
<view class='indicator' style="background-color:{{selectedChannel=='boy' ? 'white':'transparent'}}"></view>
|
31
|
<view class='channelText' bindtap="channelSelected" data-type="boy">男生</view>
|
27
|
<view class='channelText' bindtap="channelSelected" data-type="boy">男生</view>
|
32
|
</view>
|
28
|
</view>
|
33
|
<view class='channelItem' style='border-top: 1rpx solid #ececec;' bindtap="channelSelected" data-type="girl">
|
29
|
<view class='channelItem' style='border-top: 1rpx solid #ececec;' bindtap="channelSelected" data-type="girl">
|
34
|
- <view class='indicator' style="background-color:{{selectedChannel=='girl' ? 'white':'transparent'}}" ></view>
|
30
|
+ <view class='indicator' style="background-color:{{selectedChannel=='girl' ? 'white':'transparent'}}"></view>
|
35
|
<view class='channelText' bindtap="channelSelected" data-type="girl">女生</view>
|
31
|
<view class='channelText' bindtap="channelSelected" data-type="girl">女生</view>
|
36
|
</view>
|
32
|
</view>
|
37
|
</view>
|
33
|
</view>
|
38
|
-<view class='scrollview' id='touchContainer'>
|
34
|
+ <view class='scrollview' id='touchContainer'>
|
39
|
|
35
|
|
40
|
<block wx:for='{{homelist}}' wx:key='{{index}}'>
|
36
|
<block wx:for='{{homelist}}' wx:key='{{index}}'>
|
41
|
|
37
|
|
42
|
<block wx:if="{{item.template_name=='focus' || item.template_name=='newFocus'}}">
|
38
|
<block wx:if="{{item.template_name=='focus' || item.template_name=='newFocus'}}">
|
43
|
- <template is='newFocus' data='{{data:item.data,f_id:item.template_id,f_index:index,f_name:item.template_name}}'/>
|
39
|
+ <template is='newFocus'
|
|
|
40
|
+ data='{{data:item.data,f_id:item.template_id,f_index:index,f_name:item.template_name}}'/>
|
44
|
</block>
|
41
|
</block>
|
45
|
|
42
|
|
46
|
<block wx:elif="{{item.template_name=='newSingleImage'}}">
|
43
|
<block wx:elif="{{item.template_name=='newSingleImage'}}">
|
47
|
<block wx:if="{{item.title}}">
|
44
|
<block wx:if="{{item.title}}">
|
48
|
<template is='tipTitle' data="{{desc:item.title}}"/>
|
45
|
<template is='tipTitle' data="{{desc:item.title}}"/>
|
49
|
</block>
|
46
|
</block>
|
50
|
- <template is='singleImg' data='{{data:item,f_id:item.template_id,f_index:index,f_name:item.template_name}}'/>
|
47
|
+ <template is='singleImg'
|
|
|
48
|
+ data='{{data:item,f_id:item.template_id,f_index:index,f_name:item.template_name}}'/>
|
51
|
</block>
|
49
|
</block>
|
52
|
|
50
|
|
53
|
<block wx:elif="{{item.template_name=='new_recommend_content_five'}}">
|
51
|
<block wx:elif="{{item.template_name=='new_recommend_content_five'}}">
|
54
|
<block wx:if="{{item.title}}">
|
52
|
<block wx:if="{{item.title}}">
|
55
|
<template is='tipTitle' data="{{desc:item.title,more_url:item.moreUrl,no_line:true}}"/>
|
53
|
<template is='tipTitle' data="{{desc:item.title,more_url:item.moreUrl,no_line:true}}"/>
|
56
|
</block>
|
54
|
</block>
|
57
|
- <template is='category' data="{{windowWidth:windowWidth,data:item.list,f_id:item.template_id,f_index:index,f_name:item.template_name}}"/>
|
55
|
+ <template is='category'
|
|
|
56
|
+ data="{{windowWidth:windowWidth,data:item.list,f_id:item.template_id,f_index:index,f_name:item.template_name}}"/>
|
58
|
</block>
|
57
|
</block>
|
59
|
|
58
|
|
60
|
<block wx:elif="{{item.template_name=='3:4ImageListFloor'}}">
|
59
|
<block wx:elif="{{item.template_name=='3:4ImageListFloor'}}">
|
61
|
<block wx:if="{{item.title}}">
|
60
|
<block wx:if="{{item.title}}">
|
62
|
<template is='tipTitle' data="{{desc:item.title}}"/>
|
61
|
<template is='tipTitle' data="{{desc:item.title}}"/>
|
63
|
</block>
|
62
|
</block>
|
64
|
- <template is='newHorizontalImg' data="{{data:item.list,title:item.title,f_id:item.template_id,f_index:index,f_name:item.template_name,f_name:item.template_name}}"/>
|
|
|
65
|
- <view wx:if="{{!item.title}}" style='width:100%;height:16rpx;background-color:white'/><!--兼容空白 后期需优化调整-->
|
63
|
+ <template is='newHorizontalImg'
|
|
|
64
|
+ data="{{data:item.list,title:item.title,f_id:item.template_id,f_index:index,f_name:item.template_name,f_name:item.template_name}}"/>
|
|
|
65
|
+ <view wx:if="{{!item.title}}" style='width:100%;height:16rpx;background-color:white'/>
|
|
|
66
|
+ <!--兼容空白 后期需优化调整-->
|
66
|
</block>
|
67
|
</block>
|
67
|
|
68
|
|
68
|
<block wx:elif="{{item.template_name=='popularListFloor'}}">
|
69
|
<block wx:elif="{{item.template_name=='popularListFloor'}}">
|
69
|
<scroll-view class="activity-container-footer" scroll-x="true">
|
70
|
<scroll-view class="activity-container-footer" scroll-x="true">
|
70
|
<block wx:for="{{item.data.list}}" wx:key="{{index}}" wx:for-item="item">
|
71
|
<block wx:for="{{item.data.list}}" wx:key="{{index}}" wx:for-item="item">
|
71
|
<view class="activity-item" bindtap="activityItemTapped" data-skn="{{item.product_skn}}"
|
72
|
<view class="activity-item" bindtap="activityItemTapped" data-skn="{{item.product_skn}}"
|
72
|
- data-f_id="{{item.template_id}}" data-f_index='{{item.index}}' data-f_inindex='{{index}}' data-f_name='popularListFloor'>
|
73
|
+ data-f_id="{{item.template_id}}" data-f_index='{{item.index}}' data-f_inindex='{{index}}'
|
|
|
74
|
+ data-f_name='popularListFloor'>
|
73
|
<image src="{{item.default_images}}" class="activity-item-img"></image>
|
75
|
<image src="{{item.default_images}}" class="activity-item-img"></image>
|
74
|
- <view class="activity-item-price" wx:if="{{item.shop_name && item.display_type == 2}}">{{item.shop_name}}</view>
|
|
|
75
|
- <view class="activity-item-price" wx:if="{{item.sales_price && item.display_type == 1}}">¥{{item.sales_price}}</view>
|
76
|
+ <view class="activity-item-price" wx:if="{{item.shop_name && item.display_type == 2}}">
|
|
|
77
|
+ {{item.shop_name}}
|
|
|
78
|
+ </view>
|
|
|
79
|
+ <view class="activity-item-price" wx:if="{{item.sales_price && item.display_type == 1}}">
|
|
|
80
|
+ ¥{{item.sales_price}}
|
|
|
81
|
+ </view>
|
76
|
</view>
|
82
|
</view>
|
77
|
</block>
|
83
|
</block>
|
78
|
</scroll-view>
|
84
|
</scroll-view>
|
|
@@ -84,7 +90,8 @@ |
|
@@ -84,7 +90,8 @@ |
84
|
<scroll-view class="activity-container-footer" scroll-x="true">
|
90
|
<scroll-view class="activity-container-footer" scroll-x="true">
|
85
|
<block wx:for="{{item.data.list}}" wx:key="{{index}}" wx:for-item="item">
|
91
|
<block wx:for="{{item.data.list}}" wx:key="{{index}}" wx:for-item="item">
|
86
|
<view class="activity-item" bindtap="activityItemTapped" data-skn="{{item.product_skn}}"
|
92
|
<view class="activity-item" bindtap="activityItemTapped" data-skn="{{item.product_skn}}"
|
87
|
- data-f_id="{{item.template_id}}" data-f_index='{{item.index}}' data-f_inindex='{{index}}' data-f_name='newProductListFloor'>
|
93
|
+ data-f_id="{{item.template_id}}" data-f_index='{{item.index}}' data-f_inindex='{{index}}'
|
|
|
94
|
+ data-f_name='newProductListFloor'>
|
88
|
<image src="{{item.default_images}}" class="activity-item-img"></image>
|
95
|
<image src="{{item.default_images}}" class="activity-item-img"></image>
|
89
|
<view class="activity-item-price">{{item.shop_name}}</view>
|
96
|
<view class="activity-item-price">{{item.shop_name}}</view>
|
90
|
</view>
|
97
|
</view>
|
|
@@ -94,22 +101,23 @@ |
|
@@ -94,22 +101,23 @@ |
94
|
</block>
|
101
|
</block>
|
95
|
|
102
|
|
96
|
</block>
|
103
|
</block>
|
97
|
-
|
|
|
98
|
-
|
|
|
99
|
- <template is='tipTitle' wx:if="{{newChannels[selectedChannel]['recommend']['data']}}" data="{{desc:'猜你喜欢'}}"></template>
|
104
|
+ <template is='tipTitle' wx:if="{{newChannels[selectedChannel]['recommend']['data']}}"
|
|
|
105
|
+ data="{{desc:'猜你喜欢'}}"></template>
|
100
|
|
106
|
|
101
|
<view class="likeContainer">
|
107
|
<view class="likeContainer">
|
102
|
<block wx:for="{{newChannels[selectedChannel]['recommend']['data']}}" wx:key="{{index}}">
|
108
|
<block wx:for="{{newChannels[selectedChannel]['recommend']['data']}}" wx:key="{{index}}">
|
103
|
- <template is="productListCell" data="{{listWidth, listHeight, listImageWidth, listImageHeight, listImageTop, listMarginHorizontal,index,f_index:3, item}}"/>
|
109
|
+ <template is="productListCell"
|
|
|
110
|
+ data="{{listWidth, listHeight, listImageWidth, listImageHeight, listImageTop, listMarginHorizontal,index,f_index:3, item}}"/>
|
104
|
</block>
|
111
|
</block>
|
105
|
</view>
|
112
|
</view>
|
106
|
<!--|| channels[selectedChannel]['recommend']['isLoading']-->
|
113
|
<!--|| channels[selectedChannel]['recommend']['isLoading']-->
|
107
|
<loading wx:if="{{newChannels[selectedChannel]['isLoading'] }}">加载中</loading>
|
114
|
<loading wx:if="{{newChannels[selectedChannel]['isLoading'] }}">加载中</loading>
|
108
|
|
115
|
|
109
|
-</view>
|
116
|
+ </view>
|
110
|
<view class='container_mask' bindtap='hiddenChannel' wx:if='{{channelSelect}}'></view>
|
117
|
<view class='container_mask' bindtap='hiddenChannel' wx:if='{{channelSelect}}'></view>
|
111
|
</view>
|
118
|
</view>
|
112
|
-<quickNavigation id="quickNavigation" isShowIndicator="{{isShowIndicator}}" isShowShopCart="{{true}}" isShowMenu="{{false}}" marginBottom="{{50}}" bind:backToTop="backToTop"></quickNavigation>
|
119
|
+<quickNavigation id="quickNavigation" isShowIndicator="{{isShowIndicator}}" isShowShopCart="{{true}}"
|
|
|
120
|
+ isShowMenu="{{false}}" marginBottom="{{50}}" bind:backToTop="backToTop"></quickNavigation>
|
113
|
<import src="../../vendors/toast/wetoast.wxml"/>
|
121
|
<import src="../../vendors/toast/wetoast.wxml"/>
|
114
|
<template is="wetoast" data="{{...__wetoast__}}"/>
|
122
|
<template is="wetoast" data="{{...__wetoast__}}"/>
|
115
|
|
123
|
|