index.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <div class="mobile-center">
  3. <div class="com-mobile-header">
  4. <a @click="goLastPage"><i class="iconfont icon-fanhui"></i></a>
  5. <p>卖家中心</p>
  6. </div>
  7. <div class="mobile-fix-content">
  8. <div class="seek-banner block-wrap">
  9. <img src="/images/mobile/center/user/seek-banner.jpg" alt="">
  10. <p class="s-title inline-block">我要求购&nbsp;&nbsp;<span>满足你所需</span>
  11. <br/>
  12. <span class="s-text">让订单飞起来</span>
  13. </p>
  14. </div>
  15. <div class="block-wrap seek-operation">
  16. <p><i></i>产品管理</p>
  17. <ul>
  18. <li>
  19. <img src="/images/mobile/center/vendor/material.png" alt="">
  20. <p>企业产品库</p>
  21. </li>
  22. <li>
  23. <img src="/images/mobile/center/vendor/material-person.png" alt="">
  24. <p>个人产品库</p>
  25. </li>
  26. <li>
  27. <img src="/images/mobile/center/vendor/onsale.png" alt="">
  28. <p>在售产品</p>
  29. </li>
  30. </ul>
  31. </div>
  32. <div class="block-wrap seek-operation">
  33. <p><i></i>我的商机</p>
  34. <ul>
  35. <nuxt-link to="/mobile/center/vendor/seek?seekType=wait" tag="li">
  36. <img src="/images/mobile/center/vendor/all.png" alt="">
  37. <p>我的商机</p>
  38. </nuxt-link>
  39. <nuxt-link to="/mobile/center/vendor/seek?seekType=done" tag="li">
  40. <img src="/images/mobile/center/vendor/seek-done.png" alt="">
  41. <p>已报价</p>
  42. </nuxt-link>
  43. </ul>
  44. </div>
  45. <div class="block-wrap collect-block">
  46. <div class="content-line" @click="goStore">
  47. <img src="/images/mobile/center/user/comp-collect.png" alt="">
  48. <span>我的店铺</span>
  49. <i class="iconfont icon-xiangyou"></i>
  50. </div>
  51. </div>
  52. </div>
  53. <remind-box :title="remindText" :timeoutCount="timeoutCount"></remind-box>
  54. </div>
  55. </template>
  56. <script>
  57. import { RemindBox } from '~components/mobile/common'
  58. export default {
  59. middleware: 'authenticated',
  60. layout: 'mobileNoHeader',
  61. data () {
  62. return {
  63. remindText: '',
  64. timeoutCount: 0
  65. }
  66. },
  67. fetch ({ store }) {
  68. return Promise.all([
  69. store.dispatch('loadStoreStatus', { op: 'check' })
  70. ])
  71. },
  72. components: {
  73. RemindBox
  74. },
  75. computed: {
  76. storeInfo () {
  77. return this.$store.state.option.storeStatus.data
  78. }
  79. },
  80. methods: {
  81. goStore: function () {
  82. if (this.storeInfo.uuid) {
  83. this.$router.push(`/mobile/shop/${this.storeInfo.uuid}`)
  84. } else {
  85. this.onRemind('请先前往pc端开通店铺')
  86. }
  87. },
  88. onRemind: function (str) {
  89. this.remindText = str
  90. this.timeoutCount++
  91. }
  92. }
  93. }
  94. </script>
  95. <style lang="scss" scoped>
  96. @import '~assets/scss/mobileCenter';
  97. .mobile-center{
  98. .collect-block {
  99. height: 1.16rem;
  100. .content-line {
  101. border-bottom: none !important;
  102. }
  103. }
  104. }
  105. </style>