zhang_li
6 months ago
2 changed files with 191 additions and 189 deletions
@ -1,133 +1,76 @@ |
|||||
<!DOCTYPE html> |
<!DOCTYPE html> |
||||
<html> |
<html> |
||||
<head> |
<head> |
||||
<meta charset="utf-8"> |
<meta charset="utf-8"> |
||||
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> |
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> |
||||
<title></title> |
<title></title> |
||||
<script src="../../api/img-to-base64.js"></script> |
<script src="../../api/img-to-base64.js"></script> |
||||
<script type="text/javascript"> |
<script type="text/javascript"> |
||||
|
document.addEventListener('plusready', function() { |
||||
|
//console.log("所有plus api都应该在此事件发生后调用,否则会出现plus is undefined。") |
||||
|
|
||||
document.addEventListener('plusready', function(){ |
|
||||
//console.log("所有plus api都应该在此事件发生后调用,否则会出现plus is undefined。") |
|
||||
|
|
||||
|
}); |
||||
|
|
||||
}); |
</script> |
||||
// 解析URL参数 |
<style> |
||||
function getQueryParam(param) { |
.box { |
||||
var searchParams = new URLSearchParams(window.location.search); |
font-size: 14px; |
||||
return searchParams.get(param); |
display: flex; |
||||
} |
|
||||
|
|
||||
// 使用函数获取参数 |
} |
||||
document.addEventListener('DOMContentLoaded', function() { |
|
||||
// var itemNumber = getQueryParam('itemNumber'); |
|
||||
// var itemName = getQueryParam('itemName'); |
|
||||
// var tempFilePath = getQueryParam('tempFilePath') |
|
||||
// document.getElementById('name1').innerText = itemNumber; |
|
||||
// document.getElementById('name2').innerText = itemName; |
|
||||
// // document.getElementById('image1').src = barcodeImage; |
|
||||
// console.log(99,tempFilePath) |
|
||||
// pathToBase64(tempFilePath){ |
|
||||
|
|
||||
// } |
.left { |
||||
// pathToBase64(tempFilePath).then(base64 => { |
border-top: 1px solid #b1b1b1; |
||||
// document.getElementById('image1').src = base64; |
border-left: 1px solid #b1b1b1; |
||||
// }).catch(err => { |
flex: 1; |
||||
// console.log(err); |
} |
||||
// }) |
|
||||
// console.log(document.getElementById('name1')) |
|
||||
}); |
|
||||
|
|
||||
</script> |
.left-item { |
||||
<style> |
display: flex; |
||||
.box{ |
} |
||||
font-size: 14px; |
|
||||
display: flex; |
|
||||
|
|
||||
} |
.label { |
||||
.left{ |
border-bottom: 1px solid #b1b1b1; |
||||
border-top: 1px solid #b1b1b1; |
border-right: 1px solid #b1b1b1; |
||||
border-left: 1px solid #b1b1b1; |
width: 60px; |
||||
flex: 1; |
padding: 0px 5px; |
||||
} |
height: 67px; |
||||
.left-item{ |
line-height: 67px; |
||||
display: flex; |
} |
||||
} |
|
||||
.label{ |
.value { |
||||
border-bottom: 1px solid #b1b1b1; |
border-bottom: 1px solid #b1b1b1; |
||||
border-right: 1px solid #b1b1b1; |
border-right: 1px solid #b1b1b1; |
||||
width: 60px; |
padding: 0px 5px; |
||||
padding: 0px 5px; |
height: 67px; |
||||
height: 67px; |
flex: 1; |
||||
line-height: 67px; |
width: 0px; |
||||
} |
display: flex; |
||||
.value{ |
align-items: center; |
||||
border-bottom: 1px solid #b1b1b1; |
word-wrap: break-word; |
||||
border-right: 1px solid #b1b1b1; |
} |
||||
padding: 0px 5px; |
|
||||
height: 67px; |
.right { |
||||
flex: 1; |
width: 200px; |
||||
width: 0px; |
} |
||||
display: flex; |
|
||||
align-items: center; |
.image { |
||||
word-wrap: break-word; |
width: 100%; |
||||
} |
height: 202px; |
||||
.right{ |
border-bottom: 1px solid #b1b1b1; |
||||
width: 200px; |
border-top: 1px solid #b1b1b1; |
||||
} |
border-right: 1px solid #b1b1b1; |
||||
.image{ |
} |
||||
width: 100%; |
|
||||
height: 202px; |
.image img { |
||||
border-bottom: 1px solid #b1b1b1; |
width: calc(100% - 4px); |
||||
border-top: 1px solid #b1b1b1; |
height: calc(100% - 4px); |
||||
border-right: 1px solid #b1b1b1; |
margin: 2px; |
||||
} |
} |
||||
.image img{ |
</style> |
||||
width: calc(100% - 4px); |
</head> |
||||
height: calc(100% - 4px); |
<body> |
||||
margin: 2px; |
mainBody |
||||
} |
</body> |
||||
</style> |
|
||||
</head> |
|
||||
<body> |
|
||||
<div> |
|
||||
<div class="box"> |
|
||||
<div class="left"> |
|
||||
<div class="left-item"> |
|
||||
<div class="label">物品代码</div> |
|
||||
<div class="value" id="name1">replaceItemNumber</div> |
|
||||
</div> |
|
||||
<div class="left-item"> |
|
||||
<div class="label">物品名称</div> |
|
||||
<div class="value" id="name2">replaceItemName</div> |
|
||||
</div> |
|
||||
<div class="left-item"> |
|
||||
<div class="label">供应商</div> |
|
||||
<div class="value">replaceSupplierCode</div> |
|
||||
</div> |
|
||||
<div class="left-item"> |
|
||||
<div class="label">包装号</div> |
|
||||
<div class="value">replacePackageCode</div> |
|
||||
</div> |
|
||||
<div class="left-item"> |
|
||||
<div class="label">订单行</div> |
|
||||
<div class="value">replaceReferenceOrderRow</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
<div class="right"> |
|
||||
<div class="image"> |
|
||||
<img id='image1' src="replaceBase" alt="" /> |
|
||||
</div> |
|
||||
<div class="left-item"> |
|
||||
<div class="label">订单号</div> |
|
||||
<div class="value">replaceReferenceOrderCode</div> |
|
||||
</div> |
|
||||
<div class="left-item"> |
|
||||
<div class="label">数量</div> |
|
||||
<div class="value">replaceAmount</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</body> |
|
||||
</html> |
</html> |
Loading…
Reference in new issue