index.vue 3.2 KB

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