Forráskód Böngészése

Merge branch 'master' of http://8.152.4.3:3000/yp_web/yoe-opm-web

hurx 21 órája
szülő
commit
5f44793330

+ 2 - 2
src/components/heat-map/index.vue

@@ -24,10 +24,10 @@
             @mousedown="mouseDown($event, index)"
           >
             <span>{{ Number(index) + 1 }}</span>
-            <template v-if="item.link">
+            <!-- <template v-if="item.link">
               <span class="p-[4px]">|</span>
               <span>{{ item.link }}</span>
-            </template>
+            </template> -->
             <span class="box1" @mousedown.stop="resizeMouseDown($event, index)"></span>
             <span class="box2" @mousedown.stop="resizeMouseDown($event, index)"></span>
             <span class="box3" @mousedown.stop="resizeMouseDown($event, index)"></span>

+ 133 - 131
src/views/diy/edit.ts

@@ -972,143 +972,145 @@ export const data1 = {
               'both': 10
             }
           }
-        },
-        'ShopNewcomer': {
-          'title': '新人专享',
-          'icon': 'iconfont icona-xinrenzhuanxiangpc30',
-          'path': 'edit-shop-newcomer',
-          'uses': 1,
-          'value': {
-            'style': {
-              'title': '风格1',
-              'value': 'style-1'
-            },
-            'textImg': 'addon/shop/diy/newcomer/style_title_01.png',
-            'subTitle': {
-              'text': '查看更多',
-              'textColor': '#FFFFFF',
-              'startColor': '#FB792F',
-              'endColor': '#F91700',
-              'link': ''
-            },
-            'countDown': {
-              'numberColor': 'rgba(255, 0, 0, 1)',
-              'numberBg': {
-                'startColor': 'rgba(255, 255, 255, 1)',
-                'endColor': ''
-              },
-              'otherColor': 'rgba(255, 255, 255, 1)'
-            },
-            'source': 'custom',
-            'num': 10,
-            'goods_category': '',
-            'goods_category_name': '请选择',
-            'goodsIds': [],
-            'imgElementRounded': 10
-          },
-          'template': {
-            'textColor': '#303133',
-            'pageStartBgColor': '',
-            'pageEndBgColor': '',
-            'pageGradientAngle': 'to bottom',
-            'componentStartBgColor': '#ff6D1A',
-            'componentEndBgColor': 'rgba(255, 70, 56, 1)',
-            'componentGradientAngle': 'to right',
-            'topRounded': 12,
-            'bottomRounded': 12,
-            'elementBgColor': '',
-            'topElementRounded': 10,
-            'bottomElementRounded': 10,
-            'margin': {
-              'top': 10,
-              'bottom': 10,
-              'both': 10
-            }
-          }
-        },
-        'ShopGoodsRanking': {
-          'title': '排行榜',
-          'icon': 'iconfont icona-paihangbangpc30',
-          'path': 'edit-shop-goods-ranking',
-          'uses': 0,
-          'value': {
-            'list': [
-              {
-                'bgUrl': 'addon/shop/rank/rank_bg_01.jpg',
-                'text': '热销排行榜',
-                'textColor': '#FFFFFF',
-                'imgUrl': 'addon/shop/rank/rank_trophy.png',
-                'subTitle': {
-                  'text': '查看更多',
-                  'textColor': '#FFFFFF',
-                  'link': {
-                    'name': 'SHOP_GOODS_RANK',
-                    'parent': 'SHOP_LINK',
-                    'title': '商品排行榜',
-                    'url': '/addon/shop/pages/goods/rank',
-                    'action': ''
-                  }
-                },
-                'listFrame': {
-                  'startColor': '#FEA715',
-                  'endColor': '#FE1E00'
-                },
-                'source': 'default',
-                'rankIds': []
-              },
-              {
-                'bgUrl': 'addon/shop/rank/rank_bg_02.jpg',
-                'text': '人气排行榜',
-                'textColor': '#FFFFFF',
-                'imgUrl': 'addon/shop/rank/rank_top.png',
-                'subTitle': {
-                  'text': '查看更多',
-                  'textColor': '#FFFFFF',
-                  'link': {
-                    'name': 'SHOP_GOODS_RANK',
-                    'parent': 'SHOP_LINK',
-                    'title': '商品排行榜',
-                    'url': '/addon/shop/pages/goods/rank',
-                    'action': ''
-                  }
-                },
-                'listFrame': {
-                  'startColor': '#FEA715',
-                  'endColor': '#FE1E00'
-                },
-                'source': 'default',
-                'rankIds': []
-              }
-            ]
-          },
-          'template': {
-            'textColor': '#303133',
-            'pageStartBgColor': '',
-            'pageEndBgColor': '',
-            'pageGradientAngle': 'to bottom',
-            'componentBgUrl': '',
-            'componentBgAlpha': 2,
-            'componentStartBgColor': '',
-            'componentEndBgColor': '',
-            'componentGradientAngle': 'to bottom',
-            'topRounded': 0,
-            'bottomRounded': 0,
-            'elementBgColor': '',
-            'topElementRounded': 10,
-            'bottomElementRounded': 10,
-            'margin': {
-              'top': 10,
-              'bottom': 10,
-              'both': 10
-            }
-          }
         }
