123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392 |
- <template>
- <view class="pk-info">
- <scroll-view scroll-y="true" scroll-x="true" class="pk-scroll-w">
- <view class="pk-scroll-w-box">
- <view class="pk-header u-flex-col u-col-center">
- <view class="pk-left-w">
- <view class="pk-left">
- <image src="../../static/images/pk.png" mode="aspectFit"></image>
- </view>
- </view>
- <view class="pk-item" v-for="(item,index) in list" :key="index">
- <image :src="item.logo" class="pk-item-img" mode=""></image>
- <view class="pk-item-box">
- <view class="item-name u-line-2">
- {{item.name}}
- </view>
- <view class="label-box u-flex">
- <text v-for="(a,b) in item.trait" :key="b" v-if="b < 2">{{a}}</text>
- </view>
- <view class="price-box u-flex">
- <text>参考均价</text>
- <text>{{item.avg_price}}/㎡</text>
- </view>
- </view>
- </view>
- </view>
- <view class="pk-title u-flex">
- <text>基本情况</text>
- </view>
- <view class="pk-table">
- <view class="pk-table-row u-flex" v-for="(item,index) in jibenlist" :key="index">
- <view class="row-left u-flex">
- <text>{{item.title}}</text>
- </view>
- <text class="row-text" v-for="(a,b) in list" :key="b" :style="{width:b == 0 ? '276rpx' : '264rpx'}">{{list[b][item.value]}}</text>
- </view>
- </view>
- <view class="pk-title u-flex">
- <text>总体情况</text>
- </view>
- <view class="pk-table">
- <view class="pk-table-row u-flex" v-for="(item,index) in zongtilist" :key="index">
- <view class="row-left u-flex">
- <text>{{item.title}}</text>
- </view>
- <text class="row-text" v-for="(a,b) in list" :key="b" :style="{width:b == 0 ? '276rpx' : '264rpx'}">{{list[b][item.value]}}</text>
- </view>
- </view>
- <view class="pk-title u-flex">
- <text>项目介绍</text>
- </view>
- <view class="pk-table">
- <view class="pk-table-row u-flex">
- <view class="row-left u-flex">
- <text>项目简介</text>
- </view>
- <text class="row-text" v-for="(a,b) in list" :key="b" :style="{width:b == 0 ? '276rpx' : '264rpx'}">{{a.project_synopsis}}</text>
- </view>
- </view>
- </view>
- </scroll-view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- list: [],
- jibenlist: [{
- title: '备案名',
- value: 'record_name'
- },
- {
- title: '销售状态',
- value: 'sale_state'
- },
- {
- title: '开盘时间',
- value: 'sale_time'
- },
- {
- title: '物业类别',
- value: 'property_class'
- },
- {
- title: '产权年限',
- value: 'property_deadline'
- },
- {
- title: '装修状况',
- value: 'fitment_state'
- },
- {
- title: '物业公司',
- value: 'property_company'
- },
- {
- title: '交房时间',
- value: 'delivery_time'
- },
- {
- title: '项目地址',
- value: 'project_address'
- }
- ],
- zongtilist: [{
- title: '占地面积(㎡)',
- value: 'floor_area'
- },
- {
- title: '总占地面积(㎡)',
- value: 'covered_area'
- },
- {
- title: '容积率',
- value: 'plot_ratio'
- },
- {
- title: '绿化率(%)',
- value: 'greening_rate'
- },
- {
- title: '总栋数',
- value: 'tower_num'
- },
- {
- title: '总户数',
- value: 'resident_num'
- },
- {
- title: '层高',
- value: 'floor_height'
- },
- {
- title: '户型面积',
- value: 'house_type_area'
- },
- {
- title: '总车位数',
- value: 'stall_num'
- },
- {
- title: '车位配比',
- value: 'stall_ratio'
- },
- {
- title: '人车分流',
- value: 'car_shunt'
- },
- {
- title: '物业费用',
- value: 'property_cost'
- },
- {
- title: '学校',
- value: 'school'
- },
- {
- title: '小区内配套',
- value: 'plot_mating'
- },
- {
- title: '外立面',
- value: 'external_wall'
- },
- {
- title: '楼层状况',
- value: 'floor_case'
- },
- {
- title: '预售许可证',
- value: 'permit_presale'
- },
- {
- title: '开发商',
- value: 'developers'
- },
- {
- title: '售楼中心地址',
- value: 'sales_office'
- }
- ],
- ids: []
- }
- },
- onLoad(option) {
- this.ids = JSON.parse(option.ids)
- this.getdata()
- },
- methods: {
- getdata() {
- this.$u.post('/api/Property/property_comparison',{
- id_info:this.ids.join(",")
- }).then(res => {
- this.list = res.data
- })
- }
- }
- }
- </script>
- <style lang="scss">
- .pk-info {
- .pk-scroll-w {
- width: 750rpx;
- height: 100vh;
- .pk-scroll-w-box {
- padding: 0 24rpx 24rpx 0;
- .pk-table {
- margin-bottom: 24rpx;
- .pk-table-row {
- align-items: stretch;
- white-space: nowrap;
- .row-text {
- min-height: 82rpx;
- padding: 24rpx 40rpx;
- width: 264rpx;
- border-left: 2rpx solid #fff;
- border-bottom: 2rpx solid #fff;
- background-color: #F5F5F5;
- font-size: 24rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #333333;
- display: inline-block;
- flex-shrink: 0;
- white-space: pre-wrap;
- }
- .row-left {
- padding-left: 24rpx;
- background-color: #fff;
- border-bottom: 2rpx solid #fff;
- min-height: 82rpx;
- display: inline-flex;
- flex-shrink: 0;
- position: sticky;
- left: 0;
- text {
- width: 124rpx;
- background: #CCCCCC;
- padding: 24rpx 14rpx;
- height: 100%;
- font-size: 24rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #333333;
- text-align: center;
- white-space: pre-wrap;
- }
- }
- }
- }
- .pk-title {
- padding: 0 0 20rpx 0;
- font-size: 28rpx;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #333333;
- text {
- padding: 0 24rpx;
- position: sticky;
- left: 0;
- }
- }
- .pk-header {
- white-space: nowrap;
- position: sticky;
- top: 0;
- z-index: 100;
- background-color: #fff;
- // padding: 24rpx 0 24rpx 24rpx;
- writing-mode: vertical-lr;
- .pk-item {
- display: inline-block;
- width: 240rpx;
- height: 320rpx;
- background: #FFFFFF;
- box-shadow: 0px 4rpx 8rpx 0px rgba(0, 0, 0, 0.1);
- border-radius: 8rpx;
- margin-left: 24rpx;
- flex-shrink: 0;
- writing-mode: horizontal-tb;
- .pk-item-img {
- width: 240rpx;
- height: 160rpx;
- }
- .pk-item-box {
- padding: 0 12rpx;
- .price-box {
- margin-bottom: 8rpx;
- text:first-child {
- font-size: 18rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #999999;
- margin-right: 8rpx;
- }
- text:last-child {
- font-size: 18rpx;
- font-family: DINAlternate-Bold, DINAlternate;
- font-weight: bold;
- color: #FF3B30;
- }
- }
- .label-box {
- margin-bottom: 8rpx;
- text {
- line-height: 32rpx;
- background: #F5F5F5;
- border-radius: 8rpx;
- padding: 0 12rpx;
- font-size: 18rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #999999;
- margin-right: 10rpx;
- max-width: 50%;
- overflow: hidden;
- text-overflow:ellipsis;
- white-space: nowrap;
- }
- }
- .item-name {
- height: 68rpx;
- font-size: 24rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #131415;
- margin-bottom: 8rpx;
- white-space: pre-wrap;
- }
- }
- }
- .pk-left-w {
- position: sticky;
- left: 0;
- background-color: #fff;
- padding: 24rpx 0 24rpx 24rpx;
- width: 124rpx;
- box-sizing: content-box;
- .pk-left {
- width: 124rpx;
- height: 320rpx;
- background: linear-gradient(132deg, #FFDD7B 0%, #FFA120 100%);
- box-shadow: 0px 4rpx 8rpx 0rpx rgba(0, 0, 0, 0.1);
- border-radius: 8px;
- display: inline-block;
- image {
- width: 124rpx;
- height: 320rpx;
- }
- }
- }
- }
- .u-flex-stretch {
- align-items: stretch;
- }
- .pk-scroll-w-left {
- width: 124rpx;
- height: 100%;
- background-color: red;
- }
- }
- }
- }
- </style>
|