info.vue 799 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <view class="container">
  3. <uni-card>
  4. <template v-slot:title>
  5. <text>{{shop.district}} {{shop.building}} {{shop.floor}} {{shop.number}}</text>
  6. <text>{{shop.status}}</text>
  7. </template>
  8. <text class="uni-body">{{shop.name}} {{shop.catagory}} {{shop.area}} {{shop.business_model}} {{shop.contact}} {{shop.phone}}</text>
  9. </uni-card>
  10. </view>
  11. </template>
  12. <script>
  13. import request from '../../api/shop.js';
  14. import { BASE_URL } from '../../env.js';
  15. export default {
  16. components: {},
  17. onLoad: function (option) {
  18. this.shopId = option.id;
  19. },
  20. data() {
  21. return {
  22. shopId: '',
  23. shop: {},
  24. }
  25. },
  26. async mounted() {
  27. const resp = await request.getShopInfo({ shopId: this.shopId});
  28. this.shop = resp.data;
  29. },
  30. methods: {}
  31. }
  32. </script>
  33. <style>
  34. </style>