index.vue 2.1 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. },
  32. methods:{
  33. getById(){
  34. const data = {
  35. id : ''
  36. }
  37. getParkBriefById(data).then((res)=>{
  38. this.form = res.data
  39. })
  40. },
  41. }
  42. }
  43. </script>
  44. <style lang="scss">
  45. .aboutThePark{
  46. .whiteBoard{
  47. background: white;
  48. margin: 24rpx 0;
  49. padding: 24rpx;
  50. .testImg{
  51. width: 686rpx;
  52. height: 300rpx;
  53. }
  54. .info{
  55. color: #333333;
  56. font-size: 28rpx;
  57. line-height: 42rpx;
  58. margin: 24rpx 0;
  59. word-wrap: break-word;
  60. }
  61. .detailLi{
  62. display: flex;
  63. justify-content: space-between;
  64. align-items: center;
  65. .liInfo{
  66. display: inline-block;
  67. text-align: right;
  68. max-width: 428rpx;
  69. color: rgba(102, 102, 102, 1);
  70. font-size: 32rpx;
  71. line-height: 38rpx;
  72. overflow: hidden;
  73. word-wrap: break-word;
  74. }
  75. .callNumber{
  76. color: rgba(24, 23, 42, 1);
  77. font-size: 36rpx;
  78. font-weight: 600;
  79. }
  80. .callName{
  81. color: rgba(102, 102, 102, 1);
  82. font-size: 28rpx;
  83. }
  84. .phoneIcon{
  85. width: 64rpx;
  86. height: 64rpx;
  87. }
  88. }
  89. }
  90. }
  91. </style>