buy.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <view>
  3. <view class="top">
  4. <view class="type">服务类型</view>
  5. <view class="title">{{ item.goodsType }}</view>
  6. <view class="clear"></view>
  7. </view>
  8. <view class="contents">
  9. <view class="r">
  10. <view class="r30"><image :src="ip + item.pic" class="pic"></image></view>
  11. <view class="r70">
  12. <view class="">{{ item.title }}</view>
  13. <view class="pirce">¥{{ item.price }}</view>
  14. <view class="num">x1</view>
  15. </view>
  16. <view class="clear"></view>
  17. </view>
  18. </view>
  19. <view class="note">
  20. <u-form-item label="备注"><u-input v-model="item.notes" placeholder="备注详情" /></u-form-item>
  21. </view>
  22. <view class="lfooter">
  23. <view class="price">
  24. <text class="hj">合计:</text>
  25. ¥{{ item.price }}
  26. </view>
  27. <view class="buy">提交订单</view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {
  35. ip: this.$http.urls.ip,
  36. item: {}
  37. };
  38. },
  39. onLoad(e) {
  40. this.item = JSON.parse(e.item);
  41. },
  42. methods: {
  43. //购买
  44. buy() {}
  45. }
  46. };
  47. </script>
  48. <style lang="scss">
  49. .top {
  50. background-color: white;
  51. font-size: 15px;
  52. padding: 12px 15px 12px 15px;
  53. .type {
  54. float: left;
  55. }
  56. .title {
  57. float: right;
  58. color: $dar1;
  59. }
  60. }
  61. .contents {
  62. margin-top: 10px;
  63. padding: 10px;
  64. background-color: white;
  65. font-size: 15px;
  66. .r30 {
  67. .pic {
  68. width: 70px;
  69. height: 70px;
  70. border-radius: 7px;
  71. }
  72. }
  73. .title {
  74. color: $dar1;
  75. }
  76. .pirce {
  77. margin-top: 15px;
  78. color: $theme-color;
  79. }
  80. .num {
  81. float: right;
  82. margin-top: -16px;
  83. }
  84. }
  85. .lfooter {
  86. font-size: 15px;
  87. display: flex;
  88. .price {
  89. line-height: 52px;
  90. flex: 1;
  91. color: $theme-color;
  92. .hj {
  93. padding-left: 10px;
  94. color: $dar1;
  95. }
  96. }
  97. .buy {
  98. flex: 0.5;
  99. background-color: $theme-color;
  100. text-align: center;
  101. color: white;
  102. height: 52px;
  103. line-height: 52px;
  104. }
  105. }
  106. .note {
  107. margin-top: 10px;
  108. padding: 0px 10px 0px 10px;
  109. background-color: white;
  110. font-size: 15px;
  111. .u-border-bottom:after {
  112. border: 0px;
  113. }
  114. }
  115. </style>