diff --git a/pages/workbench/workbench.vue b/pages/workbench/workbench.vue index 6daa224..a3ee784 100644 --- a/pages/workbench/workbench.vue +++ b/pages/workbench/workbench.vue @@ -14,158 +14,15 @@ - - 招商服务 + + {{item.title}} - + - + - 问卷调查 - - - - - - - - 招商方案 - - - - - - - - 活动参与 - - - - - - - - 活动申请 - - - - - - - - 销售上报 - - - - - - 推广策划 - - - - - - - 推广方案申请 - - - - - - - - 推广方案管理 - - - - - - - - 效果查看 - - - - - - 在线商城 - - - - - - - - 订单查询 - - - - - - - - - - 销售统计 - - - - - - - - 支付服务 - - - - - - - 明细查询 - - - - - - - - 日志查询 + {{v.name}} @@ -184,6 +41,49 @@ }, data() { return { + pageList: [ + { + id: 1, + title: '招商服务', + children: [ + { name: '文件调查', img: '/workbench1.png', path: '/pages/questionnaire/questionnaire' }, + { name: '招商方案', img: '/workbench2.png', path: '/pages/Iproposal/Iproposal' }, + { name: '活动参与', img: '/workbench3.png', path: '/pages/participation/participation' }, + { name: '活动申请', img: '/workbench4.png', path: '/pages/activityAdd/activityAdd' }, + { name: '销售上报', img: '/workbench5.png', path: '/pages/salesReporting/salesReporting' }, + ] + }, + { + id: 2, + title: '推广策划', + children: [ + { name: '推广方案申请', img: '/workbench2.png', path: '/pages/application/application' }, + { name: '推广方案管理', img: '/workbench7.png', path: '/pages/projectManagement/projectManagement' }, + { name: '效果查看', img: '/workbench8.png', path: '' }, + ] + }, + { + id: 3, + title: '在线商城', + children: [ + // { name: '新增商品', img: '/workbench9.png', path: '' }, + { name: '订单查询', img: '/workbench10.png', path: '/pages/orderList/orderList' }, + // { name: '售后管理', img: '/workbench11.png', path: '' }, + // { name: '库存管理', img: '/workbench12.png', path: '' }, + { name: '销售统计', img: '/workbench15.png', path: '/pages/salesSta/salesSta' }, + // { name: '综合查询', img: '/workbench14.png', path: '' }, + // { name: '优惠券发放', img: '/workbench13.png', path: '' }, + ] + }, + { + id: 4, + title: '支付服务', + children: [ + { name: '明细查询', img: '/workbench16.png', path: '' }, + { name: '日志查询', img: '/workbench7.png', path: '' }, + ] + }, + ], scrollTop: 0, }; }, @@ -194,52 +94,11 @@ this.scrollTop = e.scrollTop; }, methods: { - activityAdd(){ - uni.navigateTo({ - url: '/pages/activityAdd/activityAdd', - }) - }, - participation(){ - uni.navigateTo({ - url: '/pages/participation/participation', - }) - }, - questionnaire(){ - uni.navigateTo({ - url: '/pages/questionnaire/questionnaire', - }) - }, - sales(){ - uni.navigateTo({ - url: '/pages/salesReporting/salesReporting', - }) - }, - order(){ - uni.navigateTo({ - url: '/pages/orderList/orderList', - }) - }, - salesSta(){ - uni.navigateTo({ - url: '/pages/salesSta/salesSta', - }) - }, - Iproposal(){ + toPath(path){ uni.navigateTo({ - url: '/pages/Iproposal/Iproposal', + url: path, }) }, - popularize(val){ - if(val ==1){ - uni.navigateTo({ - url: '/pages/application/application', - }) - }else{ - uni.navigateTo({ - url: '/pages/projectManagement/projectManagement', - }) - } - } } }