<template>
  <view class="uni-padding-wrap uni-common-mt" >
	  <view class="grid-body">
	    <uni-grid :column="2" :showBorder="false" @change="changeGrid1">
	      <uni-grid-item :index="1" style="line-height: 100px;margin-top:100px;margin-left:37.5%;width: 100%;">
	        <view class="grid-item-box">
	          <uni-icons custom-prefix="iconfont" type="icon-lingliaodan" size="30"></uni-icons>
	          <text class="text">领料拣货</text>
	        </view>
	      </uni-grid-item>
	  	<uni-grid-item :index="2" style="line-height: 100px;margin-left:37.5%;width: 100%;">
	  	  <view class="grid-item-box">
	  	    <uni-icons custom-prefix="iconfont" type="icon-navicon-ckd" size="30"></uni-icons>
	  	    <text class="text">领料出库</text>
	  	  </view>
	  	</uni-grid-item>
	    </uni-grid>
	  </view>
    </view>
  </view>
</template>

<script>
  export default {
    onLoad: function() {
    },
	methods: {
		changeGrid1(e) {
		  console.log(e.detail.index);
		  		if (e.detail.index == 1) {
		  			this.$tab.navigateTo('/pages/wms/pdcMaterial/pdcPick');
		  		} else if (e.detail.index == 2) {
		  			this.$tab.navigateTo('/pages/wms/pdcMaterial/pdcCk');
		  		}
		}
	}
  }
</script>

<style>
  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .logo {
    height: 200rpx;
    width: 200rpx;
    margin-top: 200rpx;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50rpx;
  }

  .text-area {
    display: flex;
    justify-content: center;
  }

  .title {
    font-size: 36rpx;
    color: #8f8f94;
  }
</style>
