| | |
| | | imageUrlArray.forEach(function(url, index) { |
| | | var img = document.createElement('img'); |
| | | img.setAttribute('src', url); |
| | | img.setAttribute('style', 'width: 100px; height: 100px; cursor: pointer;'); |
| | | img.setAttribute('style', 'width: 100px; height: 100px; cursor: pointer;margin: 10px'); |
| | | img.setAttribute('title', '查看图片'); |
| | | img.setAttribute('data-id', ids); |
| | | img.addEventListener('click', function() { |
| | | showPicture(this.getAttribute('data-id'), 'preRectifyPhoto'); |
| | | // showPicture(this.getAttribute('data-id'), 'preRectifyPhoto'); |
| | | openPicture(url) |
| | | }); |
| | | imageContainer.appendChild(img); |
| | | }); |
| | |
| | | $.operate.openDetailInfo("查看图片", urlLast); |
| | | } |
| | | |
| | | function openPicture(url) { |
| | | window.open(url) |
| | | } |
| | | |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | imageUrlArray.forEach(function(url, index) { |
| | | var img = document.createElement('img'); |
| | | img.setAttribute('src', url); |
| | | img.setAttribute('style', 'width: 100px; height: 100px; cursor: pointer;'); |
| | | img.setAttribute('style', 'width: 100px; height: 100px; cursor: pointer;margin: 10px'); |
| | | img.setAttribute('title', '查看图片'); |
| | | img.setAttribute('data-id', ids); |
| | | img.addEventListener('click', function() { |
| | | showPicture(this.getAttribute('data-id'), 'preRectifyPhoto'); |
| | | // showPicture(this.getAttribute('data-id'), 'preRectifyPhoto'); |
| | | openPicture(url) |
| | | }); |
| | | imageContainer.appendChild(img); |
| | | }); |
| | |
| | | var urlLast = showPictureUrl.replace("{type}", type).replace("{id}", id); |
| | | $.operate.openDetailInfo("查看图片", urlLast); |
| | | } |
| | | function openPicture(url) { |
| | | window.open(url) |
| | | } |
| | | |
| | | </script> |
| | | </body> |
| | |
| | | imageUrlArray.forEach(function(url, index) { |
| | | var img = document.createElement('img'); |
| | | img.setAttribute('src', url); |
| | | img.setAttribute('style', 'width: 100px; height: 100px; cursor: pointer;'); |
| | | img.setAttribute('style', 'width: 100px; height: 100px; cursor: pointer;margin: 10px'); |
| | | img.setAttribute('title', '查看图片'); |
| | | img.setAttribute('data-id', ids); |
| | | img.addEventListener('click', function() { |
| | | showPicture(this.getAttribute('data-id'), 'preRectifyPhoto'); |
| | | // showPicture(this.getAttribute('data-id'), 'preRectifyPhoto'); |
| | | openPicture(url) |
| | | }); |
| | | imageContainer.appendChild(img); |
| | | }); |
| | |
| | | var urlLast = showPictureUrl.replace("{type}", type).replace("{id}", id); |
| | | $.operate.openDetailInfo("查看图片", urlLast); |
| | | } |
| | | function openPicture(url) { |
| | | window.open(url) |
| | | } |
| | | |
| | | </script> |
| | | </body> |