|
@@ -71,7 +71,7 @@
|
|
|
<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>零件图片:</label>
|
|
|
<div class="formControls col-xs-8 col-sm-9" id="fileDiv">
|
|
|
<input type="file" name="file" id="fileid" style="opacity: 0; position: absolute; width: 90px;height: 80px;">
|
|
|
- <img alt="介绍图" src="/common/images/pts/addparts.jpg" id="partsImg" width="90" height="80">
|
|
|
+ <img alt="介绍图" src="${path}/common/images/pts/addparts.jpg" id="partsImg" width="90" height="80">
|
|
|
<input type="hidden" id="componentsImg" name="componentsImg" value=""/>
|
|
|
<#--<button type="button" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);" id="uploadSubmit"><i class="Hui-iconfont"></i> 上传</button>-->
|
|
|
</div>
|
|
@@ -297,7 +297,7 @@
|
|
|
success: function (data) {
|
|
|
if(data.returnCode == 200){
|
|
|
$('#componentsImg').val(data.returnMsg.imgUrl);
|
|
|
- $('#partsImg').attr("src",data.returnMsg.imgUrl);
|
|
|
+ $('#partsImg').attr("src",${path}data.returnMsg.imgUrl);
|
|
|
$("#fileid").remove();
|
|
|
/*<input type="file" name="file" id="fileid" style="opacity: 0; position: absolute; width: 90px;height: 80px;">*/
|
|
|
$("#fileDiv").prepend('<input type="file" name="file" id="fileid" style="opacity: 0; position: absolute; width: 90px;height: 80px;" onchange="fileUpload()">');
|