<template>
  <view class="app-content">
    <view class="header"><view class="log" @tap="fall"></view>{{ navname }}<view class="up" @tap="seach"></view></view>
    <view class="nav">
      <view :class="action === index ? 'nav_lists': 'nav_list'" v-for="(item, index) in list" :key="index" @tap="lop(index)">{{item.name}}</view>
    </view>
    <view class="content">
      <view class="list" v-for="(item, index) in detailedTable" :key="index" @tap = 'uplist'>
        {{ item.name }}
        <view class="listup"></view>
      </view>
    </view>
  </view>
</template>
<script>
	import Nav from '../../components/header/nav.vue'
	export default {
		data() {
			return {
				navname: '我的记录',
        action:0,
        list: [{
          name: '分拣'
        },{
          name: '装车'
        },{
          name: '上机'
        },{
          name: '卸机'
        },{
          name: '卸车'
        }],
        detailedTable: [
          {
            name: '离港:HU7410   CKG-CSX (113/171)'
          },
          {
            name: '离港:HU7410   CKG-CSX (113/171)'
          },
          {
            name: '离港:HU7410   CKG-CSX (113/171)'
          },
          {
            name: '离港:HU7410   CKG-CSX (113/171)'
          },
          {
            name: '离港:HU7410   CKG-CSX (113/171)'
          }
        ]
			}
		},
		created(option) {
		},
		onLoad(){
		},
		onUnload() {
		},
		onShow() {
		},
		mounted() {
		},
		components: {
			Nav
		},
		methods: {
      uplist () {
        uni.redirectTo({
					url: "/pages/loadingdetails/index"
				})
      },
      lop(index) {
        this.action = index
      },
			seach () {
				uni.redirectTo({
					url: "/pages/search/index"
				})
			},
      fall () {
        uni.switchTab({
					url: "/pages/mypage/index"
				})
      }
		},
	}
</script>

<style lang="scss" scoped>
.app-content{
  >.header{
    width: 100%;
    height: 4.375rem;
    display: flex;
    justify-content: center;
    align-items: center;
    // background: rgba(49,85,99,1);
    color: rgb(16, 17, 22);
    font-family: Noto Sans SC;
    font-size: 1rem;
    position: relative;
    >.log{
      width: .375rem;
      height: .75rem;
      font-size: .75rem;
      position: absolute;
      left: 1.5rem;
      background: url('../../static/ico@1x.png') no-repeat;
      background-size: 100% 100%;
    }
    >.up{
      width: .8456rem;
      height: .8456rem;
      position: absolute;
      right: 1.5rem;
      background: url('../../static/search.png') no-repeat;
      background-size: 100% 100%;
      // color: rgb(37, 121, 160);
      // font-family: Noto Sans SC;
      // font-size: .875rem;
      // font-weight: 500;
    }
  }
  >.nav{
    height: 2rem;
    display: flex;
    align-items: center;
    padding: 0 .75rem 0 .75rem;
    >.nav_list{
      margin: 0 .75rem 0 .75rem;
      color: rgb(16, 17, 22);
      font-family: Noto Sans SC;
      font-size: 14px;
      height: 100%;
    }
    >.nav_lists{
      margin: 0 .75rem 0 .75rem;
      color: rgb(37, 121, 160);
      font-family: Noto Sans SC;
      font-size: 14px;
      font-size: 14px;
      height: 100%;
      border-bottom: 2px solid rgb(37, 121, 160);
    }
  }
  >.content{
    margin-left: 1.5rem;
    >.list{
      height: 3.375rem;
      display: flex;
      align-items: center;
      border-bottom: 1px solid rgb(238, 238, 238);
      position: relative;
      color: rgb(0, 0, 0);
      font-family: Noto Sans SC;
      font-size: 13px;
      font-weight: 400;
      >p{
        color: rgb(0, 0, 0);
        font-family: Noto Sans SC;
        font-size: 13px;
        font-weight: 400;
        margin-right: 2.1875rem;
      }
      >.listup{
        width: .25rem;
        height: .5rem;
        background: url('../../static/icos.png') no-repeat;
        background-size: 100% 100%;
        position: absolute;
        right: 1.5rem;
      }
    }
    >.picturearea{
      margin-top: 1.875rem;
      >.name{
        color: rgb(0, 0, 0);
        font-family: Noto Sans SC;
        font-size: .8125rem;
        font-weight: 500;
      }
      >.content_list{
        width: 100%;
        display: flex;
        margin-top: 1.25rem;
        >.mg{
          width: 5.5rem;
          height: 5.5rem;
          background: rgb(197, 207, 211);
          display: flex;
          align-items: center;
          justify-content: center;
          margin-right: .625rem;
          >.mg_lg{
            width: 1.75rem;
            height: 1.75rem;
            background: url('../../static/shi.png') no-repeat;
            background-size: 100% 100%;
          }
        }
      }
    }
  }
}
</style>