my.wxml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <!--pages/mytest/mytest.wxml-->
  2. <wxs src="../../wxs/tool.wxs" module="tool"></wxs>
  3. <view class="my_top">
  4. <image src="../../static/index/mybg.png" class="mybg" mode="aspectFill" />
  5. <view class="myinfo z-margin-lr-32" style="padding-top: {{safeTop}}">
  6. <image class="z-margin-r-32 avatar" wx:if="{{info}}" src="{{tool.cdn(info.avatar)}}" />
  7. <image class="z-margin-r-32 avatar" wx:else src="{{tool.cdn(config.user_image)}}" bindtap="login" />
  8. <view class="myinfo_text">
  9. <text class="z-font-40" wx:if="{{info}}">{{info.nickname}}</text>
  10. <text class="z-font-40" wx:else bindtap="login">请先登录</text>
  11. <view class="namebox_text z-padding-r-16 z-margin-t-16 z-font-22 " wx:if="{{info.plusInfo.is_plus > 0}}">
  12. <image src="../../static/index/vip.png" class="vip" mode="" />
  13. <view class="plusname z-flex">{{info.plusInfo.plusname}}</view>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="all_box z-radius-24 ">
  18. <view class="menber_box z-padding-24" bindtap="skip" data-url="/service/level/level">
  19. <view class="menber_box_left">
  20. <image src="../../static/index/king.png" class="king_img z-margin-r-16" mode="" />
  21. <view class="menber_box_text">
  22. <view class="z-font-w menber_text">家政会员</view>
  23. <view class="z-font-24 text_999 z-margin-t-16">开通会员可享受项目会员价</view>
  24. </view>
  25. </view>
  26. <view class="poenit z-padding-tb-8 z-padding-lr-24 z-font-28 z-radius-24 z-font-w">
  27. {{info.plusInfo.is_plus > 0 ? '立即续费' : '立即开通'}}
  28. </view>
  29. </view>
  30. <view class="fourbox z-radius-24 z-padding-24">
  31. <view class="fourboxitem" bindtap="skip" data-url="/service/focus/focus?active=0&name=关注服务者">
  32. <view class="z-font-w">{{info.skillFollow || 0}}</view>
  33. <view class="z-font-24 text_666 z-margin-t-8">关注服务者</view>
  34. </view>
  35. <view class="fourboxitem" bindtap="skip" data-url="/service/focus/focus?active=1&name=收藏项目">
  36. <view class="z-font-w">{{info.goodsFollow || 0}}</view>
  37. <view class="z-font-24 text_666 z-margin-t-8">收藏项目</view>
  38. </view>
  39. <view class="fourboxitem" bindtap="skip" data-url="/service/focus/focus?active=2&name=关注店铺">
  40. <view class="z-font-w">{{info.shopFollow || 0}}</view>
  41. <view class="z-font-24 text_666 z-margin-t-8">关注店铺</view>
  42. </view>
  43. </view>
  44. <view class="z-flex-c z-padding-lr-32 z-padding-b-32">
  45. <view class="more z-padding-24 z-radius-20" bindtap="skip" data-url="/service/mycoup/mycoup">
  46. <image class="icon" src="/static/index/coupon-icon.png"></image>
  47. <view class="z-font-26 pos ">我的优惠券</view>
  48. <view class="pos z-margin-t-16">
  49. <text class="z-font-30 num z-padding-r-16">{{info.couponCount || 0}}</text>
  50. <text class="z-font-22 text_666">张未使用</text>
  51. </view>
  52. </view>
  53. <view class="z-flex-1"></view>
  54. <view class="more z-padding-24 z-radius-20" bindtap="skip" data-url="/service/recharge/recharge">
  55. <image class="icon" src="/static/index/wallet-icon.png"></image>
  56. <view class="z-font-26 pos">我的钱包</view>
  57. <view class="pos z-margin-t-16">
  58. <text class="z-font-30 num z-padding-r-16">{{info.money || 0}}</text>
  59. <text class="z-font-22 text_666">元</text>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="order_box z-radius-24 z-padding-32">
  65. <view class="order_box_top" bindtap="myOrder" data-type="1" data-active="0">
  66. <view class="z-font-30">我的订单</view>
  67. <view class="z-font-24 text_999">全部订单
  68. <van-icon name="arrow" />
  69. </view>
  70. </view>
  71. <view class="fourbox z-margin-t-32">
  72. <view class="fourboxitem" bindtap="myOrder" data-type="1" data-active="1">
  73. <view class="num-box">
  74. <image src="../../static/index/dfk.png" class="fourbox_img" mode="" />
  75. <view class="point z-flex" wx:if="{{info && info.orderCount.unpayCount > 0}}">{{info.orderCount.unpayCount}}</view>
  76. </view>
  77. <view class="z-margin-t-8 z-font-28">待付款</view>
  78. </view>
  79. <view class="fourboxitem" bindtap="myOrder" data-type="1" data-active="2">
  80. <view class="num-box">
  81. <image src="../../static/index/dfw.png" class="fourbox_img" mode="" />
  82. <view class="point z-flex" wx:if="{{info && info.orderCount.unServiceCount > 0}}">{{info.orderCount.unServiceCount}}
  83. </view>
  84. </view>
  85. <view class="z-margin-t-8 z-font-28">待服务</view>
  86. </view>
  87. <view class="fourboxitem" bindtap="myOrder" data-type="1" data-active="3">
  88. <view class="num-box">
  89. <image src="../../static/index/fwz.png" class="fourbox_img" mode="" />
  90. <view class="point z-flex" wx:if="{{info && info.orderCount.serviceCount > 0}}">{{info.orderCount.serviceCount}}
  91. </view>
  92. </view>
  93. <view class="z-margin-t-8 z-font-28">服务中</view>
  94. </view>
  95. <view class="fourboxitem" bindtap="myOrder" data-type="2" data-active="0">
  96. <view class="num-box">
  97. <image src="../../static/index/dpj.png" class="fourbox_img" mode="" />
  98. <view class="point z-flex" wx:if="{{info && info.orderCount.notCommentCount > 0}}">
  99. {{info.orderCount.notCommentCount}}</view>
  100. </view>
  101. <view class="z-margin-t-8 z-font-28">待评价</view>
  102. </view>
  103. <view class="fourboxitem" bindtap="myOrder" data-type="3" data-active="0">
  104. <view class="num-box">
  105. <image src="../../static/index/sh.png" class="fourbox_img" mode="" />
  106. <view class="point z-flex" wx:if="{{info && info.orderCount.refundCount > 0}}">{{info.orderCount.refundCount}}</view>
  107. </view>
  108. <view class="z-margin-t-8 z-font-28">售后</view>
  109. </view>
  110. </view>
  111. </view>
  112. <view class="setting_box z-margin-t-32 z-radius-24 z-padding-lr-32 z-padding-t-40 z-padding-b-16">
  113. <view class="setting_box_item" bindtap="skip" data-url="/service/question/question">
  114. <image src="../../static/index/help.png" class="setting_box_img" mode="" />
  115. <view class="z-font-24 z-margin-t-16">帮助中心</view>
  116. </view>
  117. <view class="setting_box_item" bindtap="skip" data-url="/service/feedback/feedback">
  118. <image src="../../static/index/feedback.png" class="setting_box_img" mode="" />
  119. <view class="z-font-24 z-margin-t-16">意见反馈</view>
  120. </view>
  121. <view class="setting_box_item">
  122. <image src="../../static/index/lxkf.png" class="setting_box_img" mode="" />
  123. <view class="z-font-24 z-margin-t-16">联系客服</view>
  124. <button type="primary" open-type="contact" class="contact"></button>
  125. </view>
  126. <view class="setting_box_item" bindtap="skip" data-url="/service/couponscenter/couponscenter">
  127. <image src="../../static/index/lqzx.png" class="setting_box_img" mode="" />
  128. <view class="z-font-24 z-margin-t-16">优惠券</view>
  129. </view>
  130. <view class="setting_box_item" bindtap="skip" data-url="/service/comments/comments?type=user&id={{info.id}}">
  131. <image src="../../static/index/wdpj.png" class="setting_box_img" mode="" />
  132. <view class="z-font-24 z-margin-t-16">我的评价</view>
  133. </view>
  134. <view class="setting_box_item" bindtap="toService">
  135. <image src="../../static/index/fwjd.png" class="setting_box_img" mode="" />
  136. <view class="z-font-24 z-margin-t-16">服务接单</view>
  137. </view>
  138. <view class="setting_box_item" bindtap="toShop">
  139. <image src="../../static/index/sjrz.png" class="setting_box_img" mode="" />
  140. <view class="z-font-24 z-margin-t-16">商家入驻</view>
  141. </view>
  142. <view class="setting_box_item" bindtap="skip" data-url="/service/addressmanager/addressmanager">
  143. <image src="../../static/index/fwdz.png" class="setting_box_img" mode="" />
  144. <view class="z-font-24 z-margin-t-16">服务地址</view>
  145. </view>
  146. <view class="setting_box_item" bindtap="skip" data-url="/service/notice/notice">
  147. <image src="../../static/index/notice.png" class="setting_box_img" mode="" />
  148. <view class="z-font-24 z-margin-t-16">平台公告</view>
  149. </view>
  150. <view class="setting_box_item" bindtap="skip" data-url="/service/mysetMeal/mysetMeal">
  151. <image src="../../static/index/meal.png" class="setting_box_img" mode="" />
  152. <view class="z-font-24 z-margin-t-16">套餐</view>
  153. </view>
  154. <view class="setting_box_item" bindtap="skip" data-url="/service/setpage/setpage">
  155. <image src="../../static/index/set.png" class="setting_box_img" mode="" />
  156. <view class="z-font-24 z-margin-t-16">设置</view>
  157. </view>
  158. </view>
  159. </view>