+        // 'ShopNewcomer': {
+        //   'title': '新人专享',
+        //   'icon': 'iconfont icona-xinrenzhuanxiangpc30',
+        //   'path': 'edit-shop-newcomer',
+        //   'uses': 1,
+        //   'value': {
+        //     'style': {
+        //       'title': '风格1',
+        //       'value': 'style-1'
+        //     },
+        //     'textImg': 'addon/shop/diy/newcomer/style_title_01.png',
+        //     'subTitle': {
+        //       'text': '查看更多',
+        //       'textColor': '#FFFFFF',
+        //       'startColor': '#FB792F',
+        //       'endColor': '#F91700',
+        //       'link': ''
+        //     },
+        //     'countDown': {
+        //       'numberColor': 'rgba(255, 0, 0, 1)',
+        //       'numberBg': {
+        //         'startColor': 'rgba(255, 255, 255, 1)',
+        //         'endColor': ''
+        //       },
+        //       'otherColor': 'rgba(255, 255, 255, 1)'
+        //     },
+        //     'source': 'custom',
+        //     'num': 10,
+        //     'goods_category': '',
+        //     'goods_category_name': '请选择',
+        //     'goodsIds': [],
+        //     'imgElementRounded': 10
+        //   },
+        //   'template': {
+        //     'textColor': '#303133',
+        //     'pageStartBgColor': '',
+        //     'pageEndBgColor': '',
+        //     'pageGradientAngle': 'to bottom',
+        //     'componentStartBgColor': '#ff6D1A',
+        //     'componentEndBgColor': 'rgba(255, 70, 56, 1)',
+        //     'componentGradientAngle': 'to right',
+        //     'topRounded': 12,
+        //     'bottomRounded': 12,
+        //     'elementBgColor': '',
+        //     'topElementRounded': 10,
+        //     'bottomElementRounded': 10,
+        //     'margin': {
+        //       'top': 10,
+        //       'bottom': 10,
+        //       'both': 10
+        //     }
+        //   }
+        // },
+        // 'ShopGoodsRanking': {
+        //   'title': '排行榜',
+        //   'icon': 'iconfont icona-paihangbangpc30',
+        //   'path': 'edit-shop-goods-ranking',
+        //   'uses': 0,
+        //   'value': {
+        //     'list': [
+        //       {
+        //         'bgUrl': 'addon/shop/rank/rank_bg_01.jpg',
+        //         'text': '热销排行榜',
+        //         'textColor': '#FFFFFF',
+        //         'imgUrl': 'addon/shop/rank/rank_trophy.png',
+        //         'subTitle': {
+        //           'text': '查看更多',
+        //           'textColor': '#FFFFFF',
+        //           'link': {
+        //             'name': 'SHOP_GOODS_RANK',
+        //             'parent': 'SHOP_LINK',
+        //             'title': '商品排行榜',
+        //             'url': '/addon/shop/pages/goods/rank',
+        //             'action': ''
+        //           }
+        //         },
+        //         'listFrame': {
+        //           'startColor': '#FEA715',
+        //           'endColor': '#FE1E00'
+        //         },
+        //         'source': 'default',
+        //         'rankIds': []
+        //       },
+        //       {
+        //         'bgUrl': 'addon/shop/rank/rank_bg_02.jpg',
+        //         'text': '人气排行榜',
+        //         'textColor': '#FFFFFF',
+        //         'imgUrl': 'addon/shop/rank/rank_top.png',
+        //         'subTitle': {
+        //           'text': '查看更多',
+        //           'textColor': '#FFFFFF',
+        //           'link': {
+        //             'name': 'SHOP_GOODS_RANK',
+        //             'parent': 'SHOP_LINK',
+        //             'title': '商品排行榜',
+        //             'url': '/addon/shop/pages/goods/rank',
+        //             'action': ''
+        //           }
+        //         },
+        //         'listFrame': {
+        //           'startColor': '#FEA715',
+        //           'endColor': '#FE1E00'
+        //         },
+        //         'source': 'default',
+        //         'rankIds': []
+        //       }
+        //     ]
+        //   },
+        //   'template': {
+        //     'textColor': '#303133',
+        //     'pageStartBgColor': '',
+        //     'pageEndBgColor': '',
+        //     'pageGradientAngle': 'to bottom',
+        //     'componentBgUrl': '',
+        //     'componentBgAlpha': 2,
+        //     'componentStartBgColor': '',
+        //     'componentEndBgColor': '',
+        //     'componentGradientAngle': 'to bottom',
+        //     'topRounded': 0,
+        //     'bottomRounded': 0,
+        //     'elementBgColor': '',
+        //     'topElementRounded': 10,
+        //     'bottomElementRounded': 10,
+        //     'margin': {
+        //       'top': 10,
+        //       'bottom': 10,
+        //       'both': 10
+        //     }
+        //   }
+        // }
       }
     }
   },
   // wap/app/pages/index/index?mode=decorate
   'domain_url': {
-    'wap_url': 'http://localhost:5173/wap'
+    'wap_url': 'http://119.97.180.88:5173/wap'
+
+    // 'wap_url': 'http://localhost:5173/wap'
     // 'wap_url': 'https://v6.site.niucloud.com/wap'
   },
   'global': []

