Blame view

pages/workbench/workbench.vue 3.27 KB
4dfe89e4   monkeyhouyi   初始化
1
2
  <template>
  	<view class="page">
c62ab6f2   杨鑫   1
3
4
  		<view style="position: absolute; top: 0; width: 100%;">
  			<image  :src="$imgUrl('/bg.png')" style="width: 100%; height: 490rpx;border-radius: 0 0 40rpx 40rpx;"></image></view>
4dfe89e4   monkeyhouyi   初始化
5
6
7
  		<view class="my-top">
  			<view class="head" :style="'background-color: rgba(38,197,112,'+(scrollTop/50)+');'">
  				<view class="logo-title">
c62ab6f2   杨鑫   1
8
  					<image :src="$imgUrl('/logo.png')"></image>
4dfe89e4   monkeyhouyi   初始化
9
10
11
12
13
14
15
16
  				</view>
  				<view class="title">
  					
  				</view>
  				<view class="setting-mess"></view>
  			</view>
  		</view>
  		<view class="main">
caf58d15   monkeyhouyi   应用菜单
17
18
  			<view class="bg-white" v-for="item in pageList" :key="item.id">
  				<view class="bidding-title"><view class="bidding-title-line"></view>{{item.title}}</view>
4dfe89e4   monkeyhouyi   初始化
19
  				<view class="wallet-info">
caf58d15   monkeyhouyi   应用菜单
20
  					<view class="list" v-for="v in item.children" :key="v.name" @click="toPath(v.path)">
4dfe89e4   monkeyhouyi   初始化
21
  						<view class="icon">
caf58d15   monkeyhouyi   应用菜单
22
  							<image :src="$imgUrl(`${v.img}`)"></image>
4dfe89e4   monkeyhouyi   初始化
23
24
  						</view>
  						<view class="title">
caf58d15   monkeyhouyi   应用菜单
25
  							<text>{{v.name}}</text>
4dfe89e4   monkeyhouyi   初始化
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
  						</view>
  					</view>
  				</view>
  			</view>
  		</view>
  		<!-- tabbar -->
  		<tabbar :tabBarShow="1"></tabbar>
  	</view>
  </template>
  
  <script>
  	import tabbar from '../../components/tabbar/tabbar.vue';
  	export default {
  		components: {
  			tabbar
  		},
  		data() {
  			return {
caf58d15   monkeyhouyi   应用菜单
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
  				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: '' },
  						]
  					},
  				],
4dfe89e4   monkeyhouyi   初始化
87
88
89
90
91
92
93
94
95
96
  				scrollTop: 0,
  			};
  		},
  		onReady() {
  			uni.hideTabBar()
  		},
  		onPageScroll(e) {
  			this.scrollTop = e.scrollTop;
  		},
  		methods: {
caf58d15   monkeyhouyi   应用菜单
97
  			toPath(path){
c62ab6f2   杨鑫   1
98
  				uni.navigateTo({
caf58d15   monkeyhouyi   应用菜单
99
  					url: path,
c62ab6f2   杨鑫   1
100
101
  				})
  			},
4dfe89e4   monkeyhouyi   初始化
102
103
104
105
106
107
108
  		}
  	}
  </script>
  
  <style scoped lang="scss">
  	@import 'workbench.scss';
  </style>