#
whycq
2024-03-19 108f0553f4e3d3fe1faca4b10857fb37d7b0e533
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
55
56
57
58
59
60
61
62
63
64
65
<template>
    <view>
        <view class="box" v-for="item in 10">
            <view class="box-left">
                <text class="text"> 库区 </text>
            </view>
            <view class="box-right">
                <text class="text"> {{item}} </text>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                
            }
        },
        onShow() {
            this.baseUrl = uni.getStorageSync('baseUrl');
            this.token = uni.getStorageSync('token');
            this.getNodeTree()
        },
        methods: {
            getNodeTree() {
                let _this = this
                uni.request({
                    url: `${_this.baseUrl}/node/tree/auth`,
                    header: {'token': uni.getStorageSync('token')},
                    data: {
                        orderNo: that.orderNo
                    },
                })
            }
        }
    }
</script>
 
<style>
    .box {
        margin: 16rpx;
        display: flex;
        align-items: stretch;
        
    }
    .box-left {
        height: 80rpx;
        line-height: 80rpx;
        background-color: #499bff;
        background-color: #26edcf;
        color: #F7F6F9;
    }
    .box-right {
        flex: 1;
        display: flex;
        align-items: center;
        background-color: #fff;
        color: #808080;
    }
    .text  {
        padding: 10rpx 20rpx;
    }
</style>