mine.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!--pages/mine/mine.wxml-->
  2. <!-- 顶部 -->
  3. <view class="top-area">
  4. <image src="../../static/component_images/wave.png" class="wave"></image>
  5. <!-- 胶囊按钮区 -->
  6. <view style="height: {{statusBarCont.CustomBar-statusBarCont.StatusBar}}px; width: 100%;margin-top: {{statusBarCont.StatusBar}}px; padding-left: 40rpx; line-height: {{statusBarCont.CustomBar-statusBarCont.StatusBar}}px">基本信息</view>
  7. <!-- 头像&名字 -->
  8. <view class="avator-area">
  9. <view class="avator" wx:if="{{userInfo.avatar}}" ><image src="{{userInfo.avatar}}" bindtap="preview" data-src="{{userInfo.avatar}}"></image></view>
  10. <view class="avator" wx:else ><image src="../../static/comment/avator_no.png"></image></view>
  11. <view class="name" wx:if="{{userInfo.username}}"><text>{{userInfo.username}}</text>
  12. <text class="type">{{type==1?'常客':'访客'}}</text>
  13. </view>
  14. <view class="name-no" wx:if="{{!userInfo}}" ><text>{{international.login_tip[language]}}</text></view>
  15. </view>
  16. <!-- 手机&身份证号 -->
  17. <view class="msg-area" wx:if="{{userInfo}}">
  18. <view wx:if="{{userInfo.hidePhone}}">
  19. <text>{{international.Phone[language]}}</text>
  20. <text>{{userInfo.hidePhone}}</text>
  21. </view>
  22. <view wx:if="{{userInfo.hideIdNumber}}">
  23. <text>{{international.idNumber[language]}}</text>
  24. <text>{{userInfo.hideIdNumber}}</text>
  25. </view>
  26. <view wx:if="{{userInfo.cardIdEx}}">
  27. <text>{{international.Card_number[language]}}</text>
  28. <text>{{userInfo.cardIdEx}}</text>
  29. </view>
  30. </view>
  31. <view class="msg-area crosswise" wx:else>
  32. <button bindtap="goCertification" data-type="{{1}}">{{international.visitor[language]}}</button>
  33. <button bindtap="goCertification" data-type="{{2}}">{{international.employee[language]}}</button>
  34. </view>
  35. </view>
  36. <!-- 下部 -->
  37. <view class="bottom-area">
  38. <!-- 标题 -->
  39. <view class="title">我的功能</view>
  40. <!-- 功能区 -->
  41. <view class="component-area">
  42. <view class="component" wx:for="{{component_list}}" data-id="{{item.id}}" wx:key="id" bindtap="goto">
  43. <image src="{{item.icon}}"></image>
  44. <text>{{language=='ch'?item.name_ch:item.name_en}}</text>
  45. </view>
  46. </view>
  47. </view>