member.wxml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <view class="user-info">
  2. <!-- <image class="bg" src="/images/background/my-background.png"></image> -->
  3. <view class="user-info-box flex flex-align-center {{ userInfo.is_vip == 1 ? 'active' : '' }}">
  4. <image class="avatar" src="{{userInfo.avatar_url || '/images/my/header.png'}}" bindtap="onAvatar"></image>
  5. <image wx:if="{{level!=0}}" class="avatarHead" src="{{levelImage[imageIndex]}}"></image>
  6. <view class="info-right flex-column">
  7. <text class="nick-name" style="color: #fff;">{{userInfo.nickname || '微信用户'}}</text>
  8. <view class="intro flex-align-center">
  9. <view class="gender flex-center" style="margin-right: 14rpx;" wx:if="{{ userInfo.sex == 1 || userInfo.sex == 2 }}">
  10. <image src="/images/icon_gender_{{userInfo.sex}}.png"></image>
  11. </view>
  12. <!-- <view class="city flex-center" style="margin-right: 16rpx;">深圳</view> -->
  13. <view class="vip-time flex-center" wx:if="{{userInfo.vip}}">
  14. <image src="/images/icon_vip_04.png"></image>
  15. <text>{{userInfo.vip.card_name}}({{userInfo.vip.store_time_alias}})</text>
  16. </view>
  17. </view>
  18. <!-- <text style="color: #fff;font-size: 24rpx;" wx:if="{{userInfo.is_vip == 1}}">会员有效期时间:{{userInfo.vip.valid_time}}</text>
  19. <text style="color: #fff;font-size: 28rpx;" wx:if="{{userInfo.is_vip == 0}}">您还没有开通会员哦~</text> -->
  20. </view>
  21. </view>
  22. <view class="listker-top-add">
  23. <navigator url="/pages/storedValue/index" hover-class="noshadow">
  24. <view class="wallet">
  25. <view class="desc"><text>¥</text>{{inserllAmount}}<text>.{{inserllAmountLittle}}</text></view>
  26. <view class="title">我的储值</view>
  27. </view>
  28. </navigator>
  29. <navigator url="/pages/toolDetails/index" hover-class="noshadow">
  30. <view class="tool">
  31. <view class="desc">{{coin}}</view>
  32. <view class="title">我的积分</view>
  33. </view>
  34. </navigator>
  35. <view class="listker-line"></view>
  36. <view class="cardBag">
  37. <navigator url="/subPackages/pages/cardBag/cardBag" hover-class="noshadow">
  38. <image class="listker-img" src="/images/card_img.png"></image>
  39. </navigator>
  40. <navigator url="/subPackages/pages/cardBag/cardBag" hover-class="noshadow">
  41. <view class="card">
  42. <view class="title">我的卡包</view>
  43. </view>
  44. </navigator>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="order item-radius" style="margin-top: -66rpx;">
  49. <navigator url="/pages/order/order?current=0" hover-class="none">
  50. <view class="item">
  51. <image src="/images/my/my_order_01.png"></image>
  52. <text>已预约</text>
  53. <view class="item-num flex-center" wx:if="{{userInfo.order_num && userInfo.order_num.wait_pay_num > 0}}">
  54. {{userInfo.order_num.wait_pay_num > 99 ? '99' : userInfo.order_num.wait_pay_num }}
  55. </view>
  56. </view>
  57. </navigator>
  58. <navigator url="/pages/order/order?current=1" hover-class="none">
  59. <view class="item">
  60. <image src="/images/my/my_order_02.png"></image>
  61. <text>待使用</text>
  62. <view class="item-num flex-center" wx:if="{{userInfo.order_num && userInfo.order_num.wait_use_num > 0}}">
  63. {{userInfo.order_num.wait_use_num > 99 ? '99' : userInfo.order_num.wait_use_num }}
  64. </view>
  65. </view>
  66. </navigator>
  67. <navigator url="/pages/order/order?current=2" hover-class="none">
  68. <view class="item">
  69. <image src="/images/my/my_order_03.png"></image>
  70. <text>进行中</text>
  71. <view class="item-num flex-center" wx:if="{{userInfo.order_num && userInfo.order_num.using_num > 0}}">
  72. {{userInfo.order_num.using_num > 99 ? '99' : userInfo.order_num.using_num }}
  73. </view>
  74. </view>
  75. </navigator>
  76. <navigator url="/pages/order/order?current=3" hover-class="none">
  77. <view class="item">
  78. <image src="/images/my/my_order_04.png"></image>
  79. <text>已结算</text>
  80. </view>
  81. </navigator>
  82. <navigator url="/pages/order/order?current=4" hover-class="none">
  83. <view class="item">
  84. <image src="/images/my/my_order_05.png"></image>
  85. <text>已取消</text>
  86. </view>
  87. </navigator>
  88. </view>
  89. <view class="tools">
  90. <!-- <view class="item top item-radius" bindtap="goToVip" id="goToVip" >
  91. <image class="icon-left" src="/images/my/tools_01.png"></image>
  92. <text class="flex1">我的VIP</text>
  93. <block wx:if="{{ activity.expire_time_seconds && activity.expire_time_seconds > 0 }}">
  94. <view class="flex flex-align-center">
  95. <text class="active">{{activity.discount}}折</text>
  96. <text style="font-size:28rpx;color:#666; ">倒计时:</text>
  97. <text class="active">{{activity.currentTime}}</text>
  98. </view>
  99. </block>
  100. <block wx:else>
  101. <text class="active" wx:if="{{userInfo.is_vip == 0}}">成为VIP</text>
  102. <text class="active" wx:if="{{userInfo.is_vip == 1}}">立即续费</text>
  103. </block>
  104. <image class="icon-right" src="/images/my/right.png"></image>
  105. </view> -->
  106. <view class="item-radius" style="margin-top: 20rpx;">
  107. <navigator url="/pages/sendFriend/sendFriend">
  108. <view class="item line">
  109. <image class="icon-left" src="/images/my/friend.png"></image>
  110. <text class="flex1">老客权益</text>
  111. <image class="icon-right" src="/images/my/right.png"></image>
  112. </view>
  113. </navigator>
  114. <navigator url="/pages/skinRecordList/skinRecordList">
  115. <view class="item line">
  116. <image class="icon-left" src="/images/my/tools_07.png"></image>
  117. <text class="flex1">测肤记录表</text>
  118. <!-- <text class="active" wx:if="{{ userInfo.card_num>0 }}">{{userInfo.card_num}}张可用</text> -->
  119. <image class="icon-right" src="/images/my/right.png"></image>
  120. </view>
  121. </navigator>
  122. <navigator url="/pages/beautyPlanList/beautyPlanList">
  123. <view class="item line">
  124. <image class="icon-left" src="/images/my/tools_08.png"></image>
  125. <text class="flex1">我的美容计划</text>
  126. <!-- <text class="active" wx:if="{{ userInfo.card_num>0 }}">{{userInfo.card_num}}张可用</text> -->
  127. <image class="icon-right" src="/images/my/right.png"></image>
  128. </view>
  129. </navigator>
  130. <navigator url="/pages/goods/orderList/orderList">
  131. <view class="item line">
  132. <image class="icon-left" src="/images/my/icon_tab_member_goods_order.png"></image>
  133. <text class="flex1">美妆产品订单</text>
  134. <text class="active" wx:if="{{ userInfo.goods_order_num.wait_take_num>0 }}">{{userInfo.goods_order_num.wait_take_num}}单待取货</text>
  135. <image class="icon-right" src="/images/my/right.png"></image>
  136. </view>
  137. </navigator>
  138. <navigator url="/subPackagesB/pages/groupRecord/groupRecord">
  139. <view class="item line">
  140. <image class="icon-left" src="/images/my/group.png"></image>
  141. <text class="flex1">拼团记录</text>
  142. <image class="icon-right" src="/images/my/right.png"></image>
  143. </view>
  144. </navigator>
  145. <!-- <navigator url="/pages/vipCard/vipCard">
  146. <view class="item line">
  147. <image class="icon-left" src="/images/my/tools_02.png"></image>
  148. <text class="flex1">已购会员卡</text>
  149. <text class="active" wx:if="{{ userInfo.card_num>0 }}">{{userInfo.card_num}}张可用</text>
  150. <image class="icon-right" src="/images/my/right.png"></image>
  151. </view>
  152. </navigator> -->
  153. <navigator url="/pages/coupon/coupon">
  154. <view class="item">
  155. <image class="icon-left" src="/images/my/tools_03.png"></image>
  156. <text class="flex1">我的优惠券</text>
  157. <text class="active" wx:if="{{ userInfo.coupon_count>0 }}">{{userInfo.coupon_count}}张可用</text>
  158. <image class="icon-right" src="/images/my/right.png"></image>
  159. </view>
  160. </navigator>
  161. <!-- <navigator url="/pages/article/article">
  162. <view class="item">
  163. <image class="icon-left" src="/images/my/tools_09.png"></image>
  164. <text class="flex1">美丽秘籍</text>
  165. <image class="icon-right" src="/images/my/right.png"></image>
  166. </view>
  167. </navigator> -->
  168. </view>
  169. <view class="item-radius" style="margin-top: 20rpx;">
  170. <navigator url="/pages/disclaimer/disclaimer" hover-class="none">
  171. <view class="item line">
  172. <image class="icon-left" src="/images/my/tools_04.png"></image>
  173. <text class="flex1">免责声明</text>
  174. <text class="active" style="color:#999999;">{{agree ? '已' : '未'}}同意</text>
  175. <image class="icon-right" src="/images/my/right.png"></image>
  176. </view>
  177. </navigator>
  178. <navigator url="/pages/dossier/dossier" hover-class="none">
  179. <view class="item line">
  180. <image class="icon-left" src="/images/my/tools_05.png"></image>
  181. <text class="flex1">会员档案</text>
  182. <text class="active" style="color:#999999;">去修改</text>
  183. <image class="icon-right" src="/images/my/right.png"></image>
  184. </view>
  185. </navigator>
  186. <navigator url="/pages/feedback/feedback" hover-class="none" wx:if="{{false}}">
  187. <view class="item line">
  188. <image class="icon-left" src="/images/my/tools_10.png"></image>
  189. <text class="flex1">记录反馈</text>
  190. <!-- <text class="active" style="color:#999999;">去修改</text> -->
  191. <image class="icon-right" src="/images/my/right.png"></image>
  192. </view>
  193. </navigator>
  194. <navigator url="/pages/contact/contact" hover-class="none">
  195. <view class="item">
  196. <image class="icon-left" src="/images/my/tools_06.png"></image>
  197. <text class="flex1">联系我们</text>
  198. <!-- <text class="active" style="color:#999999;">去修改</text> -->
  199. <image class="icon-right" src="/images/my/right.png"></image>
  200. </view>
  201. </navigator>
  202. </view>
  203. </view>
  204. <change-env visible="{{ visible }}"></change-env>