giftview.wxml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <skeleton />
  2. <view class="weui-panel">
  3. <van-cell value="{{item.order_no}}" icon="shop">
  4. <view slot="title">{{item.order_starttime}}</view>
  5. </van-cell>
  6. <van-steps steps="{{ steps }}" active="{{ active }}" active-color="#f60" />
  7. </view>
  8. <view class="title">宝贝信息</view>
  9. <van-card title="{{item.item.name}}" thumb="{{item.item.img}}" lazy-load="{{ true }}">
  10. <view slot="bottom" class="bottom" wx:if="{{item.is_fusion == 1}}">
  11. <block wx:if="{{item.is_entrust == 0}}">
  12. <van-tag round plain size="medium" type="warning">
  13. <van-checkbox value="{{item_checkbox}}" bind:change="onChangeItem">卖了换钱</van-checkbox>
  14. </van-tag>
  15. </block>
  16. <block wx:else>
  17. <block wx:if="{{item.item.fusion_state == 1}}">
  18. <van-tag mark type="primary">委托卖了换钱</van-tag>
  19. </block>
  20. </block>
  21. </view>
  22. </van-card>
  23. <van-card wx:for="{{item.gift}}" wx:for-item="rs" wx:for-index="key" wx:key="this" title="{{rs.name}}" thumb="{{rs.img}}" lazy-load="{{ true }}">
  24. <view slot="bottom" class="bottom" wx:if="{{item.is_fusion == 0}}">
  25. <block wx:if="{{item.is_entrust == 0}}">
  26. <van-tag round plain size="medium" type="warning">
  27. <van-checkbox name="gift_{{ key }}" value="{{checkbox[key]}}" data-key="{{ key }}" bind:change="onChange">卖了换钱</van-checkbox>
  28. </van-tag>
  29. </block>
  30. <block wx:else>
  31. <block wx:if="{{rs.entrust_state}}"><van-tag mark type="primary">委托卖了换钱</van-tag></block>
  32. </block>
  33. </view>
  34. </van-card>
  35. <view class="title">宝贝价格</view>
  36. <van-cell required icon="gold-coin" title="商品价格" value="¥{{item.real_amount}}" />
  37. <van-cell required icon="free-postage" title="运费价格" value="¥{{item.real_freight}}" />
  38. <van-cell required icon="cash-back-record" title="付款金额" value="¥{{item.order_amount}}" />
  39. <view class="title">收货地址</view>
  40. <van-cell icon="contact" title="姓名:{{item.express_name}}" />
  41. <van-cell icon="phone" title="手机:{{item.express_phone}}" />
  42. <van-cell icon="location" title="地址:{{item.express_address}}" />
  43. <block wx:if="{{item.express_status == 1}}">
  44. <van-cell icon="pending-deliver" title="发货时间:{{item.express_starttime}}" />
  45. <van-cell icon="free-postage" title="物流公司:{{item.express_company}}" />
  46. <van-cell icon="records" title="快递单号:{{item.express_no}}" />
  47. </block>
  48. <!-- 底部操作栏 -->
  49. <block wx:if="{{item.is_entrust == 0 && item.paid_at == 1}}">
  50. <van-submit-bar button-text="确认订单" bind:submit="onClickGift" tip="{{ true }}">
  51. <view slot="tip" class="tip">确认订单后,换钱的宝贝去小店中上架,
  52. <text bindtap="service">阅读服务协议</text>
  53. </view>
  54. <view class="service">
  55. <van-checkbox value="{{ service }}" bind:change="onService">同意协议</van-checkbox>
  56. </view>
  57. </van-submit-bar>
  58. <view class="weui-loadmore weui-loadmore_line mb100">
  59. <view class="weui-loadmore__tips weui-loadmore__tips_in-line">到底了</view>
  60. </view>
  61. </block>
  62. <block wx:else>
  63. <block wx:if="{{item.status == 0 && item.is_entrust == 1 && item.express_status == 1}}">
  64. <van-goods-action custom-class="goods-action">
  65. <van-goods-action-button text="确认收货" type="warning" bind:click="okOrder" />
  66. <van-goods-action-button text="查看快递" bind:click="getMaps" />
  67. </van-goods-action>
  68. <view class="weui-loadmore weui-loadmore_line mb50">
  69. <view class="weui-loadmore__tips weui-loadmore__tips_in-line">到底了</view>
  70. </view>
  71. </block>
  72. <block wx:else>
  73. <include src="/component/loading.wxml" />
  74. </block>
  75. </block>