Browse Source

mock优化

yuxingxing 2 years ago
parent
commit
61576b33b4

+ 11 - 96
components/pageFooter/index.vue

@@ -92,104 +92,19 @@
 			this.activeRouter = '/' + curRoute
 		},
 		onShow() {
-			let res = {
-				"name": "pageFoot",
-				"setUp": {
-					"tabVal": 0
-				},
-				"status": {
-					"title": "是否自定义",
-					"name": "status",
-					"status": true
-				},
-				"txtColor": {
-					"title": "文字颜色",
-					"name": "txtColor",
-					"default": [
-						{
-							"item": "#282828"
-						}
-					],
-					"color": [
-						{
-							"item": "rgba(51,51,51,1)"
-						}
-					]
-				},
-				"activeTxtColor": {
-					"title": "选中文字颜色",
-					"name": "txtColor",
-					"default": [
-						{
-							"item": "#F62C2C"
-						}
-					],
-					"color": [
-						{
-							"item": "rgba(29,176,252,1)"
-						}
-					]
-				},
-				"bgColor": {
-					"title": "背景颜色",
-					"name": "bgColor",
-					"default": [
-						{
-							"item": "#fff"
-						}
-					],
-					"color": [
-						{
-							"item": "#fff"
-						}
-					]
-				},
-				"menuList": [
-					{
-						"imgList": [
-							"https://qiniu.crmeb.net/attach/2021/11/bdf25202111181452426458.png",
-							"https://qiniu.crmeb.net/attach/2021/11/aaf1b202111181452576658.png"
-						],
-						"name": "首页",
-						"link": "/pages/index/index"
-					},
-					{
-						"imgList": [
-							"https://demo26.crmeb.net/uploads/attach/2022/09/20220923/14367a2fecd502f51978ed6ea09afe19.png",
-							"https://qiniu.crmeb.net/attach/2021/11/59d4a202111181453208678.png"
-						],
-						"name": "分类",
-						"link": "/pages/goods_cate/goods_cate"
-					},
-					{
-						"imgList": [
-							"https://qiniu.crmeb.net/attach/2021/11/076ac202111181453294517.png",
-							"https://qiniu.crmeb.net/attach/2021/11/201c9202111181453378599.png"
-						],
-						"name": "购物车",
-						"link": "/pages/order_addcart/order_addcart"
-					},
-					{
-						"imgList": [
-							"https://qiniu.crmeb.net/attach/2021/11/f04cf20211118145343755.png",
-							"https://qiniu.crmeb.net/attach/2021/11/3a141202111181453495771.png"
-						],
-						"name": "我的",
-						"link": "/pages/user/index"
+			uni.request({
+				url:'api/mock/navigation',
+				success:res=>{
+					this.newData = res.data
+					uni.setStorageSync('pageFoot', newData)
+					this.$store.commit('FOOT_UPLOAD', newData)
+					if (this.newData.status && this.newData.status.status) {
+						uni.hideTabBar()
+					} else {
+						uni.showTabBar()
 					}
-				],
-				"id": "idundefined"
-			}
-			// getNavigation().then(res => {
-				this.newData = res
-				uni.setStorageSync('pageFoot', newData)
-				this.$store.commit('FOOT_UPLOAD', newData)
-				if (this.newData.status && this.newData.status.status) {
-					uni.hideTabBar()
-				} else {
-					uni.showTabBar()
 				}
-			// })
+			})
 			// getNavigation().then(res => {
 			// 	uni.setStorageSync('pageFoot', res.data)
 			// 	this.$store.commit('FOOT_UPLOAD', res.data)

+ 11 - 5
mock/index.js

@@ -1,6 +1,12 @@
 const Mock = require('better-mock/dist/mock.mp.js')
-Mock.mock('api/test', {
-    data: [{
-        num: 1
-    }]
-})
+const diyRes = require('./json/diy_res.json')
+const navigationRes = require('./json/navigation_res.json')
+const menuRes = require('./json/menu_res.json')
+// 模块数据
+Mock.mock('api/mock/diy', diyRes)
+
+
+Mock.mock('api/mock/navigation', navigationRes)
+
+Mock.mock('api/mock/menu', menuRes)
+

+ 1610 - 0
mock/json/diy_res.json

@@ -0,0 +1,1610 @@
+{
+    "name": "蓝色主题模板(官方演示勿动!)",
+    "value": {
+        "1666235374470008": {
+            "name": "liveBroadcast",
+            "timestamp": "1666235374470008",
+            "setUp": {
+                "tabVal": 0
+            },
+            "bg": {
+                "title": "背景色",
+                "name": "bg",
+                "default": [
+                    {
+                        "item": "#fff"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "#fff"
+                    }
+                ]
+            },
+            "boxShadow": {
+                "title": "阴影颜色",
+                "name": "playBg",
+                "default": [
+                    {
+                        "item": "rgba(0, 0, 0, 0.06)"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(0, 0, 0, 0.06)"
+                    }
+                ]
+            },
+            "limit": {
+                "title": "显示个数",
+                "val": 1
+            },
+            "listStyle": {
+                "title": "列表样式",
+                "name": "listStyle",
+                "type": 0,
+                "list": [
+                    {
+                        "val": "单列",
+                        "icon": "iconPic_big"
+                    },
+                    {
+                        "val": "双列",
+                        "icon": "iconPic_small"
+                    },
+                    {
+                        "val": "大图",
+                        "icon": "iconbanner_1"
+                    }
+                ]
+            },
+            "mbConfig": {
+                "title": "页面间距",
+                "val": 0,
+                "min": 0
+            },
+            "id": "id1666235050825000"
+        },
+        "1666235374470000": {
+            "name": "headerSerch",
+            "timestamp": "1666235374470000",
+            "setUp": {
+                "tabVal": 0
+            },
+            "bgColor": {
+                "title": "背景颜色(渐变)",
+                "name": "bgColor",
+                "default": [
+                    {
+                        "item": "#F62C2C"
+                    },
+                    {
+                        "item": "#F96E29"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(29,176,252,1)"
+                    },
+                    {
+                        "item": "rgba(64,209,244,1)"
+                    }
+                ]
+            },
+            "boxStyle": {
+                "title": "边框样式",
+                "name": "boxStyle",
+                "type": 0,
+                "list": [
+                    {
+                        "val": "圆角",
+                        "icon": "iconPic_fillet"
+                    },
+                    {
+                        "val": "直角",
+                        "icon": "iconPic_square"
+                    }
+                ]
+            },
+            "txtStyle": {
+                "title": "文本位置",
+                "name": "txtStyle",
+                "type": 1,
+                "list": [
+                    {
+                        "val": "居左",
+                        "icon": "icondoc_left"
+                    },
+                    {
+                        "val": "居中",
+                        "icon": "icondoc_center"
+                    }
+                ]
+            },
+            "prConfig": {
+                "title": "背景边距",
+                "val": 8,
+                "min": 0
+            },
+            "mbConfig": {
+                "title": "页面间距",
+                "val": 0,
+                "min": 0
+            },
+            "hotWords": {
+                "list": [
+                    {
+                        "val": ""
+                    }
+                ]
+            },
+            "logoConfig": {
+                "type": 1,
+                "header": "设置logo",
+                "title": "",
+                "url": "https://demo26.crmeb.net/uploads/attach/2022/10/20221009/7436ee5680bc5d67c46a6017939475e5.png"
+            },
+            "id": "id1665385357481000"
+        },
+        "1666235374470001": {
+            "name": "swiperBg",
+            "timestamp": "1666235374470001",
+            "setUp": {
+                "tabVal": 1
+            },
+            "swiperConfig": {
+                "title": "最多可添加10张图片,建议宽度750px;鼠标拖拽左侧圆点可调整图片 顺序",
+                "maxList": 10,
+                "list": [
+                    {
+                        "img": "https://demo26.crmeb.net/uploads/attach/2022/09/20220928/8903e1c331b95263270d1bf558315eea.jpg",
+                        "info": [
+                            {
+                                "title": "标题",
+                                "value": "电商社交",
+                                "tips": "选填,不超过4个字",
+                                "max": 4
+                            },
+                            {
+                                "title": "链接",
+                                "value": "/pages/goods_cate/goods_cate",
+                                "tips": "请输入链接",
+                                "max": 100
+                            }
+                        ]
+                    },
+                    {
+                        "img": "https://qiniu.crmeb.net/attach/2021/10/78c7c20211011171437256.png",
+                        "info": [
+                            {
+                                "title": "标题",
+                                "value": "今日推荐",
+                                "tips": "选填,不超过4个字",
+                                "max": 4
+                            },
+                            {
+                                "title": "链接",
+                                "value": "/pages/extension/customer_list/chat",
+                                "tips": "请输入链接",
+                                "max": 100
+                            }
+                        ]
+                    },
+                    {
+                        "img": "https://qiniu.crmeb.net/attach/2021/10/ce66b202110111714168104.png",
+                        "info": [
+                            {
+                                "title": "标题",
+                                "value": "超值爆款",
+                                "tips": "选填,不超过4个字",
+                                "max": 4
+                            },
+                            {
+                                "title": "链接",
+                                "value": "/pages/users/user_sgin/index",
+                                "tips": "请输入链接",
+                                "max": 100
+                            }
+                        ]
+                    }
+                ]
+            },
+            "isShow": {
+                "title": "是否显示背景色",
+                "val": false
+            },
+            "bgColor": {
+                "title": "背景颜色(渐变)",
+                "default": [
+                    {
+                        "item": "#F62C2C"
+                    },
+                    {
+                        "item": "#F96E29"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(29,176,252,1)"
+                    },
+                    {
+                        "item": "rgba(64,209,244,1)"
+                    }
+                ]
+            },
+            "dotColor": {
+                "title": "指示器颜色",
+                "default": [
+                    {
+                        "item": "#fff"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(29,176,252,1)"
+                    }
+                ]
+            },
+            "lrConfig": {
+                "title": "左右边距",
+                "val": 11,
+                "min": 0
+            },
+            "mbConfig": {
+                "title": "页面间距",
+                "val": 10,
+                "min": 0
+            },
+            "docConfig": {
+                "cname": "swiper",
+                "title": "指示器样式",
+                "type": 0,
+                "list": [
+                    {
+                        "val": "圆形",
+                        "icon": "iconDot"
+                    },
+                    {
+                        "val": "直线",
+                        "icon": "iconSquarepoint"
+                    },
+                    {
+                        "val": "数字",
+                        "icon": "iconshuzi"
+                    },
+                    {
+                        "val": "无指示器",
+                        "icon": "iconjinyong"
+                    }
+                ]
+            },
+            "txtStyle": {
+                "title": "指示器位置",
+                "type": 2,
+                "list": [
+                    {
+                        "val": "居左",
+                        "icon": "icondoc_left"
+                    },
+                    {
+                        "val": "居中",
+                        "icon": "icondoc_center"
+                    },
+                    {
+                        "val": "居右",
+                        "icon": "icondoc_right"
+                    }
+                ]
+            },
+            "imgConfig": {
+                "cname": "docStyle",
+                "title": "轮播图样式",
+                "type": 0,
+                "list": [
+                    {
+                        "val": "圆角",
+                        "icon": "iconPic_fillet"
+                    },
+                    {
+                        "val": "直角",
+                        "icon": "iconPic_square"
+                    }
+                ]
+            },
+            "id": "id1665385357481001"
+        },
+        "1666235374470002": {
+            "name": "news",
+            "timestamp": "1666235374470002",
+            "setUp": {
+                "tabVal": 1
+            },
+            "txtStyle": {
+                "title": "文本位置",
+                "name": "txtStyle",
+                "type": 0,
+                "list": [
+                    {
+                        "val": "居左",
+                        "icon": "icondoc_left",
+                        "style": "left"
+                    },
+                    {
+                        "val": "居中",
+                        "icon": "icondoc_center",
+                        "style": "center"
+                    },
+                    {
+                        "val": "居右",
+                        "icon": "icondoc_right",
+                        "style": "right"
+                    }
+                ]
+            },
+            "bgColor": {
+                "title": "背景颜色",
+                "default": [
+                    {
+                        "item": "#fff"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "#fff"
+                    }
+                ]
+            },
+            "txtColor": {
+                "title": "文字颜色",
+                "default": [
+                    {
+                        "item": "#333"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "#333"
+                    }
+                ]
+            },
+            "listConfig": {
+                "title": "最多可添加10个版块;鼠标拖拽左侧圆点可调整版块顺序",
+                "max": 10,
+                "list": [
+                    {
+                        "chiild": [
+                            {
+                                "title": "标题",
+                                "val": "标准版4.5正式发布,大家快来体验",
+                                "max": 30,
+                                "pla": "选填,不超过30个字",
+                                "empty": true
+                            },
+                            {
+                                "title": "链接",
+                                "val": "/pages/extension/news_details/index?id=128",
+                                "max": 200,
+                                "pla": "请输入连接"
+                            }
+                        ]
+                    }
+                ],
+                "tabCur": 0
+            },
+            "bgStyle": {
+                "title": "背景样式",
+                "name": "bgStyle",
+                "type": 1,
+                "list": [
+                    {
+                        "val": "直角",
+                        "icon": "iconPic_square"
+                    },
+                    {
+                        "val": "圆角",
+                        "icon": "iconPic_fillet"
+                    }
+                ]
+            },
+            "prConfig": {
+                "title": "背景边距",
+                "val": 10,
+                "min": 0
+            },
+            "mbConfig": {
+                "title": "页面间距",
+                "val": 10,
+                "min": 0
+            },
+            "logoConfig": {
+                "header": "图标设置",
+                "title": "最多可添加1张图片,建议宽度130 * 36px",
+                "url": "https://qiniu.crmeb.net/attach/2021/11/6d4fe202111181229083421.png"
+            },
+            "id": "id1665385357481002"
+        },
+        "1666235374470003": {
+            "name": "menus",
+            "timestamp": "1666235374470003",
+            "setUp": {
+                "tabVal": 0
+            },
+            "tabConfig": {
+                "title": "展示样式",
+                "tabVal": 1,
+                "type": 1,
+                "tabList": [
+                    {
+                        "name": "单行展示",
+                        "icon": "icondanhang"
+                    },
+                    {
+                        "name": "多行展示",
+                        "icon": "iconduohang"
+                    }
+                ]
+            },
+            "rowsNum": {
+                "title": "显示行数",
+                "name": "rowsNum",
+                "type": 0,
+                "list": [
+                    {
+                        "val": "2行",
+                        "icon": "icon2hang"
+                    },
+                    {
+                        "val": "3行",
+                        "icon": "icon3hang"
+                    },
+                    {
+                        "val": "4行",
+                        "icon": "icon4hang"
+                    }
+                ]
+            },
+            "menuStyle": {
+                "title": "图标样式",
+                "name": "menuStyle",
+                "type": 1,
+                "list": [
+                    {
+                        "val": "方形",
+                        "icon": "iconPic_square"
+                    },
+                    {
+                        "val": "圆形",
+                        "icon": "icondayuanjiao"
+                    }
+                ]
+            },
+            "number": {
+                "title": "显示个数",
+                "name": "number",
+                "type": 2,
+                "list": [
+                    {
+                        "val": "3个",
+                        "icon": "icon3ge"
+                    },
+                    {
+                        "val": "4个",
+                        "icon": "icon4ge1"
+                    },
+                    {
+                        "val": "5个",
+                        "icon": "icon5ge1"
+                    }
+                ]
+            },
+            "pointerStyle": {
+                "title": "指示器样式",
+                "name": "pointerStyle",
+                "type": 2,
+                "list": [
+                    {
+                        "val": "长条",
+                        "icon": "iconSquarepoint"
+                    },
+                    {
+                        "val": "圆形",
+                        "icon": "iconDot"
+                    },
+                    {
+                        "val": "无指示器",
+                        "icon": "iconjinyong"
+                    }
+                ]
+            },
+            "bgStyle": {
+                "title": "背景样式",
+                "name": "bgStyle",
+                "type": 1,
+                "list": [
+                    {
+                        "val": "直角",
+                        "icon": "iconPic_square"
+                    },
+                    {
+                        "val": "圆角",
+                        "icon": "iconPic_fillet"
+                    }
+                ]
+            },
+            "prConfig": {
+                "title": "背景边距",
+                "val": 10,
+                "min": 0
+            },
+            "menuConfig": {
+                "title": "最多可添加1张图片,建议宽度90 * 90px",
+                "maxList": 100,
+                "list": [
+                    {
+                        "img": "https://qiniu.crmeb.net/attach/2021/09/02d9e202109101106364468.png",
+                        "info": [
+                            {
+                                "title": "标题",
+                                "value": "预约自提",
+                                "tips": "选填,不超过4个字",
+                                "max": 4
+                            },
+                            {
+                                "title": "链接",
+                                "value": "/pages/goods_details/index?id=109",
+                                "tips": "请输入链接",
+                                "max": 100
+                            }
+                        ]
+                    },
+                    {
+                        "img": "https://qiniu.crmeb.net/attach/2021/09/4a21a202109101106368349.png",
+                        "info": [
+                            {
+                                "title": "标题",
+                                "value": "领优惠券",
+                                "tips": "选填,不超过4个字",
+                                "max": 4
+                            },
+                            {
+                                "title": "链接",
+                                "value": "/pages/users/user_get_coupon/index",
+                                "tips": "请输入链接",
+                                "max": 100
+                            }
+                        ]
+                    },
+                    {
+                        "img": "https://demo26.crmeb.net/uploads/attach/2022/09/20220916/d09d2286f960697ab7e1fb9d2595605f.png",
+                        "info": [
+                            {
+                                "title": "标题",
+                                "value": "特价限购",
+                                "tips": "选填,不超过4个字",
+                                "max": 4
+                            },
+                            {
+                                "title": "链接",
+                                "value": "/pages/goods_details/index?id=116",
+                                "tips": "请输入链接",
+                                "max": 100
+                            }
+                        ]
+                    },
+                    {
+                        "img": "https://qiniu.crmeb.net/attach/2021/09/9d74b20210910110637104.png",
+                        "info": [
+                            {
+                                "title": "标题",
+                                "value": "新闻资讯",
+                                "tips": "选填,不超过4个字",
+                                "max": 4
+                            },
+                            {
+                                "title": "链接",
+                                "value": "/pages/extension/news_list/index",
+                                "tips": "请输入链接",
+                                "max": 100
+                            }
+                        ]
+                    },
+                    {
+                        "img": "https://qiniu.crmeb.net/attach/2021/09/1c95120210910110636424.png",
+                        "info": [
+                            {
+                                "title": "标题",
+                                "value": "助力砍价",
+                                "tips": "选填,不超过4个字",
+                                "max": 4
+                            },
+                            {
+                                "title": "链接",
+                                "value": "/pages/activity/goods_bargain/index",
+                                "tips": "请输入链接",
+                                "max": 100
+                            }
+                        ]
+                    },
+                    {
+                        "img": "https://qiniu.crmeb.net/attach/2021/09/23332202109101106361126.png",
+                        "info": [
+                            {
+                                "title": "标题",
+                                "value": "限时秒杀",
+                                "tips": "选填,不超过4个字",
+                                "max": 4
+                            },
+                            {
+                                "title": "链接",
+                                "value": "/pages/activity/goods_seckill/index",
+                                "tips": "请输入链接",
+                                "max": 100
+                            }
+                        ]
+                    },
+                    {
+                        "img": "https://qiniu.crmeb.net/attach/2021/09/34f81202109101106357549.png",
+                        "info": [
+                            {
+                                "title": "标题",
+                                "value": "积分商城",
+                                "tips": "选填,不超过4个字",
+                                "max": 4
+                            },
+                            {
+                                "title": "链接",
+                                "value": "/pages/points_mall/index",
+                                "tips": "请输入链接",
+                                "max": 100
+                            }
+                        ]
+                    },
+                    {
+                        "img": "https://demo26.crmeb.net/uploads/attach/2022/09/20220916/06c63d52fc6772917540d47076606680.png",
+                        "info": [
+                            {
+                                "title": "标题",
+                                "value": "成团返佣",
+                                "tips": "选填,不超过4个字",
+                                "max": 4
+                            },
+                            {
+                                "title": "链接",
+                                "value": "/pages/activity/goods_combination_details/index?id=23",
+                                "tips": "请输入链接",
+                                "max": 100
+                            }
+                        ]
+                    },
+                    {
+                        "img": "https://demo26.crmeb.net/uploads/attach/2022/09/20220916/e31cdcb6fa7660aee45912ef572cc114.png",
+                        "info": [
+                            {
+                                "title": "标题",
+                                "value": "用户足迹",
+                                "tips": "选填,不超过4个字",
+                                "max": 4
+                            },
+                            {
+                                "title": "链接",
+                                "value": "/pages/users/visit_list/index",
+                                "tips": "请输入链接",
+                                "max": 100
+                            }
+                        ]
+                    },
+                    {
+                        "img": "https://qiniu.crmeb.net/attach/2021/09/f4598202109101106358762.png",
+                        "info": [
+                            {
+                                "title": "标题",
+                                "value": "幸运转盘",
+                                "tips": "选填,不超过4个字",
+                                "max": 4
+                            },
+                            {
+                                "title": "链接",
+                                "value": "/pages/goods/lottery/grids/index?type=1",
+                                "tips": "请输入链接",
+                                "max": 100
+                            }
+                        ]
+                    }
+                ]
+            },
+            "pointerColor": {
+                "title": "指示器颜色",
+                "name": "pointerColor",
+                "default": [
+                    {
+                        "item": "#f44"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "#f44"
+                    }
+                ]
+            },
+            "bgColor": {
+                "title": "背景颜色",
+                "name": "bgColor",
+                "default": [
+                    {
+                        "item": "#fff"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "#fff"
+                    }
+                ]
+            },
+            "titleColor": {
+                "title": "文字颜色",
+                "name": "themeColor",
+                "default": [
+                    {
+                        "item": "#333333"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(51,51,51,1)"
+                    }
+                ]
+            },
+            "mbConfig": {
+                "title": "页面间距",
+                "val": 12,
+                "min": 0
+            },
+            "id": "id1665385357481003"
+        },
+        "1666235374470004": {
+            "name": "activeParty",
+            "timestamp": "1666235374470004",
+            "setUp": {
+                "tabVal": 1
+            },
+            "titleConfig": {
+                "title": "促销标题",
+                "value": "超值爆款",
+                "place": "请输入标题",
+                "max": 10
+            },
+            "desConfig": {
+                "title": "促销简介",
+                "value": "美好生活由此开始",
+                "place": "请输入简介",
+                "max": 8
+            },
+            "menuConfig": {
+                "title": "最多可添加4个版块,图片建议尺寸140 * 140px;鼠标拖拽左侧圆点可 调整版块顺序",
+                "maxList": 4,
+                "list": [
+                    {
+                        "img": "https://qiniu.crmeb.net/attach/2021/11/16/216aaf8ea5fdeff2a31a48f3e931ff46.jpg",
+                        "info": [
+                            {
+                                "title": "标题",
+                                "value": "今日推荐",
+                                "tips": "选填,不超过4个字",
+                                "max": 4
+                            },
+                            {
+                                "title": "简介",
+                                "value": "店主诚意推荐 品质商品",
+                                "tips": "选填,不超过20个字",
+                                "max": 20
+                            },
+                            {
+                                "title": "链接",
+                                "value": "/pages/columnGoods/HotNewGoods/index?type=1&name=精品推荐",
+                                "tips": "请输入链接",
+                                "max": 100
+                            }
+                        ]
+                    },
+                    {
+                        "img": "https://qiniu.crmeb.net/attach/2021/11/15/1c72a02ad97f695bd85fa04821b72985.jpg",
+                        "info": [
+                            {
+                                "title": "标题",
+                                "value": "热门榜单",
+                                "tips": "选填,不超过4个字",
+                                "max": 4
+                            },
+                            {
+                                "title": "简介",
+                                "value": "店主诚意推荐 品质商品",
+                                "tips": "选填,不超过20个字",
+                                "max": 20
+                            },
+                            {
+                                "title": "链接",
+                                "value": "/pages/columnGoods/HotNewGoods/index?type=2&name=热门榜单",
+                                "tips": "请输入链接",
+                                "max": 100
+                            }
+                        ]
+                    },
+                    {
+                        "img": "https://qiniu.crmeb.net/attach/2021/10/612bb202110121143097664.png",
+                        "info": [
+                            {
+                                "title": "标题",
+                                "value": "首发新品",
+                                "tips": "选填,不超过4个字",
+                                "max": 4
+                            },
+                            {
+                                "title": "简介",
+                                "value": "新品上架等 你来拿",
+                                "tips": "选填,不超过20个字",
+                                "max": 20
+                            },
+                            {
+                                "title": "链接",
+                                "value": "/pages/columnGoods/HotNewGoods/index?type=3&name=首发新品",
+                                "tips": "请输入链接",
+                                "max": 100
+                            }
+                        ]
+                    },
+                    {
+                        "img": "https://qiniu.crmeb.net/attach/2021/10/59c17202110130919585671.png",
+                        "info": [
+                            {
+                                "title": "标题",
+                                "value": "促销单品",
+                                "tips": "选填,不超过4个字",
+                                "max": 4
+                            },
+                            {
+                                "title": "简介",
+                                "value": "综合评选好 产品",
+                                "tips": "选填,不超过20个字",
+                                "max": 20
+                            },
+                            {
+                                "title": "链接",
+                                "value": "/pages/columnGoods/HotNewGoods/index?type=4&name=促销单品",
+                                "tips": "请输入链接",
+                                "max": 100
+                            }
+                        ]
+                    }
+                ]
+            },
+            "themeColor": {
+                "title": "主题颜色",
+                "name": "themeColor",
+                "default": [
+                    {
+                        "item": "#fc3c3e"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(29,176,252,1)"
+                    }
+                ]
+            },
+            "bgColor": {
+                "title": "标签背景颜色",
+                "name": "bgColor",
+                "default": [
+                    {
+                        "item": "#F62C2C"
+                    },
+                    {
+                        "item": "#F96E29"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(29,176,252,1)"
+                    },
+                    {
+                        "item": "rgba(64,209,244,1)"
+                    }
+                ]
+            },
+            "boxColor": {
+                "title": "背景颜色",
+                "name": "boxColor",
+                "default": [
+                    {
+                        "item": "#ffe5e3"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(208,240,255,1)"
+                    }
+                ]
+            },
+            "mbConfig": {
+                "title": "页面间距",
+                "val": 12,
+                "min": 0
+            },
+            "id": "id1665385357481004"
+        },
+        "1666235374470005": {
+            "name": "combination",
+            "timestamp": "1666235374470005",
+            "setUp": {
+                "tabVal": 1
+            },
+            "numConfig": {
+                "val": 3
+            },
+            "priceShow": {
+                "title": "是否显示价格",
+                "val": true
+            },
+            "bntShow": {
+                "title": "是否显示按钮",
+                "val": true
+            },
+            "titleShow": {
+                "title": "是否显示名称",
+                "val": true
+            },
+            "pinkShow": {
+                "title": "是否显示拼团标签",
+                "val": true
+            },
+            "joinShow": {
+                "title": "是否显示参团标签",
+                "val": true
+            },
+            "txtColor": {
+                "title": "文字背景色",
+                "name": "themeColor",
+                "default": [
+                    {
+                        "item": "rgba(255,68,68,0.1)"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(208,240,255,1)"
+                    }
+                ]
+            },
+            "conStyle": {
+                "title": "背景样式",
+                "name": "conStyle",
+                "type": 1,
+                "list": [
+                    {
+                        "val": "直角",
+                        "icon": "iconPic_square"
+                    },
+                    {
+                        "val": "圆角",
+                        "icon": "iconPic_fillet"
+                    }
+                ]
+            },
+            "bgColor": {
+                "title": "背景颜色",
+                "name": "themeColor",
+                "default": [
+                    {
+                        "item": "#fff"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "#fff"
+                    }
+                ]
+            },
+            "prConfig": {
+                "title": "背景边距",
+                "val": 10,
+                "min": 0
+            },
+            "themeColor": {
+                "title": "主题风格",
+                "name": "themeColor",
+                "default": [
+                    {
+                        "item": "#E93323"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(29,176,252,1)"
+                    }
+                ]
+            },
+            "mbConfig": {
+                "title": "页面间距",
+                "val": 12,
+                "min": 0
+            },
+            "lrConfig": {
+                "title": "左右边距",
+                "val": 10,
+                "min": 0
+            },
+            "imgConfig": {
+                "title": "最多可添加1张图片,建议宽度18 * 18px",
+                "url": "https://qiniu.crmeb.net/attach/2021/11/238c5202111181433515309.gif"
+            },
+            "id": "id1665385357481005"
+        },
+        "1666235374470006": {
+            "name": "bargain",
+            "timestamp": "1666235374470006",
+            "setUp": {
+                "tabVal": 1
+            },
+            "numConfig": {
+                "val": 3
+            },
+            "priceShow": {
+                "title": "是否显示价格",
+                "val": true
+            },
+            "bntShow": {
+                "title": "是否显示按钮",
+                "val": true
+            },
+            "themeColor": {
+                "title": "主题风格",
+                "name": "themeColor",
+                "default": [
+                    {
+                        "item": "#E93323"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(29,176,252,1)"
+                    }
+                ]
+            },
+            "titleColor": {
+                "title": "标题颜色",
+                "name": "txtColor",
+                "default": [
+                    {
+                        "item": "#FF6000"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(255,152,0,1)"
+                    }
+                ]
+            },
+            "bgColor": {
+                "title": "背景颜色",
+                "name": "bgColor",
+                "default": [
+                    {
+                        "item": "#FDDBB2"
+                    },
+                    {
+                        "item": "#FDEFC6"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "#FDDBB2"
+                    },
+                    {
+                        "item": "#FDEFC6"
+                    }
+                ]
+            },
+            "bgStyle": {
+                "title": "背景样式",
+                "name": "bgStyle",
+                "type": 1,
+                "list": [
+                    {
+                        "val": "直角",
+                        "icon": "iconPic_square"
+                    },
+                    {
+                        "val": "圆角",
+                        "icon": "iconPic_fillet"
+                    }
+                ]
+            },
+            "prConfig": {
+                "title": "背景边距",
+                "val": 10,
+                "min": 0
+            },
+            "productGap": {
+                "title": "商品间距",
+                "val": 10,
+                "min": 0
+            },
+            "mbCongfig": {
+                "title": "页面间距",
+                "val": 0,
+                "min": 0
+            },
+            "id": "id1665385357481006"
+        },
+        "1666235374470007": {
+            "name": "seckill",
+            "timestamp": "1666235374470007",
+            "setUp": {
+                "tabVal": 1
+            },
+            "countDownColor": {
+                "title": "倒计时背景色",
+                "name": "countDownColor",
+                "default": [
+                    {
+                        "item": "rgba(252,60,62,0.09)"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(255,255,255,0.09)"
+                    }
+                ]
+            },
+            "themeColor": {
+                "title": "主题风格",
+                "name": "themeColor",
+                "default": [
+                    {
+                        "item": "#E93323"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(29,176,255,1)"
+                    }
+                ]
+            },
+            "conStyle": {
+                "title": "背景样式",
+                "name": "conStyle",
+                "type": 1,
+                "list": [
+                    {
+                        "val": "直角",
+                        "icon": "iconPic_square"
+                    },
+                    {
+                        "val": "圆角",
+                        "icon": "iconPic_fillet"
+                    }
+                ]
+            },
+            "bgColor": {
+                "title": "背景颜色",
+                "name": "themeColor",
+                "default": [
+                    {
+                        "item": "#fff"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "#fff"
+                    }
+                ]
+            },
+            "prConfig": {
+                "title": "背景边距",
+                "val": 10,
+                "min": 0
+            },
+            "priceShow": {
+                "title": "是否显示价格",
+                "val": true
+            },
+            "discountShow": {
+                "title": "是否显示折扣标签",
+                "val": true
+            },
+            "titleShow": {
+                "title": "是否显示名称",
+                "val": true
+            },
+            "seckillShow": {
+                "title": "抢购标签",
+                "val": true
+            },
+            "numberConfig": {
+                "val": 3
+            },
+            "lrConfig": {
+                "title": "左右边距",
+                "val": 10,
+                "min": 0
+            },
+            "mbConfig": {
+                "title": "页面间距",
+                "val": 0,
+                "min": 0
+            },
+            "imgConfig": {
+                "title": "最多可添加1张图片,建议宽度18 * 18px",
+                "url": "https://demo26.crmeb.net/uploads/attach/2022/09/20220930/e537a7fc631006d3571d7a8574438b03.gif"
+            },
+            "id": "id1665385357481007"
+        },
+        "1666235374470009": {
+            "name": "promotionList",
+            "timestamp": "1666235374470009",
+            "setUp": {
+                "tabVal": 1
+            },
+            "productList": {
+                "title": "促销列表"
+            },
+            "titleConfig": {
+                "title": "标题位置",
+                "type": 2,
+                "list": [
+                    {
+                        "val": "居左",
+                        "icon": "icondoc_left"
+                    },
+                    {
+                        "val": "居中",
+                        "icon": "icondoc_center"
+                    },
+                    {
+                        "val": "居右",
+                        "icon": "icondoc_right"
+                    }
+                ]
+            },
+            "titleShow": {
+                "title": "是否显示商品名称",
+                "val": true
+            },
+            "opriceShow": {
+                "title": "是否显示商品原价",
+                "val": true
+            },
+            "priceShow": {
+                "title": "是否显示商品价格",
+                "val": true
+            },
+            "couponShow": {
+                "title": "是否显示优惠券",
+                "val": true
+            },
+            "tabConfig": {
+                "title": "最多可添加4个版块;鼠标拖拽左侧圆点可调整版块顺序",
+                "max": 4,
+                "tabCur": 3,
+                "list": [
+                    {
+                        "chiild": [
+                            {
+                                "title": "标题",
+                                "val": "首发新品",
+                                "max": 4,
+                                "pla": "选填,不超过四个字"
+                            },
+                            {
+                                "title": "简介",
+                                "val": "最新出炉",
+                                "max": 4,
+                                "pla": "选填,不超过四个字"
+                            }
+                        ],
+                        "link": {
+                            "title": "链接",
+                            "activeVal": 3,
+                            "optiops": [
+                                {
+                                    "type": 0,
+                                    "value": 1,
+                                    "label": "精品推荐"
+                                },
+                                {
+                                    "type": 1,
+                                    "value": 2,
+                                    "label": "热门榜单"
+                                },
+                                {
+                                    "type": 2,
+                                    "value": 3,
+                                    "label": "首发新品"
+                                },
+                                {
+                                    "type": 3,
+                                    "value": 4,
+                                    "label": "促销单品"
+                                }
+                            ]
+                        }
+                    },
+                    {
+                        "chiild": [
+                            {
+                                "title": "标题",
+                                "val": "精品推荐",
+                                "max": 4,
+                                "pla": "选填,不超过四个字"
+                            },
+                            {
+                                "title": "简介",
+                                "val": "猜你喜欢",
+                                "max": 4,
+                                "pla": "选填,不超过四个字"
+                            }
+                        ],
+                        "link": {
+                            "title": "链接",
+                            "activeVal": 1,
+                            "optiops": [
+                                {
+                                    "type": 0,
+                                    "value": 1,
+                                    "label": "精品推荐"
+                                },
+                                {
+                                    "type": 1,
+                                    "value": 2,
+                                    "label": "热门榜单"
+                                },
+                                {
+                                    "type": 2,
+                                    "value": 3,
+                                    "label": "首发新品"
+                                },
+                                {
+                                    "type": 3,
+                                    "value": 4,
+                                    "label": "促销单品"
+                                }
+                            ]
+                        }
+                    },
+                    {
+                        "chiild": [
+                            {
+                                "title": "标题",
+                                "val": "热门榜单",
+                                "max": 4,
+                                "pla": "选填,不超过四个字"
+                            },
+                            {
+                                "title": "简介",
+                                "val": "好评如云",
+                                "max": 4,
+                                "pla": "选填,不超过四个字"
+                            }
+                        ],
+                        "link": {
+                            "title": "链接",
+                            "activeVal": 2,
+                            "optiops": [
+                                {
+                                    "type": 0,
+                                    "value": 1,
+                                    "label": "精品推荐"
+                                },
+                                {
+                                    "type": 1,
+                                    "value": 2,
+                                    "label": "热门榜单"
+                                },
+                                {
+                                    "type": 2,
+                                    "value": 3,
+                                    "label": "首发新品"
+                                },
+                                {
+                                    "type": 3,
+                                    "value": 4,
+                                    "label": "促销单品"
+                                }
+                            ]
+                        }
+                    },
+                    {
+                        "chiild": [
+                            {
+                                "title": "标题",
+                                "val": "促销单品",
+                                "max": 4,
+                                "pla": "选填,不超过四个字"
+                            },
+                            {
+                                "title": "简介",
+                                "val": "多买多销",
+                                "max": 4,
+                                "pla": "选填,不超过四个字"
+                            }
+                        ],
+                        "link": {
+                            "title": "链接",
+                            "activeVal": 4,
+                            "optiops": [
+                                {
+                                    "type": 0,
+                                    "value": 1,
+                                    "label": "精品推荐"
+                                },
+                                {
+                                    "type": 1,
+                                    "value": 2,
+                                    "label": "热门榜单"
+                                },
+                                {
+                                    "type": 2,
+                                    "value": 3,
+                                    "label": "首发新品"
+                                },
+                                {
+                                    "type": 3,
+                                    "value": 4,
+                                    "label": "促销单品"
+                                }
+                            ]
+                        }
+                    }
+                ]
+            },
+            "themeColor": {
+                "title": "主题风格",
+                "name": "themeColor",
+                "default": [
+                    {
+                        "item": "#F95429"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(29,176,252,1)"
+                    }
+                ]
+            },
+            "fontColor": {
+                "title": "价格颜色",
+                "name": "fontColor",
+                "default": [
+                    {
+                        "item": "#e93323"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(253,80,47,1)"
+                    }
+                ]
+            },
+            "labelColor": {
+                "title": "活动标签",
+                "name": "labelColor",
+                "default": [
+                    {
+                        "item": "#e93323"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(29,176,252,1)"
+                    }
+                ]
+            },
+            "mbConfig": {
+                "title": "页面间距",
+                "val": 0,
+                "min": 0
+            },
+            "numConfig": {
+                "val": 9
+            },
+            "id": "id1665385357481008"
+        },
+        "1666235390875000": {
+            "name": "pageFoot",
+            "setUp": {
+                "tabVal": 0
+            },
+            "status": {
+                "title": "是否自定义",
+                "name": "status",
+                "status": true
+            },
+            "txtColor": {
+                "title": "文字颜色",
+                "name": "txtColor",
+                "default": [
+                    {
+                        "item": "#282828"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(51,51,51,1)"
+                    }
+                ]
+            },
+            "activeTxtColor": {
+                "title": "选中文字颜色",
+                "name": "txtColor",
+                "default": [
+                    {
+                        "item": "#F62C2C"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "rgba(29,176,252,1)"
+                    }
+                ]
+            },
+            "bgColor": {
+                "title": "背景颜色",
+                "name": "bgColor",
+                "default": [
+                    {
+                        "item": "#fff"
+                    }
+                ],
+                "color": [
+                    {
+                        "item": "#fff"
+                    }
+                ]
+            },
+            "menuList": [
+                {
+                    "imgList": [
+                        "https://qiniu.crmeb.net/attach/2021/11/bdf25202111181452426458.png",
+                        "https://qiniu.crmeb.net/attach/2021/11/aaf1b202111181452576658.png"
+                    ],
+                    "name": "首页",
+                    "link": "/pages/index/index"
+                },
+                {
+                    "imgList": [
+                        "https://demo26.crmeb.net/uploads/attach/2022/09/20220923/14367a2fecd502f51978ed6ea09afe19.png",
+                        "https://qiniu.crmeb.net/attach/2021/11/59d4a202111181453208678.png"
+                    ],
+                    "name": "分类",
+                    "link": "/pages/goods_cate/goods_cate"
+                },
+                {
+                    "imgList": [
+                        "https://qiniu.crmeb.net/attach/2021/11/076ac202111181453294517.png",
+                        "https://qiniu.crmeb.net/attach/2021/11/201c9202111181453378599.png"
+                    ],
+                    "name": "购物车",
+                    "link": "/pages/order_addcart/order_addcart"
+                },
+                {
+                    "imgList": [
+                        "https://qiniu.crmeb.net/attach/2021/11/f04cf20211118145343755.png",
+                        "https://qiniu.crmeb.net/attach/2021/11/3a141202111181453495771.png"
+                    ],
+                    "name": "我的",
+                    "link": "/pages/user/index"
+                }
+            ],
+            "id": "idundefined"
+        }
+    },
+    "is_show": 1,
+    "is_bg_color": 0,
+    "color_picker": "#f5f5f5",
+    "bg_pic": "",
+    "bg_tab_val": 0,
+    "is_bg_pic": 0,
+    "order_status": 0,
+    "is_diy": 1,
+    "title": "首页"
+}

+ 87 - 0
mock/json/menu_res.json

@@ -0,0 +1,87 @@
+{
+    "routine_my_menus": [
+        {
+            "id": 1157,
+            "name": "付费会员",
+            "pic": "https://demo26.crmeb.net/statics/system_images/menu_vip.png",
+            "url": "/pages/annex/vip_paid/index"
+        },
+        {
+            "id": 1158,
+            "name": "发票管理",
+            "pic": "https://demo26.crmeb.net/statics/system_images/menu_invoice.png",
+            "url": "/pages/users/user_invoice_list/index"
+        },
+        {
+            "id": 1159,
+            "name": "积分中心",
+            "pic": "https://demo26.crmeb.net/statics/system_images/menu_integral.png",
+            "url": "/pages/users/user_integral/index"
+        },
+        {
+            "id": 1160,
+            "name": "联系客服",
+            "pic": "https://demo26.crmeb.net/statics/system_images/menu_customer.png",
+            "url": "/pages/extension/customer_list/chat"
+        },
+        {
+            "id": 1161,
+            "name": "我的收藏",
+            "pic": "https://demo26.crmeb.net/statics/system_images/menu_collection.png",
+            "url": "/pages/users/user_goods_collection/index"
+        },
+        {
+            "id": 1162,
+            "name": "地址信息",
+            "pic": "https://demo26.crmeb.net/statics/system_images/menu_address.png",
+            "url": "/pages/users/user_address_list/index"
+        },
+        {
+            "id": 1163,
+            "name": "我的余额",
+            "pic": "https://demo26.crmeb.net/statics/system_images/menu_money.png",
+            "url": "/pages/users/user_money/index"
+        },
+        {
+            "id": 1164,
+            "name": "我的推广",
+            "pic": "https://demo26.crmeb.net/statics/system_images/menu_spread.png",
+            "url": "/pages/users/user_spread_user/index"
+        },
+        {
+            "id": 1165,
+            "name": "砍价记录",
+            "pic": "https://demo26.crmeb.net/statics/system_images/menu_bargain.png",
+            "url": "/pages/activity/bargain/index"
+        },
+        {
+            "id": 1166,
+            "name": "浏览记录",
+            "pic": "https://demo26.crmeb.net/statics/system_images/menu_log.png",
+            "url": "/pages/users/visit_list/index"
+        },
+        {
+            "id": 1167,
+            "name": "我的等级",
+            "pic": "https://demo26.crmeb.net/statics/system_images/menu_level.png",
+            "url": "/pages/users/user_vip/index"
+        },
+        {
+            "id": 1168,
+            "name": "抽奖记录",
+            "pic": "https://demo26.crmeb.net/uploads/attach/2022/09/20220909/0792fc1da45d6621fcd9a0bb941911f4.png",
+            "url": "/pages/goods/lottery/grids/record"
+        }
+    ],
+    "routine_my_banner": [],
+    "routine_spread_banner": [
+        "https://demo26.crmeb.net/statics/system_images/spread_1.jpeg",
+        "https://demo26.crmeb.net/statics/system_images/spread_2.jpeg"
+    ],
+    "routine_contact_type": "0",
+    "diy_data": {
+        "value": "1",
+        "order_status": 4,
+        "my_banner_status": 0
+    }
+}

+ 88 - 0
mock/json/navigation_res.json

@@ -0,0 +1,88 @@
+{
+    "name": "pageFoot",
+    "setUp": {
+        "tabVal": 0
+    },
+    "status": {
+        "title": "是否自定义",
+        "name": "status",
+        "status": true
+    },
+    "txtColor": {
+        "title": "文字颜色",
+        "name": "txtColor",
+        "default": [
+            {
+                "item": "#282828"
+            }
+        ],
+        "color": [
+            {
+                "item": "rgba(51,51,51,1)"
+            }
+        ]
+    },
+    "activeTxtColor": {
+        "title": "选中文字颜色",
+        "name": "txtColor",
+        "default": [
+            {
+                "item": "#F62C2C"
+            }
+        ],
+        "color": [
+            {
+                "item": "rgba(29,176,252,1)"
+            }
+        ]
+    },
+    "bgColor": {
+        "title": "背景颜色",
+        "name": "bgColor",
+        "default": [
+            {
+                "item": "#fff"
+            }
+        ],
+        "color": [
+            {
+                "item": "#fff"
+            }
+        ]
+    },
+    "menuList": [
+        {
+            "imgList": [
+                "https://qiniu.crmeb.net/attach/2021/11/bdf25202111181452426458.png",
+                "https://qiniu.crmeb.net/attach/2021/11/aaf1b202111181452576658.png"
+            ],
+            "name": "首页",
+            "link": "/pages/index/index"
+        },
+        {
+            "imgList": [
+                "https://demo26.crmeb.net/uploads/attach/2022/09/20220923/14367a2fecd502f51978ed6ea09afe19.png",
+                "https://qiniu.crmeb.net/attach/2021/11/59d4a202111181453208678.png"
+            ],
+            "name": "分类",
+            "link": "/pages/goods_cate/goods_cate"
+        },
+        {
+            "imgList": [
+                "https://qiniu.crmeb.net/attach/2021/11/076ac202111181453294517.png",
+                "https://qiniu.crmeb.net/attach/2021/11/201c9202111181453378599.png"
+            ],
+            "name": "购物车",
+            "link": "/pages/order_addcart/order_addcart"
+        },
+        {
+            "imgList": [
+                "https://qiniu.crmeb.net/attach/2021/11/f04cf20211118145343755.png",
+                "https://qiniu.crmeb.net/attach/2021/11/3a141202111181453495771.png"
+            ],
+            "name": "我的",
+            "link": "/pages/user/index"
+        }
+    ],
+    "id": "idundefined"
+}

+ 16 - 93
pages/goods_cate/goods_cate1.vue

@@ -137,101 +137,24 @@
 		},
 		methods: {
 			getNav() {
-				let res = {
-				"name": "pageFoot",
-				"setUp": {
-					"tabVal": 0
-				},
-				"status": {
-					"title": "是否自定义",
-					"name": "status",
-					"status": true
-				},
-				"txtColor": {
-					"title": "文字颜色",
-					"name": "txtColor",
-					"default": [
-						{
-							"item": "#282828"
-						}
-					],
-					"color": [
-						{
-							"item": "rgba(51,51,51,1)"
-						}
-					]
-				},
-				"activeTxtColor": {
-					"title": "选中文字颜色",
-					"name": "txtColor",
-					"default": [
-						{
-							"item": "#F62C2C"
-						}
-					],
-					"color": [
-						{
-							"item": "rgba(29,176,252,1)"
-						}
-					]
-				},
-				"bgColor": {
-					"title": "背景颜色",
-					"name": "bgColor",
-					"default": [
-						{
-							"item": "#fff"
-						}
-					],
-					"color": [
-						{
-							"item": "#fff"
-						}
-					]
-				},
-				"menuList": [
-					{
-						"imgList": [
-							"https://qiniu.crmeb.net/attach/2021/11/bdf25202111181452426458.png",
-							"https://qiniu.crmeb.net/attach/2021/11/aaf1b202111181452576658.png"
-						],
-						"name": "首页",
-						"link": "/pages/index/index"
-					},
-					{
-						"imgList": [
-							"https://demo26.crmeb.net/uploads/attach/2022/09/20220923/14367a2fecd502f51978ed6ea09afe19.png",
-							"https://qiniu.crmeb.net/attach/2021/11/59d4a202111181453208678.png"
-						],
-						"name": "分类",
-						"link": "/pages/goods_cate/goods_cate"
-					},
-					{
-						"imgList": [
-							"https://qiniu.crmeb.net/attach/2021/11/076ac202111181453294517.png",
-							"https://qiniu.crmeb.net/attach/2021/11/201c9202111181453378599.png"
-						],
-						"name": "购物车",
-						"link": "/pages/order_addcart/order_addcart"
-					},
-					{
-						"imgList": [
-							"https://qiniu.crmeb.net/attach/2021/11/f04cf20211118145343755.png",
-							"https://qiniu.crmeb.net/attach/2021/11/3a141202111181453495771.png"
-						],
-						"name": "我的",
-						"link": "/pages/user/index"
+			uni.request({
+				url:'api/mock/navigation',
+				success:res=>{
+					this.newData = res.data
+					if (this.newData.status && this.newData.status.status) {
+						uni.hideTabBar()
+					} else {
+						uni.showTabBar()
 					}
-				],
-				"id": "idundefined"
-			}
-			// getNavigation().then(res => {
-				this.newData = res
-				if (this.newData.status && this.newData.status.status) {
-					uni.hideTabBar()
-				} else {
-					uni.showTabBar()
 				}
+			})
+			// getNavigation().then(res => {
+				// this.newData = res
+				// if (this.newData.status && this.newData.status.status) {
+				// 	uni.hideTabBar()
+				// } else {
+				// 	uni.showTabBar()
+				// }
 			// })
 			},
 			goRouter(item) {

File diff suppressed because it is too large
+ 3 - 1619
pages/index/diy/index.vue


+ 17 - 6
pages/order_addcart/order_addcart.vue

@@ -261,14 +261,25 @@
 				} else {
 					this.is_diy_set = true
 				}
-				getNavigation().then(res => {
-					this.newData = res.data
-					if (this.newData.status && this.newData.status.status) {
-						uni.hideTabBar()
-					} else {
-						uni.showTabBar()
+				uni.request({
+					url:'api/mock/navigation',
+					success:res=>{
+						this.newData = res.data
+						if (this.newData.status && this.newData.status.status) {
+							uni.hideTabBar()
+						} else {
+							uni.showTabBar()
+						}
 					}
 				})
+				// getNavigation().then(res => {
+				// 	this.newData = res.data
+				// 	if (this.newData.status && this.newData.status.status) {
+				// 		uni.hideTabBar()
+				// 	} else {
+				// 		uni.showTabBar()
+				// 	}
+				// })
 			} else {
 				uni.hideTabBar()
 			}

+ 16 - 187
pages/user/index.vue

@@ -418,102 +418,17 @@ export default {
 			if (uni.getStorageSync('FOOTER_BAR')) {
 				uni.hideTabBar()
 			}
-			let res = {
-				"name": "pageFoot",
-				"setUp": {
-					"tabVal": 0
-				},
-				"status": {
-					"title": "是否自定义",
-					"name": "status",
-					"status": true
-				},
-				"txtColor": {
-					"title": "文字颜色",
-					"name": "txtColor",
-					"default": [
-						{
-							"item": "#282828"
-						}
-					],
-					"color": [
-						{
-							"item": "rgba(51,51,51,1)"
-						}
-					]
-				},
-				"activeTxtColor": {
-					"title": "选中文字颜色",
-					"name": "txtColor",
-					"default": [
-						{
-							"item": "#F62C2C"
-						}
-					],
-					"color": [
-						{
-							"item": "rgba(29,176,252,1)"
-						}
-					]
-				},
-				"bgColor": {
-					"title": "背景颜色",
-					"name": "bgColor",
-					"default": [
-						{
-							"item": "#fff"
-						}
-					],
-					"color": [
-						{
-							"item": "#fff"
-						}
-					]
-				},
-				"menuList": [
-					{
-						"imgList": [
-							"https://qiniu.crmeb.net/attach/2021/11/bdf25202111181452426458.png",
-							"https://qiniu.crmeb.net/attach/2021/11/aaf1b202111181452576658.png"
-						],
-						"name": "首页",
-						"link": "/pages/index/index"
-					},
-					{
-						"imgList": [
-							"https://demo26.crmeb.net/uploads/attach/2022/09/20220923/14367a2fecd502f51978ed6ea09afe19.png",
-							"https://qiniu.crmeb.net/attach/2021/11/59d4a202111181453208678.png"
-						],
-						"name": "分类",
-						"link": "/pages/goods_cate/goods_cate"
-					},
-					{
-						"imgList": [
-							"https://qiniu.crmeb.net/attach/2021/11/076ac202111181453294517.png",
-							"https://qiniu.crmeb.net/attach/2021/11/201c9202111181453378599.png"
-						],
-						"name": "购物车",
-						"link": "/pages/order_addcart/order_addcart"
-					},
-					{
-						"imgList": [
-							"https://qiniu.crmeb.net/attach/2021/11/f04cf20211118145343755.png",
-							"https://qiniu.crmeb.net/attach/2021/11/3a141202111181453495771.png"
-						],
-						"name": "我的",
-						"link": "/pages/user/index"
+			uni.request({
+				url:'api/mock/navigation',
+				success:res=>{
+					this.newData = res.data
+					if (this.newData.status && this.newData.status.status) {
+						uni.hideTabBar()
+					} else {
+						uni.showTabBar()
 					}
-				],
-				"id": "idundefined"
-			}
-			// getNavigation().then(res => {
-			this.newData = res
-			if (this.newData.status && this.newData.status.status) {
-				uni.hideTabBar()
-			} else {
-				uni.showTabBar()
-			}
-			// })
+				}
+			})
 		}
 		// #ifdef MP
 		// 小程序静默授权
@@ -690,97 +605,10 @@ export default {
 		getMyMenus: function () {
 			let that = this;
 			// if (this.MyMenus.length) return;
-			let res = {
-				data: {
-					"routine_my_menus": [
-						{
-							"id": 1157,
-							"name": "付费会员",
-							"pic": "https://demo26.crmeb.net/statics/system_images/menu_vip.png",
-							"url": "/pages/annex/vip_paid/index"
-						},
-						{
-							"id": 1158,
-							"name": "发票管理",
-							"pic": "https://demo26.crmeb.net/statics/system_images/menu_invoice.png",
-							"url": "/pages/users/user_invoice_list/index"
-						},
-						{
-							"id": 1159,
-							"name": "积分中心",
-							"pic": "https://demo26.crmeb.net/statics/system_images/menu_integral.png",
-							"url": "/pages/users/user_integral/index"
-						},
-						{
-							"id": 1160,
-							"name": "联系客服",
-							"pic": "https://demo26.crmeb.net/statics/system_images/menu_customer.png",
-							"url": "/pages/extension/customer_list/chat"
-						},
-						{
-							"id": 1161,
-							"name": "我的收藏",
-							"pic": "https://demo26.crmeb.net/statics/system_images/menu_collection.png",
-							"url": "/pages/users/user_goods_collection/index"
-						},
-						{
-							"id": 1162,
-							"name": "地址信息",
-							"pic": "https://demo26.crmeb.net/statics/system_images/menu_address.png",
-							"url": "/pages/users/user_address_list/index"
-						},
-						{
-							"id": 1163,
-							"name": "我的余额",
-							"pic": "https://demo26.crmeb.net/statics/system_images/menu_money.png",
-							"url": "/pages/users/user_money/index"
-						},
-						{
-							"id": 1164,
-							"name": "我的推广",
-							"pic": "https://demo26.crmeb.net/statics/system_images/menu_spread.png",
-							"url": "/pages/users/user_spread_user/index"
-						},
-						{
-							"id": 1165,
-							"name": "砍价记录",
-							"pic": "https://demo26.crmeb.net/statics/system_images/menu_bargain.png",
-							"url": "/pages/activity/bargain/index"
-						},
-						{
-							"id": 1166,
-							"name": "浏览记录",
-							"pic": "https://demo26.crmeb.net/statics/system_images/menu_log.png",
-							"url": "/pages/users/visit_list/index"
-						},
-						{
-							"id": 1167,
-							"name": "我的等级",
-							"pic": "https://demo26.crmeb.net/statics/system_images/menu_level.png",
-							"url": "/pages/users/user_vip/index"
-						},
-						{
-							"id": 1168,
-							"name": "抽奖记录",
-							"pic": "https://demo26.crmeb.net/uploads/attach/2022/09/20220909/0792fc1da45d6621fcd9a0bb941911f4.png",
-							"url": "/pages/goods/lottery/grids/record"
-						}
-					],
-					"routine_my_banner": [],
-					"routine_spread_banner": [
-						"https://demo26.crmeb.net/statics/system_images/spread_1.jpeg",
-						"https://demo26.crmeb.net/statics/system_images/spread_2.jpeg"
-					],
-					"routine_contact_type": "0",
-					"diy_data": {
-						"value": "1",
-						"order_status": 4,
-						"my_banner_status": 0
-					}
-				}
-			}
-			// getMenuList().then(res => {
-				let storeMenu = []
+			uni.request({
+				url:'api/mock/menu',
+				success:res=>{
+					let storeMenu = []
 				let myMenu = []
 				res.data.routine_my_menus.forEach((el, index, arr) => {
 					if (el.url == '/pages/admin/order/index' || el.url ==
@@ -849,7 +677,8 @@ export default {
 				that.$set(that, 'storeMenu', storeMenu);
 				this.imgUrls = res.data.routine_my_banner
 				this.routineContact = Number(res.data.routine_contact_type)
-			// });
+				}
+			})
 		},
 		// 编辑页面
 		goEdit() {

Some files were not shown because too many files changed in this diff