member.wxml 10 KB

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