+ 10 - 3
src/views/diy/pcEdit.vue

@@ -17,7 +17,8 @@
       <!-- :loading="loading" -->
     </el-header>
     <div class="full-container flex flex-row flex-1 bg-page">
-      <div class="component-list w-[192px]">
+      <!-- w-[192px] -->
+      <div class="component-list">
         <!-- 组件列表区域 -->
         <el-collapse v-model="activeNames" @change="handleChange">
           <el-collapse-item v-for="(item, key) in collapse" :key="key" :title="item.name" :name="key">
@@ -71,7 +72,8 @@
       </div>
 
       <!-- 编辑组件属性区域 -->
-      <div class="edit-attribute-wrap w-[400px]">
+      <!-- w-[400px] -->
+      <div class="edit-attribute-wrap">
         <!-- 编辑组件属性区域 -->
         <el-scrollbar>
           <el-card class="box-card" shadow="never">
@@ -339,7 +341,7 @@ const save = (type?: number) => {
 <style lang="scss" scoped>
 .pcEdit-pages {
   // min-height: calc(100vh - 84px);
-  // min-width: 1900px;
+  min-width: 2000px;
   height: calc(100vh);
 
   .full-container {
@@ -350,6 +352,8 @@ const save = (type?: number) => {
       height: 100%;
       background-color: #ffffff;
       padding: 0 10px;
+      min-width: 190px;
+      width: 190px;
     }
 
     .component-list ul li {
@@ -378,6 +382,7 @@ const save = (type?: number) => {
         // zoom: 0.7;
         // height: calc(100vh - 194px);
         height: 100%;
+        padding-top: 15px;
 
         /* 为了兼容某些情况,可能还需要配合 display */
         display: inline-block;
@@ -409,6 +414,8 @@ const save = (type?: number) => {
 
     //编辑组件属性区域
     .edit-attribute-wrap {
+      width: 400px;
+      min-width: 400px;
       background: var(--el-bg-color);
     }
 

+ 18 - 18
src/views/diy/pccomponents/index.ts

@@ -93,24 +93,24 @@ const borderEditRef = shallowRef(borderEdit);
 
 // 组件列表配置
 export const componentImportConfigs: any = [
-  {
-    name: '头部组件',
-    icon: 'iconfont iconfuwenbenpc',
-    id: 1,
-    enabled: true,
-    components: markRaw(headRef.value),
-    edit: markRaw(headEditRef.value),
-    fid: 1
-  },
-  {
-    name: '站点头部',
-    icon: 'iconfont iconfuwenbenpc',
-    id: 18,
-    enabled: true,
-    components: markRaw(headDataRef.value),
-    edit: markRaw(headDataEditRef.value),
-    fid: 1
-  },
+  // {
+  //   name: '头部组件',
+  //   icon: 'iconfont iconfuwenbenpc',
+  //   id: 1,
+  //   enabled: true,
+  //   components: markRaw(headRef.value),
+  //   edit: markRaw(headEditRef.value),
+  //   fid: 1
+  // },
+  // {
+  //   name: '站点头部',
+  //   icon: 'iconfont iconfuwenbenpc',
+  //   id: 18,
+  //   enabled: true,
+  //   components: markRaw(headDataRef.value),
+  //   edit: markRaw(headDataEditRef.value),
+  //   fid: 1
+  // },
   {
     name: '文本标题',
     icon: 'iconfont iconbiaotipc',