info.vue 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. <template>
  2. <view class="info1">
  3. <view class="info1-title">
  4. 基本情况
  5. </view>
  6. <view class="u-flex info1-row">
  7. <text class="text">备案名称</text>
  8. <text class="u-flex-1">{{detail.record_name}}</text>
  9. </view>
  10. <view class="u-flex info1-row">
  11. <text class="text">销售状态</text>
  12. <text class="u-flex-1">{{detail.sale_state}}</text>
  13. </view>
  14. <view class="u-flex info1-row">
  15. <text class="text">售楼位置</text>
  16. <view class="u-flex u-col-top">
  17. <u-icon name="map-fill" color="#1F7EFF" size="30" style="margin-top: 2rpx;margin-right: 10rpx;"></u-icon>
  18. <text class="u-flex-1">{{detail.sales_office}}</text>
  19. </view>
  20. </view>
  21. <!-- <view class="u-flex info1-row">
  22. <text class="text">楼盘位置</text>
  23. <view class="u-flex u-col-top">
  24. <u-icon name="map-fill" color="#1F7EFF" size="30" style="margin-top: 2rpx;margin-right: 10rpx;"></u-icon>
  25. <text class="u-flex-1">上城区三关塘路与华家竹园路交汇处向西200米</text>
  26. </view>
  27. </view> -->
  28. <view class="u-flex info1-row">
  29. <text class="text">装修状况</text>
  30. <text class="u-flex-1">{{detail.fitment_state}}</text>
  31. </view>
  32. <view class="u-flex info1-row">
  33. <text class="text">交房时间</text>
  34. <text class="u-flex-1">{{detail.delivery_time}}</text>
  35. </view>
  36. <view class="u-flex info1-row">
  37. <text class="text">建筑层高</text>
  38. <text class="u-flex-1">{{detail.floor_height}}</text>
  39. </view>
  40. <view class="u-flex info1-row">
  41. <text class="text">户型面积</text>
  42. <text class="u-flex-1">{{detail.house_min_area}}㎡-{{detail.house_max_area}}㎡</text>
  43. </view>
  44. <view class="u-flex info1-row" v-if="detail.trait">
  45. <text class="text">楼盘类型</text>
  46. <text class="u-flex-1" v-if="detail.trait.length > 0">{{detail.trait.join(' ')}}</text>
  47. </view>
  48. <view class="u-flex info1-row">
  49. <text class="text">物业费用</text>
  50. <text class="u-flex-1">{{detail.property_cost}}</text>
  51. </view>
  52. <view class="u-flex info1-row">
  53. <text class="text">物业公司</text>
  54. <text class="u-flex-1">{{detail.property_company}}</text>
  55. </view>
  56. <view class="u-flex info1-row">
  57. <text class="text">开盘时间</text>
  58. <text class="u-flex-1">{{detail.sale_time}}</text>
  59. </view>
  60. <view class="xian"></view>
  61. <view class="info1-title">
  62. 总体情况
  63. </view>
  64. <view class="u-flex info1-row">
  65. <text class="text">项目名称</text>
  66. <text class="u-flex-1">{{detail.name}}</text>
  67. </view>
  68. <!-- <view class="u-flex info1-row">
  69. <text class="text">项目简介</text>
  70. <text class="u-flex-1">上城区三关塘路与华家竹园路交汇处向西200米</text>
  71. </view> -->
  72. <view class="u-flex info1-row">
  73. <text class="text">项目地址</text>
  74. <view class="u-flex u-col-top" @click="tomap">
  75. <u-icon name="map-fill" color="#1F7EFF" size="30" style="margin-top: 2rpx;margin-right: 10rpx;"></u-icon>
  76. <text class="u-flex-1">{{detail.project_address}}</text>
  77. </view>
  78. </view>
  79. <view class="u-flex info1-row">
  80. <text class="text">总户数量</text>
  81. <text class="u-flex-1">{{detail.resident_num}}</text>
  82. </view>
  83. <view class="u-flex info1-row">
  84. <text class="text">车位配比</text>
  85. <text class="u-flex-1">{{detail.stall_ratio}}</text>
  86. </view>
  87. <view class="u-flex info1-row">
  88. <text class="text">总栋数</text>
  89. <text class="u-flex-1">{{detail.tower_num}}栋</text>
  90. </view>
  91. <view class="u-flex info1-row">
  92. <text class="text">绿化率</text>
  93. <text class="u-flex-1">{{detail.greening_rate}}</text>
  94. </view>
  95. <view class="u-flex info1-row">
  96. <text class="text">容积率</text>
  97. <text class="u-flex-1">{{detail.plot_ratio}}%</text>
  98. </view>
  99. <view class="u-flex info1-row">
  100. <text class="text">占地面积</text>
  101. <text class="u-flex-1">{{detail.floor_area}}</text>
  102. </view>
  103. <view class="u-flex info1-row">
  104. <text class="text">总建面积</text>
  105. <text class="u-flex-1">{{detail.covered_area}}</text>
  106. </view>
  107. <view class="xian"></view>
  108. <view class="info1-title">
  109. 楼盘简介
  110. </view>
  111. <view class="jianjie">
  112. {{detail.project_synopsis}}
  113. </view>
  114. <view class="" style="height: 170rpx;"></view>
  115. <view class="houses-btn u-flex u-row-between">
  116. <text @click="opentel">隐私电话</text>
  117. <text @click="tochat">在线咨询</text>
  118. </view>
  119. <u-popup v-model="showtocall" mode="center" background="rgba(0,0,0,0)">
  120. <view class="tocall-box u-flex-col u-col-center">
  121. <image class="tocall-img" src="../../static/images/popup1-1.png" mode=""></image>
  122. <view class="u-flex-col u-col-center tocall-text">您是否进行呼叫?</view>
  123. <view class="u-flex u-row-between tocall-btn">
  124. <text @click="showtocall = false">取消</text>
  125. <text @click="totel">确定</text>
  126. </view>
  127. </view>
  128. </u-popup>
  129. <u-popup v-model="showlogin" mode="center" background="rgba(0,0,0,0)">
  130. <view class="tocall-box u-flex-col u-col-center">
  131. <image class="tocall-img" src="../../static/images/popup1-1.png" mode=""></image>
  132. <view class="u-flex-col u-col-center tocall-text">你目前处于未登录状态请前往登录</view>
  133. <view class="u-flex u-row-between tocall-btn">
  134. <text @click="showlogin = false">取消</text>
  135. <text @click="tologin">确定</text>
  136. </view>
  137. </view>
  138. </u-popup>
  139. </view>
  140. </template>
  141. <script>
  142. export default {
  143. data() {
  144. return {
  145. showtocall: false,
  146. id: '',
  147. detail: {},
  148. showlogin: false
  149. }
  150. },
  151. onLoad(option) {
  152. this.id = option.id
  153. this.getdata()
  154. },
  155. methods: {
  156. tomap() {
  157. uni.openLocation({
  158. latitude: Number(this.detail.latitude),
  159. longitude: Number(this.detail.longitude)
  160. })
  161. },
  162. tologin() {
  163. uni.switchTab({
  164. url: "/pages/mine/mine"
  165. })
  166. },
  167. opentel() {
  168. if (uni.getStorageSync("token")) {
  169. this.showtocall = true
  170. } else {
  171. this.showlogin = true
  172. }
  173. },
  174. getdata() {
  175. this.$u.get('/api/Property/property_detail', {
  176. id: this.id
  177. }).then(res => {
  178. this.detail = res.data
  179. })
  180. },
  181. totel() {
  182. if (uni.getStorageSync("token")) {
  183. this.$u.post('/api/Member/consult_record', {
  184. type: 1
  185. })
  186. uni.makePhoneCall({
  187. phoneNumber: this.detail.privacy_phone
  188. })
  189. } else {
  190. this.showlogin = true
  191. }
  192. },
  193. tochat() {
  194. if (uni.getStorageSync("token")) {
  195. this.$u.post('/api/Member/consult_record', {
  196. type: 2
  197. })
  198. uni.navigateTo({
  199. url: "./chat?hx_username=" + this.detail.hx_username + "&worker_id=" + this.detail.worker_id
  200. })
  201. } else {
  202. this.showlogin = true
  203. }
  204. },
  205. }
  206. }
  207. </script>
  208. <style lang="scss">
  209. .info1 {
  210. padding: 16rpx 24rpx;
  211. .tocall-box {
  212. position: relative;
  213. .tocall-img {
  214. width: 650rpx;
  215. height: 476rpx;
  216. }
  217. .tocall-btn {
  218. position: absolute;
  219. bottom: 70rpx;
  220. left: 0;
  221. width: 100%;
  222. padding: 0 48rpx;
  223. text:first-child {
  224. width: 254rpx;
  225. line-height: 80rpx;
  226. background: #FFA120;
  227. border-radius: 20rpx;
  228. text-align: center;
  229. font-size: 34rpx;
  230. font-family: PingFangSC-Medium, PingFang SC;
  231. font-weight: 500;
  232. color: #FFFFFF;
  233. }
  234. text:last-child {
  235. width: 254rpx;
  236. line-height: 80rpx;
  237. background: #1F7EFF;
  238. border-radius: 20rpx;
  239. text-align: center;
  240. font-size: 34rpx;
  241. font-family: PingFangSC-Medium, PingFang SC;
  242. font-weight: 500;
  243. color: #FFFFFF;
  244. }
  245. }
  246. .tocall-text {
  247. text-align: center;
  248. font-size: 24rpx;
  249. font-family: PingFangSC-Regular, PingFang SC;
  250. font-weight: 400;
  251. color: #999999;
  252. position: absolute;
  253. top: 244rpx;
  254. left: 0;
  255. z-index: 10;
  256. width: 100%;
  257. }
  258. }
  259. .houses-btn {
  260. position: fixed;
  261. bottom: 0;
  262. left: 0;
  263. width: 750rpx;
  264. height: 166rpx;
  265. background: #FFFFFF;
  266. padding: 0 24rpx 54rpx 24rpx;
  267. z-index: 1;
  268. text:first-child {
  269. width: 338rpx;
  270. line-height: 84rpx;
  271. background: #FFA120;
  272. border-radius: 20rpx;
  273. text-align: center;
  274. font-size: 28rpx;
  275. font-family: PingFangSC-Regular, PingFang SC;
  276. font-weight: 400;
  277. color: #FFFFFF;
  278. }
  279. text:last-child {
  280. width: 338rpx;
  281. line-height: 84rpx;
  282. background: #1F7EFF;
  283. border-radius: 20rpx;
  284. text-align: center;
  285. font-size: 28rpx;
  286. font-family: PingFangSC-Regular, PingFang SC;
  287. font-weight: 400;
  288. color: #FFFFFF;
  289. }
  290. }
  291. .xian {
  292. width: 702rpx;
  293. height: 2rpx;
  294. background: #CCCCCC;
  295. margin: 16rpx auto;
  296. }
  297. .info1-row {
  298. margin-bottom: 24rpx;
  299. font-size: 24rpx;
  300. font-family: PingFangSC-Regular, PingFang SC;
  301. font-weight: 400;
  302. color: #666666;
  303. .text {
  304. width: 140rpx;
  305. }
  306. }
  307. .jianjie {
  308. font-size: 24rpx;
  309. font-family: PingFangSC-Regular, PingFang SC;
  310. font-weight: 400;
  311. color: #666666;
  312. }
  313. .info1-title {
  314. padding: 24rpx 0;
  315. font-size: 28rpx;
  316. font-family: PingFangSC-Medium, PingFang SC;
  317. font-weight: 500;
  318. color: #333333;
  319. }
  320. }
  321. </style>