changePrice.wxml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <view>
  2. <view class="goodsBox">
  3. <block wx:for="{{order_goods}}" wx:for-item="goods" wx:if="{{order_goods.length}}" wx:key="order_goods_id">
  4. <view class="border-bottom bg-f p15">
  5. <view class="item i-flex border-bottom pb15 mb10">
  6. <i-img defaultImage="../../images/placeholder-refund.png" height="160" iClass="img-class" lazyLoad="true" loadImage="{{goods.goods_img_url}}" width="160"></i-img>
  7. <view class="i-flex-item ml10 i-flex-col jcontent-c">
  8. <view class="fsz-28 weight">{{goods.name}}</view>
  9. <view class="price mt10 fsz-22 text-gray">¥{{goods.price}} x{{goods.quantity}}</view>
  10. <view class="fsz-24 mt-auto">小计:<text class="red">{{goods.old_total}}</text></view>
  11. </view>
  12. </view>
  13. <view class="i-flex i-flex-spb mt5">
  14. <view>最多可减金额</view>
  15. <view class="red weight">¥{{goods.max_total}}</view>
  16. </view>
  17. <view class="i-flex i-flex-spb mt10">
  18. <view>涨价或减价</view>
  19. <view>
  20. <view class="i-flex i-flex-alc">
  21. <text class="iconfont icon-jian red iptbtn" bindtap="reduceIpt" data-type="reduce" data-idx="{{index}}"></text>
  22. <input class="text-center iptnum" type="text" bindblur="changeNumber" value="{{priceArr[index]}}" data-idx="{{index}}"></input>
  23. <text class="iconfont icon-jia red iptbtn" bindtap="reduceIpt" data-type="add" data-idx="{{index}}"></text>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </block>
  29. </view>
  30. <view class="bg-f p15 mt10" wx:if="orders">
  31. <view>注:只有在订单未付款时才支持改价,商品改价后价格不能小于 0 元,订单修改的价格不包含优惠信息,运费价格是 0 的时候商品免运费</view>
  32. <view class="mt5 red">买家实付 = 原价 + 运费 + 涨价或减价 - 优惠 </view>
  33. <view class="fsz-26">
  34. <view class="i-flex i-flex-spb mt10">
  35. <view class="text-6">原价</view>
  36. <view>+ ¥{{orders.old_price}}</view>
  37. </view>
  38. <view class="i-flex i-flex-spb mt10">
  39. <view class="text-6">运费</view>
  40. <view>+ ¥{{orders.shipping_fare}}</view>
  41. </view>
  42. <view class="i-flex i-flex-spb mt10">
  43. <view class="text-6">涨价或减价</view>
  44. <view>{{changePrice>=0?'+':'-'}} ¥{{changePrice>=0?changePrice:-changePrice}}</view>
  45. </view>
  46. <view class="i-flex i-flex-spb mt10 border-bottom pb15">
  47. <view class="text-6">优惠</view>
  48. <view>- ¥{{orders.youhui_total}}</view>
  49. </view>
  50. <view class="i-flex i-flex-spb mt10">
  51. <view class="text-6"></view>
  52. <view class="fsz-28">买家实付: <text class="red weight fsz-34">¥{{buyer_total}}</text></view>
  53. </view>
  54. </view>
  55. </view>
  56. <view style="height:120rpx;"></view>
  57. <view class="safebottom"></view>
  58. <i-fixed-bottom>
  59. <view class="fixed-bottom i-flex i-flex-spb shadow-top">
  60. <view style="padding-left:30rpx;">
  61. 商品改价:
  62. <text class="red weight fsz-34" wx:if="{{changePrice>=0}}">+¥{{changePrice}}</text>
  63. <text class="red weight fsz-34" wx:else>-¥{{-changePrice}}</text>
  64. </view>
  65. <view class="bg-primary btn" bindtap="subChange">确认改价</view>
  66. </view>
  67. </i-fixed-bottom>
  68. </view>