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: './sort'
| },
| {
| name: '平库分拣',
| pages: './squareSort'
| }
| ]
| }
| },
| 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>
|
|