diff --git a/pages/goods/categoryList/categoryList.js b/pages/goods/categoryList/categoryList.js
index 1860cbd..13eb389 100644
--- a/pages/goods/categoryList/categoryList.js
+++ b/pages/goods/categoryList/categoryList.js
@@ -22,7 +22,16 @@ Page({
// 导航字母
letters: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',
'U', 'V', 'W', 'X', 'Y', 'Z'],
-
+ //控制新旧分类版本
+ is_used_share:0,
+ //国家的控制属性
+ is_country:1,
+ //品牌的控制属性
+ is_brand:1,
+ name: [{ names: "洗护用品" }, { names: "天天护理" }, { names: "个人洗护" }, { names: "轻奢" }, { names: "路虎" }, { names: "身体护理" }, { names: "品牌" }, { names: "面部护理" }],
+ //选择分类的控制属性
+ select_classify_on:223,
+ index:223,
},
onLoad: function(tt) {
const res = wx.getSystemInfoSync(),
@@ -339,7 +348,12 @@ Page({
_errObj[_errImg] = "/public/images/category.png";
this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ;
- }
-
+ },
+ // 新的版本分类
+ click_classify:function(e){
+ var indexs=e.currentTarget.dataset.index;
+ console.log("获取当前下标",indexs);
+ this.setData({ select_classify_on: indexs, index: indexs});
+ }
});
\ No newline at end of file
diff --git a/pages/goods/categoryList/categoryList.wxml b/pages/goods/categoryList/categoryList.wxml
index ffe605d..e589110 100644
--- a/pages/goods/categoryList/categoryList.wxml
+++ b/pages/goods/categoryList/categoryList.wxml
@@ -1,4 +1,4 @@
-
+
-
-
-
- 分享
-
+
+
@@ -101,3 +98,47 @@
去逛逛
+
+
+
+
+
+
+
+ 扫一扫
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 国家
+
+
+ 品牌
+
+
+
+ {{ittm.names}}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/goods/categoryList/categoryList.wxss b/pages/goods/categoryList/categoryList.wxss
index 9b03c00..c4aa9d2 100644
--- a/pages/goods/categoryList/categoryList.wxss
+++ b/pages/goods/categoryList/categoryList.wxss
@@ -46,12 +46,12 @@ swiper{
display: flex;
align-items: center;
margin: 0rpx 30rpx;
- width: 600rpx;
+ width: 675rpx;
height: 58rpx;
border-radius: 29rpx;
background-color: #fff;
position: relative;
-
+ top: 15rpx;
}
.search-img {
@@ -153,12 +153,87 @@ swiper{
}
.fenlei-list{z-index: -1;}
+
+
+
+
+/* 商品分类新的版本 */
/* 分享样式*/
+.xc-search-box {
+ width: 100%;
+ height: 120rpx;
+ z-index: 10;
+ background: #fff;
+ border-top: 4rpx solid #eee;
+ border-bottom: 1rpx solid #eee;
+
+}
+
.share-height{
- line-height: 30rpx;
+ line-height: 20rpx;
+margin-right: 15rpx;
}
-.share-black-img{
+.scanning_black-img{
width:50rpx;
- height: 40rpx;
-}
\ No newline at end of file
+ height: 45rpx;
+}
+.search-img.left{
+ margin-left: 35rpx;
+}
+
+.xc-search-inner {
+ display: flex;
+ align-items: center;
+
+ width: 600rpx;
+ height: 58rpx;
+ border-radius: 29rpx;
+ background-color: #f2f2f2;
+}
+.project_height{
+ height: 90%;
+
+}
+.project_type{
+ width: 33%;
+ height: 100%;
+ border-right: 1rpx solid #eee;
+}
+.share_type{
+ margin: auto;
+ width: 60%;
+ margin-top: 35rpx;
+
+}
+.xc-letter-spacing{
+padding-left: 29rpx;
+padding-right: 29rpx;
+width: 52%;
+margin: auto;
+margin-top: 35rpx;
+
+
+}
+.world_sn{
+white-space: nowrap;
+overflow: hidden;
+width: 50%;
+letter-spacing: 60rpx;
+margin: auto;
+margin-top: 35rpx;
+}
+.select_classify{
+ background: #ffe3e2;
+border-radius: 30rpx;
+color: #fff;
+height: 48rpx;
+line-height: 45rpx;
+
+}
+.select_classify.width80{
+ width: 74.5%;
+}
+ .text-indent{
+ text-indent: 31rpx;
+ }
\ No newline at end of file