confirm.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view class="container">
  3. <view class="confirm-con">
  4. <!-- TODO 收货地址 -->
  5. <navigator url="/pages/address/list?type=1">
  6. <yd-address-select :address="address"></yd-address-select>
  7. </navigator>
  8. <!-- TODO 商品信息 -->
  9. <view class="goods contain">
  10. <yd-order-product :productList="productList"></yd-order-product>
  11. <view class="item row-between">
  12. <view>买家留言</view>
  13. <u-input v-model="remark" :clearable="false"
  14. placeholder="请添加备注(150 字以内)"></u-input>
  15. </view>
  16. </view>
  17. </view>
  18. <!-- TODO 优惠劵 -->
  19. <!-- TODO 价格信息 -->
  20. <!-- TODO 底部:提交订单 -->
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. address: { // 选中的收货地址
  28. name: 'test',
  29. mobile: '15601691300',
  30. area: '奥特曼奥特曼'
  31. },
  32. productList: [{ // 购买的商品列表
  33. coverUrl: '',
  34. productTitle: '奥特曼',
  35. sellPrice: 1024,
  36. productCount: 2048,
  37. totalPrice: 1024
  38. }],
  39. remark: '', // 备注
  40. x
  41. }
  42. }
  43. }
  44. </script>
  45. <style>
  46. .confirm-con {
  47. overflow: hidden;
  48. padding-bottom: calc(120rpx + env(safe-area-inset-bottom));
  49. }
  50. .contain {
  51. border-radius: 14rpx;
  52. margin: 20rpx 20rpx 0;
  53. background-color: #fff;
  54. overflow: hidden;
  55. }
  56. </style>