index.wxml 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. <nav type="back" background-color="{{activeColor}}" title="订单详情" frontColor="#ffffff" />
  2. <view class="box" data-item="{{item}}" bindtap="details">
  3. <view class="title">{{foodorder.store.storeName}}</view>
  4. <view class="details">
  5. <image class="image" src="{{foodorder.store.cover}}" />
  6. <view class="information">
  7. <view class="num">订单号:{{foodorder.tradeNo}}</view>
  8. <view class="time">下单时间:{{time}}</view>
  9. <view class="time">桌号:{{foodorder.table.name}}</view>
  10. <view class="time">总价:¥{{foodorder.totalPrice}}</view>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="box">
  15. <block wx:for="{{foodorder.foods}}" wx:key="index">
  16. <view class="content">
  17. <view class="information">
  18. <image class="img" src="{{item.images[0]}}" />
  19. <view style="margin-left:20rpx ;">
  20. <view class="">{{item.name}}</view>
  21. <view class="number">{{foodorder.specMap[item.objectId]}}份</view>
  22. </view>
  23. </view>
  24. <view class="price">¥{{item.price}}/份</view>
  25. </view>
  26. </block>
  27. <view class="bummon">
  28. <view class="totalPrice">合计:¥{{foodorder.totalPrice}}</view>
  29. <view class="pay" wx:if="{{foodorder.state=='100'}}" bindtap="submit" style="background-color: {{activeColor}};">立即支付</view>
  30. </view>
  31. </view>
  32. <payment style="z-index: 99999;" id='payMent' show="{{show}}" tradeNo="{{foodorder.tradeNo}}"
  33. price="{{foodorder.totalPrice}}" bind:payResult='acceptResult' showType="all" />