地区组件完全重构兼容苹果版本
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -123,7 +123,6 @@ export default {
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
this.areaId = this.user.areaId
|
||||
document.title = '健康上报'
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
@@ -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'])
|
||||
},
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user