info.vue 774 B

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