setNavigationBarTitle

This commit is contained in:
花有清香月有阴
2021-12-24 11:38:05 +08:00
parent 8a4d9446f4
commit dc86715241
9 changed files with 150 additions and 131 deletions

View File

@@ -108,6 +108,7 @@ export default {
...mapState(['user']),
},
onLoad() {
uni.setNavigationBarTitle({ title: '走访慰问' })
this.areaId = this.user.areaId
this.$dict.load('realityStatus').then(() => {
this.getList()

View File

@@ -44,8 +44,6 @@
</div>
<div class="btn" @click="submit">保存</div>
</div>
<component v-else :is="comp" :paramss="params" @back="backlist"></component>
@@ -88,6 +86,7 @@ export default {
},
computed: { ...mapState(['user']) },
created() {
uni.setNavigationBarTitle({ title: '新建走访' })
this.areaIdProps = this.user.areaId
this.forms.areaId = this.user.areaId
this.$dict.load('realityStatus').then(() => {

View File

@@ -31,8 +31,6 @@
<img :src="item.url" alt="" v-for="(item, index) in data.images" :key="index" />
</div>
</div>
</div>
</template>
@@ -49,7 +47,8 @@ export default {
}
},
computed: {},
created() {
onLoad() {
uni.setNavigationBarTitle({ title: '走访详情' })
this.$dict.load('realityStatus').then(() => {
this.getDetail()
})

View File

@@ -71,7 +71,8 @@ export default {
}
},
computed: {},
created() {
onLoad() {
uni.setNavigationBarTitle({ title: '选择走访慰问对象' })
this.getDiyList()
},
mounted() {},