This commit is contained in:
花有清香月有阴
2021-12-10 11:14:34 +08:00
parent 9b15c1e30a
commit 9662dae6bd
5 changed files with 33 additions and 16 deletions

View File

@@ -4,11 +4,11 @@
<u-navbar title="走访慰问" back-icon-color="#fff" title-color="#fff" title-width="300" title-size="36" :border-bottom="false" :background="backgroundNavbar"> </u-navbar>
<div class="header-top">
<u-tabs :list="tabList" :is-scroll="false" :current="current" height="96" bg-color="#3975C6" inactive-color="#fff" active-color="#fff" @change="change"></u-tabs>
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6" inactive-color="#fff" active-color="#fff" @change="change"></u-tabs>
</div>
<div class="header-middle">
<div class="currentLeft" v-if="current == 0">
<div class="currentLeft" v-if="currentTabs == 0">
<div class="currentLeft-top">
<div class="left">
<u-icon name="map"></u-icon>
@@ -22,7 +22,6 @@
<u-select v-model="show" :list="areaList"></u-select>
</div>
<!-- v-if="data.length > 0" -->
<div @click.stop="btnHide" class="datas" v-if="data.length > 0">
<div class="cards" @click.stop="toDetail" v-for="(item, i) in 4" :key="i">
<div class="cards-top">
@@ -62,7 +61,7 @@
</div>
</div>
<div class="currentRight" v-if="current == 1">1</div>
<div class="currentRight" v-if="currentTabs == 1">1</div>
</div>
<u-modal v-model="deletShow" content="您确认要删除该条信息吗?" :show-cancel-button="true" :mask-close-able="true" :show-title="false" @confirm="delet"></u-modal>
@@ -98,7 +97,7 @@ export default {
name: '我的走访',
},
],
current: 0,
currentTabs: 0,
show: false,
areaList: [
{
@@ -117,14 +116,32 @@ export default {
isList: true,
comp: '',
params: null,
current: 1,
}
},
computed: {},
onLoad() {},
onShow() {},
created() {
this.getList()
},
mounted() {},
methods: {
getList() {
this.$http
.post('/app/appvisitvondolence/list', null, {
params: {
size: 6,
current: this.current,
},
})
.then((res) => {
if (res.code == 0) {
this.data = res.data.records
}
})
},
change(index) {
this.current = index
this.currentTabs = index
},
toAdd(item) {

View File

@@ -105,8 +105,8 @@ export default {
}
},
computed: {},
onLoad() {},
onShow() {},
created() {},
mounted() {},
methods: {
submit() {
if (this.flag) return

View File

@@ -56,8 +56,8 @@ export default {
}
},
computed: {},
onLoad() {},
onShow() {},
created() {},
mounted() {},
methods: {},
}
</script>

View File

@@ -61,8 +61,8 @@ export default {
}
},
computed: {},
onLoad() {},
onShow() {},
created() {},
mounted() {},
methods: {
checkboxGroupChange(e) {
console.log(1, e)