detail.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <view>
  3. <view class="cmain">
  4. <view class="box order_detail">
  5. <u-divider text="商铺信息"></u-divider>
  6. <view class="item">
  7. <text class="label">商铺编号</text>
  8. <text class="desc">{{item.shopNo}}</text>
  9. </view>
  10. <view class="item">
  11. <text class="label">商铺名称</text>
  12. <text class="desc">{{item.shopName}}</text>
  13. </view>
  14. <view class="item">
  15. <text class="label">铺主</text>
  16. <text class="desc">{{item.ownerName}}</text>
  17. </view>
  18. <view class="item">
  19. <text class="label">互市区</text>
  20. <text class="desc">{{item.tradeAreaName}}</text>
  21. </view>
  22. <view class="item">
  23. <text class="label">经营范围</text>
  24. <text class="desc">{{item.bnsScope}}</text>
  25. </view>
  26. <view class="item">
  27. <text class="label">有效期</text>
  28. <text class="desc">{{item.expiry}}</text>
  29. </view>
  30. <view class="item">
  31. <text class="label">店铺地址</text>
  32. <text class="desc">{{item.shopAddr}}</text>
  33. </view>
  34. <view class="item">
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {
  44. item: {}
  45. }
  46. },
  47. onLoad(e) {
  48. if(e.id) {
  49. this.http.request({
  50. url: '/level-one-server/app/TbShop/getDetailById',
  51. data: { id: e.id },
  52. success: res=> {
  53. this.item = res.data.data;
  54. }
  55. })
  56. }
  57. },
  58. methods: {
  59. }
  60. }
  61. </script>
  62. <style lang="scss">
  63. page {
  64. background-color: $pg;
  65. }
  66. </style>