|
|
@@ -26,8 +26,8 @@
|
|
|
position: relative;
|
|
|
}
|
|
|
.update-img .update-big-img .previewImage img{
|
|
|
- width: 256px;
|
|
|
- height: 256px;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
}
|
|
|
.update-img .update-file-btn{
|
|
|
width: 244px;
|
|
|
@@ -88,7 +88,7 @@
|
|
|
}
|
|
|
.uploadImage{
|
|
|
width: 100%;
|
|
|
- height: 30px;
|
|
|
+ height:100%;
|
|
|
z-index: 10;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
@@ -311,11 +311,11 @@
|
|
|
<li class="wuliao_list clearboth">
|
|
|
<div class="name pull-left" style="width: 60px">规格书:</div>
|
|
|
<div ng-show="RegulChange" style="line-height: 30px;position: relative;height: 30px;width: 60px;text-align: center;" class="pull-left">
|
|
|
- <input type="file" image-upload class="uploadImage" on-success="onUploadSuccess($data, $file)" non-preview="true" maxSize="20971520" errorSizeMsg="'文件大小不能超过20M'">
|
|
|
+ <input type="file" image-upload class="uploadImage" accept=".pdf" on-success="onUploadSuccess($data, $file)" maxSize="20971520" errorSizeMsg="'文件大小不能超过20M'">
|
|
|
<span style="color: #5078cb;cursor: pointer;">点击上传</span>
|
|
|
</div>
|
|
|
<div ng-show="!RegulChange">
|
|
|
- <a href="{{RegulpicUrl}}">
|
|
|
+ <a href="{{Regulpic}}" target="_blank">
|
|
|
<img src="static/img/vendor/images/pdf.png" style="width:31px;height:35px;" />
|
|
|
</a>
|
|
|
</div>
|
|
|
@@ -324,8 +324,10 @@
|
|
|
<div ng-if="showAction && RegulChange" class="clearboth">
|
|
|
<div class="update-big-img" style="margin-top: 0px;width: 197px;">
|
|
|
<div class="previewImage" style="height: 197px;width: 197px;line-height: 197px;text-align: center">
|
|
|
- <img ng-src="{{Regulpic}}" alt="商品图片" style="height: 159px;width: 130px;">
|
|
|
- <img ng-src="{{Regulpic}}" alt="商品图片" ng-if="!Regulpic" style="height: 197px;line-height: 197px;width: 197px;">
|
|
|
+ <!--<img ng-if="Regulpic" ng-src="static/img/vendor/images/pdf.png" alt="商品图片" style="height: 197px;line-height: 197px;width: 197px;">-->
|
|
|
+ <input type="file" image-upload class="uploadImage" accept=".pdf" on-success="onUploadSuccess($data, $file)" maxSize="20971520" errorSizeMsg="'文件大小不能超过20M'">
|
|
|
+ <img ng-src="{{Ischange ? 'static/img/vendor/images/pdf.png' : Regulpic}}" alt="商品图片" style="height: 159px;width: 130px;">
|
|
|
+ <!--<img ng-src="{{Regulpic}}" alt="商品图片" ng-if="!Ischange" style="height: 197px;line-height: 197px;width: 197px;">-->
|
|
|
<div class="cover" style="background: rgba(0,0,0,0)">
|
|
|
<i class="fa fa-trash" style="z-index: 98" ng-click="deleteImg()"></i>
|
|
|
</div>
|
|
|
@@ -369,13 +371,15 @@
|
|
|
<!-- 在售产品 -->
|
|
|
<div ng-if="!showAction" class="clearboth">
|
|
|
<div class="update-big-img">
|
|
|
- <div class="previewImage">
|
|
|
- <img ng-src="{{Regulpic}}" alt="商品图片">
|
|
|
- <img ng-src="{{Regulpic}}" alt="商品图片" ng-if="!Regulpic">
|
|
|
+ <div class="previewImage" style="text-align: center">
|
|
|
+ <input type="file" image-upload class="uploadImage" accept=".pdf" on-success="onUploadSuccess($data, $file)" maxSize="20971520" errorSizeMsg="'文件大小不能超过20M'">
|
|
|
+ <img ng-src="{{Ischange ? 'static/img/vendor/images/pdf.png' : Regulpic}}" alt="商品图片" style="height: 159px;width: 130px;">
|
|
|
+ <!--<img ng-if="Regulpic" ng-src="static/img/vendor/images/pdf.png" alt="商品图片">-->
|
|
|
+ <!--<img ng-src="{{Regulpic}}" alt="商品图片" ng-if="!Regulpic">-->
|
|
|
<!--<div class="cover" style="background: rgba(0,0,0,0)">-->
|
|
|
<!--<i class="fa fa-trash" style="z-index: 98" ng-click="deleteImg()"></i>-->
|
|
|
<!--</div>-->
|
|
|
- <a href="{{Regulpic}}" target="_blank" ng-if="Regulpic != 'static/img/store/common/default.png'">
|
|
|
+ <a href="{{Regulpic}}" target="_blank" ng-if="Regulpic != iniUrlImg">
|
|
|
<div class="cover">
|
|
|
<div class="look"><i class="fa fa-search"></i>查看</div>
|
|
|
</div>
|
|
|
@@ -394,7 +398,7 @@
|
|
|
</div>
|
|
|
<p>
|
|
|
<span style="left:40px;">
|
|
|
- <input maxSize="20971520" type="file" image-upload class="uploadImage" accept=".pdf" on-success="onUploadSuccess($data, $file)" non-preview="true" errorSizeMsg="'文件大小不能超过20M'">
|
|
|
+ <input maxSize="20971520" type="file" image-upload class="uploadImage" accept=".pdf" on-success="onUploadSuccess($data, $file)" errorSizeMsg="'文件大小不能超过20M'">
|
|
|
<span>选择文件</span>
|
|
|
</span>
|
|
|
<a ng-click="confirm()" class="ok">确定</a>
|