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
| <template>
| <view class="">
| <z-paging ref="paging" v-model="list" @query="queryList" :refresher-enabled="false"
| loading-more-no-more-text="没有更多了">
| <view class="bgc-ff">
| <u-tabs :list="tabList" :current="tabIndex" @click="changeTab" :inactiveStyle="{color:'#999999'}"
| :activeStyle="{color:'#017BFC'}" :scrollable="false">
| </u-tabs>
| </view>
|
| <view class="">
|
| </view>
| </z-paging>
| </view>
| </template>
|
| <script>
| import {
| getTenementComment
| } from "@/api/grid/grid.js"
| export default {
| data() {
| return {
| tabList: [
|
| {
| name: "物业公司"
| },
| {
| name: "通知公告"
| },
| ],
| tabIndex: 0,
| list: []
| }
| },
|
|
| methods: {
|
|
| changeTab(e) {
| this.tabIndex = e.index;
| this.$refs.paging.reload()
| },
|
|
| queryList(pageNo, pageSize) {
| if (this.tabIndex == 0) {
| this.getTenementCommentList(pageNo, pageSize)
| } else {
| this.getArticleCommentList(pageNo, pageSize)
| }
| },
|
| getTenementCommentList(page, size) {
| getTenementComment({
| isRec: 1,
| page: page,
| size: size,
| propertyCompanyId: this.id,
| checkStatus: 2,
| createUser: uni.getStorageSync("userInfo").user_id
| }).then(res => {
| console.log(res)
| this.$refs.paging.complete(res.data.records);
| })
| },
|
| getArticleCommentList(page, size) {
|
| }
|
| }
| }
| </script>
|
| <style>
| </style>
|
|