|
@@ -199,9 +199,16 @@ To change this template use File | Settings | File Templates.
|
|
|
<label class="form-label"> 头像 </label>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <div id="tx" class="act-avatar"
|
|
|
- style="background: url('${users.tximg}') center center no-repeat/100% auto;">
|
|
|
- </div>
|
|
|
+ <c:if test="${users.tximg == null || users.tximg == ''}">
|
|
|
+ <div id="tx" class="act-avatar"
|
|
|
+ style="background: url('www.baidu.com/img/bd_logo1.png') center center no-repeat/100% auto;">
|
|
|
+ </div>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${users.tximg != null && users.tximg != ''}">
|
|
|
+ <div id="tx" class="act-avatar"
|
|
|
+ style="background: url('${users.tximg}') center center no-repeat/100% auto;">
|
|
|
+ </div>
|
|
|
+ </c:if>
|
|
|
<input type="file" name="img" id="tximg"/>
|
|
|
<input hidden name="tximg" id="tximgs"/>
|
|
|
</td>
|
|
@@ -438,7 +445,7 @@ To change this template use File | Settings | File Templates.
|
|
|
$("#tximg").change(function () {
|
|
|
$.ajaxFileUpload({
|
|
|
fileElementId: 'tximg',
|
|
|
- url: 'uploadImage',
|
|
|
+ url: 'uploadImages',
|
|
|
dataType: 'text',
|
|
|
data: {},
|
|
|
async: true,
|
|
@@ -457,7 +464,7 @@ To change this template use File | Settings | File Templates.
|
|
|
$("#tximg").change(function () {
|
|
|
$.ajaxFileUpload({
|
|
|
fileElementId: 'tximg',
|
|
|
- url: 'uploadImage',
|
|
|
+ url: 'uploadImages',
|
|
|
dataType: 'text',
|
|
|
data: {},
|
|
|
async: true,
|