ApplyFooter.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <template>
  2. <div class="apply-footer">
  3. <div class="good-provider">
  4. <h1>优秀供应商</h1>
  5. <p>海量求购&nbsp;一网打尽</p>
  6. <div class="provider-list">
  7. <div class="provider-item">
  8. <div class="logo-wrap">
  9. <img src="/images/applyPurchase/test-logo.png" alt="">
  10. </div>
  11. <div class="desc-wrap">123333333333333333333333333333333333333333</div>
  12. </div>
  13. <div class="provider-item">
  14. <div class="logo-wrap">
  15. <img src="/images/applyPurchase/test-logo.png" alt="">
  16. </div>
  17. <div class="desc-wrap">123333333333333333333333333333333333333333</div>
  18. </div>
  19. <div class="provider-item">
  20. <div class="logo-wrap">
  21. <img src="/images/applyPurchase/test-logo.png" alt="">
  22. </div>
  23. <div class="desc-wrap">123333333333333333333333333333333333333333</div>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="turnover-exap">
  28. <h1>成交案例</h1>
  29. <p>海量求购&nbsp;一网打尽</p>
  30. <div class="exap-list">
  31. <div class="exap-item">
  32. <div class="logo-wrap">
  33. <img src="/images/applyPurchase/test-logo.png" alt="">
  34. </div>
  35. <div class="desc-wrap">
  36. 收到供应商报价:<span class="red-text">103</span>条
  37. </div>
  38. <div class="desc-wrap">
  39. 已完成采购:<span class="red-text">103</span>条
  40. </div>
  41. </div>
  42. <div class="exap-item">
  43. <div class="logo-wrap">
  44. <img src="/images/applyPurchase/test-logo.png" alt="">
  45. </div>
  46. <div class="desc-wrap">
  47. 收到供应商报价:<span class="red-text">103</span>条
  48. </div>
  49. <div class="desc-wrap">
  50. 已完成采购:<span class="red-text">103</span>条
  51. </div>
  52. </div>
  53. <div class="exap-item">
  54. <div class="logo-wrap">
  55. <img src="/images/applyPurchase/test-logo.png" alt="">
  56. </div>
  57. <div class="desc-wrap">
  58. 收到供应商报价:<span class="red-text">103</span>条
  59. </div>
  60. <div class="desc-wrap">
  61. 已完成采购:<span class="red-text">103</span>条
  62. </div>
  63. </div>
  64. <div class="exap-item">
  65. <div class="logo-wrap">
  66. <img src="/images/applyPurchase/test-logo.png" alt="">
  67. </div>
  68. <div class="desc-wrap">
  69. 收到供应商报价:<span class="red-text">103</span>条
  70. </div>
  71. <div class="desc-wrap">
  72. 已完成采购:<span class="red-text">103</span>条
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="footer-nav">
  78. <div class="nav-wrap">
  79. <div @click="openUrl('order')">
  80. <img src="/images/applyPurchase/nav-order.png" alt="">
  81. <p>订单查询</p>
  82. </div>
  83. <div @click="openUrl('kind')">
  84. <img src="/images/applyPurchase/nav-kind.png" alt="">
  85. <p>器件选型</p>
  86. </div>
  87. <div @click="openUrl('openStore')">
  88. <img src="/images/applyPurchase/nav-open.png" alt="">
  89. <p>立即入驻</p>
  90. </div>
  91. <div @click="openUrl('brand')">
  92. <img src="/images/applyPurchase/nav-brand.png" alt="">
  93. <p>品牌百科</p>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </template>
  99. <script>
  100. export default {
  101. computed: {
  102. user () {
  103. return this.$store.state.option.user
  104. }
  105. },
  106. methods: {
  107. login: function () {
  108. this.$router.push('/auth/login')
  109. },
  110. openUrl: function (type) {
  111. if (type === 'order') {
  112. if (this.user.logged) {
  113. this.$http.get('/basic/vendor/transactionInfo').then(response => {
  114. if (response.data.isOpenStore) {
  115. window.open('/vendor#/order/center')
  116. } else {
  117. window.open('/user#/order')
  118. }
  119. }, err => {
  120. window.open('/user#/order')
  121. console.log(err)
  122. })
  123. } else {
  124. this.login()
  125. }
  126. } else if (type === 'kind') {
  127. window.location.href = '/product/kind/home'
  128. } else if (type === 'openStore') {
  129. this.goStoreApply()
  130. } else if (type === 'brand') {
  131. window.location.href = '/product/brand/brandList/ABC'
  132. }
  133. }
  134. }
  135. }
  136. </script>
  137. <style lang="scss" scoped>
  138. .apply-footer {
  139. position: absolute;
  140. width: 100%;
  141. top: 1600px;
  142. .good-provider {
  143. height: 330px;
  144. text-align: center;
  145. background: url('/images/applyPurchase/apply-footer-bg.png') no-repeat;
  146. color: #fff;
  147. padding-top: 24px;
  148. background-size: cover;
  149. h1 {
  150. margin: 0 0 7px 0;
  151. font-size: 36px;
  152. }
  153. p {
  154. font-size: 14px;
  155. }
  156. .provider-list {
  157. margin-top: 37px;
  158. .provider-item {
  159. width: 312px;
  160. height: 183px;
  161. background: #fff;
  162. display: inline-block;
  163. .logo-wrap {
  164. height: 131px;
  165. line-height: 131px;
  166. background: #fff;
  167. text-align: center;
  168. img {
  169. max-width: 310px;
  170. max-height: 181px;
  171. }
  172. }
  173. .desc-wrap {
  174. height: 52px;
  175. line-height: 16px;
  176. background: rgba(0, 0, 0, .65);
  177. word-break: break-all;
  178. text-align: left;
  179. padding: 11px 10px;
  180. }
  181. &:nth-child(2) {
  182. margin: 0 74px;
  183. }
  184. }
  185. }
  186. }
  187. .turnover-exap {
  188. height: 312px;
  189. text-align: center;
  190. h1 {
  191. margin: 27px 0 7px 0;
  192. font-size: 36px;
  193. color: #5392f9;
  194. }
  195. p {
  196. font-size: 14px;
  197. color: #999;
  198. }
  199. .exap-list {
  200. margin-top: 43px;
  201. .exap-item {
  202. width: 224px;
  203. display: inline-block;
  204. margin-right: 94px;
  205. &:last-child {
  206. margin-right: 0;
  207. }
  208. .logo-wrap {
  209. background: #fff;
  210. border: 1px solid #d9d9d9;
  211. height: 86px;
  212. line-height: 86px;
  213. margin-bottom: 16px;
  214. img {
  215. max-width: 222px;
  216. max-height: 84px;
  217. }
  218. }
  219. .desc-wrap {
  220. color: #3c3c3c;
  221. line-height: 18px;
  222. .red-text {
  223. color: #e60012;
  224. }
  225. &:last-child {
  226. margin-top: 9px;
  227. }
  228. }
  229. }
  230. }
  231. }
  232. .footer-nav {
  233. background: #f7f7f7;
  234. .nav-wrap {
  235. height: 133px;
  236. text-align: center;
  237. padding-top: 27px;
  238. width: 1190px;
  239. margin: 0 auto;
  240. border-bottom: 1px solid rgba(153, 153, 153, .3);
  241. div {
  242. display: inline-block;
  243. margin-right: 230px;
  244. cursor: pointer;
  245. &:last-child {
  246. margin-right: 0;
  247. }
  248. p {
  249. margin: 5px 0 0 0;
  250. font-size: 18px;
  251. }
  252. }
  253. }
  254. }
  255. }
  256. </style>