-
{{data.options.title}}
+
{{ paramData.options.title }}
-
- {{item.label}}
+
+ {{ item.label }}
-
-
+
+
-
+
-
{{item.title}}
-
{{item.desc}}
-
+
{{ item.title }}
+
{{ item.desc }}
- {{item.price | unitPrice("¥")}}
+ {{ item.price | unitPrice("¥") }}
+
+
+
-
@@ -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 @@
+
+
+
+
+
+
+
{{ item.title }}
+
{{ item.desc }}
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
@@ -252,6 +260,9 @@ import Seckill from "./modelList/seckill.vue";
import goodsType from "./modelList/goodsAndType.vue";
import ossManage from "@/views/sys/oss-manage/ossManage";
+import mixModel from "./modelList/mixModel.vue";
+import onlyGoodsModel from "./modelList/onlyGoodsModel.vue";
+
import oneRowThreeColumns from "./modelList/oneRowThreeColumns.vue";
import seckillOnlyAlbum from "./modelList/seckill-only-album.vue";
export default {
@@ -269,7 +280,9 @@ export default {
goodsType,
ossManage,
oneRowThreeColumns,
- "seckill-only-album":seckillOnlyAlbum
+ "seckill-only-album":seckillOnlyAlbum,
+ onlyGoodsModel,
+ mixModel
},
data() {
return {
diff --git a/manager/src/views/page-decoration/modelList/goodsAndType.vue b/manager/src/views/page-decoration/modelList/goodsAndType.vue
index 58918cb9..d4b6a9e7 100644
--- a/manager/src/views/page-decoration/modelList/goodsAndType.vue
+++ b/manager/src/views/page-decoration/modelList/goodsAndType.vue
@@ -1,199 +1,312 @@
-
-
-
{{data.options.title}}
-
+
+
+
{{ data.options.title }}
+
-
-
-
-
-
-
-
-
{{item.title}}
-
{{item.desc}}
-
-
-
- {{item.price | unitPrice("¥")}}
-
-
+
+
+
+
+
+
+
+
+
{{ item.title }}
+
{{ item.desc }}
+
+
+ {{ item.price | unitPrice("¥") }}
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ 标题
+
+
+
+ 标签
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/manager/src/views/page-decoration/modelList/mixModel.vue b/manager/src/views/page-decoration/modelList/mixModel.vue
new file mode 100644
index 00000000..a6d8c6c0
--- /dev/null
+++ b/manager/src/views/page-decoration/modelList/mixModel.vue
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
diff --git a/manager/src/views/page-decoration/modelList/mixs/mix-brand.vue b/manager/src/views/page-decoration/modelList/mixs/mix-brand.vue
new file mode 100644
index 00000000..02a6c460
--- /dev/null
+++ b/manager/src/views/page-decoration/modelList/mixs/mix-brand.vue
@@ -0,0 +1,114 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/manager/src/views/page-decoration/modelList/mixs/mix-goods.vue b/manager/src/views/page-decoration/modelList/mixs/mix-goods.vue
new file mode 100644
index 00000000..7c792e99
--- /dev/null
+++ b/manager/src/views/page-decoration/modelList/mixs/mix-goods.vue
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+ {{data.options.left.data.badge}}
+
+
+
+
+
+
+
+
+
{{item.title}}
+
{{item.price | unitPrice('¥')}}
+
+
+
+
+
+
+
+
+
+
diff --git a/manager/src/views/page-decoration/modelList/onlyGoodsModel.vue b/manager/src/views/page-decoration/modelList/onlyGoodsModel.vue
new file mode 100644
index 00000000..67b7fa74
--- /dev/null
+++ b/manager/src/views/page-decoration/modelList/onlyGoodsModel.vue
@@ -0,0 +1,280 @@
+
+
+
+
+
+
+
{{ item.title }}
+
{{ item.desc }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/manager/src/views/page-decoration/renovation.vue b/manager/src/views/page-decoration/renovation.vue
index 2fa9b293..8253847f 100644
--- a/manager/src/views/page-decoration/renovation.vue
+++ b/manager/src/views/page-decoration/renovation.vue
@@ -108,7 +108,8 @@ export default {
}
.model-list {
width: 130px;
- height: auto;
+ height: 450px;
+ overflow-y: auto;
padding: 10px;
background: #fff;
margin-top: 60px;