Authored by lijian

no message

... ... @@ -43,7 +43,7 @@
<div class="col-sm-6">
<div class="goods-img">
<a class="fileinput-button-icon" href="javascript:void(0);">
<img src="[[avatar]]?imageView/2/w/100/h/100">
<img id="avatarpic" src="[[avatar]]?imageView/2/w/100/h/100">
</a>
<i class="remove-item-btn remove1 glyphicon glyphicon-remove-circle" data-link="avatar"></i>
</div>
... ...
... ... @@ -37,7 +37,7 @@
<div class="col-sm-6">
<div class="goods-img">
<a class="fileinput-button-icon" href="javascript:void(0);">
<img src="[[avatar]]?imageView/2/w/100/h/100">
<img id="avatarpic" src="[[avatar]]?imageView/2/w/100/h/100">
</a>
<i class="remove-item-btn remove1 glyphicon glyphicon-remove-circle" data-link="avatar"></i>
</div>
... ...
... ... @@ -106,7 +106,7 @@ var Bll = {
},
edit: function () {
// var avatar = $.trim($("#photo").val());
var avatar = $("#photo")[0];
var avatar = $.trim($("#avatarpic").attr("src"));
if (avatar == "" || undefined || null) {
return "头像必传"
}
... ...
... ... @@ -83,8 +83,7 @@ var Bll = {
$(selecter).html(common.util.__template2($("#" + templater).html(), data));
},
edit: function () {
var avatar = $.trim($("#avatar").val());
var avatar = $.trim($("#avatarpic").attr("src"));
if (avatar == "" || undefined || null) {
return "头像必传"
}
... ...