@@ -259,12 +205,13 @@ export default {
todayList2: [],
counts1: "",
counts2: "",
- page2: { current: 1, size: 10, total: 0 },
+ page2: { current: 1, size: 10, total: 0, pages: 2},
search2: { name: "" },
- page1: { current: 1, size: 10, total: 0 },
+ page1: { current: 1, size: 10, total: 0, pages: 2},
search1: { name: "" },
cWidth: 750,
cHeight: 500,
+ statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
};
},
computed: {
@@ -325,12 +272,14 @@ export default {
},
// 居民列表
getList() {
+ if(this.page1.current > this.page1.pages) return
this.$instance
.post("/app/wxcp/wxcustomer/list", null, {
params: { ...this.page1, ...this.search, type: 1 },
})
.then((res) => {
if (res?.data) {
+ this.page1.pages = res.data.pages
if (this.page1.current > 1) {
this.data = [...this.data, ...res.data.records];
} else this.data = res.data.records;
@@ -355,12 +304,14 @@ export default {
// 居民群列表
getList2() {
+ if(this.page2.current > this.page2.pages) return
this.$instance
.post("/app/wxcp/wxgroup/list", null, {
params: { ...this.page2, ...this.search },
})
.then((res) => {
if (res?.data) {
+ this.page2.pages = res.data.pages
let meta = res.data.records?.map((e) => ({
...e,
avatar: e?.avatar || this.$cdn + "groupAvatar.png",
@@ -399,7 +350,7 @@ export default {
),
series: [
{
- name: "居民总数",
+ name: "群成员总数",
data: Object.values(this.weekList).map((e) => e.total),
},
{
@@ -581,25 +532,26 @@ uni-page-body {
}
.list-content {
- width: 686px;
- height: calc(100% - 216px);
- background: #FFF;
- border-radius: 16px;
- margin: 32px 0 0 32px;
- position: relative;
+ width: calc(100% - 64px);
+ margin: 0 0 0 32px;
+ padding-bottom: 200px;
.search-top {
- position: absolute;
- top: 0;
- left: 0;
padding: 28px 32px;
- width: 686px;
+ width: calc(100% - 64px);
box-sizing: border-box;
+ position: fixed;
+ left: 0;
+ margin-left: 32px;
background-color: #fff;
- z-index: 99;
+ border-top-left-radius: 16px;
+ border-top-right-radius: 16px;
+ z-index: 9;
}
.user-list-content {
background-color: #fff;
- padding-top: 128px;
+ border-bottom-left-radius: 16px;
+ border-bottom-right-radius: 16px;
+ margin-top: 128px;
.item {
display: flex;
padding: 24px 32px 0;