| | |
| | | |
| | | let VUE_APP_BASE_URL= null; |
| | | if (process.env.NODE_ENV == 'development') { |
| | | // VUE_APP_BASE_URL = 'http://192.168.0.38:8086' |
| | | // VUE_APP_BASE_URL = 'http://192.168.0.47:8086' |
| | | VUE_APP_BASE_URL = 'http://121.239.169.30:13001' |
| | | }else { |
| | | // VUE_APP_BASE_URL = 'http://192.168.0.47:8086' |
| | | VUE_APP_BASE_URL = 'http://121.239.169.30:13001' |
| | | } |
| | | |
| | |
| | | "name" : "应急响应", |
| | | "appid" : "__UNI__843A1A3", |
| | | "description" : "", |
| | | "versionName" : "1.0.1", |
| | | "versionName" : "1.1.0", |
| | | "versionCode" : 2, |
| | | "transformPx" : false, |
| | | "app-plus" : { |
| | |
| | | }, |
| | | toDetail(item) { |
| | | item.responsesRate = item.responsesRate.replace(/%/g, '%25'); |
| | | uni.setStorageSync('backFlag','current'); |
| | | uni.navigateTo({ |
| | | url: `/pages/tabBar/notice/detail?data=` + encodeURIComponent(JSON.stringify(item)) |
| | | }) |
| | |
| | | }, |
| | | toDetail(item) { |
| | | console.log("item",item) |
| | | uni.setStorageSync('backFlag','examine'); |
| | | console.log("uunget",uni.getStorageSync('backFlag')) |
| | | uni.navigateTo({ |
| | | url: `/pages/tabBar/notice/detail?data=` + encodeURIComponent(JSON.stringify(item)) |
| | | }) |
| | |
| | | }, |
| | | toDetail(item) { |
| | | console.log("item",item) |
| | | uni.setStorageSync('backFlag','info'); |
| | | uni.navigateTo({ |
| | | url: `/pages/tabBar/notice/detail?data=` + encodeURIComponent(JSON.stringify(item)) |
| | | }) |
| | |
| | | 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; |
| | |
| | | <view class="statusBar" :style="{ paddingTop: statusBarHeight + 'px' }"></view> |
| | | <!-- 真正的导航栏内容 --> |
| | | <view class="navBar"> |
| | | <u-icon name="arrow-left" color="black" size="17" @click="goBack" /> |
| | | <u-icon name="arrow-left" color="black" size="17" style="margin-left: 10px;" @click="goBack" /> |
| | | <view class="barText">响应措施反馈</view> |
| | | </view> |
| | | </view> |
| | |
| | | }).catch(err=>{}) |
| | | }, |
| | | goBack() { |
| | | uni.navigateBack({ |
| | | url:'./detail/detail' |
| | | }); |
| | | uni.navigateTo({ |
| | | url: `/pages/tabBar/notice/detail?data=` + encodeURIComponent(JSON.stringify(uni.getStorageSync("fdetailData"))) |
| | | }) |
| | | }, |
| | | |
| | | checkboxChange(n) { |
| | |
| | | icon: "none", |
| | | title: '提交成功' |
| | | }); |
| | | this.goBack(); |
| | | uni.navigateTo({ |
| | | url: `/pages/tabBar/notice/detail?data=` + encodeURIComponent(JSON.stringify(this.detailData)) |
| | | }) |
| | | }else{ |
| | | uni.$u.toast(res.msg) |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | // 删除图片 |
| | | deletePic(event) { |
| | |
| | | height: 50px; |
| | | display: flex; |
| | | flex-direction: row; |
| | | justify-content: center; |
| | | /* justify-content: center; */ |
| | | align-items: center; |
| | | box-shadow: 0 3px 12px rgba(0,0,0,0.05); |
| | | } |
| | |
| | | if (item.responseStatus === 1) { |
| | | this.updateResponseStatus(item); |
| | | } |
| | | uni.setStorageSync('fdetailData', item); |
| | | uni.setStorageSync('backFlag','notice'); |
| | | uni.navigateTo({ |
| | | url: `/pages/tabBar/notice/detail?data=` + encodeURIComponent(JSON.stringify(item)) |
| | | }) |
| | |
| | | getDetail({id: item.id}).then(res => { |
| | | console.log("response",res) |
| | | if(res.code == 100) { |
| | | uni.setStorageSync('backFlag','response'); |
| | | uni.navigateTo({ |
| | | url: `/pages/tabBar/notice/detail?data=` + encodeURIComponent(JSON.stringify(res.data)) |
| | | }) |
| | |
| | | getMeasureDetail({id: item.id}).then(res => { |
| | | if(res.code == 100){ |
| | | if(res.data.baseMeasures && res.data.baseMeasures.length>0 ){ |
| | | uni.setStorageSync('backMeasures','county') |
| | | uni.navigateTo({ |
| | | url: `/pages/tabBar/responsivity/showMeasures?data=` + encodeURIComponent(JSON.stringify(res.data)) |
| | | }) |
| | |
| | | <view class="statusBar" :style="{ paddingTop: statusBarHeight + 'px' }"></view> |
| | | <!-- 真正的导航栏内容 --> |
| | | <view class="navBar"> |
| | | <u-icon name="arrow-left" color="black" size="17" @click="goBack" /> |
| | | <u-icon name="arrow-left" color="black" style="margin-left: 10px;" size="17" @click="goBack" /> |
| | | <view class="barText">响应措施反馈</view> |
| | | </view> |
| | | </view> |
| | |
| | | }, |
| | | methods: { |
| | | goBack() { |
| | | uni.navigateBack({ |
| | | url:'/pages/tabBar/responsivity/villageResponsivity' |
| | | }); |
| | | console.log(uni.getStorageSync('backMeasures'),'222222') |
| | | if(uni.getStorageSync('backMeasures') == 'detail'){ |
| | | uni.navigateTo({ |
| | | url: `/pages/tabBar/notice/detail?data=` + encodeURIComponent(JSON.stringify(uni.getStorageSync("fdetailData"))) |
| | | }) |
| | | }else if (uni.getStorageSync('backMeasures') == 'county'){ |
| | | uni.navigateTo({ |
| | | url: '/pages/tabBar/responsivity/countyResponsivity' |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | //预览图片 |
| | | previewSqs(item,index) { |
| | |
| | | height: 50px; |
| | | display: flex; |
| | | flex-direction: row; |
| | | justify-content: center; |
| | | /* justify-content: center; */ |
| | | align-items: center; |
| | | box-shadow: 0 3px 12px rgba(0,0,0,0.05); |
| | | } |