<template>
    <view class="content">
        <view class="image-content">
            <image style="width: 350rpx; height: 350rpx; background-color: #eeeeee;" mode="scaleToFill"
                src="/static/safe.png"></image>
        </view>
        <view class="btn-class ">
            	<button type="default" @click="toStorage">
                      <uni-icons type="upload-filled"></uni-icons>
                    样品入库</button>
                <button type="default" class="mt-10" @click="toDecation">
                     <uni-icons type="loop"></uni-icons>
                    样品检测</button>
        </view>

    </view>
</template>

<script setup>
import { ref} from "vue";

const toStorage=()=>{
    uni.navigateTo({
      url: '/pages/putStorage/putStorage?type=1' // 这是一个非 TabBar 页面
    });
}
const toDecation=()=>{
    uni.navigateTo({
      url: '/pages/putStorage/putStorage?type=2' // 这是一个非 TabBar 页面
    });
}
</script>
<style lang="scss" scoped>
    .image-content {
        text-align: center;
        margin-top: 50px;
    }
    .btn-class{
         width: 75%;
         text-align: center;
         margin: 30px auto;
    }

</style>
