<view class="top-container">
  <image class="avatar-icon" src="{{avatar}}"></image>
  <view class="text" style="text-align: center;">{{userName?"":"体验用户"}}<text wx:if="{{userName}}" class="user-name">{{userName}}</text><text wx:if="{{phone}}" class="phone">{{phone}}</text></view>
</view>
<image class="camera-icon" bindtap="takePhoto" src="{{cameraIcon}}"></image>

<view class="auth-modal" wx:if="{{authModal}}">
  <view class="modal">
    <view class="service">为了更好的提供服务</view>
    <view class="auth-btn" bindtap="openSetting">请授权{{modalText}}</view>
  </view>
</view>