作者 郭鑫
1 个管道 的构建 通过 耗费 3 秒

测试问题修改

@@ -43,9 +43,23 @@ @@ -43,9 +43,23 @@
43 </td> 43 </td>
44 </tr> 44 </tr>
45 <tr> 45 <tr>
46 - <th width="15%">头像</th>  
47 - <td><input class="form-control" type="text" name="wx_pic" value="{$list['wx_pic']}" />  
48 - 46 + <th><b>头像<span class="form-required">*</span></th>
  47 + <td>
  48 + <div style="text-align: center;">
  49 + <input type="hidden" name="wx_pic" id="thumbnail" value="{$list.wx_pic}">
  50 + <a href="javascript:uploadOneImage('图片上传','#thumbnail');">
  51 + <if condition="empty($list.wx_pic)">
  52 + <img src="__TMPL__/public/assets/images/default-thumbnail.png"
  53 + id="thumbnail-preview"
  54 + width="135" style="cursor: pointer"/>
  55 + <else/>
  56 + <img src="{:cmf_get_image_preview_url($list.wx_pic)}"
  57 + id="thumbnail-preview"
  58 + width="135" style="cursor: pointer"/>
  59 + </if>
  60 + </a>
  61 + <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
  62 + </div>
49 </td> 63 </td>
50 </tr> 64 </tr>
51 <tr> 65 <tr>