首页
diff --git a/canvas-container/components/canvasShow/componentMap.js b/canvas-container/components/canvasShow/componentMap.js
index 03bb4b8..d6a0766 100644
--- a/canvas-container/components/canvasShow/componentMap.js
+++ b/canvas-container/components/canvasShow/componentMap.js
@@ -2,6 +2,7 @@ export const componentMap = [
// 小程序
new Map([
['header', () => import('./basics/header/app')], // 首页头部
+ ['classify-header', () => import('./basics/classifyheader/app')], // 首页头部
['banner', () => import('./basics/banner')], // 轮播图
['text', () => import('./basics/text')], // 文本
['imageText', () => import('./basics/imageText')], // 图文
@@ -27,6 +28,7 @@ export const componentMap = [
// H5
new Map([
['header', () => import('./basics/header/app')], // 首页头部
+ ['classify-header', () => import('./basics/classifyheader/app')], // 首页头部
['banner', () => import('./basics/banner')], // 轮播图
['text', () => import('./basics/text')], // 文本
['imageText', () => import('./basics/imageText')], // 图文
@@ -52,6 +54,7 @@ export const componentMap = [
// APP
new Map([
['header', () => import('./basics/header/app')], // 首页头部
+ ['classify-header', () => import('./basics/classifyheader/app')], // 首页头部
['banner', () => import('./basics/banner')], // 轮播图
['text', () => import('./basics/text')], // 文本
['imageText', () => import('./basics/imageText')], // 图文
@@ -77,6 +80,7 @@ export const componentMap = [
// PC
new Map([
['header', () => import('./basics/header/pc')], // 首页头部
+ ['classify-header', () => import('./basics/classifyheader/pc')], // 首页头部
['banner', () => import('./basics/banner')], // 轮播图
['text', () => import('./basics/text')], // 文本
['imageText', () => import('./basics/imageText')], // 图文
diff --git a/canvas-container/components/canvasShow/config/mixin/sendReqMixin.js b/canvas-container/components/canvasShow/config/mixin/sendReqMixin.js
index 9c18178..88e9244 100644
--- a/canvas-container/components/canvasShow/config/mixin/sendReqMixin.js
+++ b/canvas-container/components/canvasShow/config/mixin/sendReqMixin.js
@@ -2,6 +2,7 @@
* 发送请求 mixin
*/
import request from './server'
+import {getProject} from "@@/utils/auth.js"
/* eslint-disable */
export const sendReq = {
@@ -17,13 +18,15 @@ export const sendReq = {
*/
sendReq (params, callback, errorCallback) {
let self = this
+
request({
method: params.method || 'POST',
url: params.url,
data: params.data || {},
withCredentials : true,
headers: {
- 'Content-type': params.contentType || 'application/json;charset=utf-8'
+ 'Content-type': params.contentType || 'application/json;charset=utf-8',
+ "project" : getProject()
}
}).then((res) => {
if (res && res.data) {
diff --git a/canvas-container/components/leftBar/panelList.js b/canvas-container/components/leftBar/panelList.js
index e2fdaf3..c2a360a 100644
--- a/canvas-container/components/leftBar/panelList.js
+++ b/canvas-container/components/leftBar/panelList.js
@@ -17,7 +17,22 @@ export const panelList = [
title: '',
fontSizeNum: '',
textFontW: 'normal',
- titColor: '#CD5353'
+ titColor: '#CD5353',
+ useSelfTitle : 2,
+ }
+ },
+ {
+ title: '商品分类',
+ iconClass: 'icon-dianputoubu',
+ type: 'classify-header',
+ undraggable: true, // 不可拖动
+ onlyAdmin: true, // 平台端显示
+ onlyApp: true, // 只在app显示
+ componentContent: {
+ fontSizeNum: '',
+ textFontW: 'normal',
+ titColor: '#CD5353',
+
}
},
{
diff --git a/canvas-container/components/toolBar/BasicsComp/classifyheaderTool.vue b/canvas-container/components/toolBar/BasicsComp/classifyheaderTool.vue
new file mode 100644
index 0000000..c28a17f
--- /dev/null
+++ b/canvas-container/components/toolBar/BasicsComp/classifyheaderTool.vue
@@ -0,0 +1,165 @@
+
+
+
+
+
+
+
+
+
文本颜色
+
{{activeComponent.componentContent.titColor}}
+
+
+
{{ $t('common.reset') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/canvas-container/components/toolBar/BasicsComp/customTool.vue b/canvas-container/components/toolBar/BasicsComp/customTool.vue
index e63f657..78333cb 100644
--- a/canvas-container/components/toolBar/BasicsComp/customTool.vue
+++ b/canvas-container/components/toolBar/BasicsComp/customTool.vue
@@ -39,7 +39,7 @@
:class="activeComponent.componentContent.layoutType"
>
-
+
@@ -625,7 +625,7 @@
.item {
margin: -1px 0 0 -1px;
flex: 0 0 50%;
- height: 142px;
+ height: 125px;
border: 1px solid #E8EAEC;
box-sizing: border-box;
display: flex;
@@ -634,7 +634,7 @@
cursor: pointer;
position: relative;
&:before {
- content: '600像素';
+ content: '600px';
font-size: 12px;
color: #666666;
padding: 0 10px;
@@ -670,7 +670,7 @@
flex: 0 0 100%;
height: 93px;
&:before {
- content: '1200像素';
+ content: '1200px';
}
}
}
@@ -679,7 +679,7 @@
flex: 0 0 33.3%;
height: 93px;
&:before {
- content: '400像素';
+ content: '400px';
}
}
}
@@ -688,7 +688,7 @@
flex:0 0 25%;
height: 71px;
&:before {
- content: '300像素';
+ content: '300px';
}
}
}
@@ -698,7 +698,7 @@
flex: 0 0 50%;
height: 142px;
&:before {
- content: '600x600像素';
+ content: '600x600px';
}
}
}
@@ -706,13 +706,13 @@
flex-wrap: wrap;
.item{
&:before {
- content: '600x600像素';
+ content: '600x600px';
}
}
.item:nth-child(1) {
height: 284px;
&:before {
- content: '600x1200像素';
+ content: '600x1200px';
}
}
.item:nth-child(3) {
@@ -724,13 +724,13 @@
flex-wrap: wrap;
.item{
&:before {
- content: '600x600像素';
+ content: '600x500px';
}
}
.item:nth-child(1) {
flex: 0 0 100%;
&:before {
- content: '1200x600像素';
+ content: '1200x500px';
}
}
}
@@ -738,18 +738,18 @@
flex-wrap: wrap;
.item{
&:before {
- content: '300x300像素';
+ content: '300x300px';
}
}
.item:nth-child(1) {
&:before {
- content: '600x600像素';
+ content: '600x600px';
}
}
.item:nth-child(2) {
height: 72px;
&:before {
- content: '600x300像素';
+ content: '600x300px';
}
}
.item:nth-child(3) {
@@ -990,76 +990,76 @@
.layoutBox {
.item {
&:before {
- content: '360像素';
+ content: '360px';
}
}
}
.L1 {
.item {
&:before {
- content: '720像素';
+ content: '720px';
}
}
}
.L3 {
.item {
&:before {
- content: '240像素';
+ content: '240px';
}
}
}
.L4 {
.item {
&:before {
- content: '180像素';
+ content: '180px';
}
}
}
.T2B2 {
.item {
&:before {
- content: '360x360像素';
+ content: '360x360px';
}
}
}
.L1R2 {
.item{
&:before {
- content: '360x360像素';
+ content: '360x360px';
}
}
.item:nth-child(1) {
&:before {
- content: '360x720像素';
+ content: '360x720px';
}
}
}
.T1B2 {
.item{
&:before {
- content: '360x360像素';
+ content: '360x360px';
}
}
.item:nth-child(1) {
&:before {
- content: '720x360像素';
+ content: '720x360px';
}
}
}
.L1T1B2 {
.item{
&:before {
- content: '180x180像素';
+ content: '180x180px';
}
}
.item:nth-child(1) {
&:before {
- content: '360x360像素';
+ content: '360x360px';
}
}
.item:nth-child(2) {
&:before {
- content: '360x180像素';
+ content: '360x180px';
}
}
}
diff --git a/canvas-container/components/toolBar/BasicsComp/headerTool.vue b/canvas-container/components/toolBar/BasicsComp/headerTool.vue
index b195c82..3a47ab0 100644
--- a/canvas-container/components/toolBar/BasicsComp/headerTool.vue
+++ b/canvas-container/components/toolBar/BasicsComp/headerTool.vue
@@ -43,7 +43,15 @@