抖音b端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

appointment.ttml 3.5 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <view>
  2. <view class="input">
  3. <input type="number" placeholder="手机号查询" bindinput="handleInput" value="{{Phone}}" />
  4. <button type="default" size="default" bindtap="getList">
  5. 搜索
  6. </button>
  7. </view>
  8. <view class="nav">
  9. <view class="{{ currentID == 1 ? 'currentItem' : 'item' }}" bindtap="setNav" data-id="1">
  10. <text>类型</text>
  11. <image mode="widthFix" src="../../assets/images/arrow.png"></image>
  12. </view>
  13. <view class="{{ currentID == 2 ? 'currentItem' : 'item' }}" bindtap="setNav" data-id="2">
  14. <text>日期</text>
  15. <image mode="widthFix" src="../../assets/images/arrow.png">
  16. </image>
  17. </view>
  18. </view>
  19. <view class="{{ currentID == 1 ? 'type active' : 'type' }}">
  20. <view class="item" bindtap="setType" data-type="X">全部</view>
  21. <view class="item" bindtap="setType" data-type="Y">待确认</view>
  22. <view class="item" bindtap="setType" data-type="-1">未预约</view>
  23. <view class="item" bindtap="setType" data-type="5">已确认</view>
  24. <view class="item" bindtap="setType" data-type="8">已完成</view>
  25. </view>
  26. <view tt:if="{{ currentID == 2 }}" class="pickedTime">
  27. <picker class="picker" mode="date" bindchange="setStartTime">{{ startTime }}</picker> 至 <picker class="picker"
  28. mode="date" bindchange="setEndTime">{{ endTime }}</picker>
  29. <button class="search" type="primary" bindtap="search">查询</button>
  30. </view>
  31. <view class="{{ currentID != 1 ? 'list active' : 'list' }}">
  32. <view tt:if="{{ list.length > 0 }}" class="item" tt:for="{{ list }}">
  33. <view class="head">
  34. <view>券码:{{ item.couponOrderId }}</view>
  35. <view tt:if="{{ item.status == 0 }}" class="notice noAppoint">待确认</view>
  36. <view tt:if="{{ item.status == 1 }}" class="notice noAppoint">已取消</view>
  37. <view tt:if="{{ item.status == 3 }}" class="notice refund">已退款</view>
  38. <view tt:if="{{ item.status == 5 }}" class="notice confirm">已确认</view>
  39. <view tt:if="{{ item.status == '-1' }}" class="notice confirm">未预约</view>
  40. <view tt:if="{{ item.status == 8 }}" class="notice complete">已完成</view>
  41. <view tt:if="{{ item.status == 9 }}" class="notice complete">已评价</view>
  42. </view>
  43. <view class="body">
  44. <view class="items">商品名称:{{ item.couponTitle }}</view>
  45. <view class="items">店铺名称:{{ item.reservationMerchantName }}</view>
  46. <view class="items">用户手机号码:{{ item.userPhone }}</view>
  47. <view class="items">服务预约时间:<text tt:if="{{ item.appointTime == '暂无' }}">暂无</text></view>
  48. <view tt:if="{{ item.appointTime != '暂无' }}" class="items">{{ item.appointTime }}</view>
  49. </view>
  50. <view class="footer">
  51. <button type="primary" bindtap="goDetail" data-id="{{ item.id }}">详情</button>
  52. <button tt:if="{{item.status==-1||item.status==0||item.status==5||item.status==7}}" type="primary"
  53. bindtap="goVerification" data-id="{{ item.id }}"
  54. data-shop="{{ item.reservationMerchantName }}">核销</button>
  55. </view>
  56. </view>
  57. <view tt:if="{{ list.length == 0 }}" class="itemXX">
  58. 暂无记录
  59. </view>
  60. </view>
  61. </view>