123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <template>
- <view style="background-color: #FFFFFF;height: 100vh;">
- <view class="content">
- <view class="content-but" @click="goPage(1)">
- <text>
- 入库
- </text>
- </view>
- <view class="content-but" @click="goPage(2)">
- <text>
- 出库
- </text>
- </view>
- <view class="content-but" @click="goPage(3)">
- <text>
- 标签查询
- </text>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- }
- },
- onLoad() {
- this.$u.get('/system/dict/data/type/storage_type').then(res => {
- uni.setStorageSync('storageType', res.data);
- })
- },
- onShow(){
- uni.setStorageSync('type',0);
- },
- methods: {
- goPage(row) {
- if (row == 1) {
- uni.navigateTo({
- url: 'inStock/index'
- });
- } else if (row == 2) {
- uni.navigateTo({
- url: 'outStock/index'
- });
- } else if (row == 3) {
- uni.navigateTo({
- url: 'tagQuery/index'
- });
- }
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .content {
- display: flex;
- flex-wrap: wrap;
- flex-direction: column;
- align-content: center;
- &-but {
- width: 98%;
- height: 200rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- background-color: #409EFF;
- margin: 10rpx 0 0 0;
- border-radius: 10rpx;
- text {
- color: #fff;
- font-size: 36rpx;
- }
- }
- }
- </style>
|