index.wxml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <view class="page {{active?'page1':''}}">
  2. <view class="title" style="top:{{btnInfo.top + 5}}px">我的</view>
  3. <view class="topBoxs flex">
  4. <view class="le flex">
  5. <image src="{{userInfo.avatarUrl?userInfo.avatarUrl:'/image/order/houwaitao.png'}}" class="userPicture"></image>
  6. <view class="dd">
  7. <view wx:if="{{hasUserInfo}}">
  8. <text class="phone">{{userInfo.nickName}}</text>
  9. </view>
  10. <view wx:else>
  11. <text class="phone" bindtap="getUserProfile">请点击登录</text>
  12. </view>
  13. <button class="phone" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">{{code?handle.toHide(code):'点击获取手机号'}}</button>
  14. <!-- <text class="phone" style=" margin-top: 15rpx;"> </text> -->
  15. </view>
  16. <wxs src="/utils/handle.wxs" module="handle"></wxs>
  17. </view>
  18. <image src="/image/my/bg.png" class="bg"></image>
  19. </view>
  20. <!-- 无活动 -->
  21. <view class="menuBoxs " wx:if="{{!active}}">
  22. <van-grid border="{{false}}">
  23. <van-grid-item use-slot wx:for="{{menuList}}" wx:key="*this" bindtap="toUrl" data-url="{{item.url}}">
  24. <view class="menuItem">
  25. <image src="{{item.icon}}" class="icon"></image>
  26. <view class="tit">{{item.text}}</view>
  27. <dot num="3张" offset="{{[-20,-20]}}" radius="19rpx 19rpx 19rpx 0rpx;" wx:if="{{item.text == '优惠券'}}"></dot>
  28. </view>
  29. </van-grid-item>
  30. </van-grid>
  31. </view>
  32. <!-- 有活动 -->
  33. <view class="active" wx:else>
  34. <view class="message flex ju-a">
  35. <view class="le" bindtap="toUrl" data-url="/pages/my/account/account">
  36. <view class="num">0.00</view>
  37. <view class="tips">余额(元)</view>
  38. </view>
  39. <view class="line"></view>
  40. <view class="lr" bindtap="toUrl" data-url="/pages/my/coupon/coupon">
  41. <view class="num">0.00</view>
  42. <view class="tips">优惠券(张)</view>
  43. </view>
  44. </view>
  45. <view class="contioner">
  46. <view class="titText">我的服务</view>
  47. <view class="menuBoxs2">
  48. <van-grid border="{{false}}">
  49. <van-grid-item use-slot wx:for="{{menuList}}" wx:key="*this" bindtap="toUrl" data-url="{{item.url}}">
  50. <view class="menuItem">
  51. <image src="{{item.icon}}" class="icon"></image>
  52. <view class="tit">{{item.text}}</view>
  53. <dot num="3张" offset="{{[-20,-20]}}" radius="19rpx 19rpx 19rpx 0rpx;" wx:if="{{item.text == '优惠券'}}"></dot>
  54. </view>
  55. </van-grid-item>
  56. </van-grid>
  57. </view>
  58. </view>
  59. <taskOrder value="3" bind:rightClick="rightClick"></taskOrder>
  60. </view>
  61. </view>