Commit caf58d1552d10eb1f310dec6bb34bea805f9b88f
1 parent
4c26c806
应用菜单
Showing
1 changed file
with
50 additions
and
191 deletions
pages/workbench/workbench.vue
| @@ -14,158 +14,15 @@ | @@ -14,158 +14,15 @@ | ||
| 14 | </view> | 14 | </view> |
| 15 | </view> | 15 | </view> |
| 16 | <view class="main"> | 16 | <view class="main"> |
| 17 | - <view class="bg-white"> | ||
| 18 | - <view class="bidding-title"><view class="bidding-title-line"></view>招商服务</view> | 17 | + <view class="bg-white" v-for="item in pageList" :key="item.id"> |
| 18 | + <view class="bidding-title"><view class="bidding-title-line"></view>{{item.title}}</view> | ||
| 19 | <view class="wallet-info"> | 19 | <view class="wallet-info"> |
| 20 | - <view class="list" @click="questionnaire"> | 20 | + <view class="list" v-for="v in item.children" :key="v.name" @click="toPath(v.path)"> |
| 21 | <view class="icon"> | 21 | <view class="icon"> |
| 22 | - <image :src="$imgUrl('/workbench1.png')"></image> | 22 | + <image :src="$imgUrl(`${v.img}`)"></image> |
| 23 | </view> | 23 | </view> |
| 24 | <view class="title"> | 24 | <view class="title"> |
| 25 | - <text>问卷调查</text> | ||
| 26 | - </view> | ||
| 27 | - </view> | ||
| 28 | - <view class="list" @click="Iproposal"> | ||
| 29 | - <view class="icon"> | ||
| 30 | - <image :src="$imgUrl('/workbench2.png')"></image> | ||
| 31 | - </view> | ||
| 32 | - <view class="title"> | ||
| 33 | - <text>招商方案</text> | ||
| 34 | - </view> | ||
| 35 | - </view> | ||
| 36 | - <view class="list" @click='participation'> | ||
| 37 | - <view class="icon"> | ||
| 38 | - <image :src="$imgUrl('/workbench3.png')"></image> | ||
| 39 | - </view> | ||
| 40 | - <view class="title"> | ||
| 41 | - <text>活动参与</text> | ||
| 42 | - </view> | ||
| 43 | - </view> | ||
| 44 | - <view class="list" @click="activityAdd"> | ||
| 45 | - <view class="icon"> | ||
| 46 | - <image :src="$imgUrl('/workbench4.png')"></image> | ||
| 47 | - </view> | ||
| 48 | - <view class="title"> | ||
| 49 | - <text>活动申请</text> | ||
| 50 | - </view> | ||
| 51 | - </view> | ||
| 52 | - <view class="list" @click="sales"> | ||
| 53 | - <view class="icon"> | ||
| 54 | - <image :src="$imgUrl('/workbench5.png')"></image> | ||
| 55 | - </view> | ||
| 56 | - <view class="title"> | ||
| 57 | - <text>销售上报</text> | ||
| 58 | - </view> | ||
| 59 | - </view> | ||
| 60 | - </view> | ||
| 61 | - </view> | ||
| 62 | - <view class="bg-white"> | ||
| 63 | - <view class="bidding-title"><view class="bidding-title-line"></view>推广策划</view> | ||
| 64 | - <view class="wallet-info"> | ||
| 65 | - <view class="list"> | ||
| 66 | - <view class="icon" @click='popularize(1)'> | ||
| 67 | - <image :src="$imgUrl('/workbench2.png')" ></image> | ||
| 68 | - </view> | ||
| 69 | - <view class="title"> | ||
| 70 | - <text>推广方案申请</text> | ||
| 71 | - </view> | ||
| 72 | - </view> | ||
| 73 | - <view class="list"> | ||
| 74 | - <view class="icon" @click='popularize(2)'> | ||
| 75 | - <image :src="$imgUrl('/workbench7.png')"></image> | ||
| 76 | - </view> | ||
| 77 | - <view class="title"> | ||
| 78 | - <text>推广方案管理</text> | ||
| 79 | - </view> | ||
| 80 | - </view> | ||
| 81 | - <view class="list"> | ||
| 82 | - <view class="icon"> | ||
| 83 | - <image :src="$imgUrl('/workbench8.png')"></image> | ||
| 84 | - </view> | ||
| 85 | - <view class="title"> | ||
| 86 | - <text>效果查看</text> | ||
| 87 | - </view> | ||
| 88 | - </view> | ||
| 89 | - </view> | ||
| 90 | - </view> | ||
| 91 | - <view class="bg-white"> | ||
| 92 | - <view class="bidding-title"><view class="bidding-title-line"></view>在线商城</view> | ||
| 93 | - <view class="wallet-info"> | ||
| 94 | - <!-- <view class="list"> | ||
| 95 | - <view class="icon"> | ||
| 96 | - <image src="../../static/workbench9.png"></image> | ||
| 97 | - </view> | ||
| 98 | - <view class="title"> | ||
| 99 | - <text>新增商品</text> | ||
| 100 | - </view> | ||
| 101 | - </view> --> | ||
| 102 | - <view class="list" @click="order"> | ||
| 103 | - <view class="icon"> | ||
| 104 | - <image :src="$imgUrl('/workbench10.png')"></image> | ||
| 105 | - </view> | ||
| 106 | - <view class="title"> | ||
| 107 | - <text>订单查询</text> | ||
| 108 | - </view> | ||
| 109 | - </view> | ||
| 110 | - <!-- <view class="list"> | ||
| 111 | - <view class="icon"> | ||
| 112 | - <image src="../../static/workbench11.png"></image> | ||
| 113 | - </view> | ||
| 114 | - <view class="title"> | ||
| 115 | - <text>售后管理</text> | ||
| 116 | - </view> | ||
| 117 | - </view> --> | ||
| 118 | - <!-- <view class="list"> | ||
| 119 | - <view class="icon"> | ||
| 120 | - <image src="../../static/workbench12.png"></image> | ||
| 121 | - </view> | ||
| 122 | - <view class="title"> | ||
| 123 | - <text>库存管理</text> | ||
| 124 | - </view> | ||
| 125 | - </view> --> | ||
| 126 | - <view class="list" @click="salesSta"> | ||
| 127 | - <view class="icon"> | ||
| 128 | - <image :src="$imgUrl('/workbench15.png')"></image> | ||
| 129 | - </view> | ||
| 130 | - <view class="title"> | ||
| 131 | - <text>销售统计</text> | ||
| 132 | - </view> | ||
| 133 | - </view> | ||
| 134 | - <!-- <view class="list"> | ||
| 135 | - <view class="icon"> | ||
| 136 | - <image src="../../static/workbench14.png"></image> | ||
| 137 | - </view> | ||
| 138 | - <view class="title"> | ||
| 139 | - <text>综合查询</text> | ||
| 140 | - </view> | ||
| 141 | - </view> --> | ||
| 142 | - <!-- <view class="list"> | ||
| 143 | - <view class="icon"> | ||
| 144 | - <image src="../../static/workbench13.png"></image> | ||
| 145 | - </view> | ||
| 146 | - <view class="title"> | ||
| 147 | - <text>优惠券发放</text> | ||
| 148 | - </view> | ||
| 149 | - </view> --> | ||
| 150 | - </view> | ||
| 151 | - </view> | ||
| 152 | - <view class="bg-white"> | ||
| 153 | - <view class="bidding-title"><view class="bidding-title-line"></view>支付服务</view> | ||
| 154 | - <view class="wallet-info"> | ||
| 155 | - <view class="list"> | ||
| 156 | - <view class="icon"> | ||
| 157 | - <image :src="$imgUrl('/workbench16.png')"></image> | ||
| 158 | - </view> | ||
| 159 | - <view class="title"> | ||
| 160 | - <text>明细查询</text> | ||
| 161 | - </view> | ||
| 162 | - </view> | ||
| 163 | - <view class="list"> | ||
| 164 | - <view class="icon"> | ||
| 165 | - <image :src="$imgUrl('/workbench7.png')"></image> | ||
| 166 | - </view> | ||
| 167 | - <view class="title"> | ||
| 168 | - <text>日志查询</text> | 25 | + <text>{{v.name}}</text> |
| 169 | </view> | 26 | </view> |
| 170 | </view> | 27 | </view> |
| 171 | </view> | 28 | </view> |
| @@ -184,6 +41,49 @@ | @@ -184,6 +41,49 @@ | ||
| 184 | }, | 41 | }, |
| 185 | data() { | 42 | data() { |
| 186 | return { | 43 | return { |
| 44 | + pageList: [ | ||
| 45 | + { | ||
| 46 | + id: 1, | ||
| 47 | + title: '招商服务', | ||
| 48 | + children: [ | ||
| 49 | + { name: '文件调查', img: '/workbench1.png', path: '/pages/questionnaire/questionnaire' }, | ||
| 50 | + { name: '招商方案', img: '/workbench2.png', path: '/pages/Iproposal/Iproposal' }, | ||
| 51 | + { name: '活动参与', img: '/workbench3.png', path: '/pages/participation/participation' }, | ||
| 52 | + { name: '活动申请', img: '/workbench4.png', path: '/pages/activityAdd/activityAdd' }, | ||
| 53 | + { name: '销售上报', img: '/workbench5.png', path: '/pages/salesReporting/salesReporting' }, | ||
| 54 | + ] | ||
| 55 | + }, | ||
| 56 | + { | ||
| 57 | + id: 2, | ||
| 58 | + title: '推广策划', | ||
| 59 | + children: [ | ||
| 60 | + { name: '推广方案申请', img: '/workbench2.png', path: '/pages/application/application' }, | ||
| 61 | + { name: '推广方案管理', img: '/workbench7.png', path: '/pages/projectManagement/projectManagement' }, | ||
| 62 | + { name: '效果查看', img: '/workbench8.png', path: '' }, | ||
| 63 | + ] | ||
| 64 | + }, | ||
| 65 | + { | ||
| 66 | + id: 3, | ||
| 67 | + title: '在线商城', | ||
| 68 | + children: [ | ||
| 69 | + // { name: '新增商品', img: '/workbench9.png', path: '' }, | ||
| 70 | + { name: '订单查询', img: '/workbench10.png', path: '/pages/orderList/orderList' }, | ||
| 71 | + // { name: '售后管理', img: '/workbench11.png', path: '' }, | ||
| 72 | + // { name: '库存管理', img: '/workbench12.png', path: '' }, | ||
| 73 | + { name: '销售统计', img: '/workbench15.png', path: '/pages/salesSta/salesSta' }, | ||
| 74 | + // { name: '综合查询', img: '/workbench14.png', path: '' }, | ||
| 75 | + // { name: '优惠券发放', img: '/workbench13.png', path: '' }, | ||
| 76 | + ] | ||
| 77 | + }, | ||
| 78 | + { | ||
| 79 | + id: 4, | ||
| 80 | + title: '支付服务', | ||
| 81 | + children: [ | ||
| 82 | + { name: '明细查询', img: '/workbench16.png', path: '' }, | ||
| 83 | + { name: '日志查询', img: '/workbench7.png', path: '' }, | ||
| 84 | + ] | ||
| 85 | + }, | ||
| 86 | + ], | ||
| 187 | scrollTop: 0, | 87 | scrollTop: 0, |
| 188 | }; | 88 | }; |
| 189 | }, | 89 | }, |
| @@ -194,52 +94,11 @@ | @@ -194,52 +94,11 @@ | ||
| 194 | this.scrollTop = e.scrollTop; | 94 | this.scrollTop = e.scrollTop; |
| 195 | }, | 95 | }, |
| 196 | methods: { | 96 | methods: { |
| 197 | - activityAdd(){ | ||
| 198 | - uni.navigateTo({ | ||
| 199 | - url: '/pages/activityAdd/activityAdd', | ||
| 200 | - }) | ||
| 201 | - }, | ||
| 202 | - participation(){ | ||
| 203 | - uni.navigateTo({ | ||
| 204 | - url: '/pages/participation/participation', | ||
| 205 | - }) | ||
| 206 | - }, | ||
| 207 | - questionnaire(){ | ||
| 208 | - uni.navigateTo({ | ||
| 209 | - url: '/pages/questionnaire/questionnaire', | ||
| 210 | - }) | ||
| 211 | - }, | ||
| 212 | - sales(){ | ||
| 213 | - uni.navigateTo({ | ||
| 214 | - url: '/pages/salesReporting/salesReporting', | ||
| 215 | - }) | ||
| 216 | - }, | ||
| 217 | - order(){ | ||
| 218 | - uni.navigateTo({ | ||
| 219 | - url: '/pages/orderList/orderList', | ||
| 220 | - }) | ||
| 221 | - }, | ||
| 222 | - salesSta(){ | ||
| 223 | - uni.navigateTo({ | ||
| 224 | - url: '/pages/salesSta/salesSta', | ||
| 225 | - }) | ||
| 226 | - }, | ||
| 227 | - Iproposal(){ | 97 | + toPath(path){ |
| 228 | uni.navigateTo({ | 98 | uni.navigateTo({ |
| 229 | - url: '/pages/Iproposal/Iproposal', | 99 | + url: path, |
| 230 | }) | 100 | }) |
| 231 | }, | 101 | }, |
| 232 | - popularize(val){ | ||
| 233 | - if(val ==1){ | ||
| 234 | - uni.navigateTo({ | ||
| 235 | - url: '/pages/application/application', | ||
| 236 | - }) | ||
| 237 | - }else{ | ||
| 238 | - uni.navigateTo({ | ||
| 239 | - url: '/pages/projectManagement/projectManagement', | ||
| 240 | - }) | ||
| 241 | - } | ||
| 242 | - } | ||
| 243 | } | 102 | } |
| 244 | } | 103 | } |
| 245 | </script> | 104 | </script> |