diff --git a/manifest.json b/manifest.json index 40f8abe..2c78a10 100644 --- a/manifest.json +++ b/manifest.json @@ -67,9 +67,9 @@ "postcss" : true }, "plugins": { - "chooseLocation": { - "version": "1.0.10", - "provider": "wx76a9a06e5b4e693e" + "routePlan": { + "version": "1.0.18", + "provider": "wx50b5593e81dd937a" } }, "usingComponents" : true, diff --git a/pages.json b/pages.json index ad54d29..2e11181 100644 --- a/pages.json +++ b/pages.json @@ -124,6 +124,12 @@ "style": { "navigationBarTitleText": "" } + }, + { + "path": "planDetail", + "style": { + "navigationBarTitleText": "" + } } ] }, diff --git a/pages/askForLeave/detail.vue b/pages/askForLeave/detail.vue index 0c90ccb..d0702e4 100644 --- a/pages/askForLeave/detail.vue +++ b/pages/askForLeave/detail.vue @@ -3,13 +3,13 @@
- + {{ baseData.LEAVE_PERSON+"【"+baseData.DEPARTMENT_NAME+"】" }} - +
{{baseData.DURATION_DAYS}} @@ -32,20 +32,20 @@
{{baseData.LEAVE_REASON}}
- - + +
- + - + 审核 驳回 - +
- - + +
@@ -70,7 +70,7 @@ - +
@@ -79,21 +79,21 @@ import processUnit from '@/components/auditingProcess/item.vue' import filesUnit from '@/components/filesComponent/fileUnit.vue' export default { - data() { + data() { return { baseData: { - + }, isShow: false, loadingType: 1, foundType:0, - + cardShow:true, isSign: false, isResolve: false, signInfo: { - + } } }, @@ -103,7 +103,7 @@ }, computed: { ...mapGetters({'users':'getUser'}), - + }, methods: { getDays (value) { @@ -117,29 +117,29 @@ _this.$request.$get('GetStaffLeaveDetail',{ FinanceProinstId: id }).then(rs => { - + if(!rs.ResultCode ||rs.ResultCode!='100') { _this.isShow = false - + }else{ _this.isShow = true } uni.hideLoading() - + _this.baseData = rs.Data - + if(_this.baseData.NOWSTAFF_ID==_this.users.UserId) { // 判断是否是当前审核人 _this.isResolve= true } _this.$forceUpdate() - + }) }, showPop(type) { let _this = this let url = '' switch (type) { - case 4000: + case 4000: url = '/pages/auditingPop/transfer?businessType=7000&PROINST_ID='+_this.baseData.FINANCEPROINST_ID+'&NOWACTINST_ID='+_this.baseData.NOWACTDEF_IDS break; case 2000: @@ -156,12 +156,12 @@ uni.showLoading({ title:'正在加载' }) - + this.getDetail(option.id) - + let _this = this uni.$on('7000', function (data){ - + if(data) { uni.showLoading({ title:'正在加载' @@ -171,15 +171,15 @@ }); }, onShow() { - + }, onUnload() { this.$util.addUserBehavior() uni.$off('7000'); }, onHide() { - - + + } } @@ -243,7 +243,7 @@ right: -35upx; z-index: 1; top: -12upx; - + } .card-content { justify-content: center; @@ -264,11 +264,11 @@ .leave-value { font-size: 22upx; background-color: #EDB86C; - + height: 40upx; color: #fff; border-radius: 20upx; - padding: 0 16upx; + padding: 0 16upx; justify-content: flex-start; display: flex; align-items: center; diff --git a/pages/commercialBI/businessPortrait.vue b/pages/commercialBI/businessPortrait.vue index 25f993d..64f1f57 100644 --- a/pages/commercialBI/businessPortrait.vue +++ b/pages/commercialBI/businessPortrait.vue @@ -1,6 +1,6 @@ @@ -169,33 +174,25 @@ export default { this.menu = uni.getMenuButtonBoundingClientRect() if (option.isPicker==='false'){ this.isShowPicker = false - this.getServiceList() - this.getList(option) }else if (option.isPicker==='true'){ this.isShowPicker = true - let seat = uni.getStorageSync('seatInfo') - this.handleSearch(seat.longitude,seat.latitude) - this.getServiceList() - }else{ - this.getServiceList() - this.getList(option) } }, + onShow(){ + let seat = uni.getStorageSync('currentService') + this.handleSearch(seat) + let pageList = getCurrentPages() + console.log('pageList',pageList) + //清理页面栈的方法 + this.clearPage() + }, methods:{ - async handleSearch(longitude,latitude){ - let req = { - longitude:longitude, - Province_Code:'340000', - latitude:latitude, - } - console.log(req) - const data = await request.$webGet('CommercialApi/BaseInfo/GetServerpartList',req) - let id =data.Result_Data.List[0].SERVERPART_ID - this.info = data.Result_Data.List[0] + async handleSearch(seat){ + console.log('seat',seat) let reqs = { - longitude:longitude, - ServerpartId:id, - latitude:latitude + longitude:seat.longitude, + ServerpartId:seat.Serverpart_ID, + latitude:seat.latitude } const totalData = await request.$webGet('CommercialApi/BaseInfo/GetServerpartInfo',reqs) this.info = totalData.Result_Data @@ -210,20 +207,23 @@ export default { } this.typeList[1].isShow = this.info.STARTDATE }, - //获取片区列表 - async getServiceList(){ - let req = { - Province_Code:'340000' - } - const data = await request.$webGet('CommercialApi/BaseInfo/GetSPRegionList',req) - console.log('data22222',data) - this.array = data.Result_Data.List - }, //选择服务区 - handleChangeService(e){ - uni.redirectTo({ - url:'/pages/map/index' - }) + handleChangeService(){ + let currentService = uni.getStorageSync('currentService') + let lastDay = uni.getStorageSync('lastDay') + let pageList = getCurrentPages() + console.log('pageList',pageList) + if (pageList.length>2){ + if (this.isShowPicker){ + uni.navigateBack({ + delta: 1 + }) + } + }else{ + uni.navigateTo({ + url:`/pages/map/index?time=${lastDay}&serviceInfo=${JSON.stringify(currentService)}` + }) + } }, async getList(option){ let req = { @@ -248,10 +248,38 @@ export default { }, //返回上一级页面 handleBack(){ - uni.navigateBack({ - delta: 1 + uni.switchTab({ + url: '/pages/userCenter/userCenter' }) }, + //点击跳转导航页 + handleGoMap(){ + let key='STWBZ-DKCR4-J6UUF-FRD5I-3EBN2-GDBOT' + let referer ='goMap' + //拿到用户当前的位置 + let user = uni.getStorageSync('seatInfo') + let startPoint = { + name:'我的位置', + latitude:user.latitude, + longitude:user.longitude + } + //拿到当前已经选中的服务区的位置 也就是终点 + let seat = uni.getStorageSync('currentService') + let endPoint = { + name:seat.SERVERPART_NAME, + latitude:seat.latitude, + longitude:seat.longitude + } + wx.navigateTo({ + url: `plugin://routePlan/index?key=${key}&referer=${referer}&endPoint=${JSON.stringify(endPoint)}&startPoint=${JSON.stringify(startPoint)}` + }); + }, + //清理页面栈的方法 + clearPage(){ + console.log(11111) + let pageList = getCurrentPages() + + } } } @@ -260,6 +288,8 @@ export default { .main{ width: 100%; max-width: 100vw; + height: 100vh; + box-sizing: border-box; position: relative; .leftArrow{ width: 100%; @@ -320,221 +350,242 @@ export default { height: 100%; } } - .info{ - width: 100%; - box-sizing: border-box; - background: #FFFFFF; - border-radius: 16px 16px 1px 1px; - transform: translateY(-16px); - padding: 16px 16px 16px; - .top{ - display: flex; - justify-content: space-between; - .left{ - display: flex; - align-items: center; - .title{ - font-size: 18px; - font-family: PingFangSC-Semibold, PingFang SC; - font-weight: 600; - color: #160002; - line-height: 26px; - } - .status{ - font-size: 12px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #160002; - line-height: 18px; - padding: 0 6px; - background: #EAEAEA; - border-radius: 2px; - margin-left: 8px; - } - } - .iconBox{ - width: 28px; - height: 28px; - border: 1px solid #F1F1F1; - border-radius: 50%; - .icon{ - width: 100%; - height: 100%; - } - } - } - .address{ - font-size: 14px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #160002; - line-height: 20px; - margin-top: 4px; - } - .typeList{ - width: 100%; - display: flex; - flex-flow: wrap; - margin-top: 16px; - .typeItem{ - width: calc((100% - 24px)/3); - height: 66px; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - background: #F7F7F7; - border-radius: 4px; - margin-bottom: 8px; - margin-right: 8px; - .img{ - width: 24px; - height: 24px; - } - .text{ - font-size: 14px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #160002; - line-height: 20px; - } - } - } - .baseInfo,.areaInfo{ - margin-top: 8px; - .title{ - font-size: 14px; - font-family: PingFangSC-Semibold, PingFang SC; - font-weight: 600; - color: #160002; - line-height: 20px; - } - .word{ - display: flex; - margin-top: 8px; - .subTitle{ - font-size: 14px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #786B6C; - line-height: 20px; - margin-right: 8px; - min-width: 60px; - } - .text{ - flex: 1; - font-size: 14px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #160002; - line-height: 20px; - display: inline-block; - } - .subTitleArea{ - font-size: 14px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #786B6C; - line-height: 20px; - display: inline-block; - margin-right: 8px; - min-width: 80px; - .text{ - font-size: 14px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #160002; - line-height: 20px; - } - } - .value{ - font-size: 14px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #160002; - line-height: 20px; - } - - } - - } - } - .service{ - background: #fff; - padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); - .serviceItem{ - margin-top: 4px; - .title{ - font-size: 14px; - font-family: PingFangSC-Semibold, PingFang SC; - font-weight: 600; - color: #160002; - line-height: 20px; - } - .box{ - margin-top: 12px; + .menu{ + width:100%; + height: calc(100vh - 196px); + position: relative; + border-radius: 16px 16px 1px 1px; + transform: translateY(-16px); + .top{ + height: 40px; + width: calc(100% - 32px); + position: fixed; + top: 0; + box-sizing: border-box; + padding-top: 16px; + left: 16px; + background: #fff; + display: flex; + justify-content: space-between; + .left{ display: flex; - .left{ + align-items: center; + .title{ + font-size: 18px; + font-family: PingFangSC-Semibold, PingFang SC; + font-weight: 600; + color: #160002; + line-height: 26px; + } + .status{ + font-size: 12px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #160002; + line-height: 18px; + padding: 0 6px; + background: #EAEAEA; + border-radius: 2px; + margin-left: 8px; + } + } + .iconBox{ + width: 28px; + height: 28px; + border: 1px solid #F1F1F1; + border-radius: 50%; + .icon{ + width: 100%; + height: 100%; + } + } + } + .scroll{ + width:100%; + height: calc(100%); + overflow-y: scroll; + border-radius: 16px 16px 1px 1px; + .info{ + width: 100%; + box-sizing: border-box; + background: #FFFFFF; + padding: 16px 16px 16px; + z-index:100; + .address{ + font-size: 14px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #160002; + line-height: 20px; + margin-top: 4px; + } + .typeList{ + width: 100%; display: flex; - flex-direction: column; - align-items: center; - width: 60px; - margin-right: 36px; - .boxImg{ - width: 25px; - height: 25px; - } - .textTitle{ - font-size: 12px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #160002; - line-height: 16px; + flex-flow: wrap; + margin-top: 16px; + .typeItem{ + width: calc((100% - 24px)/3); + height: 66px; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + background: #F7F7F7; + border-radius: 4px; + margin-bottom: 8px; + margin-right: 8px; + .img{ + width: 24px; + height: 24px; + } + .text{ + font-size: 14px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #160002; + line-height: 20px; + } } } - .right{ - flex: 1; - display: flex; - .item{ - width: 50%; + .baseInfo,.areaInfo{ + margin-top: 8px; + .title{ + font-size: 14px; + font-family: PingFangSC-Semibold, PingFang SC; + font-weight: 600; + color: #160002; + line-height: 20px; + } + .word{ + display: flex; + margin-top: 8px; + .subTitle{ + font-size: 14px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #786B6C; + line-height: 20px; + margin-right: 8px; + min-width: 60px; + } .text{ - font-size: 12px; + flex: 1; + font-size: 14px; font-family: PingFangSC-Regular, PingFang SC; font-weight: 400; color: #160002; - line-height: 18px; - margin-bottom:4px; - } - .unText{ - font-size: 12px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #A69E9F; - line-height: 18px; - text-decoration: line-through; - } - .unit{ - font-size: 12px; - font-family: PingFangSC-Semibold, PingFang SC; - font-weight: 600; - color: #160002; - line-height: 18px; - } - .model{ - font-size: 12px; - font-family: PingFangSC-Regular, PingFang SC; - font-weight: 400; - color: #160002; - line-height: 18px; - padding:0 6px; - background: #EAEAEA; - border-radius: 2px; + line-height: 20px; display: inline-block; } + .subTitleArea{ + font-size: 14px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #786B6C; + line-height: 20px; + display: inline-block; + margin-right: 8px; + min-width: 80px; + .text{ + font-size: 14px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #160002; + line-height: 20px; + } + } + .value{ + font-size: 14px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #160002; + line-height: 20px; + } + + } + + } + } + .service{ + background: #fff; + padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); + .serviceItem{ + margin-top: 4px; + .title{ + font-size: 14px; + font-family: PingFangSC-Semibold, PingFang SC; + font-weight: 600; + color: #160002; + line-height: 20px; + } + .box{ + margin-top: 12px; + display: flex; + .left{ + display: flex; + flex-direction: column; + align-items: center; + width: 60px; + margin-right: 36px; + .boxImg{ + width: 25px; + height: 25px; + } + .textTitle{ + font-size: 12px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #160002; + line-height: 16px; + } + } + .right{ + flex: 1; + display: flex; + .item{ + width: 50%; + .text{ + font-size: 12px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #160002; + line-height: 18px; + margin-bottom:4px; + } + .unText{ + font-size: 12px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #A69E9F; + line-height: 18px; + text-decoration: line-through; + } + .unit{ + font-size: 12px; + font-family: PingFangSC-Semibold, PingFang SC; + font-weight: 600; + color: #160002; + line-height: 18px; + } + .model{ + font-size: 12px; + font-family: PingFangSC-Regular, PingFang SC; + font-weight: 400; + color: #160002; + line-height: 18px; + padding:0 6px; + background: #EAEAEA; + border-radius: 2px; + display: inline-block; + } + } + } } } } } } + } diff --git a/pages/map/index.vue b/pages/map/index.vue index 7f77eec..6a96ff5 100644 --- a/pages/map/index.vue +++ b/pages/map/index.vue @@ -84,26 +84,32 @@ export default { markers:'',//地图属性 covers:'',//地图属性 isFirst:true,//是否是第一次进页面 + area:[],//片区列表 + serviceInfo:{} } }, onLoad(option){ console.log('option',option) - let serviceInfo = JSON.parse(option.serviceInfo) + this.serviceInfo = JSON.parse(option.serviceInfo) if (option.chartType){ this.chartType = true } + this.page = option.page + }, + onShow(){ let userSeat = uni.getStorageSync('seatInfo') this.userLatitude = userSeat.latitude this.userLongitude = userSeat.longitude - this.page = option.page + let seat = uni.getStorageSync('currentService') if (seat){ console.log('seat',seat) this.longitude = seat.longitude this.latitude = seat.latitude + this.area = seat.SPREGIONTYPE_NAME this.addMarkers(seat) }else{ - this.getServiceDetail(serviceInfo.Serverpart_ID) + this.getServiceDetail(this.serviceInfo.Serverpart_ID) } // 获取手机参数 let systemInfo = uni.getSystemInfoSync() @@ -116,20 +122,29 @@ export default { // this.getListData() }, onHide(){ + this.isShowMap = true + }, + onUnload(){ this.isShowMap = false }, methods:{ //跳转到腾讯地图 handleGomap(item){ + let seat = uni.getStorageSync('currentService') let key='STWBZ-DKCR4-J6UUF-FRD5I-3EBN2-GDBOT' let referer ='goMap' + let startPoint = { + name:seat.SERVERPART_NAME, + latitude:seat.latitude, + longitude:seat.longitude + } let endPoint={ 'name': item.SERVERPART_NAME, latitude: item.SERVERPART_Y, longitude: item.SERVERPART_X } wx.navigateTo({ - url: `plugin://chooseLocation/index?key=${key}&referer=${referer}&location=${JSON.stringify(endPoint)}` + url: `plugin://routePlan/index?key=${key}&referer=${referer}&endPoint=${JSON.stringify(endPoint)}&startPoint=${JSON.stringify(startPoint)}` }); }, //返回上一级页面 @@ -157,6 +172,14 @@ export default { } const data = await request.$webGet('CommercialApi/BaseInfo/GetSPRegionList',req) this.array = data.Result_Data.List + console.log('this.array',this.array) + if (this.area){ + this.array.forEach((item,index)=>{ + if (item.name === this.area){ + this.selectIndex = index + } + }) + } await this.getLocation() }, //选择服务区 @@ -179,23 +202,27 @@ export default { //跳转相对应的服务区详情界面 handleGoDetail(id,item){ console.log('item',item) + let res = { + SERVERPART_NAME:item.SERVERPART_NAME,//服务区 + SPREGIONTYPE_NAME:item.SPREGIONTYPE_NAME,//片区 + Serverpart_ID:item.SERVERPART_ID, + longitude:item.SERVERPART_X, + latitude:item.SERVERPART_Y, + } + uni.setStorageSync('currentService',res) //当前选中服务区信息 + let pageList = getCurrentPages() if (this.chartType){ - let res = { - SERVERPART_NAME:item.SERVERPART_NAME,//服务区 - SPREGIONTYPE_NAME:item.SPREGIONTYPE_NAME,//片区 - Serverpart_ID:item.SERVERPART_ID, - longitude:item.SERVERPART_X, - latitude:item.SERVERPART_Y, + if (pageList.length>2){ + uni.navigateBack({ + delta: 1 + }) } - uni.setStorageSync('currentService',res) //当前选中服务区信息 - let time = uni.getStorageSync('lastDay') - uni.redirectTo({ - url:`${this.page}?serviceInfo=${JSON.stringify(res)}&chartType=${true}&time=${time}` - }) }else{ - uni.navigateTo({ - url:`/pages/map/detail?SERVERPART_ID=${id}&isPicker=${false}` - }) + if (pageList.length>2){ + uni.navigateBack({ + delta: 1 + }) + } } }, async getListData(){ @@ -254,11 +281,7 @@ export default { id: value.Serverpart_ID, latitude: value.latitude, longitude: value.longitude, - height: 30, - width: 20, callout: { - padding: '6', - borderRadius: '4', display: 'ALWAYS' } }) diff --git a/pages/userCenter/components/userList.vue b/pages/userCenter/components/userList.vue index d334f42..deee3bf 100644 --- a/pages/userCenter/components/userList.vue +++ b/pages/userCenter/components/userList.vue @@ -77,8 +77,10 @@ export default { console.log('item',item) if (item.value!==3 && item.value!==4){ if (item.value===2){ - this.$util.toNextRoute('navigateTo', `${item.homeUrl}?time=${this.lastDay}&Serverpart_ID=372`) - }else{ + let currentService = uni.getStorageSync('currentService') + console.log('currentService',currentService) + this.$util.toNextRoute('navigateTo', `${item.homeUrl}?time=${this.lastDay}&serviceInfo=${JSON.stringify(currentService)}&type=userCenter`) + } else{ this.$util.toNextRoute('navigateTo', item.homeUrl) } }else if(item.value === 3 && item.isNotice || item.value ===4 && item.isNotice){ diff --git a/static/images/leave/spwq.png b/static/images/leave/spwq.png deleted file mode 100644 index 460ec83..0000000 Binary files a/static/images/leave/spwq.png and /dev/null differ diff --git a/static/images/no-data.png b/static/images/no-data.png deleted file mode 100644 index a27a501..0000000 Binary files a/static/images/no-data.png and /dev/null differ diff --git a/static/images/no-wifi.png b/static/images/no-wifi.png deleted file mode 100644 index b174a24..0000000 Binary files a/static/images/no-wifi.png and /dev/null differ diff --git a/static/images/revenue/140000.png b/static/images/revenue/140000.png deleted file mode 100644 index cd89b7d..0000000 Binary files a/static/images/revenue/140000.png and /dev/null differ diff --git a/static/images/revenue/340000.png b/static/images/revenue/340000.png deleted file mode 100644 index a239f32..0000000 Binary files a/static/images/revenue/340000.png and /dev/null differ diff --git a/static/images/revenue/450000.png b/static/images/revenue/450000.png deleted file mode 100644 index 1df2a86..0000000 Binary files a/static/images/revenue/450000.png and /dev/null differ diff --git a/static/images/revenue/510000.png b/static/images/revenue/510000.png deleted file mode 100644 index 0cf2b69..0000000 Binary files a/static/images/revenue/510000.png and /dev/null differ diff --git a/static/images/revenue/520000.png b/static/images/revenue/520000.png deleted file mode 100644 index c190484..0000000 Binary files a/static/images/revenue/520000.png and /dev/null differ diff --git a/static/images/revenue/banner.png b/static/images/revenue/banner.png deleted file mode 100644 index e8a70e3..0000000 Binary files a/static/images/revenue/banner.png and /dev/null differ