index.wxml 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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.avatar?userInfo.avatar:'https://636c-cloud1-7g2wlwzh596f43b6-1306306616.tcb.qcloud.la/%E5%9C%86%E5%BD%A2logo%403x.png?sign=9c634e6a925c92259459f604a261bc6b&t=1645864304'}}" class="userPicture"></image>
  6. <view class="dd">
  7. <view wx:if="{{hasUserInfo}}">
  8. <text class="phone">{{userInfo.wx_nickname}}</text>
  9. </view>
  10. <view wx:else>
  11. <text class="phone" bindtap="getUserProfile">请点击登录</text>
  12. </view>
  13. <button class="phone" bindgetphonenumber="getPhoneNumber">{{userInfo
  14. .phone!=0?userInfo
  15. .phone:'点击获取手机号'}}</button>
  16. <!-- <text class="phone" style=" margin-top: 15rpx;"> </text> -->
  17. </view>
  18. <wxs src="/utils/handle.wxs" module="handle"></wxs>
  19. </view>
  20. <image src="/image/my/bg.png" class="bg"></image>
  21. </view>
  22. <!-- 无活动 -->
  23. <view class="menuBoxs " wx:if="{{!active}}">
  24. <van-grid border="{{false}}">
  25. <van-grid-item use-slot wx:for="{{menuList}}" wx:key="*this" bindtap="toUrl" data-url="{{item.url}}">
  26. <view class="menuItem">
  27. <image src="{{item.icon}}" class="icon"></image>
  28. <view class="tit">{{item.text}}</view>
  29. <dot num="3张" offset="{{[-20,-20]}}" radius="19rpx 19rpx 19rpx 0rpx;" wx:if="{{item.text == '优惠券'}}"></dot>
  30. </view>
  31. </van-grid-item>
  32. </van-grid>
  33. </view>
  34. <!-- 有活动 -->
  35. <view class="active" wx:else>
  36. <view class="message flex ju-a">
  37. <view class="le" bindtap="toUrl" data-url="/pages/my/account/account">
  38. <view class="num">{{yue}}</view>
  39. <view class="tips">余额(元)</view>
  40. </view>
  41. <view class="line"></view>
  42. <view class="lr" bindtap="toUrl33" data-url="/pages/my/coupon/coupon">
  43. <view class="num">0</view>
  44. <view class="tips">优惠券(张)</view>
  45. </view>
  46. </view>
  47. <view class="contioner">
  48. <view class="titText">我的服务</view>
  49. <view class="menuBoxs2">
  50. <van-grid border="{{false}}">
  51. <van-grid-item use-slot wx:if="{{item.text!='客服热线'}}" wx:for="{{menuList}}" wx:key="*this" bindtap="toUrl" data-url="{{item.url}}">
  52. <view class="menuItem">
  53. <image src="{{item.icon}}" class="icon"></image>
  54. <view class="tit">{{item.text}}</view>
  55. <dot num="3张" offset="{{[-20,-20]}}" radius="19rpx 19rpx 19rpx 0rpx;" wx:if="{{item.text == '优惠券'}}"></dot>
  56. </view>
  57. </van-grid-item>
  58. <van-grid-item use-slot wx:if="{{item.text=='客服热线'}}" wx:for="{{menuList}}" wx:key="*this" class="kf">
  59. <view class="menuItem">
  60. <image src="{{item.icon}}" class="icon"></image>
  61. <view class="tit">{{item.text}}</view>
  62. <dot num="3张" offset="{{[-20,-20]}}" radius="19rpx 19rpx 19rpx 0rpx;" wx:if="{{item.text == '优惠券'}}"></dot>
  63. </view>
  64. <button open-type="contact"></button>
  65. </van-grid-item>
  66. </van-grid>
  67. </view>
  68. </view>
  69. <!-- <taskOrder value="3" bind:rightClick="rightClick"></taskOrder> -->
  70. </view>
  71. </view>