porder.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. <template>
  2. <view class="content">
  3. <view class="main-item" v-for="(item,index) in list">
  4. <view class="main-top flex">
  5. <view class="orderId">
  6. 产品货号:{{item.orderId}}
  7. </view>
  8. <view class="type">
  9. {{item.type}}
  10. </view>
  11. </view>
  12. <view class="main-main">
  13. <view class="main-title">
  14. 产品名称
  15. </view>
  16. <view class="main-info flex">
  17. <view class="image-box" v-if="item.image.length >= 4">
  18. <view class="image" v-for="itm in 4">
  19. <image :src="item.image[itm-1]" mode=""></image>
  20. </view>
  21. </view>
  22. <view class="image-box" v-if="item.image.length < 4">
  23. <view class="image" v-for="itm in item.image">
  24. <image :src="itm" mode=""></image>
  25. </view>
  26. </view>
  27. <view class="more" @click="navTo('/pages/leader/image')">
  28. <view class="more-font">更多图片</view>
  29. <view class="more-icon">
  30. <image src="../../static/img/jt.png" mode=""></image>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="mun">
  35. 总数量:<text>{{item.num}}</text>
  36. </view>
  37. </view>
  38. <view class="btn-box">
  39. <view class="btn1" @click="navTo('/pages/leader/image')">查看样图</view>
  40. <view class="btn" @click="navTo('/pages/leader/receive')">组长领单</view>
  41. <view class="btn" @click="navTo('/pages/leader/receive')">员工领单</view>
  42. </view>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. export default {
  48. data() {
  49. return {
  50. list: [{
  51. image: ['../../static/img/avatar.png', '../../static/img/avatar.png',
  52. '../../static/img/avatar.png', '../../static/img/avatar.png',
  53. '../../static/img/avatar.png'
  54. ],
  55. orderId: '9876543211025666',
  56. type: '下料',
  57. num: '285'
  58. },
  59. {
  60. image: ['../../static/img/avatar.png', '../../static/img/avatar.png',
  61. '../../static/img/avatar.png',
  62. ],
  63. orderId: '9876543211025777',
  64. type: '下料',
  65. num: '280'
  66. },
  67. {
  68. image: ['../../static/img/avatar.png', '../../static/img/avatar.png',
  69. '../../static/img/avatar.png',
  70. ],
  71. orderId: '9876543211025888',
  72. type: '下料',
  73. num: '275'
  74. },
  75. {
  76. image: ['../../static/img/avatar.png', '../../static/img/avatar.png',
  77. '../../static/img/avatar.png', '../../static/img/avatar.png',
  78. '../../static/img/avatar.png'
  79. ],
  80. orderId: '9876543211025999',
  81. type: '下料',
  82. num: '265'
  83. }
  84. ]
  85. };
  86. },
  87. onLoad() {},
  88. onShow() {},
  89. onReachBottom() {},
  90. onReady() {},
  91. methods: {
  92. navTo(url) {
  93. uni.navigateTo({
  94. url
  95. })
  96. }
  97. }
  98. };
  99. </script>
  100. <style lang="scss">
  101. page,
  102. .content {
  103. min-height: 100%;
  104. height: auto;
  105. }
  106. .main-item {
  107. width: 700rpx;
  108. background: #FFFFFF;
  109. border-radius: 24rpx;
  110. padding: 0 15rpx;
  111. margin: 20rpx auto 0;
  112. image {
  113. width: 100%;
  114. height: 100%;
  115. }
  116. .main-top {
  117. padding: 30rpx 14rpx;
  118. border-bottom: 1px solid #f5f5f5;
  119. .orderId {
  120. font-size: 28rpx;
  121. font-family: PingFang SC;
  122. font-weight: 500;
  123. color: #666666;
  124. }
  125. .type {
  126. font-size: 28rpx;
  127. font-family: PingFang SC;
  128. font-weight: bold;
  129. color: #FF2D2D;
  130. }
  131. }
  132. .main-main {
  133. padding: 20rpx 14rpx;
  134. border-bottom: 1px solid #f5f5f5;
  135. .main-title {
  136. font-size: 28rpx;
  137. font-family: PingFang SC;
  138. font-weight: 500;
  139. color: #363636;
  140. }
  141. .main-info {
  142. margin-top: 16rpx;
  143. .image-box {
  144. display: flex;
  145. align-items: center;
  146. .image {
  147. width: 110rpx;
  148. height: 110rpx;
  149. margin-right: 10rpx;
  150. }
  151. }
  152. .more {
  153. display: flex;
  154. align-items: center;
  155. line-height: 1;
  156. .more-font {
  157. font-size: 26rpx;
  158. font-family: PingFang SC;
  159. font-weight: 500;
  160. color: #333333;
  161. margin-right: 10rpx;
  162. }
  163. .more-icon {
  164. display: inline-flex;
  165. width: 12rpx;
  166. height: 22rpx;
  167. }
  168. }
  169. }
  170. .mun {
  171. margin-top: 24rpx;
  172. font-size: 28rpx;
  173. font-family: PingFang SC;
  174. font-weight: 500;
  175. color: #333333;
  176. text {
  177. color: #FF4C4C;
  178. }
  179. }
  180. }
  181. .btn-box {
  182. padding: 20rpx 14rpx;
  183. display: flex;
  184. justify-content: flex-end;
  185. align-items: center;
  186. .btn1 {
  187. width: 144rpx;
  188. height: 55rpx;
  189. border: 2px solid #EBEBEB;
  190. border-radius: 28rpx;
  191. display: flex;
  192. justify-content: center;
  193. align-items: center;
  194. font-size: 26rpx;
  195. font-family: PingFang SC;
  196. font-weight: 500;
  197. color: #999999;
  198. line-height: 24rpx;
  199. }
  200. .btn {
  201. width: 144rpx;
  202. height: 55rpx;
  203. border: 2px solid #FF2D2D;
  204. border-radius: 28rpx;
  205. display: flex;
  206. justify-content: center;
  207. align-items: center;
  208. font-size: 26rpx;
  209. font-family: PingFang SC;
  210. font-weight: 500;
  211. color: #FF2D2D;
  212. line-height: 24rpx;
  213. margin-left: 14rpx;
  214. }
  215. }
  216. }
  217. </style>