diff --git a/pages/supply_chain/supply_chain.vue b/pages/supply_chain/supply_chain.vue
index c9405c9..56b8067 100644
--- a/pages/supply_chain/supply_chain.vue
+++ b/pages/supply_chain/supply_chain.vue
@@ -7,7 +7,8 @@
搜索
-
+
+
+
+
+
+ {{ item.name }}
+
@@ -35,7 +57,6 @@
@init="mescrollInit"
:fixed="false"
>
-
@@ -86,6 +107,28 @@ export default {
return {
dataList: [],
tabList: [{ name: "推荐" }],
+ tabArr: [
+ {
+ img: "/static/common/xrjx.png",
+ greyImg: "/static/common/xrjx_grey.png",
+ name: "信任精选",
+ },
+ {
+ img: "/static/common/cdjk.png",
+ greyImg: "/static/common/cdjk_grey.png",
+ name: "吃的健康",
+ },
+ {
+ img: "/static/common/qwhb.png",
+ greyImg: "/static/common/qwhb_grey.png",
+ name: "全网爆款",
+ },
+ {
+ img: "/static/common/yxhw.png",
+ greyImg: "/static/common/yxhw_grey.png",
+ name: "严选好物",
+ },
+ ],
curTab: 0,
upOption: {
auto: false,
@@ -189,7 +232,7 @@ export default {
.filter(Boolean);
this.rightList = this.dataList
.map((item, index) => {
- if (index % 2 != 0)return item;
+ if (index % 2 != 0) return item;
return null;
})
.filter(Boolean);
@@ -240,6 +283,32 @@ export default {
border-radius: 16rpx;
}
}
+.tab-box {
+ width: 100%;
+ height: 160rpx;
+ min-height: 80rpx;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ padding: 0 32rpx;
+ box-sizing: border-box;
+ background-color: #fff;
+ overflow-x: auto;
+ .tab-item {
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ align-items: center;
+ .tab-img {
+ width: 56rpx;
+ height: 56rpx;
+ }
+ .tab-name {
+ font-size: 28rpx;
+ margin-top: 24rpx;
+ }
+ }
+}
.tab-view {
width: 100%;
height: 80rpx;
diff --git a/static/common/cdjk.png b/static/common/cdjk.png
new file mode 100644
index 0000000..2c4e213
Binary files /dev/null and b/static/common/cdjk.png differ
diff --git a/static/common/cdjk_grey.png b/static/common/cdjk_grey.png
new file mode 100644
index 0000000..0e87640
Binary files /dev/null and b/static/common/cdjk_grey.png differ
diff --git a/static/common/qwhb.png b/static/common/qwhb.png
new file mode 100644
index 0000000..0b5d513
Binary files /dev/null and b/static/common/qwhb.png differ
diff --git a/static/common/qwhb_grey.png b/static/common/qwhb_grey.png
new file mode 100644
index 0000000..d02664a
Binary files /dev/null and b/static/common/qwhb_grey.png differ
diff --git a/static/common/xrjx.png b/static/common/xrjx.png
new file mode 100644
index 0000000..f05826c
Binary files /dev/null and b/static/common/xrjx.png differ
diff --git a/static/common/xrjx_grey.png b/static/common/xrjx_grey.png
new file mode 100644
index 0000000..2761e2d
Binary files /dev/null and b/static/common/xrjx_grey.png differ
diff --git a/static/common/yxhw.png b/static/common/yxhw.png
new file mode 100644
index 0000000..56902ff
Binary files /dev/null and b/static/common/yxhw.png differ
diff --git a/static/common/yxhw_grey.png b/static/common/yxhw_grey.png
new file mode 100644
index 0000000..9a1b353
Binary files /dev/null and b/static/common/yxhw_grey.png differ