地区组件完全重构兼容苹果版本

This commit is contained in:
aixianling
2022-03-21 17:23:12 +08:00
parent d45620c3cd
commit 37bf1881da
13 changed files with 399 additions and 318 deletions

View File

@@ -3,11 +3,11 @@
<div class="list">
<AiTopFixed>
<div class="area-content">
<AiAreaPicker :areaId="user.areaId" :value="areaId" @select="areaSelect" :name.sync="areaName">
<img src="./img/local-icon.png" alt="">
<span class="label" v-if="areaName">{{ areaName }}</span>
<span v-else>请选择</span>
<u-icon name="arrow-down" color="#666" size="24"/>
<AiAreaPicker v-model="areaId" :name.sync="areaName">
<div flex>
<img src="./img/local-icon.png" alt="">
<AiMore v-model="areaName" icon="arrow-down"/>
</div>
</AiAreaPicker>
</div>
</AiTopFixed>
@@ -38,18 +38,16 @@ export default {
}
},
computed: {...mapState(['user'])},
onShow() {
created() {
this.areaId = this.user.areaId
this.areaName = this.user.areaName
},
onShow() {
this.getList()
this.cdn = this.$cdn.replace("/dvcp/h5", "");
document.title = '乡村相册'
},
methods: {
areaSelect(e) {
this.areaId = e
this.getList()
},
getList() {
this.$http.post(`/app/appvillagepicturealbum/queryAlbumMenu`, null, {
params: {

View File

@@ -64,9 +64,11 @@ export default {
}
},
computed: { ...mapState(['user']) },
onShow() {
created() {
this.areaId = this.user.areaId
this.areaName = this.user.areaName
},
onShow() {
document.title = '返乡登记'
this.getList()
this.getTotal()
@@ -134,7 +136,7 @@ export default {
.tab-item{
flex: 1;
text-align: center;
h2{
font-size: 52px;
font-family: DINAlternate-Bold, DINAlternate;
@@ -244,7 +246,7 @@ export default {
.placeholder {
.content {
padding: 0 !important;
}
}
.fixed {

View File

@@ -123,7 +123,6 @@ export default {
})
},
onShow() {
this.areaId = this.user.areaId
document.title = '健康上报'
},
methods: {

View File

@@ -76,7 +76,6 @@ export default {
...mapState(['user']),
},
onLoad() {
console.log(this.user)
this.areaId = this.user.areaId
this.areaName = this.user.areaName
this.$dict.load('householdRelation', 'auditStatus').then(() => {

View File

@@ -128,7 +128,6 @@ export default {
},
created() {
this.$areaId = this.$store.state.user.areaId
this.areaName = this.$store.state.user.areaFullName
this.$dict.load(['fpType', 'fpYesOrNo'])
},

View File

@@ -170,10 +170,12 @@ export default {
option && this.Echart.setOption(option)
},
},
onShow() {
document.title = '视频监控'
created() {
this.areaId = this.user.areaId
this.areaName = this.user.areaName
},
onShow() {
document.title = '视频监控'
this.getList()
},
mounted() {

View File

@@ -95,11 +95,8 @@ export default {
},
},
onLoad(o) {
console.log(this.user)
this.moduleId = o.moduleId
this.listName = o.listName
this.$areaId = this.user.areaName
this.areaName = this.user.areaName
this.areaId = this.user.areaId