index.wxml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <navbar parameter='{{parameter}}' id="navbar"></navbar>
  2. <view class='order-details'>
  3. <!-- 给header上与data上加on为退款订单-->
  4. <view class='header bg-color acea-row row-middle {{isGoodsReturn ? "on":""}}'>
  5. <view class='pictrue' wx:if="{{isGoodsReturn==false}}"><image src='{{orderInfo.status_pic}}'></image></view>
  6. <view class='data {{isGoodsReturn ? "on":""}}'>
  7. <view class='state'>{{orderInfo._status._msg}}</view>
  8. <view>{{orderInfo.add_time_y}}<text class='time'>{{orderInfo.add_time_h}}</text></view>
  9. </view>
  10. </view>
  11. <view wx:if="{{isGoodsReturn==false}}">
  12. <view class='nav'>
  13. <view class='navCon acea-row row-between-wrapper'>
  14. <view class="{{status.type == 0 || status.type == -9 ? 'on':''}}">待付款</view>
  15. <view class="{{status.type == 1 ? 'on':''}}">{{orderInfo.shipping_type==1 ? '待发货':'待核销'}}</view>
  16. <view class="{{status.type == 2 ? 'on':''}}" wx:if="{{orderInfo.shipping_type == 1}}">待收货</view>
  17. <view class="{{status.type == 3 ? 'on':''}}">待评价</view>
  18. <view class="{{status.type == 4 ? 'on':''}}">已完成</view>
  19. </view>
  20. <view class='progress acea-row row-between-wrapper'>
  21. <view class='iconfont {{status.type == 0 || status.type == -9 ? "icon-webicon318":"icon-yuandianxiao"}} {{status.type >= 0 ? "font-color":""}}'></view>
  22. <view class='line {{status.type > 0 ? "bg-color":""}}'></view>
  23. <view class='iconfont {{status.type == 1 ? "icon-webicon318":"icon-yuandianxiao"}} {{status.type >= 1 ? "font-color":""}}'></view>
  24. <view class='line {{status.type > 1 ? "bg-color":""}}' wx:if="{{orderInfo.shipping_type == 1}}"></view>
  25. <view class='iconfont {{status.type == 2 ? "icon-webicon318":"icon-yuandianxiao"}} {{status.type >= 2 ? "font-color":""}}' wx:if="{{orderInfo.shipping_type == 1}}"></view>
  26. <view class='line {{status.type > 2 ? "bg-color":""}}'></view>
  27. <view class='iconfont {{status.type == 3 ? "icon-webicon318":"icon-yuandianxiao"}} {{status.type >= 3 ? "font-color":""}}'></view>
  28. <view class='line {{status.type > 3 ? "bg-color":""}}'></view>
  29. <view class='iconfont {{status.type == 4 ? "icon-webicon318":"icon-yuandianxiao"}} {{status.type >= 4 ? "font-color":""}}'></view>
  30. </view>
  31. </view>
  32. <view class="writeOff" wx:if="{{orderInfo.shipping_type == 2 && orderInfo.paid}}">
  33. <view class="title">核销信息</view>
  34. <view class="grayBg">
  35. <view class="pictrue"><image src="{{orderInfo.code}}"></image></view>
  36. </view>
  37. <view class="gear"><image src="/images/writeOff.jpg"></image></view>
  38. <view class="num">{{orderInfo._verify_code}}</view>
  39. <view class="rules">
  40. <view class="item">
  41. <view class="rulesTitle acea-row row-middle">
  42. <text class="iconfont icon-shijian"></text>核销时间
  43. </view>
  44. <view class="info">
  45. 每日:<text class="time">{{orderInfo.system_store.day_time}}</text>
  46. </view>
  47. </view>
  48. <view class="item">
  49. <view class="rulesTitle acea-row row-middle">
  50. <text class="iconfont icon-shuoming1"></text>使用说明
  51. </view>
  52. <view class="info">可将二维码出示给店员扫描或提供数字核销码</view>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="map acea-row row-between-wrapper" wx:if="{{orderInfo.shipping_type == 2}}">
  57. <view>自提地址信息</view>
  58. <view class="place cart-color acea-row row-center-wrapper" bindtap="showMaoLocation">
  59. <text class="iconfont icon-weizhi"></text>查看位置
  60. </view>
  61. </view>
  62. <view class='address' wx:if="{{orderInfo.shipping_type === 1 }}">
  63. <view class='name'>{{orderInfo.real_name}}<text class='phone'>{{orderInfo.user_phone}}</text></view>
  64. <view>{{orderInfo.user_address}}</view>
  65. </view>
  66. <view class='address' wx:else style="margin-top:0;">
  67. <view class='name' bindtap="makePhone">{{orderInfo.system_store.name}}<text class='phone'>{{orderInfo.system_store.phone}}</text><text class="iconfont icon-tonghua font-color"></text></view>
  68. <view>{{orderInfo.system_store._detailed_address}}</view>
  69. </view>
  70. <view class='line' wx:if="{{orderInfo.shipping_type === 1}}"><image src='/images/line.jpg'></image></view>
  71. </view>
  72. <orderGoods evaluate='{{evaluate}}' orderId="{{order_id}}" cartInfo="{{cartInfo}}"></orderGoods>
  73. <button open-type="contact" hover-class='none' class="contactCustomer font-color"><text class='iconfont icon-kefu'></text>联系客服</button>
  74. <view class='wrapper'>
  75. <view class='item acea-row row-between'>
  76. <view>订单编号:</view>
  77. <view class='conter acea-row row-middle row-right'>{{orderInfo.order_id}}<text class='copy' bindtap='copy'>复制</text></view>
  78. </view>
  79. <view class='item acea-row row-between'>
  80. <view>下单时间:</view>
  81. <view class='conter'>{{(orderInfo.add_time_y || '') +' '+(orderInfo.add_time_h || 0)}}</view>
  82. </view>
  83. <view class='item acea-row row-between'>
  84. <view>支付状态:</view>
  85. <view class='conter' wx:if="{{orderInfo.paid}}">已支付</view>
  86. <view class='conter' wx:else>未支付</view>
  87. </view>
  88. <view class='item acea-row row-between'>
  89. <view>支付方式:</view>
  90. <view class='conter'>{{orderInfo._status._payType}}</view>
  91. </view>
  92. <view class='item acea-row row-between' wx:if="{{orderInfo.mark}}">
  93. <view>买家留言:</view>
  94. <view class='conter'>{{orderInfo.mark}}</view>
  95. </view>
  96. </view>
  97. <!-- 退款订单详情 -->
  98. <view class='wrapper' wx:if="{{isGoodsReturn}}">
  99. <view class='item acea-row row-between'>
  100. <view>收货人:</view>
  101. <view class='conter'>{{orderInfo.real_name}}</view>
  102. </view>
  103. <view class='item acea-row row-between'>
  104. <view>联系电话:</view>
  105. <view class='conter'>{{orderInfo.user_phone}}</view>
  106. </view>
  107. <view class='item acea-row row-between'>
  108. <view>收货地址:</view>
  109. <view class='conter'>{{orderInfo.user_address}}</view>
  110. </view>
  111. </view>
  112. <view wx:if="{{orderInfo.status!=0}}">
  113. <view class='wrapper' wx:if='{{orderInfo.delivery_type=="express" }}'>
  114. <view class='item acea-row row-between'>
  115. <view>配送方式:</view>
  116. <view class='conter'>发货</view>
  117. </view>
  118. <view class='item acea-row row-between'>
  119. <view>快递公司:</view>
  120. <view class='conter'>{{orderInfo.delivery_name || ''}}</view>
  121. </view>
  122. <view class='item acea-row row-between'>
  123. <view>快递号:</view>
  124. <view class='conter'>{{orderInfo.delivery_id || ''}}</view>
  125. </view>
  126. </view>
  127. <view class='wrapper' wx:elif='{{orderInfo.delivery_type=="send"}}'>
  128. <view class='item acea-row row-between'>
  129. <view>配送方式::</view>
  130. <view class='conter'>送货</view>
  131. </view>
  132. <view class='item acea-row row-between'>
  133. <view>配送人姓名:</view>
  134. <view class='conter'>{{orderInfo.delivery_name || ''}}</view>
  135. </view>
  136. <view class='item acea-row row-between'>
  137. <view>联系电话:</view>
  138. <view class='conter acea-row row-middle row-right'>{{orderInfo.delivery_id || ''}}<text class='copy' bindtap='goTel'>拨打</text></view>
  139. </view>
  140. </view>
  141. <view class='wrapper' wx:elif='{{orderInfo.delivery_type=="fictitious"}}'>
  142. <view class='item acea-row row-between'>
  143. <view>虚拟发货:</view>
  144. <view class='conter'>已发货,请注意查收</view>
  145. </view>
  146. </view>
  147. </view>
  148. <view class='wrapper'>
  149. <view class='item acea-row row-between'>
  150. <view>支付金额:</view>
  151. <view class='conter'>¥{{orderInfo.total_price}}</view>
  152. </view>
  153. <view class='item acea-row row-between' wx:if='{{orderInfo.coupon_id}}'>
  154. <view>优惠券抵扣:</view>
  155. <view class='conter'>-¥{{orderInfo.coupon_price}}</view>
  156. </view>
  157. <view class='item acea-row row-between' wx:if='{{orderInfo.use_integral > 0}}'>
  158. <view>积分抵扣:</view>
  159. <view class='conter'>-¥{{orderInfo.deduction_price}}</view>
  160. </view>
  161. <view class='item acea-row row-between' wx:if="{{orderInfo.pay_postage > 0}}">
  162. <view>运费:</view>
  163. <view class='conter'>¥{{orderInfo.pay_postage}}</view>
  164. </view>
  165. <view class='actualPay acea-row row-right'>实付款:<text class='money font-color'>¥{{orderInfo.pay_price}}</text></view>
  166. </view>
  167. <view style='height:120rpx;'></view>
  168. <view class='footer acea-row row-right row-middle' wx:if="{{isGoodsReturn==false || status.type == 9}}">
  169. <view class='bnt bg-color' wx:if="{{status.type==0}}" data-order_id='{{orderInfo.order_id}}' bindtap='pay_open'>立即付款</view>
  170. <view bindtap="openSubcribe" class='bnt cancel' wx:elif="{{orderInfo.paid === 1 && orderInfo.refund_status === 0}}" hover-class='none' data-url='/pages/goods_return/index?orderId={{orderInfo.order_id}}'>申请退款</view>
  171. <view class='bnt bg-color' wx:if="{{status.class_status==1}}" bindtap='goJoinPink'>查看拼团</view>
  172. <navigator class='bnt cancel' wx:if="{{orderInfo.delivery_type == 'express' && status.type!=0}}" hover-class='none' url='/pages/goods_logistics/index?orderId={{orderInfo.order_id}}'>查看物流</navigator>
  173. <view class='bnt bg-color' wx:if="{{status.class_status==3}}" bindtap='confirmOrder'>确认收货</view>
  174. <view class='bnt cancel' wx:if="{{status.type==4}}" bindtap='delOrder'>删除订单</view>
  175. <view class='bnt bg-color' wx:if="{{status.class_status==5}}" bindtap='goOrderConfirm'>再次购买</view>
  176. </view>
  177. </view>
  178. <home></home>
  179. <authorize bind:onLoadFun='onLoadFun'></authorize>
  180. <payment payMode='{{payMode}}' pay_close="{{pay_close}}" bind:onChangeFun='onChangeFun' order_id="{{pay_order_id}}" totalPrice='{{totalPrice}}'></payment>
  181. <generalWindow
  182. generalActive='{{generalActive}}'
  183. generalContent='{{generalContent}}'
  184. bind:generalWindow='generalWindow'
  185. wx:if='{{generalContent}}'
  186. ></generalWindow>