This commit is contained in:
花有清香月有阴
2022-01-07 16:33:25 +08:00
2 changed files with 35 additions and 8 deletions

View File

@@ -45,7 +45,6 @@
<div class="addBtn iconfont iconfont-iconfangda" @tap.stop="toAdd()" /> <div class="addBtn iconfont iconfont-iconfangda" @tap.stop="toAdd()" />
<div class="addBtn iconfont iconfont-iconDouble_Up" @tap.stop="backTop" v-if="showBackTop" /> <div class="addBtn iconfont iconfont-iconDouble_Up" @tap.stop="backTop" v-if="showBackTop" />
</AiFixedBtn> </AiFixedBtn>
<u-modal v-model="deletShow" content="您确认要删除该条信息吗?" :show-cancel-button="true" :mask-close-able="true" :show-title="false" @confirm="delet"></u-modal> <u-modal v-model="deletShow" content="您确认要删除该条信息吗?" :show-cancel-button="true" :mask-close-able="true" :show-title="false" @confirm="delet"></u-modal>
</div> </div>
</template> </template>
@@ -101,6 +100,7 @@ export default {
this.$areaId = this.user.areaName this.$areaId = this.user.areaName
this.areaName = this.user.areaName this.areaName = this.user.areaName
this.areaId = this.user.areaId
this.getList() this.getList()
uni.$on('update', () => { uni.$on('update', () => {
@@ -219,6 +219,15 @@ export default {
padding-bottom: 10px; padding-bottom: 10px;
background: #f2f2f2; background: #f2f2f2;
::v-deep .AiCard {
border-radius: 0!important;
box-shadow: none;
.start {
border-radius: 0!important;
}
}
.areatop { .areatop {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;

View File

@@ -1,5 +1,5 @@
<template> <template>
<div class="Detail" v-if="pageShow"> <div class="Detail" v-if="pageShow" :class="[isAnnouncer && data.status === '0' && data.type === '0' ? 'detail-active' : '']">
<div class="detail-top"> <div class="detail-top">
<div flex class="w-100"> <div flex class="w-100">
<div class="avatar" v-text="data.avatar" /> <div class="avatar" v-text="data.avatar" />
@@ -79,9 +79,7 @@
</div> </div>
</u-popup> </u-popup>
<!-- <div class="bottomBar"> <div class="end-btn" hover-class="text-hover" v-if="data.status === '1'" @click="handleComplete">结束公示</div>
<div v-if="data.status < 2" @click="handleComplete">结束公示</div>
</div> -->
</div> </div>
</template> </template>
@@ -253,8 +251,10 @@ export default {
handleComplete() { handleComplete() {
this.$confirm('是否要结束公示') this.$confirm('是否要结束公示')
.then(() => { .then(() => {
let { id } = this this.$http.post('/app/appvillagediscuss/finishPublic', {
this.$http.post('/app/appvillagediscuss/finishPublic', { id }).then((res) => { status: '2',
id: this.id
}).then((res) => {
if (res?.code == 0) { if (res?.code == 0) {
this.$u.toast('已结束公示!') this.$u.toast('已结束公示!')
this.getDetail() this.getDetail()
@@ -269,7 +269,25 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.Detail { .Detail {
padding-bottom: 112px; padding-bottom: 40px;
.end-btn {
position: fixed;
bottom: 0;
left: 0;
z-index: 11;
width: 100%;
height: 112px;
line-height: 112px;
text-align: center;
color: #fff;
font-size: 32px;
background: #1365DD;
}
&.detail-active {
padding-bottom: 132px;
}
.detail-top { .detail-top {
padding: 30px; padding: 30px;