diff --git a/buyer/src/components/indexDecorate/ModelFormItem.vue b/buyer/src/components/indexDecorate/ModelFormItem.vue index bf89d9b8..ad08882d 100644 --- a/buyer/src/components/indexDecorate/ModelFormItem.vue +++ b/buyer/src/components/indexDecorate/ModelFormItem.vue @@ -86,6 +86,14 @@ + + + + @@ -32,45 +48,96 @@ export default { name: "goods", props: { - data: { + paramData: { type: Object, - default: {} - } + default: {}, + }, }, - data(){ - return{ - current:0 - } + data() { + return { + current: "", + }; }, - methods:{ - - } -} + watch: {}, + mounted() { + this.current = this.paramData.options.labels[0].___index; + }, + methods: { + // 筛选出当前分类下的商品 + handleClickLabel(val, index) { + this.current = index; + }, + }, +}; diff --git a/buyer/src/components/indexDecorate/modelList/onlyGoodsModel.vue b/buyer/src/components/indexDecorate/modelList/onlyGoodsModel.vue new file mode 100644 index 00000000..e0d6f608 --- /dev/null +++ b/buyer/src/components/indexDecorate/modelList/onlyGoodsModel.vue @@ -0,0 +1,186 @@ + + + + + diff --git a/buyer/src/pages/Index.vue b/buyer/src/pages/Index.vue index bcbe9819..dc5ebee9 100644 --- a/buyer/src/pages/Index.vue +++ b/buyer/src/pages/Index.vue @@ -38,7 +38,7 @@ - + @@ -217,8 +217,24 @@ export default { transform: translateZ(0); top: 0; } - - +.fixed-bar{ + opacity: 0 !important; + transform: translateY(-10px); + transition: .35s; + z-index: 999999; + height: 0px !important; + overflow: hidden; +} +.show-fixed{ + height: 354px !important; + opacity: 1 !important; + transform: translateY(0); + -webkit-transform: translateZ(0); + -moz-transform: translateZ(0); + -ms-transform: translateZ(0); + -o-transform: translateZ(0); + transform: translateZ(0); +} /* 2K */ @@ -241,12 +257,14 @@ export default { } } + + @media screen and (max-width: 2025px) { /* 样式 */ .fixed-bar{ position: fixed; right:150px; - top: 400px; + top: 300px; } } diff --git a/manager/src/assets/mix-bg1.png b/manager/src/assets/mix-bg1.png new file mode 100644 index 00000000..5aafd3df Binary files /dev/null and b/manager/src/assets/mix-bg1.png differ diff --git a/manager/src/assets/mix-bg2.png b/manager/src/assets/mix-bg2.png new file mode 100644 index 00000000..6f1c2c4b Binary files /dev/null and b/manager/src/assets/mix-bg2.png differ diff --git a/manager/src/views/page-decoration/modelConfig.js b/manager/src/views/page-decoration/modelConfig.js index c9601597..83148675 100644 --- a/manager/src/views/page-decoration/modelConfig.js +++ b/manager/src/views/page-decoration/modelConfig.js @@ -755,12 +755,106 @@ export const modelData = [{ price: "120", title:" 微软 (Microsoft) Xbox 无线控制器/手柄 湛蓝色 | 3.5mm耳机接口蓝牙连接 Xbox主机电脑平板通用", desc:"万家宝藏好店等你来", + url:'', ___index: 0 }, ] }, }, + { + type: 'onlyGoodsModel', + name: '商品模块2', + icon: 'md-image', + options: { + list:[ + { + img: "https://i.loli.net/2021/05/14/KTLSrOVJmEdX12A.png", + price: "120", + title:" 微软 (Microsoft) Xbox 无线控制器/手柄 湛蓝色 | 3.5mm耳机接口蓝牙连接 Xbox主机电脑平板通用", + desc:"万家宝藏好店等你来", + url:'', + }, + ] + }, + }, + { + type: 'mixModel', + name: '混合模块', + icon: 'md-image', + options: { + left:{ + model:'goods', + //数据集合 + data:{ + image:{ + url:"", + src:require('@/assets/mix-bg1.png') + }, + list:[ + { + img:"https://i.loli.net/2021/05/14/KTLSrOVJmEdX12A.png", + title:"商品标题", + price:"120", + url:"", + }, + { + img:"https://i.loli.net/2021/05/14/KTLSrOVJmEdX12A.png", + title:"商品标题", + price:"120", + url:"", + }, + { + img:"https://i.loli.net/2021/05/14/KTLSrOVJmEdX12A.png", + title:"商品标题", + price:"120", + url:"", + }, + { + img:"https://i.loli.net/2021/05/14/KTLSrOVJmEdX12A.png", + title:"商品标题", + price:"120", + url:"", + }, + ], + badge:"精选", + } + }, + right:{ + model:'brand', + data:{ + image:{ + url:"", + src:require('@/assets/mix-bg2.png') + }, + list:[ + { + img:"https://i.loli.net/2021/05/14/KTLSrOVJmEdX12A.png", + + url:"", + }, + { + img:"https://i.loli.net/2021/05/14/KTLSrOVJmEdX12A.png", + + url:"", + }, + { + img:"https://i.loli.net/2021/05/14/KTLSrOVJmEdX12A.png", + + url:"", + }, + { + img:"https://i.loli.net/2021/05/14/KTLSrOVJmEdX12A.png", + url:"", + }, + ], + badge:"", + } + }, + }, + }, + + { type: 'notEnough', name: '还没逛够', diff --git a/manager/src/views/page-decoration/modelFormItem.vue b/manager/src/views/page-decoration/modelFormItem.vue index b8d7370b..eec47ed2 100644 --- a/manager/src/views/page-decoration/modelFormItem.vue +++ b/manager/src/views/page-decoration/modelFormItem.vue @@ -119,6 +119,14 @@ + + + +