#
whycq
2022-12-13 afc7c8bdcd84357c6af2d0e36217a40e4fe229bf
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
<template>
    <view>
        <!-- 搜索框 -->
        <view></view>
        <!-- 客户列表 -->
        <view class="c-list" @click="getCsmtr()">
            
        </view>
    </view>
</template>
 
<script>
    export default { 
        data() {
            return {
                url: '127.0.0.1:9528'
            }
        },
        methods: {
            getCsmtr() {
                let that = this
                console.log(that.url);
                uni.request({
                    url:'http://127.0.0.1:9528' + '/cstmr/page/auth',
                    header: {'token' : uni.getStorageSync('token'),
                    "content-type": "application/json"},
                    data: {curr:1,limit:16},
                    method:'POST',
                    success(result) {
                        console.log(result);
                    }
                })
            }
        }
    }
</script>
 
<style>
    .c-list {
        width: 96%;
        min-height: 100rpx;
        background-color: #acacac;
        margin: 20rpx 2% 0 2%;
    }
</style>