| | |
| | | directViewUrl: '', |
| | | cityMessage: '响应措施反馈', |
| | | measureData: {}, |
| | | urls: [] |
| | | urls: [], |
| | | backFlag: '' |
| | | } |
| | | }, |
| | | onLoad:function(options){ |
| | |
| | | if(this.unitType == 4 && this.role == '工作人员'){ |
| | | this.getMeasures(); |
| | | } |
| | | |
| | | // this.backFlag = uni.getStorageSync('backFlag') |
| | | // console.log(this.backFlag,'1111') |
| | | }, |
| | | methods: { |
| | | goBack() { |
| | | uni.navigateBack({ |
| | | url:'./notice/notice' |
| | | }); |
| | | console.log(uni.getStorageSync('backFlag'),'1111') |
| | | if(uni.getStorageSync('backFlag') == 'notice'){ |
| | | uni.switchTab({ |
| | | url: '/pages/tabBar/notice/notice' |
| | | }) |
| | | }else if (uni.getStorageSync('backFlag') == 'info') { |
| | | uni.switchTab({ |
| | | url: '/pages/tabBar/information/information' |
| | | }) |
| | | }else if (uni.getStorageSync('backFlag') == 'examine') { |
| | | uni.switchTab({ |
| | | url: '/pages/tabBar/examine/examine' |
| | | }) |
| | | }else if (uni.getStorageSync('backFlag') == 'current') { |
| | | uni.switchTab({ |
| | | url: '/pages/tabBar/current/current' |
| | | }) |
| | | }else if ( uni.getStorageSync('backFlag') == 'response'){ |
| | | uni.switchTab({ |
| | | url: '/pages/tabBar/response/response' |
| | | }) |
| | | } |
| | | }, |
| | | loginOut() { |
| | | uni.clearStorageSync(); |
| | |
| | | }, |
| | | goMeasures() { |
| | | if(this.cityMessage == '查看措施反馈' ){ |
| | | uni.setStorageSync('backMeasures','detail') |
| | | this.measureData.id = this.detailData.id |
| | | uni.navigateTo({ |
| | | url: `/pages/tabBar/responsivity/showMeasures?data=` + encodeURIComponent(JSON.stringify(this.measureData)) |
| | | }) |
| | |
| | | box-shadow: 0 3px 12px rgba(0,0,0,0.05); |
| | | } |
| | | .barText{ |
| | | margin-left: -20px; |
| | | flex: 1; |
| | | /* margin-left: 20px; */ |
| | | text-align: center; |