|
@@ -87,7 +87,12 @@
|
|
|
width: 800px;
|
|
|
}
|
|
|
.imageBox{
|
|
|
- display: none;
|
|
|
+ width: 150px!important;
|
|
|
+ height: 150px!important;
|
|
|
+ }
|
|
|
+ .thumbBox{
|
|
|
+ margin-top: -75px!important;
|
|
|
+ margin-left: -75px!important;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
@@ -110,7 +115,7 @@
|
|
|
<!--<i class="fa fa-plus"></i>-->
|
|
|
<!--</div>-->
|
|
|
<div class="imageBox">
|
|
|
- <div class="thumbBox" style="width:200px;height:200px;"></div>
|
|
|
+ <div class="thumbBox" style="width:150px;height:150px;"></div>
|
|
|
<div class="spinner" style="display: none">Loading...</div>
|
|
|
</div>
|
|
|
<div class="action">
|
|
@@ -118,7 +123,7 @@
|
|
|
<a href="javascript:void(0)" class=""><label for="avatar">选择图片</label> </a>
|
|
|
<input type="file" class="" name="avatar" id="avatar" accept="image/*"/>
|
|
|
</div>
|
|
|
- <input type="button" id="submitbuttonBg" onclick="upBg()" class="" value="上传"/>
|
|
|
+ <!--<input type="button" id="submitbuttonBg" onclick="upBg()" class="" value="上传"/>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -245,6 +250,9 @@
|
|
|
}
|
|
|
}
|
|
|
reader.readAsDataURL(this.files[0]);
|
|
|
+ setTimeout(function () {
|
|
|
+ upBg();
|
|
|
+ },500)
|
|
|
})
|
|
|
console.log('ctx',ctx);
|
|
|
})
|