vue 加载数据 影响seu_vue跳转数据加载问题

这是一个列表循环的子组件

,点击的时候传点击事件给父组件,父组件里跳转到详情页,这样写有问题吗,在ios点击跳转到详情页加载数据特别慢,显示默认数据有几秒钟才能加载上,下面是我列表和详情的代码

列表组件:

列表页面:

`

listDetail(idx1) {let city_id = uni.getStorageSync('city_id');

this.$mRouter.push({

route: `/pages/housedetail/housedetail?estate_id=${idx1}&city_id=${city_id}`

});

},

`

详情页:

` onLoad(params){this.housePro();

}`

`async housePro() {let params = {

estate_id: this.estate_id,

city_id: this.city_id

}

await this.$http

.post(`${houseDetail}`, params)

.then(async res => {

this.unit = res.data.unit

this.swiperList = res.data.img

this.is_focus = res.data.is_focus

this.titleStr.estate_name = res.data.estate_name

this.titleStr.rmb_price_min = res.data.rmb_price_min

this.titleStr.rmb_price_max = res.data.rmb_price_max

this.titleStr.price_min = res.data.price_min

this.titleStr.price_max = res.data.price_max

this.titleStr.money_type = res.data.money_type

this.titleStr.money_name = res.data.money_name

this.titleStr.property_date_int = res.data.property_date_int

this.titleStr.property_year = res.data.property_year

this.titleStr.rate = res.data.rate

this.titleStr.tags = res.data.tags

this.property_year = res.data.property_year

this.parking_num = res.data.parking_num

this.money_rate = parseFloat(res.data.money_rate)

this.content = res.data.content

this.property_title = res.data.property_title

this.total = res.data.total

this.area_covered = res.data.area_covered

this.developer_name = res.data.developer_name

this.developer_description = res.data.developer_description

this.developer_logo = res.data.developer_logo

this.developer_start_year = res.data.developer_start_year

this.country_name = res.data.country_name

this.city_name = res.data.city_name

this.postcode = res.data.postcode

this.estate_address = res.data.estate_address

this.money_type = res.data.money_type

this.money_name = res.data.money_name

this.property_fee = res.data.property_fee

this.fit_up_val = res.data.fit_up_val

this.estate_step = res.data.estate_step.slice(0,8)

this.houseTypeList = res.data.houseTypeList

this.heating_mode = res.data.heating_mode

this.property_company = res.data.property_company

this.property_company_address = res.data.property_company_address

this.supporting_facility = res.data.supporting_facility

this.center.lng = res.data.lon

this.center.lat = res.data.lat

this.circum_list = res.data.circum_list

//置业顾问

if(Object.keys(res.data.broker_info).length > 0){

this.broker_info = res.data.broker_info

this.nameNew = false

}else{

this.navTitle.splice(3, 1,'');

this.nameNew = true

}

this.tabLists = res.data.circum_list

this.tabList = this.objArr(res.data.circum_list,0)

})

.catch(() => {

//this.loading = false;

});`

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值