兼兼街公众号代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
1.5 KiB

  1. <template>
  2. <view class="new-detail">
  3. <view class="title">{{informData.title}}/{{informData.payType}}</view>
  4. <view class="price">{{informData.price}}/</view>
  5. <view class="titleText">{{informData.titleText}}</view>
  6. <view class="time">{{informData.createTime}}</view>
  7. <view class="address"> 出租地址: {{informData.address}}</view>
  8. <view class="homeName"> 联系人: {{informData.homeName}} / {{informData.homePhone}}</view>
  9. <u-parse :content="informData.details"></u-parse>
  10. </view>
  11. </template>
  12. <script>
  13. export default{
  14. data(){
  15. return{
  16. informData: {}
  17. }
  18. },
  19. // 隐藏微信h5的标题栏
  20. onReady() {
  21. this.$com.displayNav()
  22. },
  23. onLoad(e) {
  24. this.getinformFindById(e.id)
  25. },
  26. methods:{
  27. getinformFindById(id){
  28. uni.showLoading()
  29. this.$api('getHouseById',{id})
  30. .then(res=>{
  31. uni.hideLoading()
  32. if(res.code == 200){
  33. this.informData = res.result;
  34. }
  35. })
  36. }
  37. }
  38. }
  39. </script>
  40. <style lang="scss" scoped>
  41. .new-detail {
  42. padding: 38rpx 40rpx 50rpx;
  43. .title {
  44. font-size: 34rpx;
  45. color: #000000;
  46. font-weight: 700;
  47. }
  48. .price{
  49. font-size: 34rpx;
  50. color: #FF0000;
  51. margin: 40rpx 0;
  52. }
  53. .titleText{
  54. font-size: 24rpx;
  55. color: #000000;
  56. margin: 40rpx 0;
  57. }
  58. .homePhone{
  59. font-size: 28rpx;
  60. color: #000000;
  61. margin: 40rpx 0;
  62. }
  63. .homeName{
  64. font-size: 28rpx;
  65. color: #000000;
  66. margin: 40rpx 0;
  67. }
  68. .address{
  69. font-size: 22rpx;
  70. color: #000000;
  71. margin: 20rpx 0;
  72. }
  73. .time {
  74. font-size: 22rpx;
  75. color: #C8C8C8;
  76. margin: 40rpx 0;
  77. }
  78. }
  79. </style>