_uuid.vue 614 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <div>
  3. <store-detail></store-detail>
  4. </div>
  5. </template>
  6. <script>
  7. import StoreDetail from '~components/mobile/store/StoreDetail.vue'
  8. export default {
  9. layout: 'mobile',
  10. fetch ({ store, params }) {
  11. return Promise.all([
  12. store.dispatch('shop/findStoreInfoFromUuid', params),
  13. store.dispatch('shop/pageCommoditiesOfStore', params.uuid, { page: 1, count: 10 })
  14. ])
  15. },
  16. computed: {
  17. description () {
  18. return this.$store.state.shop.storeInfo.store.data
  19. }
  20. },
  21. components: {
  22. StoreDetail
  23. }
  24. }
  25. </script>
  26. <style scoped>
  27. </style>