org_detail.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <view class="container">
  3. <!-- 本会介绍区域 -->
  4. <common-controlTag :tagList="['本会介绍']"></common-controlTag>
  5. <view class="desc">
  6. {{ info.description }}
  7. </view>
  8. <!-- 联系我们区域 -->
  9. <common-controlTag :tagList="['联系我们']"></common-controlTag>
  10. <view class="contact">
  11. <view>联系人:{{ info.contact }}</view>
  12. <view class="phone">
  13. 电话:
  14. <view class="phone_num" @click="handlePhone(info.phone)">{{ info.phone || '未知' }}</view>
  15. </view>
  16. <view>邮箱:{{ info.email || '未知' }}</view>
  17. <view>地址:{{ info.address || '未知' }}</view>
  18. </view>
  19. </view>
  20. </template>
  21. <script setup>
  22. import { onLoad } from '@dcloudio/uni-app'
  23. import { ref } from 'vue'
  24. const info = ref()
  25. onLoad((options) => {
  26. // console.log(options)
  27. if (options.info) {
  28. info.value = JSON.parse(decodeURIComponent(options.info))
  29. // console.log(info.value)
  30. }
  31. })
  32. // 点击拨打电话回调
  33. const handlePhone = (phoneNumber) => {
  34. if (phoneNumber) {
  35. uni.makePhoneCall({
  36. phoneNumber
  37. })
  38. }
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .container {
  43. padding: 20rpx 18rpx;
  44. min-height: 100vh;
  45. color: #333333;
  46. font-size: 28rpx;
  47. line-height: 50rpx;
  48. .desc {
  49. margin-bottom: 10rpx;
  50. }
  51. .contact {
  52. margin-top: 15rpx;
  53. .phone {
  54. display: flex;
  55. .phone_num {
  56. color: #007aff;
  57. }
  58. }
  59. }
  60. }
  61. </style>