<!-- pages/changeAvatar/index.wxml -->
<view class="container" hover-class="none" hover-stop-propagation="false">
  <!-- <image class="" src="{{temporaryImg || userInfo.imgSrc}}" mode="" lazy-load="false" binderror="" bindload=""></image> -->
  <block wx:if="{{temporaryImg || (userInfo.imgSrc != '' && userInfo.imgSrc != null && userInfo.imgSrc != 'null')}}">
    <image src="{{temporaryImg || userInfo.imgSrc}}" style='' class='show-image' mode="aspectFill"></image>
  </block> 
  <block wx:else>
    <image style='' src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/defaultAva.svg" class='show-image' mode="aspectFill"></image>
  </block>
  <view wx:if="{{isSure}}" class="display-flex btnBox" hover-class="none" hover-stop-propagation="false">
    <view class="weui-btn_primary fw500 mr16" bindtap='cancelChoice' aria-role="button">取消</view>
    <view class="weui-btn_primary fw500 ysd-basebg-color" hover-class="thover"  bindtap='changeUserImgsrc' style='border:1px solid #1890ff' aria-role="button">确定</view>
  </view>
  <!-- bindtap='chooseImage'
  <button wx:else open-type="chooseAvatar" style='' bindchooseavatar='choiceAvatar' class="change weui-btn_primary fw500 mt32" aria-role="button">更换头像</button>
 -->
  <!-- #if MP -->
  <button wx:else open-type="chooseAvatar" bindchooseavatar='choiceAvatar' class="change weui-btn_primary fw500 mt32" aria-role="button">更换头像</button>
  <!-- #elif ANDROID -->
  <button wx:else open-type="chooseAvatar" bindtap='chooseAnImage' class="change weui-btn_primary fw500 mt32" aria-role="button">更换头像</button>
  <!-- #elif IOS -->
  <button wx:else bindtap='chooseImage' class="change weui-btn_primary fw500 mt32" aria-role="button">更换头像</button>
   <!-- #endif -->


</view>