<template>
	<view class="page">
		<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>
		<view class="my-top">
			<view class="head" :style="'background-color: rgba(38,197,112,'+(scrollTop/50)+');'">
				<view class="logo-title">
					<image :src="$imgUrl('/logo.png')"></image>
				</view>
				<view class="title">
					
				</view>
				<view class="setting-mess"></view>
			</view>
		</view>
		<view class="main">
			<view class="bg-white">
				<view class="bidding-title"><view class="bidding-title-line"></view>招商服务</view>
				<view class="wallet-info">
					<view class="list" @click="questionnaire">
						<view class="icon">
							<image :src="$imgUrl('/workbench1.png')"></image>
						</view>
						<view class="title">
							<text>问卷调查</text>
						</view>
					</view>
					<view class="list" @click="Iproposal">
						<view class="icon">
							<image :src="$imgUrl('/workbench2.png')"></image>
						</view>
						<view class="title">
							<text>招商方案</text>
						</view>
					</view>
					<view class="list"  @click='participation'>
						<view class="icon">
							<image :src="$imgUrl('/workbench3.png')"></image>
						</view>
						<view class="title">
							<text>活动参与</text>
						</view>
					</view>
					<view class="list" @click="activityAdd">
						<view class="icon">
							<image :src="$imgUrl('/workbench4.png')"></image>
						</view>
						<view class="title">
							<text>活动申请</text>
						</view>
					</view>
					<view class="list" @click="sales">
						<view class="icon">
							<image :src="$imgUrl('/workbench5.png')"></image>
						</view>
						<view class="title">
							<text>销售上报</text>
						</view>
					</view>
				</view>
			</view>
			<view class="bg-white">
				<view class="bidding-title"><view class="bidding-title-line"></view>推广策划</view>
				<view class="wallet-info">
					<view class="list">
						<view class="icon"  @click='popularize(1)'>
							<image :src="$imgUrl('/workbench2.png')" ></image>
						</view>
						<view class="title">
							<text>推广方案申请</text>
						</view>
					</view>
					<view class="list">
						<view class="icon"  @click='popularize(2)'>
							<image :src="$imgUrl('/workbench7.png')"></image>
						</view>
						<view class="title">
							<text>推广方案管理</text>
						</view>
					</view>
					<view class="list">
						<view class="icon">
							<image :src="$imgUrl('/workbench8.png')"></image>
						</view>
						<view class="title">
							<text>效果查看</text>
						</view>
					</view>
				</view>
			</view>
			<view class="bg-white">
				<view class="bidding-title"><view class="bidding-title-line"></view>在线商城</view>
				<view class="wallet-info">
					<!-- <view class="list">
						<view class="icon">
							<image src="../../static/workbench9.png"></image>
						</view>
						<view class="title">
							<text>新增商品</text>
						</view>
					</view> -->
					<view class="list" @click="order">
						<view class="icon">
							<image :src="$imgUrl('/workbench10.png')"></image>
						</view>
						<view class="title">
							<text>订单查询</text>
						</view>
					</view>
					<!-- <view class="list">
						<view class="icon">
							<image src="../../static/workbench11.png"></image>
						</view>
						<view class="title">
							<text>售后管理</text>
						</view>
					</view> -->
					<!-- <view class="list">
						<view class="icon">
							<image src="../../static/workbench12.png"></image>
						</view>
						<view class="title">
							<text>库存管理</text>
						</view>
					</view> -->
					<view class="list" @click="salesSta">
						<view class="icon">
							<image :src="$imgUrl('/workbench15.png')"></image>
						</view>
						<view class="title">
							<text>销售统计</text>
						</view>
					</view>
					<!-- <view class="list">
						<view class="icon">
							<image src="../../static/workbench14.png"></image>
						</view>
						<view class="title">
							<text>综合查询</text>
						</view>
					</view> -->
					<!-- <view class="list">
						<view class="icon">
							<image src="../../static/workbench13.png"></image>
						</view>
						<view class="title">
							<text>优惠券发放</text>
						</view>
					</view> -->
				</view>
			</view>
			<view class="bg-white">
				<view class="bidding-title"><view class="bidding-title-line"></view>支付服务</view>
				<view class="wallet-info">
					<view class="list">
						<view class="icon">
							<image :src="$imgUrl('/workbench16.png')"></image>
						</view>
						<view class="title">
							<text>明细查询</text>
						</view>
					</view>
					<view class="list">
						<view class="icon">
							<image :src="$imgUrl('/workbench7.png')"></image>
						</view>
						<view class="title">
							<text>日志查询</text>
						</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 {
				scrollTop: 0,
			};
		},
		onReady() {
			uni.hideTabBar()
		},
		onPageScroll(e) {
			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(){
				uni.navigateTo({
					url: '/pages/Iproposal/Iproposal',
				})
			},
			popularize(val){
				if(val ==1){
					uni.navigateTo({
						url: '/pages/application/application',
					})
				}else{
					uni.navigateTo({
						url: '/pages/projectManagement/projectManagement',
					})
				}
			}
		}
	}
</script>

<style scoped lang="scss">
	@import 'workbench.scss';
</style>
