info.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <view class="container">
  3. <uni-section :title="shop.district" type="line">
  4. <uni-card padding="0" spacing="0">
  5. <uni-list>
  6. <uni-list-item :title="building"></uni-list-item>
  7. <uni-list-item :title="floor"></uni-list-item>
  8. <uni-list-item :title="number"></uni-list-item>
  9. <uni-list-item :title="area"></uni-list-item>
  10. <uni-list-item :title="status"></uni-list-item>
  11. <uni-list-item :title="name"></uni-list-item>
  12. <uni-list-item :title="businessModel"></uni-list-item>
  13. <uni-list-item :title="category"></uni-list-item>
  14. <uni-list-item :title="contact"></uni-list-item>
  15. <uni-list-item :title="phone"></uni-list-item>
  16. </uni-list>
  17. </uni-card>
  18. </uni-section>
  19. </view>
  20. </template>
  21. <script>
  22. import request from '../../api/shop.js';
  23. import { BASE_URL } from '../../env.js';
  24. export default {
  25. components: {},
  26. onLoad: function (option) {
  27. this.shopId = option.id;
  28. },
  29. data() {
  30. return {
  31. shopId: '',
  32. shop: {},
  33. }
  34. },
  35. async mounted() {
  36. const resp = await request.getShopInfo({ shopId: this.shopId});
  37. this.shop = resp.data;
  38. },
  39. computed:{
  40. building(){return "楼栋:" + this.shop.building;},
  41. floor(){return "楼层:" + this.shop.floor;},
  42. number(){return "铺位号:" + this.shop.number;},
  43. area(){return "面积:" + this.shop.area;},
  44. status(){return "使用状态:" + this.shop.status;},
  45. name(){return "商户名称:" + this.shop.name;},
  46. businessModel(){return "经营方式:" + this.shop.businessModel;},
  47. category(){return "业态:" + this.shop.category;},
  48. contact(){return "联系人:" + this.shop.contact;},
  49. phone(){return "电话:" + this.shop.phone;},
  50. },
  51. methods: {}
  52. }
  53. </script>
  54. <style>
  55. </style>