Browse Source

优化推荐瀑布流

master
Enzo 4 years ago
parent
commit
cfb4968ec7
  1. 4
      pages/goodsDetail/index.vue
  2. 14
      pages/order/confirm_order.vue
  3. 2
      pages/recommList/index.vue

4
pages/goodsDetail/index.vue

@ -810,10 +810,6 @@
this.$msg('请选择使用时间!');
}
}
// let goods_id = this.goods_detail.id;
// this.$url('/pages/order/confirm_order?goods_id='+ goods_id);
},
//
lookImg(index){

14
pages/order/confirm_order.vue

@ -191,7 +191,8 @@
check_in_time: '',
check_out_time: '',
arrival_time: '',
totalLive: ''
totalLive: '',
hotel_specid: []
}
},
onLoad(e) {
@ -200,7 +201,14 @@
this.goods_type = e.goods_type;
this.btn_type = e.btn_type;
this.order_id = e.order_id;
this.spec_id = e.spec_id;
if(this.goods_type == 1) {
var arr = e.spec_id.split(",")
console.log(arr)
this.hotel_specid = arr
console.log('数组id',this.hotel_specid)
}else {
this.spec_id = e.spec_id;
}
this.enter_type = e.enter_type;
this.goods_typetext = e.goods_typetext;
if(this.goods_id) {
@ -280,7 +288,7 @@
}
},
getGoodsData(type){
this.$http(this.API.API_CONFIRMDETAILS,{id: this.goods_id,num: 1,pay_type: type,spec_id: this.spec_id}).then(res => {
this.$http(this.API.API_CONFIRMDETAILS,{id: this.goods_id,num: 1,pay_type: type,spec_id: this.goods_type==1?this.hotel_specid:this.spec_id}).then(res => {
this.goods_details = res.data;
console.log('数据',res)
})

2
pages/recommList/index.vue

@ -4,7 +4,7 @@
<u-tabs :list="tab_list" :is-scroll="true" :current="current" @change="tabChange"></u-tabs>
</view>
<lf-nocontent v-else></lf-nocontent>
<swiper :style="{height: 'calc('+ windowHeight +'px - 60rpx)', width: '750rpx'}" :current="current" @change="swiperChange">
<swiper :style="{height: 'calc('+ windowHeight +'px - 160rpx)', width: '750rpx'}" :current="current" @change="swiperChange">
<swiper-item v-for="(tabItem, tabIndex) in tab_list" :key="tabIndex">
<scroll-view class="com" :scroll-y="true" :refresher-enabled="true" :refresher-triggered="tabItem.isRefresher" @scrolltolower="onScrolltolower" @refresherrefresh="onRefresherrefresh">
<view class="lf-m-t-20"></view>

Loading…
Cancel
Save