3 files modified
1 files renamed
2 files deleted
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | onLoad((obj) => { |
| | | // const h5Params = obj?.cs && JSON.parse(obj?.cs) |
| | | // console.log('h5Params', h5Params) |
| | | // h5Params && viewMessage({detail: {data: [h5Params.data]}}) |
| | | }) |
| | | |
| | | onShow(() => { |
| | | if (window && window.addEventListener) |
| | | window.addEventListener("message", messageFun); |
| | |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/placeholder/placeholder", |
| | | "style": { |
| | | "navigationBarTitleText": "占位页面" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/dispatcher/index", |
| | | "style": { |
| | | "navigationStyle": "custom" |
| | |
| | | "style": { |
| | | "navigationBarTitleText": "404", |
| | | "navigationStyle": "custom" |
| | | } |
| | | }, |
| | | { |
| | | "path": "theme/index", |
| | | "style": { |
| | | "navigationBarTitleText": "主题设置" |
| | | } |
| | | }, |
| | | { |
| | | "path": "taskDetail/index", |
| | | "style": { |
| | | "navigationBarTitleText": "任务详情" |
| | | } |
| | | }, |
| | | { |
| | | "path": "inProgress/index", |
| | | "style": { |
| | | "navigationBarTitleText": "任务详情" |
| | | } |
| | | }, |
| | | { |
| | |
| | | } |
| | | }, |
| | | { |
| | | "path": "taskDetail/inExecution/index", |
| | | "path": "taskDetail/inProgress/index", |
| | | "style": { |
| | | "navigationBarTitleText": "执行中" |
| | | "navigationBarTitleText": "任务详情" |
| | | } |
| | | }, |
| | | { |
| | |
| | | "navigationBarBackgroundColor": "#F8F8F8", |
| | | "backgroundColor": "#F8F8F8" |
| | | } |
| | | } |
| | | } |
| | |
| | | if (data.type === 'taskDetails'){ |
| | | if ([1,2].includes(data.rowItem.status)){ |
| | | uni.navigateTo({ |
| | | url: `/subPackages/inProgress/index?wayLineJobInfoId=${data.rowItem.id}` |
| | | url: `/subPackages/taskDetail/inProgress/index?wayLineJobInfoId=${data.rowItem.id}` |
| | | }); |
| | | } else { |
| | | uni.navigateTo({ |
| | |
| | | // 清除数据 |
| | | const encodedData = encodeURIComponent(JSON.stringify({ device_sn: '' })) |
| | | uni.setStorageSync('webview_params', encodedData); |
| | | |
| | | |
| | | uni.setStorageSync('lastTab', 'task'); |
| | | uni.setTabBarItem({ |
| | | index: 2, |
| | |
| | | </script> |
| | | <style scoped lang="scss"> |
| | | |
| | | </style> |
| | | </style> |