account.wxml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <!-- head -->
  2. <view class="modular">
  3. <view class="user-t">
  4. <view wx:if="{{userInfo}}">
  5. <view class="account-box">
  6. <view class='account-head'>
  7. <image src='{{userInfo.avatar}}' mode="aspectFill" lazy-load="true"></image>
  8. </view>
  9. <view class='user-info' style="{{isGrowup == 1 ? 'margin-bototm:20rpx;':''}}">
  10. <text class='font16'>{{userInfo.nickname}}\n</text>
  11. <view class="font12" style="margin-top: 8rpx;">{{userInfo.loginName}}</view>
  12. </view>
  13. <!-- navigator -->
  14. <view url='/pages/account/vip/index/index' class="baby-coin" hover-class='none'>
  15. <text class='icon icon-vip' style="font-size: 44rpx;"></text>
  16. <text class="coin">{{levelName}}会员</text>
  17. </view>
  18. </view>
  19. <view class="" style="margin: 20rpx 0;overflow: hidden;display: flex;align-items: flex-end;justify-content: space-between;">
  20. <view class="user-code font12">
  21. <block bindlongtap='copy' data-code="{{userInfo.code}}" wx:if="{{(userInfo.roleType == 'sharer' && stat.shareStatus!=2) || (userInfo.roleType == 'organ' && stat.organStatus!=2)}}">邀请码:{{userInfo.code}}</block>
  22. </view>
  23. <view class="user-coin"><text class='icon icon-coin'></text><text class="fontWei" style="margin: 0 6rpx;">{{stat.sumCoin}}</text></view>
  24. </view>
  25. </view>
  26. <view class="accont-nologin" wx:else>
  27. <text class='icon icon-info'></text>
  28. <text class='accont-nologin-text' bindtap="logion">
  29. <text class="middle">点击登录 / 注册</text><text class='icon icon-arrow'></text>
  30. </text>
  31. </view>
  32. </view>
  33. </view>
  34. <navigator class="growup-card growup-card-radius" hover-class="none" url="/pages/growthCard/index" wx:if="{{isGrowup == 1}}">
  35. <view class='growup-card-box font14'>
  36. 我的冬夏令营成长卡<text class="arrow"></text>
  37. </view>
  38. </navigator>
  39. <view class=" septal-top-line" wx:if="{{userInfo.roleType=='normal' && isWallet == 0}}">
  40. <!-- <navigator class=" ceill-link" url="/pages/public/swiper/web?url=https://mp.weixin.qq.com/s/YI-q7lJYfrYZE4Vb6TI_0w&title=宝贝走天下" style="background: rgba(0,0,0,0);"> -->
  41. <image src='https://img.bbztx.com/miniProgram/challengeFamily/sharer_center.jpg' mode="widthFix" lazy-load="true" style="width: 100%;"></image>
  42. <!-- </navigator> -->
  43. </view>
  44. <view class="modular modular-pad" wx:if="{{ userInfo['roleType'] == 'organ'}}">
  45. <view class="modal-title title-link" data-url="/pages/sharingHome/index?{{userInfo['roleType'] == 'sharer'?('shareStatus='+stat.shareStatus):('organStatus='+stat.organStatus)}}" bindtap='navigatorURl' wx:if="{{userInfo['roleType'] != 'normal'}}">
  46. <view class="modal-t">
  47. {{userInfo['roleType'] == 'sharer' ? '分享家中心' : '机构中心'}}
  48. <text class="gray share-status" wx:if="{{(userInfo['roleType'] == 'sharer' && stat.shareStatus==2)||(userInfo['roleType'] == 'organ' && stat.organStatus==2)}}">已停用</text>
  49. </view>
  50. </view>
  51. <view class="modal-title title-link" data-url="/pages/account/coin/index" bindtap='navigatorURl' wx:if="{{userInfo['roleType'] == 'normal'&&isWallet == 1}}">
  52. <view class="modal-t">我的钱包</view>
  53. </view>
  54. <view class="modal-label row-flex" wx:if="{{userInfo['roleType'] == 'sharer' || userInfo['roleType'] == 'organ'}}">
  55. <view class="col-8 link" data-url="/pages/sharingHome/wallet" bindtap='navigatorURl'>
  56. <view class="font14"><text class="themeColor font20 fontWei">{{stat.coin || 0}}</text>元</view>
  57. <view class='label '>
  58. <text>总佣金</text>
  59. </view>
  60. </view>
  61. <view class="col-8 line link" data-url="/pages/sharingHome/inviteUser?type=0&roleType={{userInfo.roleType}}" bindtap='navigatorURl'>
  62. <view style="flex: 1;">
  63. <view class="font14"><text class="themeColor font20 fontWei">{{stat.inviterNumber || 0}}</text>个</view>
  64. <view class='label '>
  65. <text>邀请用户</text>
  66. </view>
  67. </view>
  68. </view>
  69. <view class="col-8 link" data-url="/pages/sharingHome/willAccount" bindtap='navigatorURl'>
  70. <view class="font14"><text class="themeColor font20 fontWei">{{stat.unaccountedAmount || 0}}</text>元</view>
  71. <view class='label '>
  72. <text>即将入账</text>
  73. </view>
  74. </view>
  75. </view>
  76. <view class="modal-label wallet-box" wx:if="{{isWallet == 1 && userInfo['roleType'] == 'normal'}}">
  77. <view class='label' data-url="/pages/account/coin/index" bindtap='navigatorURl'>
  78. <view style="flex: 1;align-items: center;">
  79. <view class="font18 {{stat.refreshCoin == 1 ? 'info':''}}">
  80. <text class="subtitleColor ">{{userInfo ? userInfo.coin : "0.00"}}</text>
  81. <text class='font10'>元</text>
  82. </view>
  83. <text class='font12'>我的钱包</text>
  84. </view>
  85. </view>
  86. <view class='label' data-url="/pages/account/coin/index?index=1" bindtap='navigatorURl'>
  87. <view style="flex: 1;align-items: center;">
  88. <view class="font18 {{stat.refreshPeople == 1 ? 'info':''}}">
  89. <text class="subtitleColor">{{stat.inviterNumber || 0}}</text>
  90. <text class='font10'>人</text>
  91. </view>
  92. <text class="font12">邀请用户</text>
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. <!-- 订单 -->
  98. <view class="modular modular-pad">
  99. <view class="modal-title">我的订单</view>
  100. <view class="modal-label account-icon account-icon-five">
  101. <view class='link' data-url="/pages/order/index/order" bindtap='navigatorURl'>
  102. <image src="https://img.bbztx.com/miniProgram/challengeFamily/orderAll.png" class="imgIcon" mode="widthFix" />
  103. <view class='label'>
  104. <text>全部</text>
  105. </view>
  106. </view>
  107. <view class='link' data-url="/pages/order/index/order?otype=1" bindtap='navigatorURl'>
  108. <view style="position: relative;">
  109. <image src="https://img.bbztx.com/miniProgram/challengeFamily/orderNoPay.png" class="imgIcon" mode="widthFix">
  110. <text class="info" wx:if="{{stat.payNumber > 0}}">{{stat.payNumber}}</text>
  111. </image>
  112. </view>
  113. <view class='label'>
  114. <text>待付款</text>
  115. </view>
  116. </view>
  117. <view class='link' data-url="/pages/order/index/order?otype=2" bindtap='navigatorURl'>
  118. <view style="position: relative;">
  119. <image src="https://img.bbztx.com/miniProgram/challengeFamily/orderNoJoin.png" class="imgIcon" mode="widthFix" style="width: 55rpx;">
  120. <text class="info" wx:if="{{stat.attendNumber > 0}}">{{stat.attendNumber}}</text>
  121. </image>
  122. </view>
  123. <view class='label'>
  124. <text>待参加</text>
  125. </view>
  126. </view>
  127. <view class='link' data-url="/pages/order/index/order?otype=3" bindtap='navigatorURl'>
  128. <view style="position: relative;">
  129. <image src="https://img.bbztx.com/miniProgram/challengeFamily/orderEvaluate.png" class="imgIcon" mode="widthFix">
  130. <text class="info" wx:if="{{stat.commentNumber > 0}}">{{stat.commentNumber}}</text>
  131. </image>
  132. </view>
  133. <view class='label'>
  134. <text>待评价</text>
  135. </view>
  136. </view>
  137. <view class='link' data-url="/pages/order/index/order?otype=4" bindtap='navigatorURl'>
  138. <image src="https://img.bbztx.com/miniProgram/challengeFamily/orderAfterSale.png" class="imgIcon" mode="widthFix" style="width: 65rpx;">
  139. </image>
  140. <view class='label'>
  141. <text>退款售后</text>
  142. </view>
  143. </view>
  144. </view>
  145. </view>
  146. <view class="modular modular-pad">
  147. <view class="tab">
  148. <view class="tab-option" data-url="/pages/account/safe/index" bindtap='navigatorURl'>
  149. <image src="https://img.bbztx.com/miniProgram/challengeFamily/cashCoupon.png" class="imgIcon" mode="widthFix" />
  150. <text class="middle">现金券</text>
  151. </view>
  152. <view class="tab-option" data-url="/pages/account/cards/index" bindtap='navigatorURl'>
  153. <image src="https://img.bbztx.com/miniProgram/challengeFamily/miniInfo.png" class="imgIcon" mode="widthFix" /> <text class="middle">常用信息</text>
  154. </view>
  155. <view class="tab-option" data-url="/pages/public/about/index" bindtap='navigatorURl'>
  156. <image src="https://img.bbztx.com/miniProgram/challengeFamily/aboutUs.png" class="imgIcon" mode="widthFix" style="width: 50rpx;" /> <text class="middle">关于我们</text>
  157. </view>
  158. <view class="tab-option" data-url="/pages/account/setting/index" bindtap='navigatorURl'>
  159. <image src="https://img.bbztx.com/miniProgram/challengeFamily/setting.png" class="imgIcon" mode="widthFix" style="width: 50rpx;" /> <text class="middle">设置</text>
  160. </view>
  161. </view>
  162. </view>
  163. <tabbar tabbar="{{tabbar}}"></tabbar>