schangxiang@126.com
2025-04-01 afc3ef31921d5ca812f7db92dfb107e2c25eff4c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<template>
    <view class="">
        <cu-custom bgColor="bg-white" :isBack="true">
            <block slot="backText">
            </block>
            <block slot="content">旧件管理</block>
        </cu-custom>
        <view class="margin_top40rpx text_align_center" v-for="(item,index) in list" :key='index'>
            <view class="little_card fontSize36rpx" @click="skip(item,index)" :class="active==index?'active':''">
                {{item.name}}
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                active: null,
                type:'',
                list: [
                    {
                        name: '旧件入库',
                        pages: './putIn'
                    }, 
                    {
                        name: '旧件出库',
                        pages: './putOut'
                    }
                ]
            }
        },
        onLoad(options) {
            this.type = options.type
        },
        methods: {
            skip(item, index) {
                this.active = index
                if (item.pages) {
                    setTimeout(() => {
                        uni.navigateTo({
                            url:  item.pages
                        })
                    }, 100)
                }
            }
        }
    }
</script>
 
<style>
 
</style>