瑶都万能墙
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.

326 lines
7.4 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view>
  3. <view class="leftClick"
  4. @click="$utils.navigateBack">
  5. <uv-icon
  6. size="30rpx"
  7. color="#fff"
  8. name="arrow-left"></uv-icon>
  9. </view>
  10. <view style="width: 100vw; height: 553rpx;">
  11. <!-- <image style="width: 100vw; height: 553rpx;"
  12. src="https://pic1.ajkimg.com/display/anjuke/ea5773-%E8%83%9C%E9%80%B8%E5%9C%B0%E4%BA%A7/3b5e900e0ed231e6154759c8c885b6cc-800x650.jpg?frame=1"
  13. mode="aspectFill" /> -->
  14. <uv-swiper
  15. :list="detail.image && detail.image.split(',')"
  16. indicator
  17. height="553rpx"
  18. indicatorStyle="bottom: 100rpx;"
  19. ></uv-swiper>
  20. </view>
  21. <view
  22. style="padding: 36rpx; background: #FFF;">
  23. <view class="t0">{{ detail.money }}/</view>
  24. <view class="t1">{{ detail.title }} {{ detail.home }}</view>
  25. <!-- <view class="t2">房源编号:HC42012205JC33V</view> -->
  26. <view class="t2">{{ detail.titleSub }}</view>
  27. <view class="t2">{{ detail.createTime }}更新 · 浏览 {{ detail.num }}</view>
  28. <view class="driver"></view>
  29. <view class="flex-wrap xr">
  30. <view class="sb-w4 h70">
  31. <view class="font-a">{{ detail.face }}</view>
  32. <view class="font-b">朝向</view>
  33. </view>
  34. <view class="sb-w4 h70">
  35. <view class="font-a">{{ detail.crm }}</view>
  36. <view class="font-b">面积</view>
  37. </view>
  38. <view class="sb-w4 h70">
  39. <view class="font-a">{{ detail.floor }}</view>
  40. <view class="font-b">楼层</view>
  41. </view>
  42. <view class="sb-w4 h70">
  43. <view class="font-a">{{ detail.decoration }}</view>
  44. <view class="font-b">装修</view>
  45. </view>
  46. </view>
  47. <view class="driver"></view>
  48. <view class="line64">
  49. <view class="flex-sb">
  50. <view class="w50">
  51. <span class="font-b">付款</span>
  52. <span class="font-c">{{ detail.payment }}</span>
  53. </view>
  54. <view class="w50">
  55. <span class="font-b">电梯</span>
  56. <span class="font-c">{{ detail.lift }}</span>
  57. </view>
  58. </view>
  59. <view class="flex-sb">
  60. <view class="w50">
  61. <span class="font-b">交付</span>
  62. <span class="font-c">{{ detail.deliver }}</span>
  63. </view>
  64. <view class="w50">
  65. <span class="font-b">看房</span>
  66. <span class="font-c">{{ detail.showings }}</span>
  67. </view>
  68. </view>
  69. <!-- <view class="flex-sb">
  70. <view>
  71. <span class="font-b">投诉</span>
  72. <span class="font-c">
  73. <uni-icons type="phone" size="12" />
  74. {{ detail.phone }}
  75. </span>
  76. </view>
  77. </view> -->
  78. <!-- <view class="flex-sb">
  79. <view>
  80. <span class="font-b">小区</span>
  81. <span class="font-c">
  82. <uni-icons type="paperplane" size="12" />
  83. {{ detail.address }}
  84. </span>
  85. </view>
  86. </view> -->
  87. <!-- <view
  88. style="margin-left: auto;"
  89. class="d-btn" @click="clickService">
  90. <span>打电话</span>
  91. </view> -->
  92. <callPhone
  93. :phone="detail.phone"
  94. type="1"
  95. :phoneTitle="detail.title"
  96. :pid="detail.id"
  97. title="联系房东"
  98. :showModel="true"/>
  99. </view>
  100. </view>
  101. <!-- 地图位置信息 -->
  102. <view style="padding: 20rpx;background-color: #FFF;">
  103. <mapCard
  104. v-if="detail.latitude && detail.longitude"
  105. :address-name="detail.address"
  106. :latitude="detail.latitude"
  107. :longitude="detail.longitude"
  108. :address-detail="detail.title"
  109. @mapClick="onMapClick"
  110. />
  111. </view>
  112. <!-- <view class="b-fiexd flex" style="height: 98rpx; z-index: 2;">
  113. <view style="padding-left: 20rpx;">
  114. <image src="/static/logo.png" class="radius80 test" />
  115. </view>
  116. <view style="padding: 12rpx 20rpx; width: 280rpx;
  117. display: flex;align-items: center;">
  118. <view class="font-d">{{ detail.userId }}</view>
  119. </view>
  120. <view style="padding: 20rpx" @click="clickShare()">
  121. <uni-icons type="redo"></uni-icons>
  122. </view>
  123. <view class="d-btn" @click="clickService">
  124. <span>打电话</span>
  125. </view>
  126. </view> -->
  127. <commentList
  128. @getData="getData"
  129. :list="list"
  130. :params="params"
  131. />
  132. </view>
  133. </template>
  134. <script>
  135. import mixinsList from '@/mixins/list.js'
  136. import commentList from '../components/list/comment/commentList.vue'
  137. import mapCard from '@/components/base/mapCard.vue'
  138. export default {
  139. mixins: [mixinsList],
  140. components : {
  141. commentList,
  142. mapCard,
  143. },
  144. data() {
  145. return {
  146. id : 0,
  147. detail : {},
  148. collectionFlag : false,
  149. mixinsListApi : 'getCommentPage',
  150. params : {
  151. type : '1',
  152. orderId : '',
  153. name : '',
  154. },
  155. }
  156. },
  157. onLoad(options) {
  158. this.id = options.id
  159. this.queryParams.type = this.params.type
  160. this.queryParams.orderId = options.id
  161. this.params.orderId = options.id
  162. // 设置分享路径
  163. this.share.path = '/pages_order/renting/rentingDetail?id=' + this.id
  164. },
  165. onPullDownRefresh() {
  166. this.getDetail()
  167. },
  168. onShow() {
  169. this.getDetail()
  170. },
  171. methods: {
  172. // 地图点击事件
  173. onMapClick(data) {
  174. console.log('地图点击事件:', data);
  175. },
  176. clickShare() {
  177. uni.share({
  178. provider: 'weixin',
  179. type: 5,
  180. success: (res) => {
  181. console.log(res);
  182. }
  183. });
  184. },
  185. clickService() {
  186. uni.makePhoneCall({
  187. phoneNumber: this.detail.phone,
  188. });
  189. },
  190. getDetail(){
  191. let data = {
  192. id : this.id
  193. }
  194. this.$api('getRentDetail', data, res => {
  195. if(res.code == 200){
  196. this.params.name = res.result.title
  197. this.detail = res.result
  198. // 设置分享信息
  199. this.share.title = res.result.title
  200. this.share.imageUrl = this.$utils.getImageOne(res.result.image)
  201. }
  202. })
  203. },
  204. }
  205. }
  206. </script>
  207. <style scoped lang="scss">
  208. .leftClick{
  209. position: absolute;
  210. top: calc(var(--status-bar-height) + 20rpx);
  211. left: 20rpx;
  212. background-color: #00000033;
  213. padding: 20rpx;
  214. border-radius: 50%;
  215. z-index: 99;
  216. }
  217. .t0 {
  218. font-weight: 1000;
  219. font-size: 32rpx;
  220. color: #FF0000;
  221. line-height: 64rpx;
  222. }
  223. .t1 {
  224. font-weight: bold;
  225. font-size: 36rpx;
  226. color: #3D3D3D;
  227. line-height: 64rpx;
  228. }
  229. .t2 {
  230. font-weight: 400;
  231. font-size: 24rpx;
  232. color: #ADADAD;
  233. line-height: 42rpx;
  234. }
  235. .driver {
  236. width: 100%;
  237. height: 2rpx;
  238. background-color: #D5D5D5;
  239. opacity: .4;
  240. margin: 20rpx auto;
  241. }
  242. .xr {
  243. padding: 10rpx 0 20rpx;
  244. }
  245. .font-a {
  246. font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  247. font-weight: 400;
  248. font-size: 30rpx;
  249. color: #3D3D3D;
  250. line-height: 46rpx;
  251. text-align: center;
  252. }
  253. .font-b {
  254. font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  255. font-weight: 400;
  256. font-size: 24rpx;
  257. color: #ADADAD;
  258. line-height: 46rpx;
  259. }
  260. .font-d {
  261. font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  262. font-weight: 800;
  263. font-size: 28rpx;
  264. color: #333;
  265. line-height: 32rpx;
  266. }
  267. .font-c {
  268. font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  269. font-weight: 400;
  270. font-size: 24rpx;
  271. color: #333;
  272. line-height: 46rpx;
  273. }
  274. .d-btn {
  275. width: 200rpx;
  276. height: 72rpx;
  277. line-height: 72rpx;
  278. background: #4255E4;
  279. border-radius: 36rpx 36rpx 36rpx 36rpx;
  280. font-weight: 400;
  281. font-size: 28rpx;
  282. color: #FFFFFF;
  283. text-align: center;
  284. margin: 12rpx;
  285. }
  286. </style>