ApplyFooter.vue 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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. if (this.user.logged) {
  130. this.$http.get('/basic/vendor/transactionInfo').then(response => {
  131. if (response.data.isOpenStore) {
  132. window.location.href = '/vendor#/store/maintain'
  133. } else {
  134. window.location.href = '/vendor#/store-apply'
  135. }
  136. }, err => {
  137. this.$message.error('该账户未开通卖家中心')
  138. console.log(err)
  139. })
  140. } else {
  141. this.login()
  142. }
  143. } else if (type === 'brand') {
  144. window.location.href = '/product/brand/brandList/ABC'
  145. }
  146. }
  147. }
  148. }
  149. </script>
  150. <style lang="scss" scoped>
  151. .apply-footer {
  152. position: absolute;
  153. width: 100%;
  154. top: 1600px;
  155. .good-provider {
  156. height: 330px;
  157. text-align: center;
  158. background: url('/images/applyPurchase/apply-footer-bg.png') no-repeat;
  159. color: #fff;
  160. padding-top: 24px;
  161. background-size: cover;
  162. h1 {
  163. margin: 0 0 7px 0;
  164. font-size: 36px;
  165. }
  166. p {
  167. font-size: 14px;
  168. }
  169. .provider-list {
  170. margin-top: 37px;
  171. .provider-item {
  172. width: 312px;
  173. height: 183px;
  174. background: #fff;
  175. display: inline-block;
  176. .logo-wrap {
  177. height: 131px;
  178. line-height: 131px;
  179. background: #fff;
  180. text-align: center;
  181. img {
  182. max-width: 310px;
  183. max-height: 181px;
  184. }
  185. }
  186. .desc-wrap {
  187. height: 52px;
  188. line-height: 16px;
  189. background: rgba(0, 0, 0, .65);
  190. word-break: break-all;
  191. text-align: left;
  192. padding: 11px 10px;
  193. }
  194. &:nth-child(2) {
  195. margin: 0 74px;
  196. }
  197. }
  198. }
  199. }
  200. .turnover-exap {
  201. height: 312px;
  202. text-align: center;
  203. h1 {
  204. margin: 27px 0 7px 0;
  205. font-size: 36px;
  206. color: #5392f9;
  207. }
  208. p {
  209. font-size: 14px;
  210. color: #999;
  211. }
  212. .exap-list {
  213. margin-top: 43px;
  214. .exap-item {
  215. width: 224px;
  216. display: inline-block;
  217. margin-right: 94px;
  218. &:last-child {
  219. margin-right: 0;
  220. }
  221. .logo-wrap {
  222. background: #fff;
  223. border: 1px solid #d9d9d9;
  224. height: 86px;
  225. line-height: 86px;
  226. margin-bottom: 16px;
  227. img {
  228. max-width: 222px;
  229. max-height: 84px;
  230. }
  231. }
  232. .desc-wrap {
  233. color: #3c3c3c;
  234. line-height: 18px;
  235. .red-text {
  236. color: #e60012;
  237. }
  238. &:last-child {
  239. margin-top: 9px;
  240. }
  241. }
  242. }
  243. }
  244. }
  245. .footer-nav {
  246. background: #f7f7f7;
  247. .nav-wrap {
  248. height: 133px;
  249. text-align: center;
  250. padding-top: 27px;
  251. width: 1190px;
  252. margin: 0 auto;
  253. border-bottom: 1px solid rgba(153, 153, 153, .3);
  254. div {
  255. display: inline-block;
  256. margin-right: 230px;
  257. cursor: pointer;
  258. &:last-child {
  259. margin-right: 0;
  260. }
  261. p {
  262. margin: 5px 0 0 0;
  263. font-size: 18px;
  264. }
  265. }
  266. }
  267. }
  268. }
  269. </style>