jialh
2025-08-01 17ea4b4d7b1ddf8d4eb345af7440df9b42df9614
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<template>
    <view>
        <view class="serve_box">
            <view class="serve_title">基础服务</view>
            <view class="serve_list">
                <view class="list">
                    <view class="item" v-for="(item,index) in serve_list" :key="index" @tap="to_serve(item)">
                        <image :src="item.src"></image>
                        <view class="text">{{item.name}}</view>
                    </view>
                </view>
            </view>
        </view>
 
    <!--     <view class="order_box">
            <view class="order_title">我的订单</view>
            <view class="order_list">
                <view class="list">
                    <view class="item" v-for="(item,index) in order_list" :key="index" @tap="toMallOrders()">
                        <image :src="item.src"></image>
                        <view class="text">{{item.name}}</view>
                    </view>
                </view>
            </view>
        </view> -->
 
        <auth-owner-dialog ref="authOwnerDialogRef"></auth-owner-dialog>
    </view>
</template>
 
<script>
    import context from '@/lib/java110/Java110Context.js';
    const factory = context.factory; //获取app实例
    const constant = context.constant;
    import {
        hasAuthOwner
    } from '@/api/owner/ownerApi.js';
    import authOwnerDialog from '@/components/owner/auth-owner-dialog.vue'
    export default {
        name: "myMenu",
        data() {
            return {
                order_list: [{
                        name: '待付款',
                        src: this.imgUrl + '/h5/images/serve/order1.png',
                        href: ''
                    },
                    {
                        name: '待发货',
                        src: this.imgUrl + '/h5/images/serve/order2.png',
                        href: ''
                    },
                    {
                        name: '待收货',
                        src: this.imgUrl + '/h5/images/serve/order3.png',
                        href: ''
                    },
                    {
                        name: '已完成',
                        src: this.imgUrl + '/h5/images/serve/order4.png',
                        href: ''
                    }
                ],
                serve_list: [{
                        name: '业主信息',
                        src: this.imgUrl + '/h5/images/serve/my1.png',
                        href: '/pages/viewBindOwner/viewBindOwner',
                        ownerAuth: true
                    },
                    {
                        name: '我的物业',
                        src: this.imgUrl + '/h5/images/serve/my2.png',
                        href: '/pages/my/myProperty',
                        ownerAuth: true
                    },
                    {
                        name: '我的房屋',
                        src: this.imgUrl + '/h5/images/serve/my3.png',
                        href: '/pages/my/myHouse',
                        ownerAuth: true
                    },
                    {
                        name: '我的报修',
                        src: this.imgUrl + '/h5/images/serve/my4.png',
                        href: '/pages/repair/myRepair',
                        ownerAuth: true
                    },
                    {
                        name: '缴费记录',
                        src: this.imgUrl + '/h5/images/serve/my5.png',
                        href: '/pages/fee/payFeeDetail',
                        ownerAuth: true
                    },
                    {
                        name: '我的车辆',
                        src: this.imgUrl + '/h5/images/serve/my6.png',
                        href: '/pages/car/ownerCars',
                        ownerAuth: true
                    },
                    {
                        name: '我的投诉',
                        src: this.imgUrl + '/h5/images/serve/11.png',
                        href: '/pages/complaint/complaintList',
                        ownerAuth: true
                    },
                    // {
                    //     name: '门禁日志',
                    //     src: this.imgUrl + '/h5/images/serve/my9.png',
                    //     href: '/pages/machine/machineTranslateLog',
                    //     ownerAuth: true
                    // },
                    // {
                    //     name: '空置房记录',
                    //     src: this.imgUrl + '/h5/images/serve/my8.png',
                    //     href: '/pages/applyRoom/myRoomList',
                    //     ownerAuth: true
                    // },
                    {
                        name: '装修记录',
                        src: this.imgUrl + '/h5/images/serve/my10.png',
                        href: '/pages/renovation/myRoomList',
                        ownerAuth: true
                    },
                    // {
                    //     name: '订场记录',
                    //     src: this.imgUrl + '/h5/images/serve/my8.png',
                    //     href: '/pages/appointment/myBoomList',
                    //     ownerAuth: false
                    // },
                    // {
                    //     name: '预约记录',
                    //     src: this.imgUrl + '/h5/images/serve/my8.png',
                    //     href: '/pages/reserve/reserveMyOrder',
                    //     ownerAuth: false
                    // },
                    // {
                    //     name: '放行记录',
                    //     src: this.imgUrl + '/h5/images/serve/my8.png',
                    //     href: '/pages/itemRelease/myItemReleaseList',
                    //     ownerAuth: true
                    // },
                    // {
                    //     name: '充电订单',
                    //     src: this.imgUrl + '/h5/images/serve/11.png',
                    //     href: '/pages/machine/chargeMachineOrders',
                    //     ownerAuth: false
                    // },
                    // {
                    //     name: '发票',
                    //     src: this.imgUrl + '/h5/images/serve/my5.png',
                    //     href: '/pages/invoice/invoice',
                    //     ownerAuth: true
                    // },
                ]
            };
        },
        created() {
 
        },
        components: {
            authOwnerDialog
        },
        methods: {
            // 我的服务跳转
            to_serve(v) {
                if (!v.ownerAuth) {
                    this.vc.navigateTo({
                        url: v.href
                    });
                    return;
                }
                hasAuthOwner(this).then(_owner => {
                    this.vc.navigateTo({
                        url: v.href
                    });
                })
            },
            ckeckUserInfo: function() {
                return context.checkLoginStatus();
            },
            toMallOrders() {
                if (!this.ckeckUserInfo()) {
                    this.vc.navigateTo({
                        url: '../login/showlogin'
                    }, () => {
                        this.refreshPageLoginInfo();
                    });
                    return;
                }
                this.vc.navigateToMall({
                    url: '/pages/myOrder/myOrderAll'
                })
            },
        }
    }
</script>
 
<style lang="less">
    .order_box {
        margin-top: 20upx;
 
        .order_title {
            line-height: 42upx;
            font-size: 30upx;
            font-weight: 600;
            color: #333;
            padding: 20upx;
        }
 
        .order_list {
            padding: 20upx 20upx 0;
            background: #fff;
        }
 
        .item {
            width: 25%;
            display: inline-block;
            text-align: center;
            margin-bottom: 20upx;
        }
 
        image {
            height: 44upx;
            width: 44upx;
        }
 
        .text {
            color: #333;
            font-size: 28upx;
        }
    }
 
    .serve_box {
        margin-top: 20upx;
 
        .serve_title {
            line-height: 42upx;
            font-size: 30upx;
            font-weight: 600;
            color: #333;
            padding: 20upx;
        }
 
        .serve_list {
            padding: 40upx 20upx 0;
            background: #fff;
        }
 
        .item {
            width: 20%;
            display: inline-block;
            text-align: center;
            margin-bottom: 40upx;
        }
 
        image {
            height: 44upx;
            width: 44upx;
        }
 
        .text {
            color: #333;
            font-size: 28upx;
        }
    }
</style>