myService.wxml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!--pages/my/myService/myService.wxml-->
  2. <view class="service-container">
  3. <view class="tabs">
  4. <view class="tab {{index == currentTab ? 'tab-active' : ''}}" wx:for="{{tabs}}" wx:key="i" data-index="{{item.i}}" bindtap="tabChange">
  5. <text class="tab-item {{index == currentTab ? 'activeTab' : ''}}">{{item.title}}</text>
  6. </view>
  7. </view>
  8. <!-- type 预约方式 0线下请教 -->
  9. <!-- process 请教流程 -1 拒绝请教 0预约 1支付成功 2行家接受 3完成请教 4评价 -->
  10. <view class="main">
  11. <view class="box" wx:for="{{list}}" wx:key="{{item.meetId}}" data-meetId="{{item.meetId}}" bindtap="toServiceDetail">
  12. <view class="info">
  13. <view class="classify">{{item.type == 0 ? '线下请教' : ''}}</view>
  14. <view class="label">预约时间:<text class="num">{{item.meetTime}}</text></view>
  15. <view class="tip"># {{item.topicName}}</view>
  16. </view>
  17. <view class="status">
  18. <button class="btn" wx:if="{{item.process == 0 || item.process == 1}}">待处理</button>
  19. <button class="btn refuse" wx:if="{{item.process == -1}}">已拒绝</button>
  20. <button class="btn dispose" wx:if="{{item.process == 2}}">处理中</button>
  21. <button class="btn finish" wx:if="{{item.process == 3 || item.process == 4}}">已完成</button>
  22. <view class="serve-price">¥<text class="num">{{item.topicPrice}}</text>元</view>
  23. </view>
  24. </view>
  25. </view>
  26. <block wx:if="{{total <= 0}}">
  27. <view class='tc h100'>
  28. <image src="{{nodata}}" class='nodata-img'></image>
  29. </view>
  30. </block>
  31. </view>