PublishApply.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. <template>
  2. <div class="publish-apply">
  3. <div class="good-purchaser">
  4. <p class="good-purchaser-title">
  5. <img src="/images/applyPurchase/good-purchaser-title.png" alt="">
  6. </p>
  7. <ul>
  8. <li v-for="(goodMan, index) in goodPurchaseMan.content">
  9. <i v-text="index + 1" :style="'background: url(/images/applyPurchase/level-' + getRankBg(index) + '.png) center no-repeat;'"></i>
  10. <span v-text="goodMan.name"></span>
  11. </li>
  12. </ul>
  13. </div>
  14. <div class="publish-area">
  15. <div class="publish-form-area">
  16. <p>单个发布</p>
  17. <div>
  18. <div class="form-item">
  19. <span>
  20. <i>*</i>型号:
  21. </span>
  22. <input type="text" class="form-control" />
  23. </div>
  24. <div class="form-item">
  25. <span>
  26. <i>*</i>型号:
  27. </span>
  28. <input type="text" class="form-control" />
  29. </div>
  30. <div class="form-item">
  31. <span>
  32. <i>*</i>型号:
  33. </span>
  34. <input type="text" class="form-control" />
  35. </div>
  36. <div class="form-item">
  37. <span>
  38. 型号:
  39. </span>
  40. <input type="text" class="form-control" />
  41. </div>
  42. <div class="form-item">
  43. <span>
  44. 搜索搜索:
  45. </span>
  46. <input type="text" class="form-control" />
  47. </div>
  48. <div class="form-item">
  49. <span>
  50. <i>*</i>型号:
  51. </span>
  52. <input type="text" class="form-control" />
  53. </div>
  54. <div class="form-item">
  55. <span>
  56. <i>*</i>型号搜索:
  57. </span>
  58. <input type="text" class="form-control" />
  59. </div>
  60. </div>
  61. <a>发布求购</a>
  62. </div>
  63. <div class="publish-upload">
  64. <h1>批量发布</h1>
  65. <h2>3秒一键配单采购</h2>
  66. <img src="/images/applyPurchase/upload.png" alt="" />
  67. <h3>把Excel格式的BOM拖放到框中</h3>
  68. <img class="download-line" src="/images/applyPurchase/download.png" alt="">
  69. <img class="apply-logo" src="/images/applyPurchase/publish-apply.png" alt="">
  70. </div>
  71. </div>
  72. <div class="apply-rank">
  73. <table>
  74. <thead>
  75. <tr>
  76. <th width="62">排名</th>
  77. <th width="124">求购型号</th>
  78. <th width="57">数量</th>
  79. <th width="72">求购次数</th>
  80. </tr>
  81. </thead>
  82. <tbody>
  83. <tr>
  84. <td>NO.<span>1</span><em>|</em></td>
  85. <td>sssssssssssss<em>|</em></td>
  86. <td>1000<em>|</em></td>
  87. <td>10000</td>
  88. </tr>
  89. <tr>
  90. <td>NO.<span>1</span><em>|</em></td>
  91. <td>sssssssssssss<em>|</em></td>
  92. <td>1000<em>|</em></td>
  93. <td>10000</td>
  94. </tr>
  95. <tr>
  96. <td>NO.<span>1</span><em>|</em></td>
  97. <td>sssssssssssss<em>|</em></td>
  98. <td>1000<em>|</em></td>
  99. <td>10000</td>
  100. </tr>
  101. <tr>
  102. <td>NO.<span>1</span><em>|</em></td>
  103. <td>sssssssssssss<em>|</em></td>
  104. <td>1000<em>|</em></td>
  105. <td>10000</td>
  106. </tr>
  107. <tr>
  108. <td>NO.<span>1</span><em>|</em></td>
  109. <td>sssssssssssss<em>|</em></td>
  110. <td>1000<em>|</em></td>
  111. <td>10000</td>
  112. </tr>
  113. </tbody>
  114. </table>
  115. </div>
  116. </div>
  117. </template>
  118. <script>
  119. export default {
  120. computed: {
  121. goodPurchaseMan () {
  122. return this.$store.state.applyPurchase.goodPurchaseMan.goodPurchaseMan.data
  123. }
  124. },
  125. methods: {
  126. getRankBg: function (index) {
  127. return index === 0 ? 1 : index < 3 ? 2 : 3
  128. }
  129. }
  130. }
  131. </script>
  132. <style lang="scss" scoped>
  133. .publish-apply {
  134. background: url('/images/applyPurchase/banner.png') center center/cover no-repeat;
  135. height: 583px;
  136. text-align: center;
  137. padding-top: 290px;
  138. >div {
  139. display: inline-block;
  140. border: 1px solid #3975f4;
  141. height: 267px;
  142. margin-right: 6px;
  143. vertical-align: middle;
  144. background: #fff;
  145. }
  146. .good-purchaser {
  147. width: 225px;
  148. .good-purchaser-title {
  149. height: 55px;
  150. line-height: 55px;
  151. background: #3975f4;
  152. margin: 0;
  153. }
  154. ul {
  155. padding: 0 22px 0 10px;
  156. li {
  157. line-height: 42px;
  158. span {
  159. float: right;
  160. display: inline-block;
  161. width: 152px;
  162. overflow: hidden;
  163. text-overflow: ellipsis;
  164. white-space: nowrap;
  165. }
  166. i {
  167. display: inline-block;
  168. float: left;
  169. width: 25px;
  170. color: #fff;
  171. font-size: 16px;
  172. font-style: normal;
  173. }
  174. }
  175. }
  176. }
  177. .publish-area {
  178. width: 549px;
  179. .publish-form-area {
  180. width: 243px;
  181. float: left;
  182. height: 100%;
  183. p {
  184. padding-top: 18px;
  185. font-size: 26px;
  186. color: #3975f4;
  187. margin-bottom: 7px;
  188. }
  189. >div {
  190. text-align: left;
  191. margin-left: 14px;
  192. .form-item {
  193. margin-bottom: 5px;
  194. span {
  195. width: 80px;
  196. text-align: right;
  197. display: inline-block;
  198. i {
  199. position: relative;
  200. top: 2px;
  201. right: 3px;
  202. color: #e41515;
  203. }
  204. }
  205. input {
  206. width: 111px;
  207. height: 20px;
  208. line-height: 20px;
  209. border-radius: 2px;
  210. }
  211. }
  212. }
  213. >a {
  214. width: 90px;
  215. height: 25px;
  216. line-height: 25px;
  217. background: #3975f4;
  218. color: #fefefe;
  219. font-size: 16px;
  220. display: block;
  221. margin: 0 auto;
  222. border-radius: 3px;
  223. cursor: pointer;
  224. }
  225. }
  226. .publish-upload {
  227. background: url('/images/applyPurchase/publish-apply-bg.png')no-repeat;
  228. background-size: cover;
  229. width: 304px;
  230. height: 100%;
  231. padding-left: 22px;
  232. float: right;
  233. color: #fff;
  234. position: relative;
  235. h1 {
  236. font-size: 26px;
  237. margin: 22px 0 0 0;
  238. }
  239. h2 {
  240. font-size: 16px;
  241. margin: 10px 0 23px 0;
  242. }
  243. h3 {
  244. font-size: 16px;
  245. margin: 20px 0 13px 0;
  246. }
  247. .download-line {
  248. cursor: pointer;
  249. }
  250. .apply-logo {
  251. position: absolute;
  252. left: -20px;
  253. top: 86px;
  254. }
  255. }
  256. }
  257. .apply-rank {
  258. width: 317px;
  259. margin-right: 0;
  260. background: url('/images/applyPurchase/rank-title.png') no-repeat;
  261. background-color: #fff;
  262. background-size: 319px 74px;
  263. background-position: -3px -2px;
  264. table {
  265. margin: 76px auto 0;
  266. width: 98%;
  267. thead {
  268. background: #e0e0e0;
  269. height: 26px;
  270. line-height: 26px;
  271. border-radius: 3px;
  272. tr {
  273. th {
  274. font-size: 16px;
  275. font-weight: bold;
  276. text-align: center;
  277. }
  278. }
  279. }
  280. tbody {
  281. tr {
  282. height: 25px;
  283. line-height: 25px;
  284. &:first-child {
  285. td {
  286. padding-top: 10px;
  287. }
  288. }
  289. td {
  290. &:first-child {
  291. color: #f6682f;
  292. font-size: 12px;
  293. span {
  294. font-size: 16px;
  295. }
  296. }
  297. em {
  298. font-style: normal;
  299. float: right;
  300. color: #8b8b8b;
  301. font-size: 14px;
  302. }
  303. }
  304. }
  305. }
  306. }
  307. }
  308. }
  309. </style>