C端小程序
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.7 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==3}}">待退款</text>
  16. <text wx:if="{{item.orderStatus==2}}">已取消</text>
  17. <text wx:if="{{item.orderStatus==4}}">已退款</text>
  18. <text wx:if="{{item.orderStatus==5}}">退款失败</text>
  19. <text wx:if="{{item.orderStatus==1&&item.salePrice==0}}">免费领取</text>
  20. <text wx:if="{{item.orderStatus==1&&item.salePrice!=0}}">已付款</text>
  21. </view>
  22. <view>{{item.subTitle}}</view>
  23. <view>
  24. <text>下单时间:</text>{{item.createDate}}
  25. </view>
  26. </view>
  27. </view>
  28. <view class='payment'>
  29. <view>
  30. <text>¥{{item.salePrice/100}}</text>
  31. <text>¥{{item.price/100}}</text>
  32. </view>
  33. <!--
  34. orderStatus
  35. 0待付款
  36. 1完成
  37. 2取消
  38. -->
  39. <view wx:if="{{item.orderStatus==1}}" class="btn" data-id="{{item.id}}" bindtap="gotopay">
  40. <text>查看详情</text>
  41. </view>
  42. <view wx:if="{{item.orderStatus==0}}" class="btn" data-id="{{item.id}}" bindtap="gotopay">
  43. <text>去支付</text>
  44. </view>
  45. <view wx:if="{{item.orderStatus==2}}" style="background:#999;opacity: .6;" class="btn">
  46. <text>已取消</text>
  47. </view>
  48. <view wx:if="{{item.orderStatus==3}}" style="background:#999;opacity: .6;" class="btn">
  49. <text>待退款</text>
  50. </view>
  51. <view wx:if="{{item.orderStatus==4}}" style="background:#999;opacity: .6;" class="btn">
  52. <text>已退款</text>
  53. </view>
  54. <view wx:if="{{item.orderStatus==5}}" style="background:#999;opacity: .6;" class="btn">
  55. <text>退款失败</text>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="dingdan" wx:if="{{list.length==0}}">
  60. <image src="../../../assets/img/dingdan.png" mode="widthFix"></image>
  61. <text>暂无订单</text>
  62. </view>
  63. </view>
  64. <view class="loading" wx:if="{{loading}}">
  65. <image src="./../../../assets/img/loading.gif" mode="widthFix"></image>{{content}}
  66. </view>
  67. </view>