index.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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/material?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/outOfStorage?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. <nuxt-link to="/mobile/center/vendor/attentionBus" tag="li">
  41. <img src="/images/mobile/center/vendor/attention-bu.png" alt="">
  42. <p>商机关注</p>
  43. </nuxt-link>
  44. </ul>
  45. </div>
  46. <div class="block-wrap seek-operation">
  47. <p><i></i>更多服务</p>
  48. <ul>
  49. <nuxt-link tag="li" to="/mobile/order?type=saler">
  50. <img src="/images/mobile/center/user/order.jpg" alt="">
  51. <p>销售订单</p>
  52. </nuxt-link>
  53. <!--<nuxt-link tag="li" to="/">-->
  54. <!--<img src="/images/mobile/center/user/wuliu_icon.png" alt="">-->
  55. <!--<p>物流管理</p>-->
  56. <!--</nuxt-link>-->
  57. <nuxt-link tag="li" to="/mobile/center/vendor/payCenter">
  58. <img src="/images/mobile/center/user/finance_icon.png" alt="">
  59. <p>应收对账</p>
  60. </nuxt-link>
  61. <nuxt-link tag="li" to="/mobile/center/vendor/invoice">
  62. <img src="/images/mobile/center/user/invoice_icon.png" alt="">
  63. <p>发票管理</p>
  64. </nuxt-link>
  65. <nuxt-link tag="li" to="/mobile/center/vendor/message" v-if="user.data.enterprise.uu">
  66. <img src="/images/mobile/center/user/message.png" alt="">
  67. <p>消息中心<span class="text" v-if="messageCount.count > 0">{{messageCount.count && messageCount.count >= 99 ? 99 : messageCount.count || 0}}</span></p>
  68. </nuxt-link>
  69. </ul>
  70. </div>
  71. </div>
  72. <remind-box :title="remindText" :timeoutCount="timeoutCount"></remind-box>
  73. </div>
  74. </template>
  75. <script>
  76. import { RemindBox } from '~components/mobile/common'
  77. export default {
  78. middleware: 'authenticated',
  79. layout: 'mobileNoHeader',
  80. data () {
  81. return {
  82. remindText: '',
  83. timeoutCount: 0
  84. }
  85. },
  86. fetch ({ store }) {
  87. let user = store.state.option.user.data
  88. return Promise.all([
  89. store.dispatch('loadStoreStatus', { op: 'check' }),
  90. // store.dispatch('messageShow/loadMessageCount', {receiverUu: user.userUU, receiverEnuu: user.enterprise.uu, consumerApp: 'MALL', isRead: 0})
  91. ])
  92. },
  93. components: {
  94. RemindBox
  95. },
  96. computed: {
  97. storeInfo () {
  98. return this.$store.state.option.storeStatus.data
  99. },
  100. messageCount () {
  101. return this.$store.state.messageShow.messageCount.count.data
  102. }
  103. },
  104. methods: {
  105. goStore: function () {
  106. if (this.storeInfo.uuid) {
  107. this.$router.push(`/mobile/shop/${this.storeInfo.uuid}`)
  108. } else {
  109. this.onRemind('请前往账户中心【我】进行开店申请')
  110. }
  111. },
  112. onRemind: function (str) {
  113. this.remindText = str
  114. this.timeoutCount++
  115. }
  116. }
  117. }
  118. </script>
  119. <style lang="scss" scoped>
  120. @import '~assets/scss/mobileCenter';
  121. .mobile-center{
  122. .collect-block {
  123. height: auto;
  124. }
  125. }
  126. </style>