linwe
2024-08-08 3c738f4fe2762bba8087e5a22fc0dc06560eab0e
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
<template>
    <view class="bgc-ff">
        <view class="item-row flex j-c-s-b a-i-c">
            <text>公安局</text>
            <text>{{detailInfo.branchName}}</text>
        </view>
        <view class="item-row flex j-c-s-b a-i-c">
            <text>派出所</text>
            <text>{{detailInfo.localPoliceStationName}}</text>
        </view>
        <view class="item-row flex j-c-s-b a-i-c">
            <text>社区民警</text>
            <text>{{detailInfo.policeman}}</text>
        </view>
        <view class="item-row flex j-c-s-b a-i-c">
            <text>联系方式</text>
            <text>{{detailInfo.policemanPhone}}</text>
        </view>
    </view>
</template>
 
<script>
    import { getPublicSecurityDetail } from "@/api/grid/grid.js"
    export default {
        data(){
            return {
                detailInfo:{}
            }
        },
        onLoad() {
            this.getDetail()
        },
        methods:{
            getDetail(){
                getPublicSecurityDetail({
                    addressCode:uni.getStorageSync("siteInfo").houseCode
                }).then(res=>{
                    console.log(res)
                    this.detailInfo = res.data;
                })
            }
        }
    }
</script>
 
<style>
    page {
        background-color: #f5f5f5;
    }
    .item-row {
        width: 100%;
        padding: 30rpx;
        box-sizing: border-box;
        border-bottom: 1px solid #f5f5f5;
        font-size: 28rpx;
    }
</style>