error.vue 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <div class="Content404">
  3. <div class="image404">
  4. <div class="bottomText">
  5. <div class="title">
  6. <template v-if="title=== '产品'">
  7. 抱歉!您查看的{{title}}
  8. <span>不存在</span>,可能已
  9. <span>下架</span>或
  10. <span>被转移</span>......
  11. </template>
  12. <template v-else>
  13. 抱歉!您查看的{{title}}
  14. <span>不存在</span>......
  15. </template>
  16. </div>
  17. <div class="infotext" v-if="title==='店铺' || title==='器件' || title==='物料名称'">您可以逛逛:
  18. <nuxt-link :to="{ path: '/'}">商城首页</nuxt-link>
  19. <span>|</span>
  20. <nuxt-link :to="{ path: '/eCommerce/home/factory'}">原厂专区</nuxt-link>
  21. <span>|</span>
  22. <nuxt-link :to="{ path: '/eCommerce/home/origin'}">代理经销</nuxt-link>
  23. </div>
  24. <div class="infotext" v-else-if="title==='品牌'">您可以逛逛:
  25. <nuxt-link :to="{ path: '/'}">商城首页</nuxt-link>
  26. <span>|</span>
  27. <nuxt-link :to="{ path: '/eCommerce/home/brand/?initial=A'}">品牌中心</nuxt-link>
  28. <span>|</span>
  29. <nuxt-link :to="{ path: '/eCommerce/home/factory'}">原厂专区</nuxt-link>
  30. </div>
  31. <div class="infotext" v-else-if="title==='产品'">您可以逛逛:
  32. <nuxt-link :to="{ path: '/'}">商城首页</nuxt-link>
  33. <span>|</span>
  34. <nuxt-link :to="{ path: '/eCommerce/home/origin'}">代理经销</nuxt-link>
  35. <span>|</span>
  36. <nuxt-link :to="{ name: 'store-uuid', params: { uuid: '33069557578d44e69bd91ad12d28a8d4' }}">库存寄售</nuxt-link>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </template>
  42. <script>
  43. export default {
  44. props: {
  45. title: {
  46. type: String,
  47. default: ''
  48. }
  49. }
  50. }
  51. </script>
  52. <style lang="scss" scoped>
  53. .Content404 {
  54. background: #fff;
  55. text-align: center;
  56. .image404 {
  57. position: relative;
  58. background: url('/images/404-details.png') top center no-repeat;
  59. height: 500px;
  60. position: relative;
  61. text-align: center;
  62. margin: 0 auto;
  63. color: #666;
  64. font-weight: bold;
  65. font-size: 24px;
  66. .bottomText {
  67. position: absolute;
  68. width: 100%;
  69. bottom: 70px;
  70. .title span {
  71. color: #fd7022;
  72. }
  73. .infotext {
  74. margin-top: 25px;
  75. color: #959494;
  76. font-size: 14px;
  77. span {
  78. margin: 0 6px;
  79. }
  80. a {
  81. color: #5078CB
  82. }
  83. a:hover {
  84. color: #fd7022
  85. }
  86. }
  87. }
  88. }
  89. }
  90. </style>