info.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <view class="shop-info-box box-border-box">
  3. <view class="box-card box-border-box p-24 bgc-f mb-20">
  4. <view class="fs-32 fw-500 mb-32">商家信息</view>
  5. <view class="mb-40 align-items-center">
  6. <image src="@/static/img/takeout/info-address.png" mode=""></image>
  7. <view class="fs-28 fw-400">{{shopInfoData.city_name}}{{shopInfoData.shop_name}}</view>
  8. </view>
  9. <view class="mb-40 align-items-center">
  10. <image src="@/static/img/takeout/info-class.png" mode=""></image>
  11. <view class="fs-28 fw-400">门店类目:{{shopInfoData.cate_name}}</view>
  12. </view>
  13. <view class="mb-40 align-items-center">
  14. <image src="@/static/img/takeout/info-time.png" mode=""></image>
  15. <view class="fs-28 fw-400">营业时间:{{shopInfoData.business_hours}}</view>
  16. </view>
  17. <view class="mb-40 align-items-center">
  18. <image src="@/static/img/takeout/info-phone.png" mode=""></image>
  19. <view class="fs-28 fw-400">联系电话: {{shopInfoData.shop_phone}} </view>
  20. </view>
  21. <view class="right-img-f align-items-center">
  22. <image src="@/static/img/takeout/info-zz.png" mode=""></image>
  23. <view class="fs-28 fw-400">查看营业资质 </view>
  24. <image @click="to()" class="right-img" src="@/static/img/toRight.png" mode=""></image>
  25. </view>
  26. </view>
  27. <view class="box-card box-border-box p-24 bgc-f mb-20">
  28. <view class="fs-32 fw-500 mb-32">商家公告</view>
  29. <view class="mb-40 display-flex">
  30. <image class="flex-shrink0" src="@/static/img/takeout/info-gg.png" mode=""></image>
  31. <view class="fs-28 fw-400">{{shopInfoData.notice}}</view>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. import {
  38. shopInfo
  39. } from "@/api/shop.js"
  40. export default {
  41. props: {
  42. shopId: {}
  43. },
  44. data() {
  45. return {
  46. shopInfoData: {}
  47. }
  48. },
  49. onShow() {
  50. },
  51. mounted() {
  52. this.shopInfo()
  53. },
  54. methods: {
  55. to() {
  56. uni.navigateTo({
  57. url: '/pages-takeout/aptitude'
  58. })
  59. },
  60. shopInfo() {
  61. const operate_id = uni.getStorageSync('operate_id')
  62. shopInfo({shop_id: this.shopId,operate_id: operate_id}).then((res) => {
  63. if(res.code == 1) {
  64. this.shopInfoData = res.data
  65. }
  66. })
  67. }
  68. },
  69. }
  70. </script>
  71. <style scoped lang="scss">
  72. .shop-info-box {
  73. height: 100%;
  74. overflow: scroll;
  75. background-color: #F5F4F9;
  76. padding: 16rpx 24rpx;
  77. .box-card {
  78. width: 100%;
  79. min-height: 10rpx;
  80. border-radius: 20rpx;
  81. image {
  82. width: 40rpx;
  83. height: 40rpx;
  84. margin-right: 16rpx;
  85. }
  86. .right-img-f {
  87. position: relative;
  88. .right-img {
  89. position: absolute;
  90. top: 10rpx;
  91. right: -10rpx;
  92. width: 32rpx;
  93. height: 32rpx;
  94. }
  95. }
  96. }
  97. }
  98. </style>