index.wxml 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!--
  2. - Copyright (C) 2018-2019
  3. - All rights reserved, Designed By www.joolun.com
  4. - 注意:
  5. - 本软件为www.joolun.com开发研制,项目使用请保留此说明
  6. -->
  7. <wxs module="numberUtil" src="../../../utils/numberUtil.wxs"></wxs>
  8. <view class="margin-bottom-bar">
  9. <view class="cu-list menu-avatar">
  10. <navigator class="cu-item" url='/pages/user/user-address/list/index?select=true' wx:if="{{orderSubParm.deliveryWay == '1'}}">
  11. <view class="cu-avatar round cuIcon-location bg-black"></view>
  12. <view class="content loc-content" wx:if="{{userAddress}}">
  13. <view class="flex padding-top-sm">
  14. <view class="cu-tag bg-red radius margin-right-sm" wx:if="{{userAddress.isDefault == '1'}}">默认</view>
  15. <view class="text-black">{{userAddress.userName}}</view>
  16. <view class="text-gray text-sm margin-left-sm">{{userAddress.telNum}}</view>
  17. </view>
  18. <view class="text-gray text-sm overflow-2 loc-info padding-bottom-sm address">
  19. {{userAddress.provinceName}}{{userAddress.cityName}}{{ituserAddressem.countyName}}{{userAddress.detailInfo}}
  20. </view>
  21. </view>
  22. <view class="content loc-content" wx:if="{{!userAddress}}">
  23. 请选择收货地址
  24. </view>
  25. <view class="action">
  26. <text class="cuIcon-right"></text>
  27. </view>
  28. </navigator>
  29. </view>
  30. <view class="cu-card article">
  31. <view class="cu-item">
  32. <view class="cu-list menu">
  33. <view wx:for="{{ orderConfirmData }}" wx:key="index">
  34. <view class="flex align-center">
  35. <image src="{{item.picUrl ? item.picUrl : '/public/img/no_pic.png'}}" mode="aspectFill" class="row-img margin-top-xs"></image>
  36. </view>
  37. <view class="row-info margin-left">
  38. <view class="text-black margin-top-xl overflow-2">{{item.spuName}}</view>
  39. <view class="text-gray text-sm margin-top-xs cu-tag round" wx:if="{{item.specInfo}}">{{item.specInfo}}</view>
  40. <view class="flex margin-top-sm">
  41. <view class="flex-sub">
  42. <text class="text-price text-xl text-blue text-bold margin-top-sm">{{item.salesPrice}}</text>
  43. </view>
  44. <view class="flex-twice text-gray text-sm text-right margin-right">
  45. x{{item.quantity}}
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="cu-item margin-top-sm">
  51. <text class="text-gray text-sm">订单金额</text>
  52. <view class="action">
  53. <view class="text-price">{{salesPrice}}</view>
  54. </view>
  55. </view>
  56. <view class="cu-item margin-top-sm">
  57. <text class="text-gray text-sm">运费金额</text>
  58. <view class="action">
  59. <view class="text-price">{{freightPrice}}</view>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="cu-card mar-top-30">
  66. <view class="cu-item cu-form-group align-start" style="height:200rpx;">
  67. <input style="font-size:24rpx; margin-top:20rpx;" bindinput="userMessageInput" placeholder="给卖家留言"></input>
  68. </view>
  69. </view>
  70. </view>
  71. <view class="cu-bar tabbar bg-white border foot">
  72. <view class="flex response">
  73. <view class="flex-sub"></view>
  74. <view class="flex-treble bar-rt">
  75. <text class="text-sm text-gray">共{{ orderConfirmData.length }}件,</text>
  76. <text class="text-sm text-gray">合计:</text>
  77. <text class="text-xl text-price text-blue text-bold">{{numberUtil.numberAddition(paymentPrice,freightPrice)}}</text>
  78. <button class="cu-btn shadow-blur margin-left-sm" style="background-color: #2967ff;font-weight:300;width:220rpx;" bindtap="orderSub" loading="{{loading}}" disabled="{{loading}}" type="">
  79. <text class="text-white">提交订单</text>
  80. </button>
  81. </view>
  82. </view>
  83. </view>
  84. <user-auth/>