| | |
| | | label { |
| | | font-size: 1.20rem; |
| | | } |
| | | .mui-bar-nav { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | } |
| | | .mui-title { |
| | | flex: 1; |
| | | text-align: center; |
| | | margin: 0 15px; /* 防止标题挤压两侧按钮 */ |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | |
| | | <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> |
| | | <h1 class="mui-title font">巡检录入 |
| | | </h1> |
| | | <span class="mui-icon mui-icon-camera title-right" style="color:#0062CC" id="cameraBtn"></span> |
| | | |
| | | </header> |
| | | |
| | | <div class="mui-content"> |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | function clicked(url, f1, urlId) { |
| | | OpenWindow(f1, url, { |
| | | urlId: urlId, |
| | | inputId: f1 |
| | | }); |
| | | }; |
| | | |
| | | document.getElementById('cameraBtn').addEventListener('tap', function() { |
| | | const mid = order; // 检验单号 |
| | | const pid = fdid; // 当前项目 ID |
| | | |
| | | if (!mid || !pid) { |
| | | mui.toast("请先确认检验项目"); |
| | | return; |
| | | } |
| | | console.log("22555555") |
| | | mui.openWindow({ |
| | | id: 'pictrue_add', |
| | | url: 'ftp/pictrue_add.html?mid=' + mid + '&pid=' + pid+ '&type=71', |
| | | waiting: { |
| | | autoShow: true, |
| | | title: '加载中' |
| | | } |
| | | }); |
| | | }); |
| | | </script> |
| | | </body> |
| | | </html> |