C端小程序
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

55 行
1.9 KiB

  1. <view class="market">
  2. <i-tabs class='tabs' current="{{ current_scroll }}" scroll bindchange="handleChangeScroll">
  3. <i-tab class='i-tab' wx:for="{{tabs}}" wx:key="unique" key="{{item.key}}" title="{{item.name}}"></i-tab>
  4. </i-tabs>
  5. <view>
  6. <view wx:if="{{list.length!=0}}" class='section' wx:for='{{list}}' wx:key='{{index}}'>
  7. <view class='detail_msg'>
  8. <view class='logo'>
  9. <image src='{{item.coverImg}}'></image>
  10. </view>
  11. <view class='info'>
  12. <view>
  13. <text>{{item.title}}</text>
  14. <text wx:if="{{item.orderStatus==0}}">待付款</text>
  15. <text wx:if="{{item.orderStatus==1}}">已付款</text>
  16. <text wx:if="{{item.orderStatus==2}}">已过期</text>
  17. </view>
  18. <view>{{item.subTitle}}</view>
  19. <view>
  20. <text>下单时间:</text>{{createDate}}
  21. </view>
  22. </view>
  23. </view>
  24. <view class='payment'>
  25. <view>
  26. <text>¥{{item.salePrice/100}}</text>
  27. <text>¥{{item.price/100}}</text>
  28. </view>
  29. <!--
  30. orderStatus
  31. 0待付款
  32. 1完成
  33. 2取消
  34. -->
  35. <view wx:if="{{item.orderStatus==1}}" class="btn" data-id="{{item.id}}" bindtap="gotopay">
  36. <text>查看详情</text>
  37. </view>
  38. <view wx:if="{{item.orderStatus==0}}" class="btn" data-id="{{item.id}}" bindtap="gotopay">
  39. <text>支付</text>
  40. </view>
  41. <view wx:if="{{item.orderStatus==2}}" style="background:#999;" class="btn">
  42. <text>已过期</text>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="dingdan" wx:if="{{list.length==0}}">
  47. <image src="../../../assets/img/dingdan.png" mode="widthFix"></image>
  48. <text>暂无订单</text>
  49. </view>
  50. </view>
  51. <view class="loading" wx:if="{{loading}}">
  52. <image src="./../../../assets/img/loading.gif" mode="widthFix"></image>{{content}}
  53. </view>
  54. </view>