detail.vue 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. <template>
  2. <div class="housingDetail">
  3. <div class="swiperBody">
  4. <!--室内外环境图-->
  5. <div v-if="selectImgType">
  6. <swiper :indicator-dots="false" circular style="height: 360rpx" @change="changeImg">
  7. <swiper-item v-for="item in envList">
  8. <img :src="item.url" class="swiperImg"/>
  9. </swiper-item>
  10. </swiper>
  11. </div>
  12. <!--房型图-->
  13. <div v-if="!selectImgType">
  14. <swiper :indicator-dots="false" circular style="height: 360rpx" @change="changeImg">
  15. <swiper-item v-for="item in layOutList">
  16. <img :src="item.url" class="swiperImg"/>
  17. </swiper-item>
  18. </swiper>
  19. </div>
  20. <div class="radioBox" @tap="changeType">
  21. <div :class="selectImgType?'selectEnvironment':'unSelEn'">
  22. 室内外环境 <span v-if="selectImgType">{{current}}/{{envList.length}}</span>
  23. </div>
  24. <div :class="!selectImgType?'selectLayout':'unSelLayout'">
  25. 房型图 <span v-if="!selectImgType">{{current}}/{{layOutList.length}}</span>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="housingInfoBody">
  30. <div class="housingName">科创园一期A栋1305</div>
  31. <div class="housingImportBox">
  32. <div class="housingImportItem">
  33. <span class="housingImportInfo">
  34. <span style="font-size: 40rpx;font-weight: 600">2899</span>
  35. 元/㎡/月</span>
  36. <span class="housingInportName">出租指导价</span>
  37. </div>
  38. <div class="housingImportItem">
  39. <span class="housingImportInfo">
  40. <span style="font-size: 40rpx;font-weight: 600">355</span>
  41. </span>
  42. <span class="housingInportName">
  43. 面积
  44. </span>
  45. </div>
  46. <div class="housingImportItem">
  47. <span class="housingImportInfo">
  48. <span style="font-size: 40rpx;font-weight: 600">精装</span>
  49. </span>
  50. <span class="housingInportName">装修情况</span>
  51. </div>
  52. </div>
  53. <div class="placeBox">
  54. <span class="placeTit">位置</span>
  55. <div class="placeInfo">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</div>
  56. <img src="../parkActivity/image/dhIcon.png" class="dhIcon">
  57. </div>
  58. <div class="housingInfoBox">
  59. <div class="housingInfoItem">
  60. <span style="color: red">*</span>
  61. <span class="infoTitle">区域</span>
  62. <span class="infoMsg">科教产业园</span>
  63. </div>
  64. <div class="housingInfoItem">
  65. <span style="color: red">*</span>
  66. <span class="infoTitle">楼层</span>
  67. <span class="infoMsg">19/28</span>
  68. </div>
  69. <div class="housingInfoItem">
  70. <span style="color: red">*</span>
  71. <span class="infoTitle">出租单元号</span>
  72. <span class="infoMsg">1904号</span>
  73. </div>
  74. <div class="housingInfoItem">
  75. <span style="color: red;visibility: hidden">*</span>
  76. <span class="infoTitle">平面图单元号</span>
  77. <span class="infoMsg">1904号</span>
  78. </div>
  79. <div class="housingInfoItem">
  80. <span style="color: red;">*</span>
  81. <span class="infoTitle">用途</span>
  82. <span class="infoMsg">研发办公</span>
  83. </div>
  84. <div class="housingInfoItem">
  85. <span style="color: red;">*</span>
  86. <span class="infoTitle">朝向</span>
  87. <span class="infoMsg">南</span>
  88. </div>
  89. <div class="housingInfoItem">
  90. <span style="color: red;visibility: hidden">*</span>
  91. <span class="infoTitle">称重情况(kg/㎡)</span>
  92. <span class="infoMsg"></span>
  93. </div>
  94. <div class="housingInfoItem">
  95. <span style="color: red;visibility: hidden">*</span>
  96. <span class="infoTitle">层高(m)</span>
  97. <span class="infoMsg">4.5m</span>
  98. </div>
  99. <div class="housingInfoItem">
  100. <span style="color: red;visibility: hidden">*</span>
  101. <span class="infoTitle">用电说明</span>
  102. <span class="infoMsg"></span>
  103. </div>
  104. <div class="housingInfoItem" style="margin-top: 12rpx">
  105. <span style="color: red;visibility: hidden">*</span>
  106. <span class="infoTitle">备注</span>
  107. </div>
  108. <div class="bzInfo">
  109. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  110. </div>
  111. </div>
  112. <button class="submitBtn" @click="toPredetermine">去预定</button>
  113. </div>
  114. </div>
  115. </template>
  116. <script>
  117. export default {
  118. name: "detail",
  119. data() {
  120. return {
  121. selectImgType:true,
  122. current:1,
  123. envList:[
  124. {url:require('./testImg.png')},
  125. {url:require('./testImg.png')},
  126. {url:require('./testImg.png')},
  127. {url:require('./testImg.png')},
  128. {url:require('./testImg.png')},
  129. ],
  130. layOutList:[
  131. {url:require('./testImg.png')},
  132. {url:require('./testImg.png')},
  133. ]
  134. };
  135. },
  136. methods:{
  137. changeType(){
  138. this.selectImgType = !this.selectImgType
  139. this.current = 1
  140. },
  141. changeImg(index){
  142. this.current = index.detail.current+1
  143. },
  144. toPredetermine() {
  145. uni.navigateTo({
  146. url:'/pages/subPackages/housingResources/addPredetermine'
  147. })
  148. }
  149. }
  150. }
  151. </script>
  152. <style lang="scss">
  153. .housingDetail{
  154. .swiperBody{
  155. position: relative;
  156. .swiperImg{
  157. width: 750rpx;
  158. height: 360rpx;
  159. }
  160. .radioBox{
  161. width: 344rpx;
  162. height: 60rpx;
  163. display: flex;
  164. align-items: center;
  165. justify-content: space-between;
  166. border-radius: 30rpx;
  167. background: rgba(0, 0, 0, 0.70);
  168. position: absolute;
  169. color: white;
  170. left: 204rpx;
  171. top: 268rpx;
  172. font-size: 26rpx;
  173. box-sizing: border-box;
  174. .selectEnvironment{
  175. width: 220rpx;
  176. height: 60rpx;
  177. background: rgba(3, 101, 249, 1);
  178. border-radius: 30rpx;
  179. display: flex;
  180. align-items: center;
  181. justify-content: center;
  182. box-sizing: border-box;
  183. }
  184. .unSelEn{
  185. width: 164rpx;
  186. height: 60rpx;
  187. border-radius: 30rpx;
  188. display: flex;
  189. align-items: center;
  190. justify-content: center;
  191. box-sizing: border-box;
  192. }
  193. .selectLayout{
  194. width: 180rpx;
  195. height: 60rpx;
  196. display: flex;
  197. background: rgba(3, 101, 249, 1);
  198. align-items: center;
  199. justify-content: center;
  200. box-sizing: border-box;
  201. border-radius: 30rpx;
  202. }
  203. .unSelLayout{
  204. width: 124rpx;
  205. height: 60rpx;
  206. display: flex;
  207. align-items: center;
  208. justify-content: center;
  209. box-sizing: border-box;
  210. border-radius: 30rpx;
  211. }
  212. }
  213. }
  214. .housingInfoBody{
  215. background: white;
  216. padding: 32rpx;
  217. .housingName{
  218. font-size: 40rpx;
  219. color: rgba(51, 51, 51, 1);
  220. margin-bottom: 24rpx;
  221. }
  222. .housingImportBox{
  223. display: flex;
  224. justify-content: space-between;
  225. align-items: center;
  226. padding:0 10rpx;
  227. .housingImportItem{
  228. display: flex;
  229. flex-direction: column;
  230. align-items: center;
  231. .housingImportInfo{
  232. color: rgba(226, 81, 0, 1);
  233. font-size: 28rpx;
  234. line-height: 46rox;
  235. }
  236. .housingInportName{
  237. color: rgba(136, 136, 136, 1);
  238. font-size: 28rpx;
  239. line-height: 32rpx;
  240. margin-top: 10rpx;
  241. }
  242. }
  243. }
  244. }
  245. .placeBox{
  246. display: flex;
  247. justify-content: space-between;
  248. align-items: center;
  249. background: rgba(245, 247, 250, 1);
  250. padding: 16rpx 24rpx;
  251. border-radius: 8rpx;
  252. margin-top: 32rpx;
  253. .placeTit{
  254. color: rgba(136, 136, 136, 1);
  255. font-size: 28rpx;
  256. white-space: nowrap;
  257. }
  258. .placeInfo{
  259. color:rgba(51, 51, 51, 1);
  260. font-size: 28rpx;
  261. width: 466rpx;
  262. line-height: 42rpx;
  263. word-wrap: break-word;
  264. }
  265. .dhIcon{
  266. width: 48rpx;
  267. height: 48rpx;
  268. }
  269. }
  270. .housingInfoBox{
  271. display: flex;
  272. flex-direction: column;
  273. margin-top: 32rpx;
  274. .housingInfoItem{
  275. display: flex;
  276. align-items: center;
  277. margin-bottom: 24rpx;
  278. .infoTitle{
  279. color: rgba(136, 136, 136, 1);
  280. font-size: 28rpx;
  281. margin-left: 8rpx;
  282. width: 240rpx;
  283. }
  284. .infoMsg{
  285. font-size: 28rpx;
  286. color: rgba(51, 51, 51, 1);
  287. }
  288. }
  289. .bzInfo{
  290. width: 640rpx;
  291. padding: 0 24rpx;
  292. word-wrap: break-word;
  293. font-size: 28rpx;
  294. color: #333333;
  295. line-height: 42rpx;
  296. }
  297. }
  298. .submitBtn{
  299. width: 654rpx;
  300. height: 96rpx;
  301. display: flex;
  302. align-items: center;
  303. justify-content: center;
  304. color: white;
  305. font-size: 35rpx;
  306. background: rgba(3, 101, 249, 1);
  307. margin: 64rpx auto;
  308. }
  309. }
  310. </style>