info.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  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.property_class}}</text>
  59. </view>
  60. <view class="u-flex info1-row">
  61. <text class="text">产权年限</text>
  62. <text class="u-flex-1">{{detail.property_deadline}}</text>
  63. </view>
  64. <view class="u-flex info1-row">
  65. <text class="text">楼层状况</text>
  66. <text class="u-flex-1">{{detail.floor_case}}</text>
  67. </view>
  68. <view class="u-flex info1-row">
  69. <text class="text">人车分流</text>
  70. <text class="u-flex-1">{{detail.car_shunt}}</text>
  71. </view>
  72. <view class="u-flex info1-row">
  73. <text class="text">开盘时间</text>
  74. <text class="u-flex-1">{{detail.sale_time}}</text>
  75. </view>
  76. <view class="xian"></view>
  77. <view class="info1-title">
  78. 总体情况
  79. </view>
  80. <view class="u-flex info1-row">
  81. <text class="text">项目名称</text>
  82. <text class="u-flex-1">{{detail.name}}</text>
  83. </view>
  84. <!-- <view class="u-flex info1-row">
  85. <text class="text">项目简介</text>
  86. <text class="u-flex-1">上城区三关塘路与华家竹园路交汇处向西200米</text>
  87. </view> -->
  88. <view class="u-flex info1-row">
  89. <text class="text">项目地址</text>
  90. <view class="u-flex u-col-top" @click="tomap">
  91. <u-icon name="map-fill" color="#1F7EFF" size="30" style="margin-top: 2rpx;margin-right: 10rpx;"></u-icon>
  92. <text class="u-flex-1">{{detail.project_address}}</text>
  93. </view>
  94. </view>
  95. <view class="u-flex info1-row">
  96. <text class="text">总户数量</text>
  97. <text class="u-flex-1">{{detail.resident_num}}</text>
  98. </view>
  99. <view class="u-flex info1-row">
  100. <text class="text">车位配比</text>
  101. <text class="u-flex-1">{{detail.stall_ratio}}</text>
  102. </view>
  103. <view class="u-flex info1-row">
  104. <text class="text">总栋数</text>
  105. <text class="u-flex-1">{{detail.tower_num}}栋</text>
  106. </view>
  107. <view class="u-flex info1-row">
  108. <text class="text">绿化率</text>
  109. <text class="u-flex-1">{{detail.greening_rate}}</text>
  110. </view>
  111. <view class="u-flex info1-row">
  112. <text class="text">容积率</text>
  113. <text class="u-flex-1">{{detail.plot_ratio}}%</text>
  114. </view>
  115. <view class="u-flex info1-row">
  116. <text class="text">占地面积</text>
  117. <text class="u-flex-1">{{detail.floor_area}}</text>
  118. </view>
  119. <view class="u-flex info1-row">
  120. <text class="text">总建面积</text>
  121. <text class="u-flex-1">{{detail.covered_area}}</text>
  122. </view>
  123. <view class="u-flex info1-row">
  124. <text class="text">总车位数</text>
  125. <text class="u-flex-1">{{detail.stall_num}}</text>
  126. </view>
  127. <view class="u-flex info1-row">
  128. <text class="text">学校</text>
  129. <text class="u-flex-1">{{detail.school}}</text>
  130. </view>
  131. <view class="u-flex info1-row">
  132. <text class="text">小区内配套</text>
  133. <text class="u-flex-1">{{detail.plot_mating}}</text>
  134. </view>
  135. <view class="u-flex info1-row">
  136. <text class="text">外立面</text>
  137. <text class="u-flex-1">{{detail.external_wall}}</text>
  138. </view>
  139. <view class="u-flex info1-row">
  140. <text class="text">预售许可证</text>
  141. <text class="u-flex-1">{{detail.permit_presale}}</text>
  142. </view>
  143. <view class="xian"></view>
  144. <view class="info1-title">
  145. 楼盘简介
  146. </view>
  147. <view class="jianjie">
  148. {{detail.project_synopsis}}
  149. </view>
  150. <view class="" style="height: 170rpx;"></view>
  151. <view class="houses-btn u-flex u-row-between">
  152. <text @click="opentel">隐私电话</text>
  153. <text @click="tochat">在线咨询</text>
  154. </view>
  155. <u-popup v-model="showtocall" mode="center" background="rgba(0,0,0,0)">
  156. <view class="tocall-box u-flex-col u-col-center">
  157. <image class="tocall-img" src="../../static/images/popup1-1.png" mode=""></image>
  158. <view class="u-flex-col u-col-center tocall-text">您是否进行呼叫?</view>
  159. <view class="u-flex u-row-between tocall-btn">
  160. <text @click="showtocall = false">取消</text>
  161. <text @click="totel">确定</text>
  162. </view>
  163. </view>
  164. </u-popup>
  165. <u-popup v-model="showlogin" mode="center" background="rgba(0,0,0,0)">
  166. <view class="tocall-box u-flex-col u-col-center">
  167. <image class="tocall-img" src="../../static/images/popup1-1.png" mode=""></image>
  168. <view class="u-flex-col u-col-center tocall-text">你目前处于未登录状态请前往登录</view>
  169. <view class="u-flex u-row-between tocall-btn">
  170. <text @click="showlogin = false">取消</text>
  171. <text @click="tologin">确定</text>
  172. </view>
  173. </view>
  174. </u-popup>
  175. <gf-chat ref="chatlist" @over="getuser"></gf-chat>
  176. <gf-tel ref="tellist" @over="getuser"></gf-tel>
  177. </view>
  178. </template>
  179. <script>
  180. export default {
  181. data() {
  182. return {
  183. showtocall: false,
  184. id: '',
  185. detail: {},
  186. showlogin: false,
  187. worker_id: 0,
  188. worker_phone: '',
  189. worker_hx_username: ''
  190. }
  191. },
  192. onLoad(option) {
  193. this.id = option.id
  194. this.getdata()
  195. },
  196. onShow() {
  197. if (uni.getStorageSync("token")) {
  198. this.getuser()
  199. }
  200. },
  201. methods: {
  202. getuser() {
  203. this.$u.post('/api/Member/member_info').then(res => {
  204. this.worker_id = res.data.worker_id
  205. this.worker_phone = res.data.worker_phone
  206. this.worker_hx_username = res.data.worker_hx_username
  207. })
  208. },
  209. tomap() {
  210. uni.openLocation({
  211. latitude: Number(this.detail.latitude),
  212. longitude: Number(this.detail.longitude)
  213. })
  214. },
  215. tologin() {
  216. this.showlogin = false
  217. uni.navigateTo({
  218. url: "/pages/mine/login"
  219. })
  220. },
  221. opentel() {
  222. if (uni.getStorageSync("token")) {
  223. this.showtocall = true
  224. } else {
  225. this.showlogin = true
  226. }
  227. },
  228. getdata() {
  229. this.$u.get('/api/Property/property_detail', {
  230. id: this.id
  231. }).then(res => {
  232. this.detail = res.data
  233. })
  234. },
  235. totel() {
  236. if (uni.getStorageSync("token")) {
  237. this.showtocall = false
  238. if (this.worker_id == 0) {
  239. this.$refs.tellist.open(this.id)
  240. } else {
  241. this.$u.post('/api/Member/consult_record', {
  242. type: 1
  243. })
  244. uni.makePhoneCall({
  245. phoneNumber: this.worker_phone
  246. })
  247. }
  248. } else {
  249. this.showlogin = true
  250. }
  251. },
  252. tochat() {
  253. if (uni.getStorageSync("token")) {
  254. if (this.worker_id == 0) {
  255. this.$refs.chatlist.open(this.id)
  256. } else {
  257. this.$u.post('/api/Member/consult_record', {
  258. type: 2
  259. })
  260. uni.navigateTo({
  261. url: "/pages/index/chat?hx_username=" + this.worker_hx_username + "&worker_id=" + this.worker_id
  262. })
  263. }
  264. } else {
  265. this.showlogin = true
  266. }
  267. },
  268. }
  269. }
  270. </script>
  271. <style lang="scss">
  272. .info1 {
  273. padding: 16rpx 24rpx;
  274. .tocall-box {
  275. position: relative;
  276. .tocall-img {
  277. width: 650rpx;
  278. height: 476rpx;
  279. }
  280. .tocall-btn {
  281. position: absolute;
  282. bottom: 70rpx;
  283. left: 0;
  284. width: 100%;
  285. padding: 0 48rpx;
  286. text:first-child {
  287. width: 254rpx;
  288. line-height: 80rpx;
  289. background: #FFA120;
  290. border-radius: 20rpx;
  291. text-align: center;
  292. font-size: 34rpx;
  293. font-family: PingFangSC-Medium, PingFang SC;
  294. font-weight: 500;
  295. color: #FFFFFF;
  296. }
  297. text:last-child {
  298. width: 254rpx;
  299. line-height: 80rpx;
  300. background: #1F7EFF;
  301. border-radius: 20rpx;
  302. text-align: center;
  303. font-size: 34rpx;
  304. font-family: PingFangSC-Medium, PingFang SC;
  305. font-weight: 500;
  306. color: #FFFFFF;
  307. }
  308. }
  309. .tocall-text {
  310. text-align: center;
  311. font-size: 24rpx;
  312. font-family: PingFangSC-Regular, PingFang SC;
  313. font-weight: 400;
  314. color: #999999;
  315. position: absolute;
  316. top: 244rpx;
  317. left: 0;
  318. z-index: 10;
  319. width: 100%;
  320. }
  321. }
  322. .houses-btn {
  323. position: fixed;
  324. bottom: 0;
  325. left: 0;
  326. width: 750rpx;
  327. height: 166rpx;
  328. background: #FFFFFF;
  329. padding: 0 24rpx 54rpx 24rpx;
  330. z-index: 1;
  331. text:first-child {
  332. width: 338rpx;
  333. line-height: 84rpx;
  334. background: #FFA120;
  335. border-radius: 20rpx;
  336. text-align: center;
  337. font-size: 28rpx;
  338. font-family: PingFangSC-Regular, PingFang SC;
  339. font-weight: 400;
  340. color: #FFFFFF;
  341. }
  342. text:last-child {
  343. width: 338rpx;
  344. line-height: 84rpx;
  345. background: #1F7EFF;
  346. border-radius: 20rpx;
  347. text-align: center;
  348. font-size: 28rpx;
  349. font-family: PingFangSC-Regular, PingFang SC;
  350. font-weight: 400;
  351. color: #FFFFFF;
  352. }
  353. }
  354. .xian {
  355. width: 702rpx;
  356. height: 2rpx;
  357. background: #CCCCCC;
  358. margin: 16rpx auto;
  359. }
  360. .info1-row {
  361. margin-bottom: 24rpx;
  362. font-size: 24rpx;
  363. font-family: PingFangSC-Regular, PingFang SC;
  364. font-weight: 400;
  365. color: #666666;
  366. .text {
  367. width: 140rpx;
  368. }
  369. }
  370. .jianjie {
  371. font-size: 24rpx;
  372. font-family: PingFangSC-Regular, PingFang SC;
  373. font-weight: 400;
  374. color: #666666;
  375. }
  376. .info1-title {
  377. padding: 24rpx 0;
  378. font-size: 28rpx;
  379. font-family: PingFangSC-Medium, PingFang SC;
  380. font-weight: 500;
  381. color: #333333;
  382. }
  383. }
  384. </style>