Commit 7ae5947afeac4c8200fbf9f4540e5cf25823cc80

Authored by 后端开发-许程
1 parent b21a4e07

商品分类

pages/goods/categoryList/categoryList.js
@@ -32,6 +32,7 @@ Page({ @@ -32,6 +32,7 @@ Page({
32 //选择分类的控制属性 32 //选择分类的控制属性
33 select_classify_on:223, 33 select_classify_on:223,
34 index:223, 34 index:223,
  35 + classify_name:"国家",//项目类型
35 }, 36 },
36 onLoad: function(tt) { 37 onLoad: function(tt) {
37 const res = wx.getSystemInfoSync(), 38 const res = wx.getSystemInfoSync(),
pages/goods/categoryList/categoryList.wxml
@@ -121,14 +121,14 @@ @@ -121,14 +121,14 @@
121 <!-- 分类项目的类型 --> 121 <!-- 分类项目的类型 -->
122 <view class="project_type"> 122 <view class="project_type">
123 <view class="project_type-frame"> 123 <view class="project_type-frame">
124 - <view bindtap="click_classify" class="share_type fs32 flex-space-between xc-letter-spacing {{select_classify_on==223?'select_classify':''}}"data-index="223" wx:if="{{is_country}}"> 124 + <view bindtap="click_classify" class="share_type fs32 flex-space-between xc-letter-spacing {{select_classify_on==223?'select_classify':''}}"data-index="223"data-name="国家" wx:if="{{is_country}}">
125 <text>国</text><text>家</text> 125 <text>国</text><text>家</text>
126 </view> 126 </view>
127 - <view bindtap="click_classify" class="{{select_classify_on==220?'select_classify':''}} share_type fs32 flex-space-between xc-letter-spacing" wx:if="{{is_brand}}"data-index="220"> 127 + <view bindtap="click_classify" class="{{select_classify_on==220?'select_classify':''}} share_type fs32 flex-space-between xc-letter-spacing" wx:if="{{is_brand}}"data-index="220"data-name="品牌">
128 <text>品</text><text>牌</text> 128 <text>品</text><text>牌</text>
129 </view> 129 </view>
130 <block wx:for="{{name}}" wx:for-item="ittm"wx:for-index="index"> 130 <block wx:for="{{name}}" wx:for-item="ittm"wx:for-index="index">
131 - <view bindtap="click_classify" class="{{select_classify_on==index?'select_classify width80':''}} share_type fs32 t-c {{ittm.names.length==2? 'world_sn':''}} {{select_classify_on==index&&ittm.names.length==2?'text-indent':''}}"data-index="{{index}}"> 131 + <view bindtap="click_classify" class="{{select_classify_on==index?'select_classify width80':''}} share_type fs32 t-c {{ittm.names.length==2? 'world_sn':''}} {{select_classify_on==index&&ittm.names.length==2?'text-indent':''}}"data-index="{{index}}"data-name="{{ittm.names}}">
132 {{ittm.names}} 132 {{ittm.names}}
133 </view> 133 </view>
134 </block> 134 </block>
@@ -137,7 +137,9 @@ @@ -137,7 +137,9 @@
137 137
138 </view> 138 </view>
139 <!-- 分类项目的内容 --> 139 <!-- 分类项目的内容 -->
140 -<view class=""></view> 140 +<view class="classify_content">
  141 +<view class="classify_name fs32">{{classify_name}}</view>
  142 +</view>
141 143
142 </view> 144 </view>
143 145
pages/goods/categoryList/categoryList.wxss
@@ -236,4 +236,14 @@ line-height: 45rpx; @@ -236,4 +236,14 @@ line-height: 45rpx;
236 } 236 }
237 .text-indent{ 237 .text-indent{
238 text-indent: 31rpx; 238 text-indent: 31rpx;
239 - }  
240 \ No newline at end of file 239 \ No newline at end of file
  240 + }
  241 + .classify_name{
  242 + width: 90%;
  243 + margin: auto;
  244 + height: 80rpx;
  245 + border-bottom: 1rpx solid #eee;
  246 + line-height: 80rpx;
  247 + }
  248 + .classify_content{
  249 + width: 100%
  250 + }
241 \ No newline at end of file 251 \ No newline at end of file