添加 web页面内嵌模块 添加检验报告内嵌页面访问
| | |
| | | "style": { |
| | | "navigationBarTitleText": "还样单" |
| | | } |
| | | }, |
| | | { |
| | | "path" : "pages/InnerHtmlPage/index", |
| | | "style" : |
| | | { |
| | | "navigationBarTitleText" : "" |
| | | } |
| | | } |
| | | ], |
| | | "tabBar": { |
| New file |
| | |
| | | <template> |
| | | <view> |
| | | <web-view :src="targetSrc"></web-view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | targetSrc: '', |
| | | }; |
| | | }, |
| | | onLoad(e) { |
| | | this.targetSrc = e.src |
| | | if (e.pageTitle) { |
| | | uni.setNavigationBarTitle({ |
| | | title: e.pageTitle |
| | | }) |
| | | } |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | |
| | | </style> |
| | |
| | | <script> |
| | | import { CommonUtils } from '../../utils/common' |
| | | import { getMenuList, setMenuList } from '../../utils/menuListApp' |
| | | export default { |
| | | import { getUserInfo } from '../../utils/auth' |
| | | export default { |
| | | data() { |
| | | return { |
| | | updateCount: 0, |
| | |
| | | id: 31, |
| | | hidden: !this.judgeHidden(), |
| | | }, |
| | | // , { |
| | | { |
| | | img: '../../static/icon/icon8.png', |
| | | text: '检验报告', |
| | | url: `/pages/InnerHtmlPage/index?src=http://172.16.72.15:8999/index.aspx?name=${getUserInfo()['HICNumber']}&pageTitle=检验报告`, |
| | | id: 32, |
| | | hidden: false, |
| | | }, |
| | | // { |
| | | // img: '../../static/icon/icon1.png', |
| | | // text: '设备档案查询', |
| | | // tip: '查看详情', |
| | |
| | | setServerUrl(url) { |
| | | this.serverUrl = url |
| | | } |
| | | |
| | | getServerUrl() { |
| | | return this.serverUrl |
| | | } |
| | | |
| | | |
| | | |
| | | // 防抖函数 |
| | | debounce(func, delay, immediate = false) { |