index.wxml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <wxs module="m1">
  2. var getPrice = function(a, b) {
  3. b = b?b:0;
  4. var c = a*1+b*1;
  5. return c.toFixed(2);
  6. }
  7. module.exports.getPrice = getPrice;
  8. </wxs>
  9. <i-card showModal="true">
  10. <view slot="header">
  11. <view class="header">{{ordername}}信息</view>
  12. </view>
  13. <view slot="content">
  14. <view class="content-wrap">
  15. <view class="item">
  16. <view class="title">{{ordername}}编号</view>
  17. <view class="detail">{{orderInfo.order_num_alias}}</view>
  18. </view>
  19. <view class="item">
  20. <view class="title">下单时间</view>
  21. <view class="detail">
  22. <text>{{orderInfo.date_added}}</text>
  23. </view>
  24. </view>
  25. <view class="item" wx:if="{{orderInfo.pay_time >0}}">
  26. <view class="title">支付时间</view>
  27. <view class="detail">
  28. <text>{{orderInfo.pay_date}}</text>
  29. </view>
  30. </view>
  31. <view class="item" wx:if="{{orderInfo.express_tuanz_time}}">
  32. <view class="title">送达时间</view>
  33. <view class="detail">
  34. <text>{{orderInfo.express_tuanz_date}}</text>
  35. </view>
  36. </view>
  37. <view class="item" wx:if="{{orderInfo.receive_time}}">
  38. <view class="title">收货时间</view>
  39. <view class="detail">
  40. <text>{{orderInfo.receive_date}}</text>
  41. </view>
  42. </view>
  43. <view class="item" wx:if="{{orderInfo.shipping_fare>0}}">
  44. <block wx:if="{{orderInfo.delivery=='localtown_delivery'}}">
  45. <view class="title">同城配送费</view>
  46. </block>
  47. <block wx:else>
  48. <view class="title" wx:if="{{orderInfo.type=='integral'}}">{{groupInfo.placeorder_trans_name}}</view>
  49. <view class="title" wx:else>{{diyshipname}}</view>
  50. </block>
  51. <view class="detail">
  52. + ¥{{orderInfo.shipping_fare}}
  53. </view>
  54. </view>
  55. <block wx:if="{{orderInfo.is_free_shipping_fare==1}}">
  56. <!-- <view class="item">
  57. <view class="title">{{diyshipname}}</view>
  58. <view class="detail">
  59. + ¥{{orderInfo.fare_shipping_free}}
  60. </view>
  61. </view> -->
  62. <view class="item">
  63. <view class="title">满金额免{{diyshipname}}</view>
  64. <view class="detail">
  65. - ¥{{orderInfo.fare_shipping_free}}
  66. </view>
  67. </view>
  68. </block>
  69. <view class="item" wx:if="{{(orderInfo.score_for_money*1)>0}}">
  70. <view class="title">积分抵扣</view>
  71. <view class="detail">
  72. - ¥{{orderInfo.score_for_money}}
  73. </view>
  74. </view>
  75. <view class="item" wx:if="{{is_vipcard_buy==1&&levelAmount>0}}">
  76. <view class="title">会员优惠</view>
  77. <view class="detail">
  78. - ¥{{m1.getPrice(levelAmount, orderInfo.admin_change_price)}}
  79. </view>
  80. </view>
  81. <view class="item" wx:if="{{is_level_buy==1&&is_vipcard_buy!=1&&levelAmount>0}}">
  82. <view class="title">等级折扣</view>
  83. <view class="detail">
  84. - ¥{{m1.getPrice(levelAmount, orderInfo.admin_change_price)}}
  85. </view>
  86. </view>
  87. <view class="item" wx:if="{{orderInfo.voucher_credit>0}}">
  88. <view class="title">优惠券</view>
  89. <view class="detail">
  90. - ¥{{orderInfo.voucher_credit}}
  91. </view>
  92. </view>
  93. <view class="item" wx:if="{{orderInfo.fullreduction_money>0}}">
  94. <view class="title">满减</view>
  95. <view class="detail">
  96. - ¥{{orderInfo.fullreduction_money}}
  97. </view>
  98. </view>
  99. <view class="item" wx:if="{{orderInfo.packing_fare>0}}">
  100. <view class="title">{{groupInfo.localtown_modifypickingname}}</view>
  101. <view class="detail">+ ¥{{orderInfo.packing_fare}}</view>
  102. </view>
  103. <view class="item" wx:if="{{orderInfo.localtown_add_shipping_fare>0}}">
  104. <view class="title">加价配送费</view>
  105. <view class="detail">+ ¥{{orderInfo.localtown_add_shipping_fare}}</view>
  106. </view>
  107. <view class="item" wx:if="{{orderInfo.is_change_price==1&&changePrice>0}}">
  108. <view class="title">商家改价</view>
  109. <view class="detail">{{orderInfo.total>orderInfo.old_price?'+':'-'}} ¥{{changePrice}}</view>
  110. </view>
  111. <view class="item">
  112. <view class="title">商品金额</view>
  113. <view class="detail">
  114. + <block wx:if="{{orderInfo.type!='integral'}}">¥</block>{{goodsTotal}}<block wx:if="{{orderInfo.type=='integral'}}">积分</block>
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. <view slot="footer">
  120. <view class="footer" wx:if="{{orderInfo.type=='integral'}}">
  121. <view>实付:</view>
  122. <view class="money">
  123. <block wx:if="{{orderInfo.shipping_fare>0}}">¥{{orderInfo.shipping_fare}} + </block>{{orderInfo.score}}积分
  124. </view>
  125. </view>
  126. <view class="footer" wx:else>
  127. <view>合计:</view>
  128. <view class="money">
  129. ¥{{orderInfo.total}}
  130. </view>
  131. </view>
  132. </view>
  133. </i-card>