租房小程序前端代码
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.

75 lines
2.1 KiB

6 months ago
  1. <template>
  2. <view>
  3. <view class="se-w-vw-100 se-h-500">
  4. <!-- <uv-swiper :radius="0" :list="list" :height="250" keyName="url" :autoplay="false"></uv-swiper> -->
  5. <image class="se-w-p-100 se-h-500" :src="detail.image" mode="aspectFill"></image>
  6. </view>
  7. <view class="se-py-20 se-flex se-bgc-white">
  8. <view class="se-w-vw-100 se-pl-30">
  9. <view class=" se-c-black se-fw-6 se-fs-32">
  10. {{detail.title}}
  11. </view>
  12. <!-- <view class="se-display-ib se-c-white se-bgc-orange se-fs-22 se-br-8 se-px-10 se-py-5">
  13. {{detail.iconTitle}}
  14. </view> -->
  15. </view>
  16. </view>
  17. <view class="se-flex se-fs-24 se-px-30">
  18. <view class="se-flex-1 se-py-20">
  19. <text class="se-c-66 se-mr-20">发布时间</text>
  20. <text class="se-c-black">{{detail.createTime}}</text>
  21. </view>
  22. </view>
  23. <view class="se-flex se-fs-24 se-px-30">
  24. <view class="se-flex-1 se-py-20">
  25. <text class="se-c-66 se-mr-20">详细内容</text>
  26. </view>
  27. </view>
  28. <view class="se-c-black se-pb-120 se-fs-26 se-lh-50 se-px-30 se-lh-40 se-pt-5">
  29. <uv-parse :content="detail.details"></uv-parse>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. import { commonIndexFindDetail } from "@/common/api.js"
  35. export default{
  36. data(){
  37. return{
  38. id:null,
  39. detail:{},
  40. // list: [{
  41. // url: 'https://cdn.uviewui.com/uview/resources/video.mp4',
  42. // title: '昨夜星辰昨夜风,画楼西畔桂堂东',
  43. // poster: 'https://cdn.uviewui.com/uview/swiper/swiper1.png'
  44. // }, {
  45. // url: 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
  46. // title: '身无彩凤双飞翼,心有灵犀一点通'
  47. // }, {
  48. // url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
  49. // title: '谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳'
  50. // }]
  51. }
  52. },
  53. onLoad(options) {
  54. this.id = options.id
  55. this.onCommonFindDetail()
  56. },
  57. methods:{
  58. onCommonFindDetail(){
  59. let that = this
  60. commonIndexFindDetail({houseId:that.id}).then(response=>{
  61. console.info('response',response)
  62. that.detail = response.result
  63. }).catch(error=>{
  64. })
  65. }
  66. }
  67. }
  68. </script>
  69. <style>
  70. page{
  71. background-color: #f5f5f5;
  72. }
  73. </style>