index.wxml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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" open-type="getPhoneNumber" 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="toUrl" 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-item use-slot class="kf">
  67. <view class="menuItem" style="width: 140rpx;" catchtap="goqjm">
  68. <image src="../../../image/my/02.png" class="icon"></image>
  69. <view class="tit">取件码取件</view>
  70. </view>
  71. </van-grid-item>
  72. </van-grid>
  73. </view>
  74. </view>
  75. <!-- <taskOrder value="3" bind:rightClick="rightClick"></taskOrder> -->
  76. </view>
  77. </view>
  78. <van-popup show="{{ show }}" bind:close="onClose" custom-style="height: 40%;">
  79. <view class="section10">
  80. <view class="layer1">
  81. <text lines="1" class="txt5">输入取件码</text>
  82. <image src="" class="icon2"></image>
  83. </view>
  84. <view class="layer2">
  85. <text lines="1" class="txt6">下方输入用户提供的六位数取件码</text>
  86. </view>
  87. <view class="layer3">
  88. <view class="pic2">
  89. <view class="input">{{one}}</view>
  90. <view class="input">{{two}}</view>
  91. <view class="input">{{three}}</view>
  92. <view class="input">{{four}}</view>
  93. <view class="input">{{five}}</view>
  94. <view class="input">{{six}}</view>
  95. <input auto-focus="{{focus}}" type="number" maxlength="6" model:value="{{inputValue}}" bindinput="finish"></input>
  96. </view>
  97. </view>
  98. </view>
  99. </van-popup>