导航栏标题

This commit is contained in:
liuye
2021-12-24 14:17:10 +08:00
parent 4651151cd1
commit 50b4a98b2c
59 changed files with 59 additions and 65 deletions

View File

@@ -204,7 +204,7 @@ export default {
this.getTopicList() this.getTopicList()
console.log(option) console.log(option)
if (option.id) { if (option.id) {
uni.setNavigationBarTitle({ title: '编辑活动' }) document.title = '编辑活动'
this.params.id = option.id this.params.id = option.id
this.getDetail() this.getDetail()
} else { } else {

View File

@@ -94,7 +94,7 @@ export default {
item.createTime = item.createTime.substring(0, 19) item.createTime = item.createTime.substring(0, 19)
}) })
} }
uni.setNavigationBarTitle({ title: this.info.userId == this.user.id ? '我的帖子' : 'Ta的帖子' }) document.title = this.info.userId == this.user.id ? '我的帖子' : 'Ta的帖子'
this.$nextTick(() => { this.$nextTick(() => {
this.pageShow = true this.pageShow = true
}) })

View File

@@ -148,7 +148,7 @@ export default {
'isFilingCertificateStatus', 'communityBuildingType', 'yesOrNo', 'BulidResidentType').then(() => { 'isFilingCertificateStatus', 'communityBuildingType', 'yesOrNo', 'BulidResidentType').then(() => {
this.getDetail() this.getDetail()
}) })
uni.setNavigationBarTitle({title: '房屋信息'}) document.title = '房屋信息'
}, },
methods: { methods: {

View File

@@ -139,7 +139,7 @@ export default {
this.getCenterLatLng().then(points => { this.getCenterLatLng().then(points => {
this.getMarkerCluster(points) this.getMarkerCluster(points)
}) })
uni.setNavigationBarTitle({title: '以房找人'}) document.title = '以房找人'
}, },
created() { created() {
this.$dict.load("communityBuildingType") this.$dict.load("communityBuildingType")

View File

@@ -168,7 +168,7 @@ export default {
'isFilingCertificateStatus', 'communityBuildingType', 'yesOrNo', 'BulidResidentType').then(() => { 'isFilingCertificateStatus', 'communityBuildingType', 'yesOrNo', 'BulidResidentType').then(() => {
this.getBuilding() this.getBuilding()
}) })
uni.setNavigationBarTitle({title: '以房找人'}) document.title = '以房找人'
}, },
methods: { methods: {
getSelectList(communityId) { getSelectList(communityId) {

View File

@@ -37,7 +37,7 @@ export default {
this.$dict.load('BuildLocationStatus').then(() => { this.$dict.load('BuildLocationStatus').then(() => {
this.getList() this.getList()
}) })
uni.setNavigationBarTitle({title: '楼栋列表'}) document.title = '楼栋列表'
uni.$on('updateList', () => { uni.$on('updateList', () => {
this.current = 1 this.current = 1
this.getList() this.getList()

View File

@@ -65,7 +65,7 @@ export default {
computed: {...mapState(['user'])}, computed: {...mapState(['user'])},
mounted() { mounted() {
this.initMap() this.initMap()
uni.setNavigationBarTitle({title: '以房找人'}) document.title = '以房找人'
}, },
methods: { methods: {
initMap() { //初始化地图 initMap() { //初始化地图

View File

@@ -60,7 +60,7 @@ export default {
console.log(this.params) console.log(this.params)
this.getList() this.getList()
this.getStatistic() this.getStatistic()
uni.setNavigationBarTitle({title: '乡村相册'}) document.title = '乡村相册'
}, },
methods: { methods: {

View File

@@ -38,7 +38,7 @@ export default {
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.areaName = this.user.areaName this.areaName = this.user.areaName
this.getList() this.getList()
uni.setNavigationBarTitle({title: '乡村相册'}) document.title = '乡村相册'
uni.$on('updateList', () => { uni.$on('updateList', () => {
this.getList() this.getList()
}) })

View File

@@ -67,7 +67,7 @@ export default {
this.$dict.load('girdType', 'girdLevel') this.$dict.load('girdType', 'girdLevel')
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.getLeafNodes() this.getLeafNodes()
uni.setNavigationBarTitle({title: '网格管理'}) document.title = '网格管理'
}, },
methods: { methods: {
getLeafNodes() { getLeafNodes() {

View File

@@ -78,7 +78,7 @@ export default {
this.getDetail() this.getDetail()
} }
}) })
uni.setNavigationBarTitle({title: '新增'}) document.title = '新增'
}, },
methods: { methods: {

View File

@@ -43,7 +43,7 @@ export default {
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
mounted() { mounted() {
this.getList() this.getList()
uni.setNavigationBarTitle({title: '便民通讯录'}) document.title = '便民通讯录'
}, },
methods: { methods: {

View File

@@ -34,7 +34,7 @@ export default {
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
mounted() { mounted() {
this.getList() this.getList()
uni.setNavigationBarTitle({title: '便民通讯录'}) document.title = '便民通讯录'
uni.$on('updateList', () => { uni.$on('updateList', () => {
this.getList() this.getList()
}) })

View File

@@ -77,7 +77,7 @@ export default {
computed: {}, computed: {},
watch: {}, watch: {},
onLoad() { onLoad() {
uni.setNavigationBarTitle({ title: '婚丧嫁娶' }) document.title = '婚丧嫁娶'
this.$dict.load('marriageType', 'modeType').then(() => { this.$dict.load('marriageType', 'modeType').then(() => {
this.getCount() this.getCount()
this.getList() this.getList()

View File

@@ -77,7 +77,7 @@ export default {
computed: {}, computed: {},
watch: {}, watch: {},
onLoad() { onLoad() {
uni.setNavigationBarTitle({ title: '婚丧嫁娶' }) document.title = '婚丧嫁娶'
this.$dict.load('marriageType', 'modeType').then(() => { this.$dict.load('marriageType', 'modeType').then(() => {
this.getCount() this.getCount()
this.getList() this.getList()

View File

@@ -77,7 +77,7 @@ export default {
computed: {}, computed: {},
watch: {}, watch: {},
onLoad() { onLoad() {
uni.setNavigationBarTitle({ title: '婚丧嫁娶' }) document.title = '婚丧嫁娶'
this.$dict.load('marriageType', 'modeType').then(() => { this.$dict.load('marriageType', 'modeType').then(() => {
this.getCount() this.getCount()
this.getList() this.getList()

View File

@@ -77,7 +77,7 @@ export default {
computed: {}, computed: {},
watch: {}, watch: {},
onLoad() { onLoad() {
uni.setNavigationBarTitle({ title: '婚丧嫁娶' }) document.title = '婚丧嫁娶'
this.$dict.load('marriageType', 'modeType').then(() => { this.$dict.load('marriageType', 'modeType').then(() => {
this.getCount() this.getCount()
this.getList() this.getList()

View File

@@ -131,7 +131,7 @@ export default {
}, },
onShow() { onShow() {
uni.setNavigationBarTitle({title: '会议通知'}) document.title = '会议通知'
this.$dict.load("meetingNoticeBefore", "meetingNoticeAfter"); this.$dict.load("meetingNoticeBefore", "meetingNoticeAfter");
this.getData(); this.getData();
}, },

View File

@@ -145,7 +145,7 @@ export default {
}, },
onShow() { onShow() {
uni.setNavigationBarTitle({title: '新增会议'}) document.title = '新增会议'
this.$dict.load("meetingNoticeBefore", "meetingNoticeAfter"); this.$dict.load("meetingNoticeBefore", "meetingNoticeAfter");
}, },

View File

@@ -67,7 +67,7 @@ export default {
} }
}, },
onShow() { onShow() {
uni.setNavigationBarTitle({title: '我发起的'}) document.title = '我发起的'
}, },
created() { created() {
this.injectJWeixin(['sendChatMessage']).then(() => { this.injectJWeixin(['sendChatMessage']).then(() => {

View File

@@ -55,9 +55,7 @@ export default {
onLoad(opt) { onLoad(opt) {
this.index = opt.index this.index = opt.index
uni.setNavigationBarTitle({ document.title = opt.index == 0 ? "历史会议" : "草稿箱"
title: opt.index == 0 ? "历史会议" : "草稿箱"
});
this.getData(); this.getData();
}, },

View File

@@ -27,7 +27,7 @@ export default {
} }
}, },
created() { created() {
uni.setNavigationBarTitle({title: '基层办公'}) document.title = '基层办公'
}, },
methods: { methods: {

View File

@@ -32,7 +32,7 @@ export default {
} }
}, },
created() { created() {
uni.setNavigationBarTitle({title: '文明乡风'}) document.title = '文明乡风'
}, },
methods: { methods: {

View File

@@ -32,7 +32,7 @@ export default {
} }
}, },
created() { created() {
uni.setNavigationBarTitle({title: '居民互动'}) document.title = '居民互动'
}, },
mounted() { mounted() {
document.title = "居民互动" document.title = "居民互动"

View File

@@ -40,7 +40,7 @@ export default {
} }
}, },
created() { created() {
uni.setNavigationBarTitle({title: '基层党建'}) document.title = '基层党建'
}, },
methods: { methods: {

View File

@@ -32,7 +32,7 @@ export default {
} }
}, },
created() { created() {
uni.setNavigationBarTitle({title: '居民管理'}) document.title = '居民管理'
}, },
methods: { methods: {

View File

@@ -202,9 +202,7 @@ export default {
onLoad(query) { onLoad(query) {
if (query.isFrom) { if (query.isFrom) {
this.isFrom = true this.isFrom = true
uni.setNavigationBarTitle({ document.title = '风险预警详情'
title: '风险预警详情'
})
} }
uni.showLoading() uni.showLoading()
this.$dict.load(['fpType', 'riskEliminationMethod', 'fpRiskType', 'fpYesOrNo']).then(() => { this.$dict.load(['fpType', 'riskEliminationMethod', 'fpRiskType', 'fpYesOrNo']).then(() => {

View File

@@ -97,7 +97,7 @@ export default {
}, },
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
onLoad(o) { onLoad(o) {
uni.setNavigationBarTitle({ title: '发布活动' }) document.title = '发布活动'
this.id = o.id ? o.id : '' this.id = o.id ? o.id : ''
this.$dict.load('realityStatus').then(() => { this.$dict.load('realityStatus').then(() => {
this.areaId = this.user.areaId this.areaId = this.user.areaId

View File

@@ -39,7 +39,7 @@ export default {
} }
}, },
onLoad(o) { onLoad(o) {
uni.setNavigationBarTitle({ title: '发布动态' }) document.title = '发布动态'
this.id = o.id || '' this.id = o.id || ''
}, },
methods: { methods: {

View File

@@ -75,7 +75,7 @@ export default {
}, },
watch: {}, watch: {},
onLoad() { onLoad() {
uni.setNavigationBarTitle({ title: '居民活动' }) document.title = '居民活动'
this.$dict.load(['villageActivityStatus']).then(() => { this.$dict.load(['villageActivityStatus']).then(() => {
this.getList() this.getList()
}) })

View File

@@ -135,7 +135,7 @@ export default {
} }
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({ title: '活动报名' }) document.title = '活动报名'
this.id = option.id this.id = option.id
this.$dict.load(['villageActivityStatus']).then(() => { this.$dict.load(['villageActivityStatus']).then(() => {
this.getDetail() this.getDetail()

View File

@@ -66,7 +66,7 @@ export default {
}, },
watch: {}, watch: {},
onLoad() { onLoad() {
uni.setNavigationBarTitle({ title: '居民列表' }) document.title = '居民列表'
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.getList() this.getList()
}, },

View File

@@ -65,7 +65,7 @@ export default {
computed: {}, computed: {},
watch: {}, watch: {},
onLoad(o) { onLoad(o) {
uni.setNavigationBarTitle({ title: '居民档案' }) document.title = '居民档案'
this.id = o.id this.id = o.id
this.$dict.load('householdRelation', 'fileStatus').then(() => { this.$dict.load('householdRelation', 'fileStatus').then(() => {
this.getDetail() this.getDetail()

View File

@@ -121,7 +121,7 @@ export default {
computed: {}, computed: {},
watch: {}, watch: {},
onLoad(o) { onLoad(o) {
uni.setNavigationBarTitle({ title: '家庭成员信息' }) document.title = '家庭成员信息'
this.id = o.id this.id = o.id
this.$dict.load('householdRelation', 'nation', 'education', 'maritalStatus', 'politicsStatus', 'militaryStatus', 'faithType', 'job').then(() => { this.$dict.load('householdRelation', 'nation', 'education', 'maritalStatus', 'politicsStatus', 'militaryStatus', 'faithType', 'job').then(() => {
this.getDetail() this.getDetail()

View File

@@ -182,7 +182,7 @@ export default {
}, },
watch: {}, watch: {},
onLoad() { onLoad() {
uni.setNavigationBarTitle({ title: '居民信息管理' }) document.title = '居民信息管理'
this.getEchart1() this.getEchart1()
this.areaId = this.user.areaId this.areaId = this.user.areaId
}, },

View File

@@ -101,7 +101,7 @@ export default {
} }
}, },
onLoad() { onLoad() {
uni.setNavigationBarTitle({ title: '添加标签' }) document.title = '添加标签'
}, },
computed: { computed: {
tagsList() { tagsList() {

View File

@@ -83,7 +83,7 @@ export default {
} }
}, },
onLoad() { onLoad() {
uni.setNavigationBarTitle({ title: '居民详情' }) document.title = '居民详情'
this.$dict.load('sex', 'nation', 'education', 'job', 'faithType', 'politicsStatus', 'militaryStatus', 'householdRelation', 'householdName') this.$dict.load('sex', 'nation', 'education', 'job', 'faithType', 'politicsStatus', 'militaryStatus', 'householdRelation', 'householdName')
}, },
} }

View File

@@ -191,7 +191,7 @@ export default {
}, },
}, },
onLoad() { onLoad() {
uni.setNavigationBarTitle({ title: '居民详情' }) document.title = '居民详情'
this.$dict.load('wxCustomerAddWay', 'wxCustomerLogType') this.$dict.load('wxCustomerAddWay', 'wxCustomerLogType')
this.getCustomLog(this.top.custom) this.getCustomLog(this.top.custom)
this.injectJWeixin('openUserProfile') this.injectJWeixin('openUserProfile')

View File

@@ -30,7 +30,7 @@ export default {
} }
}, },
onLoad() { onLoad() {
uni.setNavigationBarTitle({ title: '居民详情' }) document.title = '居民详情'
}, },
computed: { computed: {
tabs() { tabs() {

View File

@@ -75,7 +75,7 @@ export default {
this.forms.areaId = this.user.areaId this.forms.areaId = this.user.areaId
this.listName = o.listName this.listName = o.listName
this.getType() this.getType()
uni.setNavigationBarTitle({title: this.listName}) document.title = this.listName
}, },
mounted() {}, mounted() {},

View File

@@ -96,7 +96,7 @@ export default {
uni.$on('update', () => { uni.$on('update', () => {
this.getList() this.getList()
}) })
uni.setNavigationBarTitle({title: this.listName}) document.title = this.listName
}, },
methods: { methods: {
previewImage(images, img) { previewImage(images, img) {

View File

@@ -48,7 +48,7 @@ export default {
this.id = o.id this.id = o.id
this.listName = o.listName this.listName = o.listName
this.getType() this.getType()
uni.setNavigationBarTitle({title: this.listName}) document.title = this.listName
}, },
mounted() {}, mounted() {},
methods: { methods: {

View File

@@ -155,7 +155,7 @@ export default {
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
created() { created() {
this.getType() this.getType()
uni.setNavigationBarTitle({title: '新增人员'}) document.title = '新增人员'
}, },
methods: { methods: {

View File

@@ -94,7 +94,7 @@ export default {
this.getStatistic() this.getStatistic()
this.getStatisticMon() this.getStatisticMon()
this.getUserList() this.getUserList()
uni.setNavigationBarTitle({title: '特殊人群管理'}) document.title = '特殊人群管理'
uni.$on('specialPeopleList', () => { uni.$on('specialPeopleList', () => {
this.getStatistic() this.getStatistic()
this.getStatisticMon() this.getStatisticMon()

View File

@@ -47,7 +47,7 @@ export default {
}, },
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
onLoad(o) { onLoad(o) {
uni.setNavigationBarTitle({ title: '新增通知公告' }) document.title = '新增通知公告'
this.id = o.id this.id = o.id
this.getDetail() this.getDetail()
}, },

View File

@@ -78,7 +78,7 @@ export default {
}, },
watch: {}, watch: {},
onLoad() { onLoad() {
uni.setNavigationBarTitle({ title: '通知公告' }) document.title = '通知公告'
this.getList() this.getList()
uni.$on('updateList', () => { uni.$on('updateList', () => {
this.current = 1 this.current = 1

View File

@@ -33,7 +33,7 @@ export default {
computed: {}, computed: {},
watch: {}, watch: {},
onLoad(o) { onLoad(o) {
uni.setNavigationBarTitle({ title: '公告详情' }) document.title = '公告详情'
this.id = o.id this.id = o.id
this.getDetail() this.getDetail()
}, },

View File

@@ -177,7 +177,7 @@ export default {
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.areaName = this.user.areaName this.areaName = this.user.areaName
this.getList() this.getList()
uni.setNavigationBarTitle({title: '视频监控'}) document.title = '视频监控'
// this.getMonitors() // this.getMonitors()
}, },
mounted() { mounted() {

View File

@@ -22,7 +22,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.detectOrient() this.detectOrient()
}) })
uni.setNavigationBarTitle({title: '视频监控'}) document.title = '视频监控'
}, },
methods: { methods: {

View File

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

View File

@@ -86,7 +86,7 @@ export default {
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
onLoad(o) { onLoad(o) {
this.id = o.id this.id = o.id
uni.setNavigationBarTitle({ title: '新建走访' }) document.title = '新建走访'
this.areaIdProps = this.user.areaId this.areaIdProps = this.user.areaId
this.forms.areaId = this.user.areaId this.forms.areaId = this.user.areaId
this.$dict.load('realityStatus').then(() => { this.$dict.load('realityStatus').then(() => {

View File

@@ -50,7 +50,7 @@ export default {
computed: {}, computed: {},
onLoad(o) { onLoad(o) {
this.id = o.id this.id = o.id
uni.setNavigationBarTitle({ title: '走访详情' }) document.title = '走访详情'
this.$dict.load('realityStatus').then(() => { this.$dict.load('realityStatus').then(() => {
this.getDetail() this.getDetail()
}) })

View File

@@ -75,7 +75,7 @@ export default {
computed: {}, computed: {},
created() { created() {
console.log(1) console.log(1)
uni.setNavigationBarTitle({ title: '选择走访慰问对象' }) document.title = '选择走访慰问对象'
this.getDiyList() this.getDiyList()
}, },
mounted() {}, mounted() {},

View File

@@ -89,7 +89,7 @@ export default {
}, },
watch: {}, watch: {},
onLoad() { onLoad() {
uni.setNavigationBarTitle({ title: '网上办事' }) document.title = '网上办事'
this.$dict.load('listApprovalStatusHb').then(() => { this.$dict.load('listApprovalStatusHb').then(() => {
this.getList() this.getList()
}) })

View File

@@ -237,7 +237,7 @@ export default {
}, },
}, },
onLoad(options) { onLoad(options) {
uni.setNavigationBarTitle({ title: '审批详情' }) document.title = '审批详情'
this.objid = options.id this.objid = options.id
this.listType = options.listType this.listType = options.listType
this.getDetail() this.getDetail()

View File

@@ -18,7 +18,7 @@ export default {
} }
}, },
onLoad(val) { onLoad(val) {
uni.setNavigationBarTitle({ title: '审批详情' }) document.title = '审批详情'
this.flag = val?.flag == 1 this.flag = val?.flag == 1
}, },
methods: { methods: {

View File

@@ -101,7 +101,7 @@ export default {
} }
}, },
onLoad(options) { onLoad(options) {
uni.setNavigationBarTitle({ title: '审批详情' }) document.title = '审批详情'
this.objid = options.id this.objid = options.id
this.type = options.type this.type = options.type

View File

@@ -237,7 +237,7 @@ export default {
}, },
}, },
onLoad(options) { onLoad(options) {
uni.setNavigationBarTitle({ title: '审批详情' }) document.title = '审批详情'
this.objid = options.id this.objid = options.id
this.listType = options.listType this.listType = options.listType
this.getDetail() this.getDetail()

View File

@@ -58,9 +58,7 @@ export default {
onLoad(opt) { onLoad(opt) {
this.index = opt.index this.index = opt.index
uni.setNavigationBarTitle({ document.title = opt.index == 0 ? "历史会议" : "草稿箱"
title: opt.index == 0 ? "历史会议" : "草稿箱"
});
}, },
onShow() { onShow() {
this.getData(); this.getData();