index.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <div class="aboutThePark">
  3. <div class="whiteBoard">
  4. <img src="../housingResources/testImg.png" class="testImg">
  5. <div class="info">
  6. {{form.content}}
  7. </div>
  8. </div>
  9. <div class="whiteBoard">
  10. <div class="detailLi">
  11. <span class="liName">
  12. <span class="callName">招商电话:</span>
  13. <span class="callNumber">{{ form.attractPhone }}</span>
  14. </span>
  15. <img src="https://www.idea-co-sf.com/gardenProduct/image/phoneIcon.png" class="phoneIcon">
  16. </div>
  17. </div>
  18. </div>
  19. </template>
  20. <script>
  21. import { getParkBriefById } from "@/js_sdk/http";
  22. export default {
  23. name: "index",
  24. data(){
  25. return{
  26. form:{
  27. }
  28. }
  29. },
  30. onLoad(options){
  31. this.getById()
  32. },
  33. methods:{
  34. getById(){
  35. const data = {
  36. groupId : JSON.parse(uni.getStorageSync('selectGroup')).groupId
  37. }
  38. getParkBriefById(data).then((res)=>{
  39. this.form = res.data
  40. })
  41. },
  42. }
  43. }
  44. </script>
  45. <style lang="scss">
  46. .aboutThePark{
  47. .whiteBoard{
  48. background: white;
  49. margin: 24rpx 0;
  50. padding: 24rpx;
  51. .testImg{
  52. width: 686rpx;
  53. height: 300rpx;
  54. }
  55. .info{
  56. color: #333333;
  57. font-size: 28rpx;
  58. line-height: 42rpx;
  59. margin: 24rpx 0;
  60. word-wrap: break-word;
  61. }
  62. .detailLi{
  63. display: flex;
  64. justify-content: space-between;
  65. align-items: center;
  66. .liInfo{
  67. display: inline-block;
  68. text-align: right;
  69. max-width: 428rpx;
  70. color: rgba(102, 102, 102, 1);
  71. font-size: 32rpx;
  72. line-height: 38rpx;
  73. overflow: hidden;
  74. word-wrap: break-word;
  75. }
  76. .callNumber{
  77. color: rgba(24, 23, 42, 1);
  78. font-size: 36rpx;
  79. font-weight: 600;
  80. }
  81. .callName{
  82. color: rgba(102, 102, 102, 1);
  83. font-size: 28rpx;
  84. }
  85. .phoneIcon{
  86. width: 64rpx;
  87. height: 64rpx;
  88. }
  89. }
  90. }
  91. }
  92. </style>