outgoing.vue 4.7 KB

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