mineGiftList.wxml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <!--pages/mineGiftList/mineGiftList.wxml 我的礼物 - 列表 -->
  2. <!--orderList.wxml 我的订单 -->
  3. <view class="container">
  4. <view class='header_wrap'>
  5. <view class="header">
  6. <block wx:for="{{navList}}" wx:for-index="i">
  7. <view bindtap="tabNav" data-id="{{i}}" class="header_each {{isSelect == i ? 'header_each_active' : ''}}">{{item.navName}}</view>
  8. </block>
  9. </view>
  10. </view>
  11. <!-- 循环每一个订单 -->
  12. <!-- 送出的礼物 -->
  13. <view class='list_wrap'>
  14. <scroll-view scroll-y class="scoll-h" bindscrolltolower="searchScrollLower">
  15. <block wx:if="{{isSelect == 0}}">
  16. <block wx:for="{{goosdListnew}}" wx:key="index" wx:for-index="i">
  17. <!-- 待发货之后的所有状态 -->
  18. <block wx:if="{{item.order.order_sta > 2}}">
  19. <view wx:if="{{item.order.order_type == 2 || item.order.order_type == 3 }}" class="each_order" >
  20. <view bindtap='giftInfor' data-id="{{i}}" data-onum='{{item.order.order_number_o}}' data-nnum="{{item.orderNumber}}" data-snum="{{item.orderNumberGift}}" data-id="{{i}}">
  21. <view class="order_num">订单号:{{item.orderNumberGift ? item.orderNumberGift : item.order.order_number_o}}</view>
  22. </view>
  23. <view class="goods_infor" bindtap='giftInfor' data-onum='{{item.order.order_number_o}}' data-nnum="{{item.orderNumber}}" data-snum="{{item.orderNumberGift}}" data-id="{{i}}">
  24. <view class="each_goods">
  25. <!-- 循环相同订单的不同产品 -->
  26. <block wx:for="{{item.affList}}" wx:key="*this" wx:for-index="j">
  27. <view class="each_goods_infor">
  28. <!-- 定制 - 预览 -->
  29. <!-- <view wx:if="{{(item.img2 || item.img1) && item.order_sta > 2}}" bindtap='preview' data-id="{{i}}" data-index="{{j}}" data-url="{{item.img2}}" class="yulan_btn">定制预览</view> -->
  30. <image src="{{item.logo}}" class="goods_img"></image>
  31. <view data-id="{{i}}" class="goods_cont">
  32. <view class="goods_name">{{item.com_name}}</view>
  33. <view class="goods_style">
  34. <text wx:if="{{item.com_style1 != 'null'}}">{{item.com_style1}} </text>
  35. <text wx:if="{{item.com_style2 != 'null'}}">{{item.com_style2}} </text>
  36. <text wx:if="{{item.com_style3 != 'null'}}">{{item.com_style3}} </text>
  37. <text wx:if="{{item.com_style4 != 'null'}}">{{item.com_style4}} </text>
  38. <text wx:if="{{item.com_style5 != 'null'}}">{{item.com_style5}} </text>
  39. <text wx:if="{{item.com_dz != 'null'}}">{{item.com_dz}} </text>
  40. <text wx:if="{{item.com_lh != 'null'}}">{{item.com_lh}}</text>
  41. </view>
  42. <view class="goods_num">×{{item.com_num}}</view>
  43. </view>
  44. <view class="clearfix"></view>
  45. </view>
  46. </block>
  47. </view>
  48. </view>
  49. <view class="order_btn_wrap clearfix">
  50. <block wx:if="{{item.receive_flag == 0 || item.receive_flag == null}}">
  51. <view class="order_btn order_btn2">未接收</view>
  52. </block>
  53. <block wx:elif="{{item.receive_flag == 2}}">
  54. <view class="order_btn">礼物超时</view>
  55. </block>
  56. <block wx:else>
  57. <view class="order_btn">已接收</view>
  58. </block>
  59. </view>
  60. </view>
  61. </block>
  62. </block>
  63. </block>
  64. <block wx:else>
  65. <block wx:for="{{goosdListnew}}" wx:key="index" wx:for-index="i" >
  66. <view wx:if="{{item.order != null && item.order.order_sta > 2 && item.order.order_sta < 6 && item.receive_flag == 1}}">
  67. <view class="each_order">
  68. <view class="order_num" bindtap='giftSendInfor' data-onum='{{item.order.order_number_o}}' data-nnum="{{item.orderNumber}}" data-snum="{{item.orderNumberGift}}" data-id="{{i}}">订单号:{{item.orderNumberGift ? item.orderNumberGift : item.order.order_number_o}}</view>
  69. <view class="goods_infor" bindtap='giftSendInfor' data-onum='{{item.order.order_number_o}}' data-nnum="{{item.orderNumber}}" data-snum="{{item.orderNumberGift}}" data-id="{{i}}">
  70. <view class="each_goods">
  71. <block wx:for="{{item.affList}}" wx:key="*this" wx:for-index="j">
  72. <view class="each_goods_infor">
  73. <!-- 定制 - 预览 -->
  74. <!-- <view wx:if="{{(item.img2 || item.img1) && item.order_sta > 2}}" bindtap='preview' data-id="{{i}}" data-index="{{j}}" data-url="{{item.img2}}" class="yulan_btn">定制预览</view> -->
  75. <image src="{{item.logo}}" class="goods_img"></image>
  76. <view data-id="{{i}}" class="goods_cont">
  77. <view class="goods_name">{{item.com_name}}</view>
  78. <view class="goods_style">
  79. <text wx:if="{{item.com_style1 != 'null'}}">{{item.com_style1}} </text>
  80. <text wx:if="{{item.com_style2 != 'null'}}">{{item.com_style2}} </text>
  81. <text wx:if="{{item.com_style3 != 'null'}}">{{item.com_style3}} </text>
  82. <text wx:if="{{item.com_style4 != 'null'}}">{{item.com_style4}} </text>
  83. <text wx:if="{{item.com_style5 != 'null'}}">{{item.com_style5}} </text>
  84. <text wx:if="{{item.com_dz != 'null'}}">{{item.com_dz}} </text>
  85. <text wx:if="{{item.com_lh != 'null'}}">{{item.com_lh}}</text>
  86. </view>
  87. <view class="goods_num">×{{item.com_num}}</view>
  88. </view>
  89. <view class="clearfix"></view>
  90. </view>
  91. </block>
  92. </view>
  93. </view>
  94. <view class="order_btn_wrap clearfix">
  95. <!-- 收到的礼物 : 查看物流 -->
  96. <block wx:if="{{item.order.order_type == 2}}">
  97. <navigator url='/pages/wuliu/wuliu?id={{item.orderNumber ? item.orderNumber : item.order.order_number_o}}' class="order_btn">查看物流</navigator>
  98. </block>
  99. <!-- 收到的礼物 : 领取 -->
  100. <block wx:else>
  101. <!-- <view bindtap='sureSendFriend' data-id="{{i}}" class="order_btn">送朋友</view> -->
  102. <form bindsubmit="sureSendFriend" data-id="{{i}}" report-submit >
  103. <button formType="submit" class='form_button'>
  104. <view data-id="{{i}}" class="order_btn">送朋友</view>
  105. </button>
  106. </form>
  107. <navigator url='/pages/addAddressFriend/addAddressFriend?order_number={{item.orderNumber ? item.orderNumber : item.order.order_number_o}}' class="order_btn">填写地址</navigator>
  108. </block>
  109. </view>
  110. </view>
  111. </view>
  112. </block>
  113. </block>
  114. <view class="loading" hidden="{{!searchLoading}}">加载中...</view>
  115. <view class="loading complete" hidden="{{!searchLoadingComplete}}"></view>
  116. </scroll-view>
  117. </view>
  118. </view>
  119. <!-- 回到首页 -->
  120. <view bindtap='backIndex' class="back_btn {{showBtn ? '' : 'back_btn_hidden'}}">
  121. <image src='/images/share_back_index.png' class='back_btn_icon'></image>
  122. </view>
  123. <!-- 送朋友 -->
  124. <view class="qrfh_wrap {{showSendFriendMsg ? '' : 'hidden'}}">
  125. <view class='qrfh_content_wrap'>
  126. <view class='qrfh_cont_wrap'>
  127. <view class='qrfh_cont'>将会按照朋友填写的地址为您发货,</view>
  128. <view class='qrfh_cont'>是否确认?</view>
  129. </view>
  130. <view class='qrsh_btn_wrap clearfix'>
  131. <view class='qrfh_cancle' bindtap='cancelSendFriend'>取消</view>
  132. <view class='qrfh_sure' bindtap='sureSendFriend'>确定</view>
  133. </view>
  134. </view>
  135. </view>