This commit is contained in:
liuye
2024-07-19 16:24:06 +08:00
parent 9ab2944681
commit ee0cf5f8fe
8 changed files with 61 additions and 51 deletions

View File

@@ -94,9 +94,9 @@ export default {
// } // }
}, },
onReachBottom() { onReachBottom() {
// if (!this.tabIndex) { if (!this.tabIndex) {
// this.$nextTick(() => this.$refs['List'].nextPage()) uni.$emit('nextPage')
// } }
}, },
} }
</script> </script>

View File

@@ -192,7 +192,7 @@ export default {
} }
.contents { .contents {
width: calc(100% - 64px); width: calc(100% - 64px);
margin: 16px 0 0 32px; margin: 0 0 0 32px;
padding-bottom: 252px; padding-bottom: 252px;
} }
::v-deep .u-form { ::v-deep .u-form {

View File

@@ -247,7 +247,7 @@ uni-page-body {
} }
.header-top { .header-top {
display: flex; display: flex;
margin: 16px 0 30px 0; margin: 0 0 30px 0;
padding: 32px 32px 0; padding: 32px 32px 0;
.avatars { .avatars {
width: 80px; width: 80px;

View File

@@ -1,6 +1,6 @@
<template> <template>
<div class="list"> <div class="list">
<div class="top-tab" :style="{'top': `${statusBarHeight+50}px`}"> <div class="top-tab" :style="{'top': `${statusBarHeight+44}px`}">
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#fff" inactive-color="#222" <u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#fff" inactive-color="#222"
active-color="#1D2229" :bar-style="barStyle" font-size="34" @change="change"></u-tabs> active-color="#1D2229" :bar-style="barStyle" font-size="34" @change="change"></u-tabs>
<div class="select-top"> <div class="select-top">
@@ -67,7 +67,7 @@ export default {
], ],
currentTabs: 0, currentTabs: 0,
current: 1, current: 1,
pages: 0, pages: 2,
searchGrid: {girdName: ''}, searchGrid: {girdName: ''},
showType: false, showType: false,
eventStatus: '', eventStatus: '',
@@ -90,18 +90,20 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(1)
this.searchGrid.girdId = this.user.girdId this.searchGrid.girdId = this.user.girdId
this.searchGrid.girdName = this.user.girdName this.searchGrid.girdName = this.user.girdName
this.current = 1
this.$dict.load('clapEventStatus', 'clapEventStatusAll', 'clapEventStatusHistory', 'residentEventSource').then(() => { this.$dict.load('clapEventStatus', 'clapEventStatusAll', 'clapEventStatusHistory', 'residentEventSource').then(() => {
this.getList() this.getListInit()
this.getIsAdd() this.getIsAdd()
}) })
uni.$on('nextPage', () => {
this.nextPage()
})
}, },
methods: { methods: {
getListInit() { getListInit() {
this.current = 1 this.current = 1
this.pages = 2
this.getList() this.getList()
}, },
nextPage() { nextPage() {
@@ -109,10 +111,11 @@ export default {
this.getList() this.getList()
}, },
getList() { getList() {
if(this.current > this.pages) return
let {current, eventStatus, searchGrid: {id: girdId}} = this let {current, eventStatus, searchGrid: {id: girdId}} = this
this.$instance.post(`/app/apppatrolreportinfov2/listByGirdMember`, null, { this.$instance.post(`/app/apppatrolreportinfov2/listByGirdMember`, null, {
params: { params: {
size: 10, size: 4,
current, current,
eventStatus, eventStatus,
girdId, girdId,
@@ -132,19 +135,16 @@ export default {
this.eventStatus = e[0].value this.eventStatus = e[0].value
this.eventStatusText = e[0].label this.eventStatusText = e[0].label
} }
this.current = 1 this.getListInit()
this.getList()
}, },
handleSelectGird(v) { handleSelectGird(v) {
this.searchGrid = v this.searchGrid = v
this.current = 1 this.getListInit()
this.getList()
}, },
clearGrid() { clearGrid() {
this.searchGrid = {girdName: ''} this.searchGrid = {girdName: ''}
this.current = 1 this.getListInit()
this.getList()
}, },
goDetail(item) { goDetail(item) {
@@ -152,11 +152,10 @@ export default {
}, },
change(index) { change(index) {
this.current = 1
this.datas = [] this.datas = []
this.eventStatus = '' this.eventStatus = ''
this.currentTabs = index this.currentTabs = index
this.getList() this.getListInit()
}, },
linkTo(url) { linkTo(url) {
@@ -235,7 +234,8 @@ export default {
} }
.list-content { .list-content {
margin: 244px 0 200px 32px; margin: 228px 0 0 32px;
padding-bottom: 200px;
} }
.item { .item {

View File

@@ -130,7 +130,7 @@ uni-page-body {
} }
} }
.list-content { .list-content {
margin: 16px 0 0 32px; margin: 0 0 0 32px;
} }
.item { .item {

View File

@@ -229,20 +229,25 @@ export default {
}) })
}, },
confirmTag() { confirmTag() {
var residentId = [], residentLabelList = [] var residentIds = [], residentLabelList = []
this.datas.map((item) => { this.datas.map((item) => {
if(item.isCheck) { if(item.isCheck) {
residentId.push(item.id) residentIds.push(item.id)
} }
}) })
this.tagList.map((item) => { this.tagList.map((item) => {
residentLabelList.push(item) if(item.isCheck) {
var e = {
labelId: item.id,
labelName: item.labelName
}
residentLabelList.push(e)
}
}) })
this.$instance.post('app/appresidentlabel/batchUpdate', { this.$instance.post('app/appresidentlabel/batchUpdate', { residentIds,residentLabelList }).then((res) => {
residentIds: residentId,
residentLabelList
}).then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.showTag = false
this.$u.toast('操作成功') this.$u.toast('操作成功')
this.getList() this.getList()
} }
@@ -288,7 +293,7 @@ export default {
} }
.area-content { .area-content {
width: 100%; width: 100%;
padding: 26px 32px; padding: 26px 0;
box-sizing: border-box; box-sizing: border-box;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 32px; font-size: 32px;

View File

@@ -32,29 +32,30 @@
</AiGroup> --> </AiGroup> -->
<!-- <u-gap height="24"/> --> <!-- <u-gap height="24"/> -->
<!-- <u-tabs :list="[{name:'办理进度'},{name:'我的评价'}]" :current="currentTab" @change="v=>currentTab=v"/> --> <!-- <u-tabs :list="[{name:'办理进度'},{name:'我的评价'}]" :current="currentTab" @change="v=>currentTab=v"/> -->
<div class="border-r pad-b252"> <div :class="isShowBtn ? 'pad-b252' : ''">
<div class="tab-content"> <div class="border-r">
<div class="tab-item" v-for="(item, index) in tabList" :key="index" @click="tabClick(index)" :class="currentTab == index ? 'active' : ''">{{ item.name }} <div class="tab-content">
<span class="active-line" v-if="currentTab == index"/> <div class="tab-item" v-for="(item, index) in tabList" :key="index" @click="tabClick(index)" :class="currentTab == index ? 'active' : ''">{{ item.name }}
<span class="active-line" v-if="currentTab == index"/>
</div>
</div> </div>
<u-gap height="24"/>
<AiGroup noBorder v-if="currentTab=='0'">
<AiStep v-for="(item,i) in process" :key="item.id" :index="i">
<div class="start">
<div class="fill stepTitle" v-text="item.systemExplain"/>
<div class="color-999 mar-r32 stepTime" v-text="item.doTime"/>
</div>
<div v-if="item.doExplain" class="stepContent mar-t8" v-text="item.doExplain"/>
<div class="imgs">
<img :src="e.url" alt="" v-for="(e, index) in item.files" :key="index" @click="previewImage(item.files, e.url)"/>
</div>
<u-gap height="48"/>
</AiStep>
</AiGroup>
<AiEvaluation v-if="currentTab=='1' && showEvaluation" :bid="info.id" type="show"/>
</div> </div>
<u-gap height="24"/>
<AiGroup noBorder v-if="currentTab=='0'">
<AiStep v-for="(item,i) in process" :key="item.id" :index="i">
<div class="start">
<div class="fill stepTitle" v-text="item.systemExplain"/>
<div class="color-999 mar-r32 stepTime" v-text="item.doTime"/>
</div>
<div v-if="item.doExplain" class="stepContent mar-t8" v-text="item.doExplain"/>
<div class="imgs">
<img :src="e.url" alt="" v-for="(e, index) in item.files" :key="index" @click="previewImage(item.files, e.url)"/>
</div>
<u-gap height="48"/>
</AiStep>
</AiGroup>
</div> </div>
<AiEvaluation v-if="currentTab=='1' && showEvaluation" :bid="info.id" type="show"/>
<AiEvaluation v-if="info.eventStatus > 1 && showEvaluation" v-model="evaluation" class="fixed-bottom bg-fff" :bid="info.id"> <AiEvaluation v-if="info.eventStatus > 1 && showEvaluation" v-model="evaluation" class="fixed-bottom bg-fff" :bid="info.id">
<div class="footer"> <div class="footer">
<div class="btn">去评价</div> <div class="btn">去评价</div>
@@ -104,6 +105,9 @@ export default {
tabList() { tabList() {
var list = !this.evaluation.id ? [{name:'办理进度'}] : [{name:'办理进度'},{name:'我的评价'}] var list = !this.evaluation.id ? [{name:'办理进度'}] : [{name:'办理进度'},{name:'我的评价'}]
return list return list
},
isShowBtn() {
return this.info.eventStatus > 1 && this.showEvaluation && !this.evaluation.id
} }
}, },
onShow() { onShow() {
@@ -183,6 +187,7 @@ export default {
padding: 32px 0 32px 32px; padding: 32px 0 32px 32px;
box-sizing: border-box; box-sizing: border-box;
background-color: none!important; background-color: none!important;
border-radius: 16px;
} }
h2 { h2 {
font-family: PingFangSC-SNaNpxibold; font-family: PingFangSC-SNaNpxibold;

View File

@@ -221,7 +221,7 @@ export default {
if (this.flag) return if (this.flag) return
this.$loading() this.$loading()
this.$instance.post(`/app/apppatrolreportinfov2/addByGirdMember`, { this.$instance.post(`/app/apppatrolreportinfov2/addByApplet`, {
...this.form, ...this.form,
openid: this.user.openid, openid: this.user.openid,
portrait: this.user.avatarUrl, portrait: this.user.avatarUrl,
@@ -272,7 +272,7 @@ export default {
margin-bottom: 24px; margin-bottom: 24px;
background: #fff; background: #fff;
width: calc(100% - 64px); width: calc(100% - 64px);
margin: 16px 0 32px 32px; margin: 0 0 32px 32px;
border-radius: 16px; border-radius: 16px;
} }