index.wxml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!-- nova-tourism/pages/shop/order/index.wxml -->
  2. <nav type="back" background-color="{{activeColor}}" title="订单详情" frontColor="#ffffff" />
  3. <view class="infomation">
  4. <view class="title" style="background-color: {{activeColor}};">配送信息</view>
  5. <view class="name">
  6. <view class="key">姓名</view>
  7. <view class="value">
  8. <input class="ipt" model:value="{{realName}}" type="text" placeholder="请输入真实姓名" placeholder-style="color: #bbb;"></input>
  9. </view>
  10. </view>
  11. <view class="mobile">
  12. <view class="key">联系电话</view>
  13. <view class="value">
  14. <input class="ipt" model:value="{{mobile}}" type="text" placeholder="请输入有效联系电话" placeholder-style="color: #bbb;"></input>
  15. </view>
  16. </view>
  17. <view class="address">
  18. <view class="key">送货地址</view>
  19. <view class="value">
  20. <input class="ipt" model:value="{{address}}" type="text" placeholder="请输入详细地址" placeholder-style="color: #bbb;"></input>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="goodsList">
  25. <view class="status" style="background-color: {{activeColor}};">
  26. {{
  27. order.status == '100' ? '待付款' :
  28. (order.status == '200' ? '已支付' :
  29. (order.status == '300' ? '已出单' :
  30. (order.status == '400' ? '已送达' :
  31. (order.status == '500' ? '退款申请中' :
  32. (order.status == '601' ? '退款审核通过' :
  33. (order.status == '602' ? '退款审核被驳回' :
  34. (order.status == '700' ? '退款成功' :
  35. (order.status == '800' ? '已评价' : '' ))))))))
  36. }}
  37. </view>
  38. <view class="store">
  39. <view class="img">
  40. <image src="{{order.store.cover}}" mode="aspectFill"></image>
  41. </view>
  42. <view class="storeName">{{order.store.storeName}}</view>
  43. </view>
  44. <view class="goods" wx:for="{{goods}}" wx:key="index">
  45. <view class="img">
  46. <image src="{{item.image}}" mode="aspectFill"></image>
  47. </view>
  48. <view class="info">
  49. <view class="name">{{item.name}}</view>
  50. <view class="desc">{{item.desc ? item.desc : '暂无商品介绍'}}</view>
  51. </view>
  52. <view class="data">
  53. <view class="price">¥{{item.price >= 0 ? item.price : 0}}</view>
  54. <view class="originalPrice">¥{{item.originalPrice >= 0 ? item.originalPrice : 0}}</view>
  55. <view class="count">X{{item.count}}</view>
  56. </view>
  57. </view>
  58. <view class="totalPrice">
  59. <view class="key">订单总价</view>
  60. <view class="value">¥{{order.totalPrice >= 0 ? order.totalPrice : 0}}</view>
  61. </view>
  62. </view>
  63. <view class="purchase" wx:if="{{order.status == '100'}}" style="background-color: {{activeColor}};">
  64. <view class="totalPrice">合计:¥{{order.totalPrice}}</view>
  65. <view class="pay" bindtap="payMoney" style="box-shadow: -10rpx 0 25rpx {{activeColor}};">支付订单</view>
  66. </view>
  67. <van-toast id="van-toast" />
  68. <payment style="z-index: 99999;" id='payMent' show="{{show}}" tradeNo="{{tradeNo}}" price="{{money}}" bind:payResult='acceptResult' showType="all" />