info.vue 1.6 KB

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