index.vue 3.0 KB

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