offer.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <template>
  2. <view class="container">
  3. <view class="title">关联耗材</view>
  4. <!-- 每一个耗材盒子区域 -->
  5. <view class="detail_box">
  6. <view class="detail_box_item">
  7. <view class="item_key">耗材名称</view>
  8. <view class="item_value">螺丝钉</view>
  9. </view>
  10. <view class="detail_box_item">
  11. <view class="item_key">耗材数量</view>
  12. <view class="item_value">
  13. <uni-number-box v-model="count" :min="0" @change="bindChange"></uni-number-box>
  14. </view>
  15. </view>
  16. <view class="detail_box_item">
  17. <view class="item_key">耗材单价</view>
  18. <view class="item_value">0.5</view>
  19. </view>
  20. </view>
  21. <!-- 添加耗材区域 -->
  22. <view class="add" @click="handleAdd">
  23. <text>+</text>
  24. 添加耗材
  25. </view>
  26. <!-- 合计费用区域 -->
  27. <view class="total">
  28. <view>合计费用</view>
  29. <view>10元</view>
  30. </view>
  31. <view class="title">维修师傅</view>
  32. <view class="box">
  33. <img src="../../static/images/repairsImg/people.png" />
  34. 张三
  35. </view>
  36. <view class="title2">手机</view>
  37. <view class="box">
  38. <img src="../../static/images/repairsImg/phone2.png" />
  39. 13659854589
  40. </view>
  41. <view class="btn">确认提交</view>
  42. </view>
  43. </template>
  44. <script>
  45. export default {
  46. data() {
  47. return {
  48. count: 3
  49. }
  50. },
  51. methods: {
  52. bindChange(val) {
  53. console.log(val)
  54. },
  55. handleAdd() {
  56. uni.navigateTo({
  57. url: '/pagesRepairs/addGoods/addGoods'
  58. })
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. .container {
  65. box-sizing: border-box;
  66. padding: 0 30rpx;
  67. width: 100vw;
  68. height: 100vh;
  69. overflow-y: auto;
  70. .title {
  71. height: 109rpx;
  72. line-height: 109rpx;
  73. font-size: 36rpx;
  74. font-weight: bold;
  75. }
  76. .detail_box {
  77. box-sizing: border-box;
  78. margin-bottom: 46rpx;
  79. padding: 5rpx 30rpx 0;
  80. width: 690rpx;
  81. height: 284rpx;
  82. border-radius: 9rpx;
  83. box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
  84. .detail_box_item {
  85. display: flex;
  86. justify-content: space-between;
  87. align-items: center;
  88. height: 92rpx;
  89. font-size: 32rpx;
  90. border-bottom: 1rpx solid #e5e5e5;
  91. .item_key {
  92. width: 150rpx;
  93. color: #808080;
  94. }
  95. .item_value {
  96. font-weight: bold;
  97. }
  98. }
  99. }
  100. .add {
  101. display: flex;
  102. justify-content: center;
  103. align-items: center;
  104. width: 690rpx;
  105. height: 90rpx;
  106. color: #6fb6b8;
  107. font-size: 32rpx;
  108. border-radius: 9rpx;
  109. background-color: #ebf2f2;
  110. text {
  111. margin-right: 10rpx;
  112. font-size: 48rpx;
  113. }
  114. }
  115. .total {
  116. display: flex;
  117. justify-content: space-between;
  118. align-items: center;
  119. margin: auto;
  120. width: 622rpx;
  121. height: 100rpx;
  122. font-size: 32rpx;
  123. font-weight: bold;
  124. border-bottom: 1rpx solid #e5e5e5;
  125. }
  126. .box {
  127. display: flex;
  128. align-items: center;
  129. height: 94rpx;
  130. font-size: 32rpx;
  131. border-radius: 10rpx;
  132. border: 1rpx solid #cccccc;
  133. img {
  134. margin: 0 14rpx 0 30rpx;
  135. width: 40rpx;
  136. height: 40rpx;
  137. }
  138. }
  139. .title2 {
  140. height: 126rpx;
  141. line-height: 126rpx;
  142. font-size: 36rpx;
  143. font-weight: bold;
  144. }
  145. .btn {
  146. display: flex;
  147. justify-content: center;
  148. align-items: center;
  149. margin: 194rpx 0 60rpx;
  150. height: 100rpx;
  151. color: #fff;
  152. font-size: 32rpx;
  153. border-radius: 12rpx;
  154. background-color: #6fb6b8;
  155. }
  156. }
  157. </style>